o
    g'                     @   s<   d Z ddlZddlZddlZddlmZ G d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.32
    Generated by: https://openapi-generator.tech
    N)Configurationc                   @   s   e Zd ZdZ	 ddddddZdddd	d
dZd'ddZedd Zej	dd Zedd Z
e
j	dd Z
edd Zej	dd Zedd Zej	dd Zedd Zej	dd Zdd Zdd  Zd!d" Zd#d$ Zd%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                 C   s   |du rt  }|| _d| _d| _d| _d| _d| _d| _|dur#|| _|dur*|| _	|dur1|| _
|dur8|| _|durA|| _dS dS )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    r   g/var/www/visachat/venv/lib/python3.10/site-packages/kubernetes/client/models/v1beta1_match_resources.py__init__3   s(   
zV1beta1MatchResources.__init__c                 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   r   r   r   r   K      	z,V1beta1MatchResources.exclude_resource_rulesc                 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: list[V1beta1NamedRuleWithOperations]
        Nr   )r   r   r   r   r   r   V      

c                 C   r   )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   r   r   r   r   b   r   z"V1beta1MatchResources.match_policyc                 C   r   )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   r   r   r   r   m   r    c                 C   r   )zGets the namespace_selector of this V1beta1MatchResources.  # noqa: E501


        :return: The namespace_selector of this V1beta1MatchResources.  # noqa: E501
        :rtype: V1LabelSelector
        r   r   r   r   r   r   y      z(V1beta1MatchResources.namespace_selectorc                 C   r   )zSets the namespace_selector of this V1beta1MatchResources.


        :param namespace_selector: The namespace_selector of this V1beta1MatchResources.  # noqa: E501
        :type: V1LabelSelector
        Nr"   )r   r   r   r   r   r         
	c                 C   r   )zGets the object_selector of this V1beta1MatchResources.  # noqa: E501


        :return: The object_selector of this V1beta1MatchResources.  # noqa: E501
        :rtype: V1LabelSelector
        r   r   r   r   r   r	      r#   z%V1beta1MatchResources.object_selectorc                 C   r   )zSets the object_selector of this V1beta1MatchResources.


        :param object_selector: The object_selector of this V1beta1MatchResources.  # noqa: E501
        :type: V1LabelSelector
        Nr%   )r   r	   r   r   r   r	      r$   c                 C   r   )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   r   r   r   r
      r   z$V1beta1MatchResources.resource_rulesc                 C   r   )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
   r   r   r   r
      r    c                 C   s   i }t | jD ]=\}}t| |}t|tr"ttdd |||< qt|dr.| ||< qt|t	rAt	tdd |
 ||< q|||< q|S )z&Returns the model properties as a dictc                 S   s   t | dr	|  S | S )Nto_dicthasattrr'   )xr   r   r   <lambda>   s    z/V1beta1MatchResources.to_dict.<locals>.<lambda>r'   c                 S   s&   t | d dr| d | d  fS | S )N   r'   r   r(   )itemr   r   r   r+      s   )six	iteritemsopenapi_typesgetattr
isinstancelistmapr)   r'   dictitems)r   resultattr_valuer   r   r   r'      s"   




zV1beta1MatchResources.to_dictc                 C   s   t |  S )z.Returns the string representation of the model)pprintpformatr'   r   r   r   r   to_str   s   zV1beta1MatchResources.to_strc                 C   s   |   S )zFor `print` and `pprint`)r=   r   r   r   r   __repr__   s   zV1beta1MatchResources.__repr__c                 C   s   t |tsdS |  | kS )z&Returns true if both objects are equalFr2   r   r'   r   otherr   r   r   __eq__      
zV1beta1MatchResources.__eq__c                 C   s   t |tsdS |  | kS )z*Returns true if both objects are not equalTr?   r@   r   r   r   __ne__   rC   zV1beta1MatchResources.__ne__)NNNNNN)__name__
__module____qualname____doc__r0   attribute_mapr   propertyr   setterr   r   r	   r
   r'   r=   r>   rB   rD   r   r   r   r   r      sR    	







	


	




r   )rH   r;   rer.   kubernetes.client.configurationr   objectr   r   r   r   r   <module>   s   
