
    3ic%                     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)V1ResourcePolicyRule   z~NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech

Do not edit the class manually.
z	list[str]bool)
api_groupscluster_scope
namespaces	resourcesverbs	apiGroupsclusterScoper
   r   r   Nc                     Uc
  [        5       nX`l        SU l        SU l        SU l        SU l        SU l        SU l        Xl        Ub  X l	        Ub  X0l
        X@l        XPl        g)z1V1ResourcePolicyRule - a model defined in OpenAPIN)r   local_vars_configuration_api_groups_cluster_scope_namespaces
_resources_verbsdiscriminatorr   r	   r
   r   r   )selfr   r	   r
   r   r   r   s          j/home/james-whalen/.local/lib/python3.13/site-packages/kubernetes/client/models/v1_resource_policy_rule.py__init__V1ResourcePolicyRule.__init__3   sj    #+'4$(@%"!$$!.!(O"
    c                     U R                   $ )a7  Gets the api_groups of this V1ResourcePolicyRule.  # noqa: E501

`apiGroups` is a list of matching API groups and may not be empty. "*" matches all API groups and, if present, must be the only entry. Required.  # noqa: E501

:return: The api_groups of this V1ResourcePolicyRule.  # noqa: E501
:rtype: list[str]
)r   r   s    r   r   V1ResourcePolicyRule.api_groupsH        r   c                 b    U R                   R                  (       a  Uc  [        S5      eXl        g)a2  Sets the api_groups of this V1ResourcePolicyRule.

`apiGroups` is a list of matching API groups and may not be empty. "*" matches all API groups and, if present, must be the only entry. Required.  # noqa: E501

:param api_groups: The api_groups of this V1ResourcePolicyRule.  # noqa: E501
:type: list[str]
Nz2Invalid value for `api_groups`, must not be `None`)r   client_side_validation
ValueErrorr   )r   r   s     r   r   r   S   s*     ((??JDVQRR%r   c                     U R                   $ )a  Gets the cluster_scope of this V1ResourcePolicyRule.  # noqa: E501

`clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list.  # noqa: E501

:return: The cluster_scope of this V1ResourcePolicyRule.  # noqa: E501
:rtype: bool
r   r   s    r   r	   "V1ResourcePolicyRule.cluster_scopea   s     """r   c                     Xl         g)a  Sets the cluster_scope of this V1ResourcePolicyRule.

`clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list.  # noqa: E501

:param cluster_scope: The cluster_scope of this V1ResourcePolicyRule.  # noqa: E501
:type: bool
Nr$   )r   r	   s     r   r	   r%   l   s
     ,r   c                     U R                   $ )aO  Gets the namespaces of this V1ResourcePolicyRule.  # noqa: E501

`namespaces` is a list of target namespaces that restricts matches.  A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains "*".  Note that "*" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true.  # noqa: E501

:return: The namespaces of this V1ResourcePolicyRule.  # noqa: E501
:rtype: list[str]
r   r   s    r   r
   V1ResourcePolicyRule.namespacesx   r   r   c                     Xl         g)aJ  Sets the namespaces of this V1ResourcePolicyRule.

`namespaces` is a list of target namespaces that restricts matches.  A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains "*".  Note that "*" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true.  # noqa: E501

:param namespaces: The namespaces of this V1ResourcePolicyRule.  # noqa: E501
:type: list[str]
Nr(   )r   r
   s     r   r
   r)      s
     &r   c                     U R                   $ )a  Gets the resources of this V1ResourcePolicyRule.  # noqa: E501

`resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource.  For example, [ "services", "nodes/status" ].  This list may not be empty. "*" matches all resources and, if present, must be the only entry. Required.  # noqa: E501

:return: The resources of this V1ResourcePolicyRule.  # noqa: E501
:rtype: list[str]
)r   r   s    r   r   V1ResourcePolicyRule.resources   s     r   c                 b    U R                   R                  (       a  Uc  [        S5      eXl        g)a  Sets the resources of this V1ResourcePolicyRule.

`resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource.  For example, [ "services", "nodes/status" ].  This list may not be empty. "*" matches all resources and, if present, must be the only entry. Required.  # noqa: E501

:param resources: The resources of this V1ResourcePolicyRule.  # noqa: E501
:type: list[str]
Nz1Invalid value for `resources`, must not be `None`)r   r!   r"   r   )r   r   s     r   r   r,      s)     ((??IDUPQQ#r   c                     U R                   $ )a  Gets the verbs of this V1ResourcePolicyRule.  # noqa: E501

`verbs` is a list of matching verbs and may not be empty. "*" matches all verbs and, if present, must be the only entry. Required.  # noqa: E501

:return: The verbs of this V1ResourcePolicyRule.  # noqa: E501
:rtype: list[str]
)r   r   s    r   r   V1ResourcePolicyRule.verbs   s     {{r   c                 b    U R                   R                  (       a  Uc  [        S5      eXl        g)a  Sets the verbs of this V1ResourcePolicyRule.

`verbs` is a list of matching verbs and may not be empty. "*" matches all verbs and, if present, must be the only entry. Required.  # noqa: E501

:param verbs: The verbs of this V1ResourcePolicyRule.  # noqa: E501
:type: list[str]
Nz-Invalid value for `verbs`, must not be `None`)r   r!   r"   r   )r   r   s     r   r   r/      s(     ((??EMLMM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hasattrr3   )xs    r   <lambda>.V1ResourcePolicyRule.to_dict.<locals>.<lambda>   s    WQ	-B-BaiikIIr   r3   c                 ^    [        U S   S5      (       a  U S   U S   R                  5       4$ U $ )N   r3   r   r4   )items    r   r7   r8      s9    tAw	22 #'q'47??+<!= "=8<"=r   )six	iteritemsopenapi_typesgetattr
isinstancelistmapr5   r3   dictitems)r   resultattr_values        r   r3   V1ResourcePolicyRule.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pformatr3   r   s    r   to_strV1ResourcePolicyRule.to_str   s    ~~dlln--r   c                 "    U R                  5       $ )zFor `print` and `pprint`)rM   r   s    r   __repr__V1ResourcePolicyRule.__repr__   s    {{}r   c                 p    [        U[        5      (       d  gU R                  5       UR                  5       :H  $ )z&Returns true if both objects are equalFr@   r   r3   r   others     r   __eq__V1ResourcePolicyRule.__eq__   s*    %!566||~00r   c                 p    [        U[        5      (       d  gU R                  5       UR                  5       :g  $ )z*Returns true if both objects are not equalTrS   rT   s     r   __ne__V1ResourcePolicyRule.__ne__   s*    %!566||~00r   )r   r   r   r   r   r   r	   r   r   r
   r   r   )NNNNNN)__name__
__module____qualname____firstlineno____doc__r>   attribute_mapr   propertyr   setterr	   r
   r   r   r3   rM   rP   rV   rY   __static_attributes__ r   r   r   r      s>    "! M "'" M*     & & # # 	, 	,     	& 	&   $ $   \\ 0.11r   r   )r_   rK   rer<   kubernetes.client.configurationr   objectr   rd   r   r   <module>rh      s&     	 
 9X16 X1r   