
    [jR)                     |    d Z 	 ddlmZ n# e$ r	 ddlmZ Y nw xY wddlZddlZddlZddlm	Z	  G d de
          ZdS )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.36
    Generated by: https://openapi-generator.tech
    )getfullargspec)
getargspecN)Configurationc                   j   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dZd Zd Zd Zd ZdS )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          j                    }|| _        d| _        d| _        d| _        d| _        d| _        d| _        ||| _	        ||| _
        ||| _        ||| _        |	|| _        dS dS )z2V1beta1MatchResources - a model defined in OpenAPIN)r   get_default_copy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          m/var/www/FlaskApp/flask-venv/lib/python3.11/site-packages/kubernetes/client/models/v1beta1_match_resources.py__init__zV1beta1MatchResources.__init__6   s    #+'4'E'G'G$(@%'+$!#'  $#!!-*@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_rulesN   s     ++r    c                     || _         dS )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 exclude_resource_rules: list[V1beta1NamedRuleWithOperations]
        Nr"   )r   r
   s     r   r
   z,V1beta1MatchResources.exclude_resource_rulesY   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_policye   s     !!r    c                     || _         dS )a|  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 match_policy: str
        Nr&   )r   r   s     r   r   z"V1beta1MatchResources.match_policyp   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_selector|   s     ''r    c                     || _         dS )zSets the namespace_selector of this V1beta1MatchResources.


        :param namespace_selector: The namespace_selector of this V1beta1MatchResources.  # noqa: E501
        :type namespace_selector: 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                     || _         dS )zSets the object_selector of this V1beta1MatchResources.


        :param object_selector: The object_selector of this V1beta1MatchResources.  # noqa: E501
        :type object_selector: 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                     || _         dS )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 resource_rules: list[V1beta1NamedRuleWithOperations]
        Nr/   )r   r   s     r   r   z$V1beta1MatchResources.resource_rules   s      .r    Fc                    i }fdt          j        | j                  D ]\  }}t          | |          }r| j                            ||          n|}t          |t                    r$t          t          fd|                    ||<   mt          |t                    r6t          t          fd|
                                                    ||<    |          ||<   |S )z&Returns the model properties as a dictc                     t          | d          rUt          | j                  j        }t	          |          dk    r|                                 S |                               S | S )Nto_dict   )hasattrr   r3   argslen)xr6   	serializes     r   convertz.V1beta1MatchResources.to_dict.<locals>.convert   s[    q)$$ %ai005t99>>99;;&99Y///r    c                      |           S )N )r8   r:   s    r   <lambda>z/V1beta1MatchResources.to_dict.<locals>.<lambda>   s    ggajj r    c                 6    | d          | d                   fS )Nr   r4   r<   )itemr:   s    r   r=   z/V1beta1MatchResources.to_dict.<locals>.<lambda>   s    $q'7747+;+;!< r    )six	iteritemsopenapi_typesgetattrattribute_mapget
isinstancelistmapdictitems)r   r9   resultattr_valuer:   s    `    @r   r3   zV1beta1MatchResources.to_dict   s   	 	 	 	 	 }T%788 	. 	.GD!D$''E9BL4%))$555D%&& .#C((((% %    t E4(( .#C<<<<KKMM% %    t
  'wu~~tr    c                 N    t          j        |                                           S )z.Returns the string representation of the model)pprintpformatr3   r#   s    r   to_strzV1beta1MatchResources.to_str   s    ~dllnn---r    c                 *    |                                  S )zFor `print` and `pprint`)rR   r#   s    r   __repr__zV1beta1MatchResources.__repr__   s    {{}}r    c                     t          |t                    sdS |                                 |                                k    S )z&Returns true if both objects are equalFrF   r   r3   r   others     r   __eq__zV1beta1MatchResources.__eq__   s5    %!677 	5||~~00r    c                     t          |t                    sdS |                                 |                                k    S )z*Returns true if both objects are not equalTrV   rW   s     r   __ne__zV1beta1MatchResources.__ne__   s5    %!677 	4||~~00r    )NNNNNN)F)__name__
__module____qualname____doc__rB   rD   r   propertyr
   setterr   r   r   r   r3   rR   rT   rY   r[   r<   r    r   r   r      s         #I/,@ M #9%1+) M1 1 1 10 , , X, "	> 	> #"	> " " X" 	* 	* 	* ( ( X( 6 6 6 % % X% 0 0 0 $ $ X$ 	. 	. 	.   @. . .  1 1 11 1 1 1 1r    r   )r_   inspectr   ImportErrorr   rP   rer@   kubernetes.client.configurationr   objectr   r<   r    r   <module>rg      s    5&&&&&&& 5 5 5444444445  				 



 9 9 9 9 9 9Y1 Y1 Y1 Y1 Y1F Y1 Y1 Y1 Y1 Y1s    