TokenRequest class
TokenRequest contains parameters of a service account token.
Constructors
- TokenRequest({required String audience, int? expirationSeconds})
-
Default constructor.
const
-
TokenRequest.fromJson(Map<
String, dynamic> json) -
Creates a TokenRequest from JSON data.
factory
Properties
- audience → String
-
audience is the intended audience of the token in "TokenRequestSpec". It will default to the audiences of kube apiserver.
final
- expirationSeconds → int?
-
expirationSeconds is the duration of validity of the token in "TokenRequestSpec". It has the same default value of "ExpirationSeconds" in "TokenRequestSpec".
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object> - Converts a TokenRequest instance to JSON data.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited