
    <g("                     B    d Z ddlZddlZddlZddlmZ  G d de      Zy)z
    Kubernetes

    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E501

    The version of the OpenAPI document: release-1.32
    Generated by: https://openapi-generator.tech
    N)Configurationc                   \   e Zd ZdZ	 ddddddZddddddZdd
Zed        Zej                  d        Zed        Z
e
j                  d        Z
ed        Zej                  d        Zed        Zej                  d        Zed        Zej                  d        Zd Zd Zd Zd Zd Zy	)V1PolicyRulezNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    z	list[str])
api_groupsnon_resource_ur_lsresource_names	resourcesverbs	apiGroupsnonResourceURLsresourceNamesr	   r
   Nc                     |
t               }|| _        d| _        d| _        d| _        d| _        d| _        d| _        ||| _        ||| _	        ||| _
        ||| _        || _        y)z)V1PolicyRule - a model defined in OpenAPIN)r   local_vars_configuration_api_groups_non_resource_ur_ls_resource_names
_resources_verbsdiscriminatorr   r   r   r	   r
   )selfr   r   r   r	   r
   r   s          \/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/models/v1_policy_rule.py__init__zV1PolicyRule.__init__3   s    #+'4$(@%#' #!!(DO)&8D#%"0D &DN
    c                     | j                   S )a  Gets the api_groups of this V1PolicyRule.  # noqa: E501

        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. "" represents the core API group and "*" represents all API groups.  # noqa: E501

        :return: The api_groups of this V1PolicyRule.  # noqa: E501
        :rtype: list[str]
        r   r   s    r   r   zV1PolicyRule.api_groupsJ   s     r   c                     || _         y)a  Sets the api_groups of this V1PolicyRule.

        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. "" represents the core API group and "*" represents all API groups.  # noqa: E501

        :param api_groups: The api_groups of this V1PolicyRule.  # noqa: E501
        :type: list[str]
        Nr   )r   r   s     r   r   zV1PolicyRule.api_groupsU   s     &r   c                     | j                   S )aR  Gets the non_resource_ur_ls of this V1PolicyRule.  # noqa: E501

        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 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.  # noqa: E501

        :return: The non_resource_ur_ls of this V1PolicyRule.  # noqa: E501
        :rtype: list[str]
        r   r   s    r   r   zV1PolicyRule.non_resource_ur_lsa   s     '''r   c                     || _         y)aU  Sets the non_resource_ur_ls of this V1PolicyRule.

        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 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.  # noqa: E501

        :param non_resource_ur_ls: The non_resource_ur_ls of this V1PolicyRule.  # noqa: E501
        :type: list[str]
        Nr   )r   r   s     r   r   zV1PolicyRule.non_resource_ur_lsl   s     $6 r   c                     | j                   S )a9  Gets the resource_names of this V1PolicyRule.  # noqa: E501

        ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  # noqa: E501

        :return: The resource_names of this V1PolicyRule.  # noqa: E501
        :rtype: list[str]
        r   r   s    r   r   zV1PolicyRule.resource_namesx   s     ###r   c                     || _         y)a8  Sets the resource_names of this V1PolicyRule.

        ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  # noqa: E501

        :param resource_names: The resource_names of this V1PolicyRule.  # noqa: E501
        :type: list[str]
        Nr"   )r   r   s     r   r   zV1PolicyRule.resource_names   s      .r   c                     | j                   S )a	  Gets the resources of this V1PolicyRule.  # noqa: E501

        Resources is a list of resources this rule applies to. '*' represents all resources.  # noqa: E501

        :return: The resources of this V1PolicyRule.  # noqa: E501
        :rtype: list[str]
        r   r   s    r   r	   zV1PolicyRule.resources   s     r   c                     || _         y)a  Sets the resources of this V1PolicyRule.

        Resources is a list of resources this rule applies to. '*' represents all resources.  # noqa: E501

        :param resources: The resources of this V1PolicyRule.  # noqa: E501
        :type: list[str]
        Nr%   )r   r	   s     r   r	   zV1PolicyRule.resources   s     $r   c                     | j                   S )a  Gets the verbs of this V1PolicyRule.  # noqa: E501

        Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.  # noqa: E501

        :return: The verbs of this V1PolicyRule.  # noqa: E501
        :rtype: list[str]
        )r   r   s    r   r
   zV1PolicyRule.verbs   s     {{r   c                 X    | j                   j                  r|t        d      || _        y)a  Sets the verbs of this V1PolicyRule.

        Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.  # noqa: E501

        :param verbs: The verbs of this V1PolicyRule.  # noqa: E501
        :type: list[str]
        Nz-Invalid value for `verbs`, must not be `None`)r   client_side_validation
ValueErrorr   )r   r
   s     r   r
   zV1PolicyRule.verbs   s*     ((??EMLMMr   c                 ~   i }t        j                  | j                        D ]  \  }}t        | |      }t	        |t
              rt        t        d |            ||<   <t        |d      r|j                         ||<   \t	        |t              r(t        t        d |j                                     ||<   |||<    |S )z&Returns the model properties as a dictc                 >    t        | d      r| j                         S | S )Nto_dicthasattrr-   )xs    r   <lambda>z&V1PolicyRule.to_dict.<locals>.<lambda>   s    WQ	-BaiikIIr   r-   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   r-   r   r.   )items    r   r1   z&V1PolicyRule.to_dict.<locals>.<lambda>   s6    tAw	2 #'q'47??+<!= "=8<"=r   )six	iteritemsopenapi_typesgetattr
isinstancelistmapr/   r-   dictitems)r   resultattr_values        r   r-   zV1PolicyRule.to_dict   s    }}T%7%78GD!D$'E%&#CI%  t 	*$}}tE4(#C=KKM%  t  %t! 9$ r   c                 H    t        j                  | j                               S )z.Returns the string representation of the model)pprintpformatr-   r   s    r   to_strzV1PolicyRule.to_str   s    ~~dlln--r   c                 "    | j                         S )zFor `print` and `pprint`)rE   r   s    r   __repr__zV1PolicyRule.__repr__   s    {{}r   c                 f    t        |t              sy| j                         |j                         k(  S )z&Returns true if both objects are equalFr9   r   r-   r   others     r   __eq__zV1PolicyRule.__eq__   s&    %.||~00r   c                 f    t        |t              sy| j                         |j                         k7  S )z*Returns true if both objects are not equalTrI   rJ   s     r   __ne__zV1PolicyRule.__ne__   s&    %.||~00r   )NNNNNN)__name__
__module____qualname____doc__r7   attribute_mapr   propertyr   setterr   r   r	   r
   r-   rE   rG   rL   rN    r   r   r   r      s>    ")% M "/) M.     	& 	& ( ( 	6 	6 $ $ 	. 	.   	$ 	$   \\ 0.11r   r   )rR   rC   rer5   kubernetes.client.configurationr   objectr   rV   r   r   <module>rZ      s&     	 
 9V16 V1r   