
    ;g46                     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                   t   e Zd ZdZ	 ddddddddddd
Zdddd	d
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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),V1APIResourcezNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    z	list[str]strbool)

categoriesgroupkindname
namespacedshort_namessingular_namestorage_version_hashverbsversionr   r	   r
   r   r   
shortNamessingularNamestorageVersionHashr   r   Nc                 f   |
t               }|| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _	        d| _
        d| _        d| _        ||| _        ||| _        || _        || _        || _        ||| _        || _        ||| _        |	| _        |
|
| _        yy)z*V1APIResource - a model defined in OpenAPIN)r   local_vars_configuration_categories_group_kind_name_namespaced_short_names_singular_name_storage_version_hash_verbs_versiondiscriminatorr   r	   r
   r   r   r   r   r   r   r   )selfr   r	   r
   r   r   r   r   r   r   r   r   s               ]/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/models/v1_api_resource.py__init__zV1APIResource.__init__=   s    #+'4$(@%

 "%)"!!(DODJ		$"*D*+(<D%
"DL     c                     | j                   S )a  Gets the categories of this V1APIResource.  # noqa: E501

        categories is a list of the grouped resources this resource belongs to (e.g. 'all')  # noqa: E501

        :return: The categories of this V1APIResource.  # noqa: E501
        :rtype: list[str]
        r   r"   s    r#   r   zV1APIResource.categories_        r%   c                     || _         y)a  Sets the categories of this V1APIResource.

        categories is a list of the grouped resources this resource belongs to (e.g. 'all')  # noqa: E501

        :param categories: The categories of this V1APIResource.  # noqa: E501
        :type: list[str]
        Nr'   )r"   r   s     r#   r   zV1APIResource.categoriesj   s     &r%   c                     | j                   S )aX  Gets the group of this V1APIResource.  # noqa: E501

        group is the preferred group of the resource.  Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale".  # noqa: E501

        :return: The group of this V1APIResource.  # noqa: E501
        :rtype: str
        r   r(   s    r#   r	   zV1APIResource.groupv        {{r%   c                     || _         y)aN  Sets the group of this V1APIResource.

        group is the preferred group of the resource.  Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale".  # noqa: E501

        :param group: The group of this V1APIResource.  # noqa: E501
        :type: str
        Nr,   )r"   r	   s     r#   r	   zV1APIResource.group   s     r%   c                     | j                   S )zGets the kind of this V1APIResource.  # noqa: E501

        kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')  # noqa: E501

        :return: The kind of this V1APIResource.  # noqa: E501
        :rtype: str
        )r   r(   s    r#   r
   zV1APIResource.kind        zzr%   c                 X    | j                   j                  r|t        d      || _        y)zSets the kind of this V1APIResource.

        kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')  # noqa: E501

        :param kind: The kind of this V1APIResource.  # noqa: E501
        :type: str
        Nz,Invalid value for `kind`, must not be `None`)r   client_side_validation
ValueErrorr   )r"   r
   s     r#   r
   zV1APIResource.kind   *     ((??DLKLL
r%   c                     | j                   S )zGets the name of this V1APIResource.  # noqa: E501

        name is the plural name of the resource.  # noqa: E501

        :return: The name of this V1APIResource.  # noqa: E501
        :rtype: str
        )r   r(   s    r#   r   zV1APIResource.name   r0   r%   c                 X    | j                   j                  r|t        d      || _        y)zSets the name of this V1APIResource.

        name is the plural name of the resource.  # noqa: E501

        :param name: The name of this V1APIResource.  # noqa: E501
        :type: str
        Nz,Invalid value for `name`, must not be `None`)r   r2   r3   r   )r"   r   s     r#   r   zV1APIResource.name   r4   r%   c                     | j                   S )zGets the namespaced of this V1APIResource.  # noqa: E501

        namespaced indicates if a resource is namespaced or not.  # noqa: E501

        :return: The namespaced of this V1APIResource.  # noqa: E501
        :rtype: bool
        )r   r(   s    r#   r   zV1APIResource.namespaced   r)   r%   c                 X    | j                   j                  r|t        d      || _        y)zSets the namespaced of this V1APIResource.

        namespaced indicates if a resource is namespaced or not.  # noqa: E501

        :param namespaced: The namespaced of this V1APIResource.  # noqa: E501
        :type: bool
        Nz2Invalid value for `namespaced`, must not be `None`)r   r2   r3   r   )r"   r   s     r#   r   zV1APIResource.namespaced   s,     ((??JDVQRR%r%   c                     | j                   S )zGets the short_names of this V1APIResource.  # noqa: E501

        shortNames is a list of suggested short names of the resource.  # noqa: E501

        :return: The short_names of this V1APIResource.  # noqa: E501
        :rtype: list[str]
        r   r(   s    r#   r   zV1APIResource.short_names   s        r%   c                     || _         y)zSets the short_names of this V1APIResource.

        shortNames is a list of suggested short names of the resource.  # noqa: E501

        :param short_names: The short_names of this V1APIResource.  # noqa: E501
        :type: list[str]
        Nr:   )r"   r   s     r#   r   zV1APIResource.short_names   s     (r%   c                     | j                   S )a  Gets the singular_name of this V1APIResource.  # noqa: E501

        singularName is the singular name of the resource.  This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface.  # noqa: E501

        :return: The singular_name of this V1APIResource.  # noqa: E501
        :rtype: str
        )r   r(   s    r#   r   zV1APIResource.singular_name   s     """r%   c                 X    | j                   j                  r|t        d      || _        y)a  Sets the singular_name of this V1APIResource.

        singularName is the singular name of the resource.  This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface.  # noqa: E501

        :param singular_name: The singular_name of this V1APIResource.  # noqa: E501
        :type: str
        Nz5Invalid value for `singular_name`, must not be `None`)r   r2   r3   r   )r"   r   s     r#   r   zV1APIResource.singular_name   s,     ((??MDYTUU+r%   c                     | j                   S )an  Gets the storage_version_hash of this V1APIResource.  # noqa: E501

        The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates.  # noqa: E501

        :return: The storage_version_hash of this V1APIResource.  # noqa: E501
        :rtype: str
        r   r(   s    r#   r   z"V1APIResource.storage_version_hash  s     )))r%   c                     || _         y)as  Sets the storage_version_hash of this V1APIResource.

        The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates.  # noqa: E501

        :param storage_version_hash: The storage_version_hash of this V1APIResource.  # noqa: E501
        :type: str
        Nr?   )r"   r   s     r#   r   z"V1APIResource.storage_version_hash  s     &:"r%   c                     | j                   S )a3  Gets the verbs of this V1APIResource.  # noqa: E501

        verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)  # noqa: E501

        :return: The verbs of this V1APIResource.  # noqa: E501
        :rtype: list[str]
        )r   r(   s    r#   r   zV1APIResource.verbs  r-   r%   c                 X    | j                   j                  r|t        d      || _        y)a)  Sets the verbs of this V1APIResource.

        verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)  # noqa: E501

        :param verbs: The verbs of this V1APIResource.  # noqa: E501
        :type: list[str]
        Nz-Invalid value for `verbs`, must not be `None`)r   r2   r3   r   )r"   r   s     r#   r   zV1APIResource.verbs*  s*     ((??EMLMMr%   c                     | j                   S )a  Gets the version of this V1APIResource.  # noqa: E501

        version is the preferred version of the resource.  Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".  # noqa: E501

        :return: The version of this V1APIResource.  # noqa: E501
        :rtype: str
        r    r(   s    r#   r   zV1APIResource.version8  s     }}r%   c                     || _         y)a  Sets the version of this V1APIResource.

        version is the preferred version of the resource.  Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".  # noqa: E501

        :param version: The version of this V1APIResource.  # noqa: E501
        :type: str
        NrD   )r"   r   s     r#   r   zV1APIResource.versionC  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hasattrrH   )xs    r#   <lambda>z'V1APIResource.to_dict.<locals>.<lambda>W  s    WQ	-BaiikIIr%   rH   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   rH   r   rI   )items    r#   rL   z'V1APIResource.to_dict.<locals>.<lambda>^  s6    tAw	2 #'q'47??+<!= "=8<"=r%   )six	iteritemsopenapi_typesgetattr
isinstancelistmaprJ   rH   dictitems)r"   resultattr_values        r#   rH   zV1APIResource.to_dictO  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pformatrH   r(   s    r#   to_strzV1APIResource.to_strg  s    ~~dlln--r%   c                 "    | j                         S )zFor `print` and `pprint`)r`   r(   s    r#   __repr__zV1APIResource.__repr__k  s    {{}r%   c                 f    t        |t              sy| j                         |j                         k(  S )z&Returns true if both objects are equalFrT   r   rH   r"   others     r#   __eq__zV1APIResource.__eq__o  s&    %/||~00r%   c                 f    t        |t              sy| j                         |j                         k7  S )z*Returns true if both objects are not equalTrd   re   s     r#   __ne__zV1APIResource.__ne__v  s&    %/||~00r%   )NNNNNNNNNNN)__name__
__module____qualname____doc__rR   attribute_mapr$   propertyr   setterr	   r
   r   r   r   r   r   r   r   rH   r`   rb   rg   ri    r%   r#   r   r      s;    "" %M #"#' 4M #D     	& 	&   \\	 	   
[[    
[[      & & ! ! 	( 	( # # , , * *   	: !	:   \\    ^^	  	 0.11r%   r   )rm   r^   rerP   kubernetes.client.configurationr   objectr   rq   r%   r#   <module>ru      s&     	 
 9f1F f1r%   