kubernetes_asyncio.client.models.v1_service_account_token_projection 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_service_account_token_projection.V1ServiceAccountTokenProjection(audience=None, expiration_seconds=None, path=None, local_vars_configuration=None)
Bases:
objectNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech
Do not edit the class manually.
- attribute_map = {'audience': 'audience', 'expiration_seconds': 'expirationSeconds', 'path': 'path'}
- property audience
Gets the audience of this V1ServiceAccountTokenProjection. # noqa: E501
audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. # noqa: E501
- Returns:
The audience of this V1ServiceAccountTokenProjection. # noqa: E501
- Return type:
str
- property expiration_seconds
Gets the expiration_seconds of this V1ServiceAccountTokenProjection. # noqa: E501
expirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. # noqa: E501
- Returns:
The expiration_seconds of this V1ServiceAccountTokenProjection. # noqa: E501
- Return type:
int
- openapi_types = {'audience': 'str', 'expiration_seconds': 'int', 'path': 'str'}
- property path
Gets the path of this V1ServiceAccountTokenProjection. # noqa: E501
path is the path relative to the mount point of the file to project the token into. # noqa: E501
- Returns:
The path of this V1ServiceAccountTokenProjection. # noqa: E501
- Return type:
str
- to_dict(serialize=False)
Returns the model properties as a dict
- to_str()
Returns the string representation of the model