
    <g<8                     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)/V1StorageClasszNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    boolzlist[V1TopologySelectorTerm]strV1ObjectMetaz	list[str]zdict(str, str))
allow_volume_expansionallowed_topologiesapi_versionkindmetadatamount_options
parametersprovisionerreclaim_policyvolume_binding_modeallowVolumeExpansionallowedTopologies
apiVersionr   r   mountOptionsr   r   reclaimPolicyvolumeBindingModeNc                 v   |
t               }|| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _	        d| _
        d| _        d| _        ||| _        ||| _        ||| _        ||| _        ||| _        ||| _        ||| _        || _        |	|	| _        |
|
| _        yy)z+V1StorageClass - a model defined in OpenAPIN)r   local_vars_configuration_allow_volume_expansion_allowed_topologies_api_version_kind	_metadata_mount_options_parameters_provisioner_reclaim_policy_volume_binding_mode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_storage_class.py__init__zV1StorageClass.__init__=   s    #+'4$(@%'+$#'  
" #$(!!!-*@D')&8D#"*DDI$DM$!.D!(DO&%"0D*':D$ +    c                     | j                   S )a  Gets the allow_volume_expansion of this V1StorageClass.  # noqa: E501

        allowVolumeExpansion shows whether the storage class allow volume expand.  # noqa: E501

        :return: The allow_volume_expansion of this V1StorageClass.  # noqa: E501
        :rtype: bool
        r   r&   s    r'   r	   z%V1StorageClass.allow_volume_expansionc   s     +++r)   c                     || _         y)a  Sets the allow_volume_expansion of this V1StorageClass.

        allowVolumeExpansion shows whether the storage class allow volume expand.  # noqa: E501

        :param allow_volume_expansion: The allow_volume_expansion of this V1StorageClass.  # noqa: E501
        :type: bool
        Nr+   )r&   r	   s     r'   r	   z%V1StorageClass.allow_volume_expansionn   s     (>$r)   c                     | j                   S )a  Gets the allowed_topologies of this V1StorageClass.  # noqa: E501

        allowedTopologies restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.  # noqa: E501

        :return: The allowed_topologies of this V1StorageClass.  # noqa: E501
        :rtype: list[V1TopologySelectorTerm]
        r   r,   s    r'   r
   z!V1StorageClass.allowed_topologiesz   s     '''r)   c                     || _         y)a  Sets the allowed_topologies of this V1StorageClass.

        allowedTopologies restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.  # noqa: E501

        :param allowed_topologies: The allowed_topologies of this V1StorageClass.  # noqa: E501
        :type: list[V1TopologySelectorTerm]
        Nr/   )r&   r
   s     r'   r
   z!V1StorageClass.allowed_topologies   s     $6 r)   c                     | j                   S )a  Gets the api_version of this V1StorageClass.  # noqa: E501

        APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources  # noqa: E501

        :return: The api_version of this V1StorageClass.  # noqa: E501
        :rtype: str
        r   r,   s    r'   r   zV1StorageClass.api_version           r)   c                     || _         y)a  Sets the api_version of this V1StorageClass.

        APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources  # noqa: E501

        :param api_version: The api_version of this V1StorageClass.  # noqa: E501
        :type: str
        Nr2   )r&   r   s     r'   r   zV1StorageClass.api_version   s     (r)   c                     | j                   S )a  Gets the kind of this V1StorageClass.  # noqa: E501

        Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds  # noqa: E501

        :return: The kind of this V1StorageClass.  # noqa: E501
        :rtype: str
        r   r,   s    r'   r   zV1StorageClass.kind   s     zzr)   c                     || _         y)a  Sets the kind of this V1StorageClass.

        Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds  # noqa: E501

        :param kind: The kind of this V1StorageClass.  # noqa: E501
        :type: str
        Nr6   )r&   r   s     r'   r   zV1StorageClass.kind   s     
r)   c                     | j                   S )zGets the metadata of this V1StorageClass.  # noqa: E501


        :return: The metadata of this V1StorageClass.  # noqa: E501
        :rtype: V1ObjectMeta
        r   r,   s    r'   r   zV1StorageClass.metadata   s     ~~r)   c                     || _         y)zSets the metadata of this V1StorageClass.


        :param metadata: The metadata of this V1StorageClass.  # noqa: E501
        :type: V1ObjectMeta
        Nr9   )r&   r   s     r'   r   zV1StorageClass.metadata   s     "r)   c                     | j                   S )a  Gets the mount_options of this V1StorageClass.  # noqa: E501

        mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid.  # noqa: E501

        :return: The mount_options of this V1StorageClass.  # noqa: E501
        :rtype: list[str]
        r    r,   s    r'   r   zV1StorageClass.mount_options   s     """r)   c                     || _         y)a  Sets the mount_options of this V1StorageClass.

        mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid.  # noqa: E501

        :param mount_options: The mount_options of this V1StorageClass.  # noqa: E501
        :type: list[str]
        Nr<   )r&   r   s     r'   r   zV1StorageClass.mount_options   s     ,r)   c                     | j                   S )a%  Gets the parameters of this V1StorageClass.  # noqa: E501

        parameters holds the parameters for the provisioner that should create volumes of this storage class.  # noqa: E501

        :return: The parameters of this V1StorageClass.  # noqa: E501
        :rtype: dict(str, str)
        r!   r,   s    r'   r   zV1StorageClass.parameters   s     r)   c                     || _         y)a   Sets the parameters of this V1StorageClass.

        parameters holds the parameters for the provisioner that should create volumes of this storage class.  # noqa: E501

        :param parameters: The parameters of this V1StorageClass.  # noqa: E501
        :type: dict(str, str)
        Nr?   )r&   r   s     r'   r   zV1StorageClass.parameters   s     &r)   c                     | j                   S )zGets the provisioner of this V1StorageClass.  # noqa: E501

        provisioner indicates the type of the provisioner.  # noqa: E501

        :return: The provisioner of this V1StorageClass.  # noqa: E501
        :rtype: str
        )r"   r,   s    r'   r   zV1StorageClass.provisioner  r3   r)   c                 X    | j                   j                  r|t        d      || _        y)zSets the provisioner of this V1StorageClass.

        provisioner indicates the type of the provisioner.  # noqa: E501

        :param provisioner: The provisioner of this V1StorageClass.  # noqa: E501
        :type: str
        Nz3Invalid value for `provisioner`, must not be `None`)r   client_side_validation
ValueErrorr"   )r&   r   s     r'   r   zV1StorageClass.provisioner  s,     ((??KDWRSS'r)   c                     | j                   S )a>  Gets the reclaim_policy of this V1StorageClass.  # noqa: E501

        reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete.  # noqa: E501

        :return: The reclaim_policy of this V1StorageClass.  # noqa: E501
        :rtype: str
        r#   r,   s    r'   r   zV1StorageClass.reclaim_policy  s     ###r)   c                     || _         y)a=  Sets the reclaim_policy of this V1StorageClass.

        reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete.  # noqa: E501

        :param reclaim_policy: The reclaim_policy of this V1StorageClass.  # noqa: E501
        :type: str
        NrF   )r&   r   s     r'   r   zV1StorageClass.reclaim_policy&  s      .r)   c                     | j                   S )a  Gets the volume_binding_mode of this V1StorageClass.  # noqa: E501

        volumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound.  When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.  # noqa: E501

        :return: The volume_binding_mode of this V1StorageClass.  # noqa: E501
        :rtype: str
        r$   r,   s    r'   r   z"V1StorageClass.volume_binding_mode2  s     (((r)   c                     || _         y)a  Sets the volume_binding_mode of this V1StorageClass.

        volumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound.  When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.  # noqa: E501

        :param volume_binding_mode: The volume_binding_mode of this V1StorageClass.  # noqa: E501
        :type: str
        NrI   )r&   r   s     r'   r   z"V1StorageClass.volume_binding_mode=  s     %8!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hasattrrM   )xs    r'   <lambda>z(V1StorageClass.to_dict.<locals>.<lambda>Q  s    WQ	-BaiikIIr)   rM   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   rM   r   rN   )items    r'   rQ   z(V1StorageClass.to_dict.<locals>.<lambda>X  s6    tAw	2 #'q'47??+<!= "=8<"=r)   )six	iteritemsopenapi_typesgetattr
isinstancelistmaprO   rM   dictitems)r&   resultattr_values        r'   rM   zV1StorageClass.to_dictI  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pformatrM   r,   s    r'   to_strzV1StorageClass.to_stra  s    ~~dlln--r)   c                 "    | j                         S )zFor `print` and `pprint`)re   r,   s    r'   __repr__zV1StorageClass.__repr__e  s    {{}r)   c                 f    t        |t              sy| j                         |j                         k(  S )z&Returns true if both objects are equalFrY   r   rM   r&   others     r'   __eq__zV1StorageClass.__eq__i  s&    %0||~00r)   c                 f    t        |t              sy| j                         |j                         k7  S )z*Returns true if both objects are not equalTri   rj   s     r'   __ne__zV1StorageClass.__ne__p  s&    %0||~00r)   )NNNNNNNNNNN)__name__
__module____qualname____doc__rW   attribute_mapr(   propertyr	   setterr
   r   r   r   r   r   r   r   r   rM   re   rg   rl   rn    r)   r'   r   r      sA    #)<"$&$M #91#'"$)2M$;L , , ""	> #	> ( ( 	6 	6 ! ! 	( 	(   
[[	 	   __" " # # 	, 	,     	& 	& ! ! ( ( $ $ 	. 	. ) ) 	8  	80.11r)   r   )rr   rc   rerU   kubernetes.client.configurationr   objectr   rv   r)   r'   <module>rz      s&     	 
 9`1V `1r)   