
    [j&                     |    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 )V1ResourcePolicyRulezNOTE: 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                     |t          j                    }|| _        d| _        d| _        d| _        d| _        d| _        d| _        || _	        ||| _
        ||| _        || _        || _        dS )z1V1ResourcePolicyRule - a model defined in OpenAPIN)r   get_default_copylocal_vars_configuration_api_groups_cluster_scope_namespaces
_resources_verbs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/v1_resource_policy_rule.py__init__zV1ResourcePolicyRule.__init__6   s    #+'4'E'G'G$(@%"!$$!.D!(DO"


    c                     | j         S )aW  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	   zV1ResourcePolicyRule.api_groupsK        r   c                 N    | j         j        r|t          d          || _        dS )a]  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 api_groups: list[str]
        Nz2Invalid value for `api_groups`, must not be `None`)r   client_side_validation
ValueErrorr   )r   r	   s     r   r	   zV1ResourcePolicyRule.api_groupsV   s5     (? 	SJDVQRRR%r   c                     | j         S )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
   z"V1ResourcePolicyRule.cluster_scoped   s     ""r   c                     || _         dS )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 cluster_scope: bool
        Nr$   )r   r
   s     r   r
   z"V1ResourcePolicyRule.cluster_scopeo   s     ,r   c                     | j         S )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   zV1ResourcePolicyRule.namespaces{   r   r   c                     || _         dS )au  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 namespaces: list[str]
        Nr'   )r   r   s     r   r   zV1ResourcePolicyRule.namespaces   s     &r   c                     | j         S )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   zV1ResourcePolicyRule.resources   s     r   c                 N    | j         j        r|t          d          || _        dS )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 resources: list[str]
        Nz1Invalid value for `resources`, must not be `None`)r   r!   r"   r   )r   r   s     r   r   zV1ResourcePolicyRule.resources   s2     (? 	RIDUPQQQ#r   c                     | j         S )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   zV1ResourcePolicyRule.verbs   s     {r   c                 N    | j         j        r|t          d          || _        dS )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 verbs: list[str]
        Nz-Invalid value for `verbs`, must not be `None`)r   r!   r"   r   )r   r   s     r   r   zV1ResourcePolicyRule.verbs   s1     (? 	NEMLMMM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   r/   argslen)xr2   	serializes     r   convertz-V1ResourcePolicyRule.to_dict.<locals>.convert   s[    q)$$ %ai005t99>>99;;&99Y///r   c                      |           S )N )r4   r6   s    r   <lambda>z.V1ResourcePolicyRule.to_dict.<locals>.<lambda>   s    ggajj r   c                 6    | d          | d                   fS )Nr   r0   r8   )itemr6   s    r   r9   z.V1ResourcePolicyRule.to_dict.<locals>.<lambda>   s    $q'7747+;+;!< r   )six	iteritemsopenapi_typesgetattrattribute_mapget
isinstancelistmapdictitems)r   r5   resultattr_valuer6   s    `    @r   r/   zV1ResourcePolicyRule.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pformatr/   r   s    r   to_strzV1ResourcePolicyRule.to_str   s    ~dllnn---r   c                 *    |                                  S )zFor `print` and `pprint`)rN   r   s    r   __repr__zV1ResourcePolicyRule.__repr__   s    {{}}r   c                     t          |t                    sdS |                                 |                                k    S )z&Returns true if both objects are equalFrB   r   r/   r   others     r   __eq__zV1ResourcePolicyRule.__eq__   s5    %!566 	5||~~00r   c                     t          |t                    sdS |                                 |                                k    S )z*Returns true if both objects are not equalTrR   rS   s     r   __ne__zV1ResourcePolicyRule.__ne__   s5    %!566 	4||~~00r   )NNNNNN)F)__name__
__module____qualname____doc__r>   r@   r   propertyr	   setterr
   r   r   r   r/   rN   rP   rU   rW   r8   r   r   r   r      s         "!  M "'"  M   *     X  & & & # # X# 	, 	, 	,     X  	& 	& 	&   X $ $ $   X \  \   @. . .  1 1 11 1 1 1 1r   r   )r[   inspectr   ImportErrorr   rL   rer<   kubernetes.client.configurationr   objectr   r8   r   r   <module>rc      s    5&&&&&&& 5 5 5444444445  				 



 9 9 9 9 9 9`1 `1 `1 `1 `16 `1 `1 `1 `1 `1s    