kubernetes_asyncio.client.models.v1_token_request_spec module

Kubernetes

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501

The version of the OpenAPI document: v1.34.3 Generated by: https://openapi-generator.tech

class kubernetes_asyncio.client.models.v1_token_request_spec.V1TokenRequestSpec(audiences=None, bound_object_ref=None, expiration_seconds=None, local_vars_configuration=None)

Bases: object

NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech

Do not edit the class manually.

attribute_map = {'audiences': 'audiences', 'bound_object_ref': 'boundObjectRef', 'expiration_seconds': 'expirationSeconds'}
property audiences

Gets the audiences of this V1TokenRequestSpec. # noqa: E501

Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences. # noqa: E501

Returns:

The audiences of this V1TokenRequestSpec. # noqa: E501

Return type:

list[str]

property bound_object_ref

Gets the bound_object_ref of this V1TokenRequestSpec. # noqa: E501

Returns:

The bound_object_ref of this V1TokenRequestSpec. # noqa: E501

Return type:

V1BoundObjectReference

property expiration_seconds

Gets the expiration_seconds of this V1TokenRequestSpec. # noqa: E501

ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the ‘expiration’ field in a response. # noqa: E501

Returns:

The expiration_seconds of this V1TokenRequestSpec. # noqa: E501

Return type:

int

openapi_types = {'audiences': 'list[str]', 'bound_object_ref': 'V1BoundObjectReference', 'expiration_seconds': 'int'}
to_dict(serialize=False)

Returns the model properties as a dict

to_str()

Returns the string representation of the model