
    >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)V1beta1MatchResourceszNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    z$list[V1beta1NamedRuleWithOperations]strV1LabelSelector)exclude_resource_rulesmatch_policynamespace_selectorobject_selectorresource_rulesexcludeResourceRulesmatchPolicynamespaceSelectorobjectSelectorresourceRulesNc                     |
t               }|| _        d| _        d| _        d| _        d| _        d| _        d| _        ||| _        ||| _	        ||| _
        ||| _        ||| _        yy)z2V1beta1MatchResources - a model defined in OpenAPIN)r   local_vars_configuration_exclude_resource_rules_match_policy_namespace_selector_object_selector_resource_rulesdiscriminatorr   r	   r
   r   r   )selfr   r	   r
   r   r   r   s          e/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/models/v1beta1_match_resources.py__init__zV1beta1MatchResources.__init__3   s    #+'4$(@%'+$!#'  $#!!-*@D'# ,D)&8D#&#2D %"0D &    c                     | j                   S )a  Gets the exclude_resource_rules of this V1beta1MatchResources.  # noqa: E501

        ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)  # noqa: E501

        :return: The exclude_resource_rules of this V1beta1MatchResources.  # noqa: E501
        :rtype: list[V1beta1NamedRuleWithOperations]
        r   r   s    r   r   z,V1beta1MatchResources.exclude_resource_rulesK   s     +++r   c                     || _         y)a  Sets the exclude_resource_rules of this V1beta1MatchResources.

        ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)  # noqa: E501

        :param exclude_resource_rules: The exclude_resource_rules of this V1beta1MatchResources.  # noqa: E501
        :type: list[V1beta1NamedRuleWithOperations]
        Nr   )r   r   s     r   r   z,V1beta1MatchResources.exclude_resource_rulesV   s     (>$r   c                     | j                   S )ar  Gets the match_policy of this V1beta1MatchResources.  # noqa: E501

        matchPolicy defines how the "MatchResources" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent".  - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.  - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.  Defaults to "Equivalent"  # noqa: E501

        :return: The match_policy of this V1beta1MatchResources.  # noqa: E501
        :rtype: str
        r   r    s    r   r	   z"V1beta1MatchResources.match_policyb   s     !!!r   c                     || _         y)ao  Sets the match_policy of this V1beta1MatchResources.

        matchPolicy defines how the "MatchResources" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent".  - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.  - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.  Defaults to "Equivalent"  # noqa: E501

        :param match_policy: The match_policy of this V1beta1MatchResources.  # noqa: E501
        :type: str
        Nr#   )r   r	   s     r   r	   z"V1beta1MatchResources.match_policym   s     *r   c                     | j                   S )zGets the namespace_selector of this V1beta1MatchResources.  # noqa: E501


        :return: The namespace_selector of this V1beta1MatchResources.  # noqa: E501
        :rtype: V1LabelSelector
        r   r    s    r   r
   z(V1beta1MatchResources.namespace_selectory   s     '''r   c                     || _         y)zSets the namespace_selector of this V1beta1MatchResources.


        :param namespace_selector: The namespace_selector of this V1beta1MatchResources.  # noqa: E501
        :type: V1LabelSelector
        Nr&   )r   r
   s     r   r
   z(V1beta1MatchResources.namespace_selector   s     $6 r   c                     | j                   S )zGets the object_selector of this V1beta1MatchResources.  # noqa: E501


        :return: The object_selector of this V1beta1MatchResources.  # noqa: E501
        :rtype: V1LabelSelector
        r   r    s    r   r   z%V1beta1MatchResources.object_selector   s     $$$r   c                     || _         y)zSets the object_selector of this V1beta1MatchResources.


        :param object_selector: The object_selector of this V1beta1MatchResources.  # noqa: E501
        :type: V1LabelSelector
        Nr)   )r   r   s     r   r   z%V1beta1MatchResources.object_selector   s     !0r   c                     | j                   S )a  Gets the resource_rules of this V1beta1MatchResources.  # noqa: E501

        ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.  # noqa: E501

        :return: The resource_rules of this V1beta1MatchResources.  # noqa: E501
        :rtype: list[V1beta1NamedRuleWithOperations]
        r   r    s    r   r   z$V1beta1MatchResources.resource_rules   s     ###r   c                     || _         y)a  Sets the resource_rules of this V1beta1MatchResources.

        ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.  # noqa: E501

        :param resource_rules: The resource_rules of this V1beta1MatchResources.  # noqa: E501
        :type: list[V1beta1NamedRuleWithOperations]
        Nr,   )r   r   s     r   r   z$V1beta1MatchResources.resource_rules   s      .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hasattrr0   )xs    r   <lambda>z/V1beta1MatchResources.to_dict.<locals>.<lambda>   s    WQ	-BaiikIIr   r0   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   r0   r   r1   )items    r   r4   z/V1beta1MatchResources.to_dict.<locals>.<lambda>   s6    tAw	2 #'q'47??+<!= "=8<"=r   )six	iteritemsopenapi_typesgetattr
isinstancelistmapr2   r0   dictitems)r   resultattr_values        r   r0   zV1beta1MatchResources.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pformatr0   r    s    r   to_strzV1beta1MatchResources.to_str   s    ~~dlln--r   c                 "    | j                         S )zFor `print` and `pprint`)rH   r    s    r   __repr__zV1beta1MatchResources.__repr__   s    {{}r   c                 f    t        |t              sy| j                         |j                         k(  S )z&Returns true if both objects are equalFr<   r   r0   r   others     r   __eq__zV1beta1MatchResources.__eq__   s'    %!67||~00r   c                 f    t        |t              sy| j                         |j                         k7  S )z*Returns true if both objects are not equalTrL   rM   s     r   __ne__zV1beta1MatchResources.__ne__   s'    %!67||~00r   )NNNNNN)__name__
__module____qualname____doc__r:   attribute_mapr   propertyr   setterr	   r
   r   r   r0   rH   rJ   rO   rQ    r   r   r   r      sA    #I/,@M #9%1+)M10 , , ""	> #	> " " 	* 	* ( ( 6 6 % % 0 0 $ $ 	. 	.0.11r   r   )rU   rF   rer8   kubernetes.client.configurationr   objectr   rY   r   r   <module>r]      s&     	 
 9Q1F Q1r   