kubernetes_asyncio.client.models.v1_subject_access_review_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_subject_access_review_spec.V1SubjectAccessReviewSpec(extra=None, groups=None, non_resource_attributes=None, resource_attributes=None, uid=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 = {'extra': 'extra', 'groups': 'groups', 'non_resource_attributes': 'nonResourceAttributes', 'resource_attributes': 'resourceAttributes', 'uid': 'uid', 'user': 'user'}
property extra

Gets the extra of this V1SubjectAccessReviewSpec. # noqa: E501

Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. # noqa: E501

Returns:

The extra of this V1SubjectAccessReviewSpec. # noqa: E501

Return type:

dict(str, list[str])

property groups

Gets the groups of this V1SubjectAccessReviewSpec. # noqa: E501

Groups is the groups you’re testing for. # noqa: E501

Returns:

The groups of this V1SubjectAccessReviewSpec. # noqa: E501

Return type:

list[str]

property non_resource_attributes

Gets the non_resource_attributes of this V1SubjectAccessReviewSpec. # noqa: E501

Returns:

The non_resource_attributes of this V1SubjectAccessReviewSpec. # noqa: E501

Return type:

V1NonResourceAttributes

openapi_types = {'extra': 'dict(str, list[str])', 'groups': 'list[str]', 'non_resource_attributes': 'V1NonResourceAttributes', 'resource_attributes': 'V1ResourceAttributes', 'uid': 'str', 'user': 'str'}
property resource_attributes

Gets the resource_attributes of this V1SubjectAccessReviewSpec. # noqa: E501

Returns:

The resource_attributes of this V1SubjectAccessReviewSpec. # noqa: E501

Return type:

V1ResourceAttributes

to_dict(serialize=False)

Returns the model properties as a dict

to_str()

Returns the string representation of the model

property uid

Gets the uid of this V1SubjectAccessReviewSpec. # noqa: E501

UID information about the requesting user. # noqa: E501

Returns:

The uid of this V1SubjectAccessReviewSpec. # noqa: E501

Return type:

str

property user

Gets the user of this V1SubjectAccessReviewSpec. # noqa: E501

User is the user you’re testing for. If you specify “User” but not “Groups”, then is it interpreted as “What if User were not a member of any groups # noqa: E501

Returns:

The user of this V1SubjectAccessReviewSpec. # noqa: E501

Return type:

str