3 fY@s8dZddlmZddlmZddlZGdddeZdS)z Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.7.4 Generated by: https://github.com/swagger-api/swagger-codegen.git )pformat) iteritemsNc@seZdZdZdddZeddZejddZedd Zejd d Zed d Z e jd d Z ddZ ddZ ddZ ddZ ddZdS) V1beta1SubjectAccessReviewStatuszw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCs2dddd|_dddd|_||_||_||_dS)aV V1beta1SubjectAccessReviewStatus - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. boolstr)allowedevaluation_errorreasonrevaluationErrorr N) swagger_types attribute_map_allowed_evaluation_error_reason)selfrrr rn/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1beta1_subject_access_review_status.py__init__s   z)V1beta1SubjectAccessReviewStatus.__init__cCs|jS)z Gets the allowed of this V1beta1SubjectAccessReviewStatus. Allowed is required. True if the action would be allowed, false otherwise. :return: The allowed of this V1beta1SubjectAccessReviewStatus. :rtype: bool )r )rrrrr1s z(V1beta1SubjectAccessReviewStatus.allowedcCs|dkrtd||_dS)a Sets the allowed of this V1beta1SubjectAccessReviewStatus. Allowed is required. True if the action would be allowed, false otherwise. :param allowed: The allowed of this V1beta1SubjectAccessReviewStatus. :type: bool Nz/Invalid value for `allowed`, must not be `None`) ValueErrorr )rrrrrr<s cCs|jS)a Gets the evaluation_error of this V1beta1SubjectAccessReviewStatus. EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. :return: The evaluation_error of this V1beta1SubjectAccessReviewStatus. :rtype: str )r)rrrrrJs z1V1beta1SubjectAccessReviewStatus.evaluation_errorcCs ||_dS)a Sets the evaluation_error of this V1beta1SubjectAccessReviewStatus. EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. :param evaluation_error: The evaluation_error of this V1beta1SubjectAccessReviewStatus. :type: str N)r)rrrrrrUs cCs|jS)z Gets the reason of this V1beta1SubjectAccessReviewStatus. Reason is optional. It indicates why a request was allowed or denied. :return: The reason of this V1beta1SubjectAccessReviewStatus. :rtype: str )r)rrrrr as z'V1beta1SubjectAccessReviewStatus.reasoncCs ||_dS)z Sets the reason of this V1beta1SubjectAccessReviewStatus. Reason is optional. It indicates why a request was allowed or denied. :param reason: The reason of this V1beta1SubjectAccessReviewStatus. :type: str N)r)rr rrrr ls cCsi}xt|jD]z\}}t||}t|trDttdd|||<qt|dr\|j||<qt|trttdd|j ||<q|||<qW|S)z8 Returns the model properties as a dict cSst|dr|jS|S)Nto_dict)hasattrr)xrrrsz:V1beta1SubjectAccessReviewStatus.to_dict..rcSs&t|ddr"|d|djfS|S)Nrr)rr)itemrrrrs) rr getattr isinstancelistmaprrdictitems)rresultattr_valuerrrrxs     z(V1beta1SubjectAccessReviewStatus.to_dictcCs t|jS)z@ Returns the string representation of the model )rr)rrrrto_strsz'V1beta1SubjectAccessReviewStatus.to_strcCs|jS)z* For `print` and `pprint` )r%)rrrr__repr__sz)V1beta1SubjectAccessReviewStatus.__repr__cCst|tsdS|j|jkS)z8 Returns true if both objects are equal F)rr__dict__)rotherrrr__eq__s z'V1beta1SubjectAccessReviewStatus.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr(rrr__ne__sz'V1beta1SubjectAccessReviewStatus.__ne__)NNN)__name__ __module__ __qualname____doc__rpropertyrsetterrr rr%r&r)r*rrrrrs      r)r.pprintrsixrreobjectrrrrr s