
    <g8                     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Z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d Zd Zd Zd Zd Zy)V1ResourceRulezNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    z	list[str])
api_groupsresource_names	resourcesverbs	apiGroupsresourceNamesr   r	   Nc                     |
t               }|| _        d| _        d| _        d| _        d| _        d| _        ||| _        ||| _        ||| _	        || _
        y)z+V1ResourceRule - a model defined in OpenAPIN)r   local_vars_configuration_api_groups_resource_names
_resources_verbsdiscriminatorr   r   r   r	   )selfr   r   r   r	   r   s         ^/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/models/v1_resource_rule.py__init__zV1ResourceRule.__init__1   sm    #+'4$(@%#!!(DO%"0D &DN
    c                     | j                   S )a  Gets the api_groups of this V1ResourceRule.  # 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.  "*" means all.  # noqa: E501

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

        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.  "*" means all.  # noqa: E501

        :param api_groups: The api_groups of this V1ResourceRule.  # noqa: E501
        :type: list[str]
        Nr   )r   r   s     r   r   zV1ResourceRule.api_groupsP   s     &r   c                     | j                   S )aM  Gets the resource_names of this V1ResourceRule.  # noqa: E501

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

        :return: The resource_names of this V1ResourceRule.  # noqa: E501
        :rtype: list[str]
        r   r   s    r   r   zV1ResourceRule.resource_names\   s     ###r   c                     || _         y)aL  Sets the resource_names of this V1ResourceRule.

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

        :param resource_names: The resource_names of this V1ResourceRule.  # noqa: E501
        :type: list[str]
        Nr   )r   r   s     r   r   zV1ResourceRule.resource_namesg   s      .r   c                     | j                   S )ar  Gets the resources of this V1ResourceRule.  # noqa: E501

        Resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.  "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups.  # noqa: E501

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

        Resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.  "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups.  # noqa: E501

        :param resources: The resources of this V1ResourceRule.  # noqa: E501
        :type: list[str]
        Nr   )r   r   s     r   r   zV1ResourceRule.resources~   s     $r   c                     | j                   S )a(  Gets the verbs of this V1ResourceRule.  # noqa: E501

        Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.  # noqa: E501

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

        Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.  # noqa: E501

        :param verbs: The verbs of this V1ResourceRule.  # 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V1ResourceRule.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(V1ResourceRule.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   r+   z(V1ResourceRule.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V1ResourceRule.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V1ResourceRule.to_str   s    ~~dlln--r   c                 "    | j                         S )zFor `print` and `pprint`)r?   r   s    r   __repr__zV1ResourceRule.__repr__   s    {{}r   c                 f    t        |t              sy| j                         |j                         k(  S )z&Returns true if both objects are equalFr3   r   r'   r   others     r   __eq__zV1ResourceRule.__eq__   s&    %0||~00r   c                 f    t        |t              sy| j                         |j                         k7  S )z*Returns true if both objects are not equalTrC   rD   s     r   __ne__zV1ResourceRule.__ne__   s&    %0||~00r   )NNNNN)__name__
__module____qualname____doc__r1   attribute_mapr   propertyr   setterr   r   r	   r'   r?   rA   rF   rH    r   r   r   r      s
    "% 	M ") 	M(     	& 	& $ $ 	. 	.   	$ 	$   \\ 0.11r   r   )rL   r=   rer/   kubernetes.client.configurationr   objectr   rP   r   r   <module>rT      s&     	 
 9z1V z1r   