kubernetes_asyncio.client.models.v1_token_review_status 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_review_status.V1TokenReviewStatus(audiences=None, authenticated=None, error=None, user=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', 'authenticated': 'authenticated', 'error': 'error', 'user': 'user'}
property audiences

Gets the audiences of this V1TokenReviewStatus. # noqa: E501

Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token’s audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is “true”, the token is valid against the audience of the Kubernetes API server. # noqa: E501

Returns:

The audiences of this V1TokenReviewStatus. # noqa: E501

Return type:

list[str]

property authenticated

Gets the authenticated of this V1TokenReviewStatus. # noqa: E501

Authenticated indicates that the token was associated with a known user. # noqa: E501

Returns:

The authenticated of this V1TokenReviewStatus. # noqa: E501

Return type:

bool

property error

Gets the error of this V1TokenReviewStatus. # noqa: E501

Error indicates that the token couldn’t be checked # noqa: E501

Returns:

The error of this V1TokenReviewStatus. # noqa: E501

Return type:

str

openapi_types = {'audiences': 'list[str]', 'authenticated': 'bool', 'error': 'str', 'user': 'V1UserInfo'}
to_dict(serialize=False)

Returns the model properties as a dict

to_str()

Returns the string representation of the model

property user

Gets the user of this V1TokenReviewStatus. # noqa: E501

Returns:

The user of this V1TokenReviewStatus. # noqa: E501

Return type:

V1UserInfo