
    <g$                     B    d Z ddlZddlZddlZddlmZ  G d de      Zy)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                   \   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 Zd Zd Zd Zd Zy
)V1RuleWithOperationszNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    z	list[str]str)
api_groupsapi_versions
operations	resourcesscope	apiGroupsapiVersionsr	   r
   r   Nc                     |
t               }|| _        d| _        d| _        d| _        d| _        d| _        d| _        ||| _        ||| _	        ||| _
        ||| _        ||| _        yy)z1V1RuleWithOperations - a model defined in OpenAPIN)r   local_vars_configuration_api_groups_api_versions_operations
_resources_scopediscriminatorr   r   r	   r
   r   )selfr   r   r	   r
   r   r   s          e/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/models/v1_rule_with_operations.py__init__zV1RuleWithOperations.__init__3   s    #+'4$(@%!!!(DO# ,D!(DO &DNDJ     c                     | j                   S )aP  Gets the api_groups of this V1RuleWithOperations.  # noqa: E501

        APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.  # noqa: E501

        :return: The api_groups of this V1RuleWithOperations.  # noqa: E501
        :rtype: list[str]
        r   r   s    r   r   zV1RuleWithOperations.api_groupsK        r   c                     || _         y)aK  Sets the api_groups of this V1RuleWithOperations.

        APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.  # noqa: E501

        :param api_groups: The api_groups of this V1RuleWithOperations.  # noqa: E501
        :type: list[str]
        Nr   )r   r   s     r   r   zV1RuleWithOperations.api_groupsV        &r   c                     | j                   S )aZ  Gets the api_versions of this V1RuleWithOperations.  # noqa: E501

        APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.  # noqa: E501

        :return: The api_versions of this V1RuleWithOperations.  # noqa: E501
        :rtype: list[str]
        r   r   s    r   r   z!V1RuleWithOperations.api_versionsb   s     !!!r   c                     || _         y)aW  Sets the api_versions of this V1RuleWithOperations.

        APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.  # noqa: E501

        :param api_versions: The api_versions of this V1RuleWithOperations.  # noqa: E501
        :type: list[str]
        Nr!   )r   r   s     r   r   z!V1RuleWithOperations.api_versionsm   s     *r   c                     | j                   S )a  Gets the operations of this V1RuleWithOperations.  # noqa: E501

        Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.  # noqa: E501

        :return: The operations of this V1RuleWithOperations.  # noqa: E501
        :rtype: list[str]
        r   r   s    r   r	   zV1RuleWithOperations.operationsy   r   r   c                     || _         y)a  Sets the operations of this V1RuleWithOperations.

        Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.  # noqa: E501

        :param operations: The operations of this V1RuleWithOperations.  # noqa: E501
        :type: list[str]
        Nr$   )r   r	   s     r   r	   zV1RuleWithOperations.operations   r   r   c                     | j                   S )a  Gets the resources of this V1RuleWithOperations.  # noqa: E501

        Resources is a list of resources this rule applies to.  For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.  If wildcard is present, the validation rule will ensure resources do not overlap with each other.  Depending on the enclosing object, subresources might not be allowed. Required.  # noqa: E501

        :return: The resources of this V1RuleWithOperations.  # noqa: E501
        :rtype: list[str]
        r   r   s    r   r
   zV1RuleWithOperations.resources   s     r   c                     || _         y)a  Sets the resources of this V1RuleWithOperations.

        Resources is a list of resources this rule applies to.  For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.  If wildcard is present, the validation rule will ensure resources do not overlap with each other.  Depending on the enclosing object, subresources might not be allowed. Required.  # noqa: E501

        :param resources: The resources of this V1RuleWithOperations.  # noqa: E501
        :type: list[str]
        Nr'   )r   r
   s     r   r
   zV1RuleWithOperations.resources   s     $r   c                     | j                   S )aB  Gets the scope of this V1RuleWithOperations.  # noqa: E501

        scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*".  # noqa: E501

        :return: The scope of this V1RuleWithOperations.  # noqa: E501
        :rtype: str
        r   r   s    r   r   zV1RuleWithOperations.scope   s     {{r   c                     || _         y)a8  Sets the scope of this V1RuleWithOperations.

        scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*".  # noqa: E501

        :param scope: The scope of this V1RuleWithOperations.  # noqa: E501
        :type: str
        Nr*   )r   r   s     r   r   zV1RuleWithOperations.scope   s     r   c                 ~   i }t        j                  | j                        D ]  \  }}t        | |      }t	        |t
              rt        t        d |            ||<   <t        |d      r|j                         ||<   \t	        |t              r(t        t        d |j                                     ||<   |||<    |S )z&Returns the model properties as a dictc                 >    t        | d      r| j                         S | S )Nto_dicthasattrr.   )xs    r   <lambda>z.V1RuleWithOperations.to_dict.<locals>.<lambda>   s    WQ	-BaiikIIr   r.   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   r.   r   r/   )items    r   r2   z.V1RuleWithOperations.to_dict.<locals>.<lambda>   s6    tAw	2 #'q'47??+<!= "=8<"=r   )six	iteritemsopenapi_typesgetattr
isinstancelistmapr0   r.   dictitems)r   resultattr_values        r   r.   zV1RuleWithOperations.to_dict   s    }}T%7%78GD!D$'E%&#CI%  t 	*$}}tE4(#C=KKM%  t  %t! 9$ r   c                 H    t        j                  | j                               S )z.Returns the string representation of the model)pprintpformatr.   r   s    r   to_strzV1RuleWithOperations.to_str   s    ~~dlln--r   c                 "    | j                         S )zFor `print` and `pprint`)rF   r   s    r   __repr__zV1RuleWithOperations.__repr__   s    {{}r   c                 f    t        |t              sy| j                         |j                         k(  S )z&Returns true if both objects are equalFr:   r   r.   r   others     r   __eq__zV1RuleWithOperations.__eq__   s'    %!56||~00r   c                 f    t        |t              sy| j                         |j                         k7  S )z*Returns true if both objects are not equalTrJ   rK   s     r   __ne__zV1RuleWithOperations.__ne__   s'    %!56||~00r   )NNNNNN)__name__
__module____qualname____doc__r8   attribute_mapr   propertyr   setterr   r	   r
   r   r.   rF   rH   rM   rO    r   r   r   r      s>    "#! M "%" M0     	& 	& " " 	* 	*     	& 	&   	$ 	$   \\	 	0.11r   r   )rS   rD   rer6   kubernetes.client.configurationr   objectr   rW   r   r   <module>r[      s&     	 
 9U16 U1r   