
    3i'                     B    S r SSKrSSKrSSKrSSKJr   " S S\5      rg)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.34
Generated by: https://openapi-generator.tech
    N)Configurationc                   f   \ rS rSrSr SSSSSS.rSSS	S
SS.rSS jr\S 5       r	\	R                  S 5       r	\S 5       r\R                  S 5       r\S 5       r\R                  S 5       r\S 5       r\R                  S 5       r\S 5       r\R                  S 5       rS rS rS rS rS rSrg)V1MatchResources   z~NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech

Do not edit the class manually.
zlist[V1NamedRuleWithOperations]strV1LabelSelector)exclude_resource_rulesmatch_policynamespace_selectorobject_selectorresource_rulesexcludeResourceRulesmatchPolicynamespaceSelectorobjectSelectorresourceRulesNc                     Uc
  [        5       nX`l        SU l        SU l        SU l        SU l        SU l        SU l        Ub  Xl        Ub  X l	        Ub  X0l
        Ub  X@l        Ub  XPl        gg)z-V1MatchResources - 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/home/james-whalen/.local/lib/python3.13/site-packages/kubernetes/client/models/v1_match_resources.py__init__V1MatchResources.__init__3   s    #+'4$(@%'+$!#'  $#!!-*@'# ,)&8#&#2 %"0 &    c                     U R                   $ )a  Gets the exclude_resource_rules of this V1MatchResources.  # 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 V1MatchResources.  # noqa: E501
:rtype: list[V1NamedRuleWithOperations]
r   r   s    r   r	   'V1MatchResources.exclude_resource_rulesK   s     +++r   c                     Xl         g)a  Sets the exclude_resource_rules of this V1MatchResources.

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 V1MatchResources.  # noqa: E501
:type: list[V1NamedRuleWithOperations]
Nr!   )r   r	   s     r   r	   r#   V   s
     (>$r   c                     U R                   $ )aH  Gets the match_policy of this V1MatchResources.  # 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 V1MatchResources.  # noqa: E501
:rtype: str
r   r"   s    r   r
   V1MatchResources.match_policyb   s     !!!r   c                     Xl         g)aE  Sets the match_policy of this V1MatchResources.

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 V1MatchResources.  # noqa: E501
:type: str
Nr&   )r   r
   s     r   r
   r'   m   s
     *r   c                     U R                   $ )zGets the namespace_selector of this V1MatchResources.  # noqa: E501


:return: The namespace_selector of this V1MatchResources.  # noqa: E501
:rtype: V1LabelSelector
r   r"   s    r   r   #V1MatchResources.namespace_selectory   s     '''r   c                     Xl         g)zSets the namespace_selector of this V1MatchResources.


:param namespace_selector: The namespace_selector of this V1MatchResources.  # noqa: E501
:type: V1LabelSelector
Nr*   )r   r   s     r   r   r+      s
     $6 r   c                     U R                   $ )zGets the object_selector of this V1MatchResources.  # noqa: E501


:return: The object_selector of this V1MatchResources.  # noqa: E501
:rtype: V1LabelSelector
r   r"   s    r   r    V1MatchResources.object_selector   s     $$$r   c                     Xl         g)zSets the object_selector of this V1MatchResources.


:param object_selector: The object_selector of this V1MatchResources.  # noqa: E501
:type: V1LabelSelector
Nr.   )r   r   s     r   r   r/      s
     !0r   c                     U R                   $ )ah  Gets the resource_rules of this V1MatchResources.  # 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 V1MatchResources.  # noqa: E501
:rtype: list[V1NamedRuleWithOperations]
r   r"   s    r   r   V1MatchResources.resource_rules   s     ###r   c                     Xl         g)ag  Sets the resource_rules of this V1MatchResources.

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 V1MatchResources.  # noqa: E501
:type: list[V1NamedRuleWithOperations]
Nr2   )r   r   s     r   r   r3      s
      .r   c                    0 n[         R                  " U R                  5       H  u  p#[        X5      n[	        U[
        5      (       a  [        [        S U5      5      X'   M?  [        US5      (       a  UR                  5       X'   Md  [	        U[        5      (       a(  [        [        S UR                  5       5      5      X'   M  XAU'   M     U$ )z&Returns the model properties as a dictc                 H    [        U S5      (       a  U R                  5       $ U $ )Nto_dicthasattrr7   )xs    r   <lambda>*V1MatchResources.to_dict.<locals>.<lambda>   s    WQ	-B-BaiikIIr   r7   c                 ^    [        U S   S5      (       a  U S   U S   R                  5       4$ U $ )N   r7   r   r8   )items    r   r;   r<      s9    tAw	22 #'q'47??+<!= "=8<"=r   )six	iteritemsopenapi_typesgetattr
isinstancelistmapr9   r7   dictitems)r   resultattr_values        r   r7   V1MatchResources.to_dict   s    }}T%7%78GDD'E%&&#CI%   	**$}}E4((#C=KKM%    %t! 9$ r   c                 J    [         R                  " U R                  5       5      $ )z.Returns the string representation of the model)pprintpformatr7   r"   s    r   to_strV1MatchResources.to_str   s    ~~dlln--r   c                 "    U R                  5       $ )zFor `print` and `pprint`)rQ   r"   s    r   __repr__V1MatchResources.__repr__   s    {{}r   c                 p    [        U[        5      (       d  gU R                  5       UR                  5       :H  $ )z&Returns true if both objects are equalFrD   r   r7   r   others     r   __eq__V1MatchResources.__eq__   s*    %!122||~00r   c                 p    [        U[        5      (       d  gU R                  5       UR                  5       :g  $ )z*Returns true if both objects are not equalTrW   rX   s     r   __ne__V1MatchResources.__ne__   s*    %!122||~00r   )r   r   r   r   r   r   r	   r   r
   r   r   r   )NNNNNN)__name__
__module____qualname____firstlineno____doc__rB   attribute_mapr   propertyr	   setterr
   r   r   r   r7   rQ   rT   rZ   r]   __static_attributes__ r   r   r   r      sA    #D/,;M #9%1+)M10 , , ""	> #	> " " 	* 	* ( ( 6 6 % % 0 0 $ $ 	. 	.0.11r   r   )rc   rO   rer@   kubernetes.client.configurationr   objectr   rh   r   r   <module>rl      s&     	 
 9Q1v Q1r   