3 f÷ÔYÑã@s8dZddlmZddlmZddlZGdd„deƒZdS)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@sÄeZdZdZddd„Zedd„ƒZejdd„ƒZedd „ƒZejd d „ƒZed d „ƒZ e jd d „ƒZ edd„ƒZ e jdd„ƒZ edd„ƒZ e jdd„ƒZ dd„Z dd„Z dd„Zdd„Zdd„ZdS)ÚV1alpha1PolicyRulezw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCsFddddddœ|_ddddddœ|_||_||_||_||_||_dS) aH V1alpha1PolicyRule - 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. z list[str])Ú api_groupsÚnon_resource_ur_lsÚresource_namesÚ resourcesÚverbsZ apiGroupsZnonResourceURLsZ resourceNamesrr N)Ú swagger_typesÚ attribute_mapÚ _api_groupsÚ_non_resource_ur_lsÚ_resource_namesÚ _resourcesÚ_verbs)Úselfrrrrr ©rú^/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1alpha1_policy_rule.pyÚ__init__s   zV1alpha1PolicyRule.__init__cCs|jS)ai Gets the api_groups of this V1alpha1PolicyRule. APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. :return: The api_groups of this V1alpha1PolicyRule. :rtype: list[str] )r )rrrrr7s zV1alpha1PolicyRule.api_groupscCs ||_dS)ar Sets the api_groups of this V1alpha1PolicyRule. APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. :param api_groups: The api_groups of this V1alpha1PolicyRule. :type: list[str] N)r )rrrrrrBs cCs|jS)aË Gets the non_resource_ur_ls of this V1alpha1PolicyRule. NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different. Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. :return: The non_resource_ur_ls of this V1alpha1PolicyRule. :rtype: list[str] )r )rrrrrNs z%V1alpha1PolicyRule.non_resource_ur_lscCs ||_dS)aÜ Sets the non_resource_ur_ls of this V1alpha1PolicyRule. NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different. Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. :param non_resource_ur_ls: The non_resource_ur_ls of this V1alpha1PolicyRule. :type: list[str] N)r )rrrrrrYs cCs|jS)a# Gets the resource_names of this V1alpha1PolicyRule. ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. :return: The resource_names of this V1alpha1PolicyRule. :rtype: list[str] )r)rrrrres z!V1alpha1PolicyRule.resource_namescCs ||_dS)a0 Sets the resource_names of this V1alpha1PolicyRule. ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. :param resource_names: The resource_names of this V1alpha1PolicyRule. :type: list[str] N)r)rrrrrrps cCs|jS)zü Gets the resources of this V1alpha1PolicyRule. Resources is a list of resources this rule applies to. ResourceAll represents all resources. :return: The resources of this V1alpha1PolicyRule. :rtype: list[str] )r)rrrrr|s zV1alpha1PolicyRule.resourcescCs ||_dS)a Sets the resources of this V1alpha1PolicyRule. Resources is a list of resources this rule applies to. ResourceAll represents all resources. :param resources: The resources of this V1alpha1PolicyRule. :type: list[str] N)r)rrrrrr‡s cCs|jS)a$ Gets the verbs of this V1alpha1PolicyRule. Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. :return: The verbs of this V1alpha1PolicyRule. :rtype: list[str] )r)rrrrr “s zV1alpha1PolicyRule.verbscCs|dkrtdƒ‚||_dS)a( Sets the verbs of this V1alpha1PolicyRule. Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. :param verbs: The verbs of this V1alpha1PolicyRule. :type: list[str] Nz-Invalid value for `verbs`, must not be `None`)Ú ValueErrorr)rr rrrr žs cCs’i}xˆt|jƒD]z\}}t||ƒ}t|tƒrDttdd„|ƒƒ||<qt|dƒr\|jƒ||<qt|tƒr‚ttdd„|j ƒƒƒ||<q|||<qW|S)z8 Returns the model properties as a dict cSst|dƒr|jƒS|S)NÚto_dict)Úhasattrr)ÚxrrrÚ¶sz,V1alpha1PolicyRule.to_dict..rcSs&t|ddƒr"|d|djƒfS|S)Nérr)rr)Úitemrrrr½s) rr ÚgetattrÚ isinstanceÚlistÚmaprrÚdictÚitems)rÚresultÚattrÚ_Úvaluerrrr¬s     zV1alpha1PolicyRule.to_dictcCs t|jƒƒS)z@ Returns the string representation of the model )rr)rrrrÚto_strÆszV1alpha1PolicyRule.to_strcCs|jƒS)z* For `print` and `pprint` )r&)rrrrÚ__repr__ÌszV1alpha1PolicyRule.__repr__cCst|tƒsdS|j|jkS)z8 Returns true if both objects are equal F)rrÚ__dict__)rÚotherrrrÚ__eq__Òs zV1alpha1PolicyRule.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr)rrrÚ__ne__ÛszV1alpha1PolicyRule.__ne__)NNNNN)Ú__name__Ú __module__Ú __qualname__Ú__doc__rÚpropertyrÚsetterrrrr rr&r'r*r+rrrrrs"       r)r/ÚpprintrÚsixrÚreÚobjectrrrrrÚ s