
    <gC                     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ddddd	d
Zdddddddddddd
Zd3d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ed,        Zej                  d-        Zd. Zd/ Zd0 Zd1 Zd2 Zy)4V1StatefulSetSpeczNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    intV1StatefulSetOrdinals1V1StatefulSetPersistentVolumeClaimRetentionPolicystrV1LabelSelectorV1PodTemplateSpecV1StatefulSetUpdateStrategyzlist[V1PersistentVolumeClaim])min_ready_secondsordinals(persistent_volume_claim_retention_policypod_management_policyreplicasrevision_history_limitselectorservice_nametemplateupdate_strategyvolume_claim_templatesminReadySecondsr   $persistentVolumeClaimRetentionPolicypodManagementPolicyr   revisionHistoryLimitr   serviceNamer   updateStrategyvolumeClaimTemplatesNc                    |
t               }|| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _	        d| _
        d| _        d| _        d| _        ||| _        ||| _        ||| _        ||| _        ||| _        ||| _        || _        || _        |	| _        |
|
| _        ||| _        yy)z.V1StatefulSetSpec - a model defined in OpenAPIN)r   local_vars_configuration_min_ready_seconds	_ordinals)_persistent_volume_claim_retention_policy_pod_management_policy	_replicas_revision_history_limit	_selector_service_name	_template_update_strategy_volume_claim_templatesdiscriminatorr   r   r   r   r   r   r   r   r   r   r   )selfr   r   r   r   r   r   r   r   r   r   r   r    s                b/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/models/v1_stateful_set_spec.py__init__zV1StatefulSetSpec.__init__?   s    #+'4$(@%"&9=6&*#'+$! $'+$!(%6D"$DM3?<dD9 ,)>D&$DM!-*@D' ( &#2D !-*@D' .    c                     | j                   S )a  Gets the min_ready_seconds of this V1StatefulSetSpec.  # noqa: E501

        Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)  # noqa: E501

        :return: The min_ready_seconds of this V1StatefulSetSpec.  # noqa: E501
        :rtype: int
        r!   r-   s    r.   r   z#V1StatefulSetSpec.min_ready_secondsf   s     &&&r0   c                     || _         y)a  Sets the min_ready_seconds of this V1StatefulSetSpec.

        Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)  # noqa: E501

        :param min_ready_seconds: The min_ready_seconds of this V1StatefulSetSpec.  # noqa: E501
        :type: int
        Nr2   )r-   r   s     r.   r   z#V1StatefulSetSpec.min_ready_secondsq   s     #4r0   c                     | j                   S )zGets the ordinals of this V1StatefulSetSpec.  # noqa: E501


        :return: The ordinals of this V1StatefulSetSpec.  # noqa: E501
        :rtype: V1StatefulSetOrdinals
        r"   r3   s    r.   r   zV1StatefulSetSpec.ordinals}        ~~r0   c                     || _         y)zSets the ordinals of this V1StatefulSetSpec.


        :param ordinals: The ordinals of this V1StatefulSetSpec.  # noqa: E501
        :type: V1StatefulSetOrdinals
        Nr6   )r-   r   s     r.   r   zV1StatefulSetSpec.ordinals   s     "r0   c                     | j                   S )a  Gets the persistent_volume_claim_retention_policy of this V1StatefulSetSpec.  # noqa: E501


        :return: The persistent_volume_claim_retention_policy of this V1StatefulSetSpec.  # noqa: E501
        :rtype: V1StatefulSetPersistentVolumeClaimRetentionPolicy
        r#   r3   s    r.   r   z:V1StatefulSetSpec.persistent_volume_claim_retention_policy   s     ===r0   c                     || _         y)a'  Sets the persistent_volume_claim_retention_policy of this V1StatefulSetSpec.


        :param persistent_volume_claim_retention_policy: The persistent_volume_claim_retention_policy of this V1StatefulSetSpec.  # noqa: E501
        :type: V1StatefulSetPersistentVolumeClaimRetentionPolicy
        Nr:   )r-   r   s     r.   r   z:V1StatefulSetSpec.persistent_volume_claim_retention_policy   s     :b6r0   c                     | j                   S )a  Gets the pod_management_policy of this V1StatefulSetSpec.  # noqa: E501

        podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once.  # noqa: E501

        :return: The pod_management_policy of this V1StatefulSetSpec.  # noqa: E501
        :rtype: str
        r$   r3   s    r.   r   z'V1StatefulSetSpec.pod_management_policy   s     ***r0   c                     || _         y)a  Sets the pod_management_policy of this V1StatefulSetSpec.

        podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once.  # noqa: E501

        :param pod_management_policy: The pod_management_policy of this V1StatefulSetSpec.  # noqa: E501
        :type: str
        Nr=   )r-   r   s     r.   r   z'V1StatefulSetSpec.pod_management_policy   s     '<#r0   c                     | j                   S )a  Gets the replicas of this V1StatefulSetSpec.  # noqa: E501

        replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1.  # noqa: E501

        :return: The replicas of this V1StatefulSetSpec.  # noqa: E501
        :rtype: int
        r%   r3   s    r.   r   zV1StatefulSetSpec.replicas   s     ~~r0   c                     || _         y)a  Sets the replicas of this V1StatefulSetSpec.

        replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1.  # noqa: E501

        :param replicas: The replicas of this V1StatefulSetSpec.  # noqa: E501
        :type: int
        Nr@   )r-   r   s     r.   r   zV1StatefulSetSpec.replicas   s     "r0   c                     | j                   S )a  Gets the revision_history_limit of this V1StatefulSetSpec.  # noqa: E501

        revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10.  # noqa: E501

        :return: The revision_history_limit of this V1StatefulSetSpec.  # noqa: E501
        :rtype: int
        r&   r3   s    r.   r   z(V1StatefulSetSpec.revision_history_limit        +++r0   c                     || _         y)a  Sets the revision_history_limit of this V1StatefulSetSpec.

        revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10.  # noqa: E501

        :param revision_history_limit: The revision_history_limit of this V1StatefulSetSpec.  # noqa: E501
        :type: int
        NrC   )r-   r   s     r.   r   z(V1StatefulSetSpec.revision_history_limit        (>$r0   c                     | j                   S )zGets the selector of this V1StatefulSetSpec.  # noqa: E501


        :return: The selector of this V1StatefulSetSpec.  # noqa: E501
        :rtype: V1LabelSelector
        )r'   r3   s    r.   r   zV1StatefulSetSpec.selector   r7   r0   c                 X    | j                   j                  r|t        d      || _        y)zSets the selector of this V1StatefulSetSpec.


        :param selector: The selector of this V1StatefulSetSpec.  # noqa: E501
        :type: V1LabelSelector
        Nz0Invalid value for `selector`, must not be `None`)r    client_side_validation
ValueErrorr'   )r-   r   s     r.   r   zV1StatefulSetSpec.selector   +     ((??HDTOPP!r0   c                     | j                   S )a  Gets the service_name of this V1StatefulSetSpec.  # noqa: E501

        serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where "pod-specific-string" is managed by the StatefulSet controller.  # noqa: E501

        :return: The service_name of this V1StatefulSetSpec.  # noqa: E501
        :rtype: str
        )r(   r3   s    r.   r   zV1StatefulSetSpec.service_name  s     !!!r0   c                 X    | j                   j                  r|t        d      || _        y)a  Sets the service_name of this V1StatefulSetSpec.

        serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where "pod-specific-string" is managed by the StatefulSet controller.  # noqa: E501

        :param service_name: The service_name of this V1StatefulSetSpec.  # noqa: E501
        :type: str
        Nz4Invalid value for `service_name`, must not be `None`)r    rI   rJ   r(   )r-   r   s     r.   r   zV1StatefulSetSpec.service_name  s,     ((??LDXSTT)r0   c                     | j                   S )zGets the template of this V1StatefulSetSpec.  # noqa: E501


        :return: The template of this V1StatefulSetSpec.  # noqa: E501
        :rtype: V1PodTemplateSpec
        )r)   r3   s    r.   r   zV1StatefulSetSpec.template  r7   r0   c                 X    | j                   j                  r|t        d      || _        y)zSets the template of this V1StatefulSetSpec.


        :param template: The template of this V1StatefulSetSpec.  # noqa: E501
        :type: V1PodTemplateSpec
        Nz0Invalid value for `template`, must not be `None`)r    rI   rJ   r)   )r-   r   s     r.   r   zV1StatefulSetSpec.template&  rK   r0   c                     | j                   S )zGets the update_strategy of this V1StatefulSetSpec.  # noqa: E501


        :return: The update_strategy of this V1StatefulSetSpec.  # noqa: E501
        :rtype: V1StatefulSetUpdateStrategy
        r*   r3   s    r.   r   z!V1StatefulSetSpec.update_strategy3  s     $$$r0   c                     || _         y)zSets the update_strategy of this V1StatefulSetSpec.


        :param update_strategy: The update_strategy of this V1StatefulSetSpec.  # noqa: E501
        :type: V1StatefulSetUpdateStrategy
        NrQ   )r-   r   s     r.   r   z!V1StatefulSetSpec.update_strategy=  s     !0r0   c                     | j                   S )a  Gets the volume_claim_templates of this V1StatefulSetSpec.  # noqa: E501

        volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name.  # noqa: E501

        :return: The volume_claim_templates of this V1StatefulSetSpec.  # noqa: E501
        :rtype: list[V1PersistentVolumeClaim]
        r+   r3   s    r.   r   z(V1StatefulSetSpec.volume_claim_templatesH  rD   r0   c                     || _         y)a  Sets the volume_claim_templates of this V1StatefulSetSpec.

        volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name.  # noqa: E501

        :param volume_claim_templates: The volume_claim_templates of this V1StatefulSetSpec.  # noqa: E501
        :type: list[V1PersistentVolumeClaim]
        NrT   )r-   r   s     r.   r   z(V1StatefulSetSpec.volume_claim_templatesS  rF   r0   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hasattrrX   )xs    r.   <lambda>z+V1StatefulSetSpec.to_dict.<locals>.<lambda>g  s    WQ	-BaiikIIr0   rX   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   rX   r   rY   )items    r.   r\   z+V1StatefulSetSpec.to_dict.<locals>.<lambda>n  s6    tAw	2 #'q'47??+<!= "=8<"=r0   )six	iteritemsopenapi_typesgetattr
isinstancelistmaprZ   rX   dictitems)r-   resultattr_values        r.   rX   zV1StatefulSetSpec.to_dict_  s    }}T%7%78GD!D$'E%&#CI%  t 	*$}}tE4(#C=KKM%  t  %t! 9$ r0   c                 H    t        j                  | j                               S )z.Returns the string representation of the model)pprintpformatrX   r3   s    r.   to_strzV1StatefulSetSpec.to_strw  s    ~~dlln--r0   c                 "    | j                         S )zFor `print` and `pprint`)rp   r3   s    r.   __repr__zV1StatefulSetSpec.__repr__{  s    {{}r0   c                 f    t        |t              sy| j                         |j                         k(  S )z&Returns true if both objects are equalFrd   r   rX   r-   others     r.   __eq__zV1StatefulSetSpec.__eq__  s'    %!23||~00r0   c                 f    t        |t              sy| j                         |j                         k7  S )z*Returns true if both objects are not equalTrt   ru   s     r.   __ne__zV1StatefulSetSpec.__ne__  s'    %!23||~00r0   )NNNNNNNNNNNN)__name__
__module____qualname____doc__rb   attribute_mapr/   propertyr   setterr   r   r   r   r   r   r   r   r   r   rX   rp   rr   rw   ry    r0   r.   r   r      st    #+4g!&"'%'8"AM /4Z!6"8%+"8M%AN ' ' 	4 	4   __" " > > .44b 5b + + !!	< "	<   __	" 	" , , ""	> #	>   __
" 
" " " * *   __
" 
" % % 0 0 , , ""	> #	>0.11r0   r   )r}   rn   rer`   kubernetes.client.configurationr   objectr   r   r0   r.   <module>r      s&     	 
 9v1 v1r0   