Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 1.88 KB

File metadata and controls

33 lines (26 loc) · 1.88 KB

V1SubjectAccessReviewSpec

SubjectAccessReviewSpec is a description of the access request. Exactly one of resourceAttributes and nonResourceAttributes must be set

Properties

Name Type Description Notes
extra Dict[str, List[str]] extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. [optional]
groups List[str] groups is the groups you're testing for. [optional]
non_resource_attributes V1NonResourceAttributes [optional]
resource_attributes V1ResourceAttributes [optional]
uid str uid information about the requesting user. [optional]
user str 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 [optional]

Example

from kubernetes.client.models.v1_subject_access_review_spec import V1SubjectAccessReviewSpec

# TODO update the JSON string below
json = "{}"
# create an instance of V1SubjectAccessReviewSpec from a JSON string
v1_subject_access_review_spec_instance = V1SubjectAccessReviewSpec.from_json(json)
# print the JSON string representation of the object
print(V1SubjectAccessReviewSpec.to_json())

# convert the object into a dict
v1_subject_access_review_spec_dict = v1_subject_access_review_spec_instance.to_dict()
# create an instance of V1SubjectAccessReviewSpec from a dict
v1_subject_access_review_spec_from_dict = V1SubjectAccessReviewSpec.from_dict(v1_subject_access_review_spec_dict)

[Back to Model list] [Back to API list] [Back to README]