TokenRequest class
TokenRequest contains parameters of a service account token.
Constructors
- TokenRequest({required String audience, int? expirationSeconds})
-
The main constructor.
const
-
TokenRequest.fromJson(Map<
String, dynamic> json) - Creates a TokenRequest from JSON data.
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
Static Methods
-
listFromJson(
Iterable< Map< list) → List<String, dynamic> >TokenRequest> - Creates a list of TokenRequest from JSON data.