
    h7                     >    d Z ddlmZ ddlmZ ddlZ G d de      Zy)z
    Kubernetes

    No description provided (generated by Swagger Codegen
    https://github.com/swagger-api/swagger-codegen)

    OpenAPI spec version: v1.14.4

    Generated by: https://github.com/swagger-api/swagger-codegen.git
    )pformat)	iteritemsNc            	          e Zd ZdZ	 dddddddddZ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d# Zd$ Zd% Zd& Zd' Zy))V1beta2StatefulSetSpeczw
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    strintV1LabelSelectorV1PodTemplateSpec V1beta2StatefulSetUpdateStrategyzlist[V1PersistentVolumeClaim])pod_management_policyreplicasrevision_history_limitselectorservice_nametemplateupdate_strategyvolume_claim_templatespodManagementPolicyr   revisionHistoryLimitr   serviceNamer   updateStrategyvolumeClaimTemplatesNc	                    d| _         d| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _        ||| _	        ||| _
        ||| _        || _        || _        || _        ||| _        ||| _        yy)zE
        V1beta2StatefulSetSpec - a model defined in Swagger
        N)_pod_management_policy	_replicas_revision_history_limit	_selector_service_name	_template_update_strategy_volume_claim_templatesdiscriminatorr   r   r   r   r   r   r   r   )	selfr   r   r   r   r   r   r   r   s	            Elib/third_party/kubernetes/client/models/v1beta2_stateful_set_spec.py__init__zV1beta2StatefulSetSpec.__init__4   s     #'DDN#'D DNDDN D#'D D(#8d dm)$:d!DM$DDM",d)$:d! *    c                     | j                   S )a  
        Gets the pod_management_policy of this V1beta2StatefulSetSpec.
        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.

        :return: The pod_management_policy of this V1beta2StatefulSetSpec.
        :rtype: str
        r   r#   s    r$   r   z,V1beta2StatefulSetSpec.pod_management_policyY   s      &&&r&   c                     || _         y)a   
        Sets the pod_management_policy of this V1beta2StatefulSetSpec.
        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.

        :param pod_management_policy: The pod_management_policy of this
        V1beta2StatefulSetSpec.
        :type: str
        Nr(   )r#   r   s     r$   r   z,V1beta2StatefulSetSpec.pod_management_policyk   s    $ #8Dr&   c                     | j                   S )a  
        Gets the replicas of this V1beta2StatefulSetSpec.
        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.

        :return: The replicas of this V1beta2StatefulSetSpec.
        :rtype: int
        r   r)   s    r$   r   zV1beta2StatefulSetSpec.replicas        >>r&   c                     || _         y)a  
        Sets the replicas of this V1beta2StatefulSetSpec.
        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.

        :param replicas: The replicas of this V1beta2StatefulSetSpec.
        :type: int
        Nr,   )r#   r   s     r$   r   zV1beta2StatefulSetSpec.replicas   s     DNr&   c                     | j                   S )a  
        Gets the revision_history_limit of this V1beta2StatefulSetSpec.
        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.

        :return: The revision_history_limit of this V1beta2StatefulSetSpec.
        :rtype: int
        r   r)   s    r$   r   z-V1beta2StatefulSetSpec.revision_history_limit   s     '''r&   c                     || _         y)a  
        Sets the revision_history_limit of this V1beta2StatefulSetSpec.
        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.

        :param revision_history_limit: The revision_history_limit of this
        V1beta2StatefulSetSpec.
        :type: int
        Nr0   )r#   r   s     r$   r   z-V1beta2StatefulSetSpec.revision_history_limit   s     $:D r&   c                     | j                   S )a  
        Gets the selector of this V1beta2StatefulSetSpec.
        selector is a label query over pods that should match the replica count.
        It must match the pod template's labels. More info:
        https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors

        :return: The selector of this V1beta2StatefulSetSpec.
        :rtype: V1LabelSelector
        )r   r)   s    r$   r   zV1beta2StatefulSetSpec.selector   s     >>r&   c                 ,    |t        d      || _        y)a  
        Sets the selector of this V1beta2StatefulSetSpec.
        selector is a label query over pods that should match the replica count.
        It must match the pod template's labels. More info:
        https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors

        :param selector: The selector of this V1beta2StatefulSetSpec.
        :type: V1LabelSelector
        Nz0Invalid value for `selector`, must not be `None`)
ValueErrorr   )r#   r   s     r$   r   zV1beta2StatefulSetSpec.selector   s     IJJDNr&   c                     | j                   S )a$  
        Gets the service_name of this V1beta2StatefulSetSpec.
        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.

        :return: The service_name of this V1beta2StatefulSetSpec.
        :rtype: str
        )r   r)   s    r$   r   z#V1beta2StatefulSetSpec.service_name   s     r&   c                 ,    |t        d      || _        y)a/  
        Sets the service_name of this V1beta2StatefulSetSpec.
        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.

        :param service_name: The service_name of this V1beta2StatefulSetSpec.
        :type: str
        Nz4Invalid value for `service_name`, must not be `None`)r4   r   )r#   r   s     r$   r   z#V1beta2StatefulSetSpec.service_name   s     MNN%Dr&   c                     | j                   S )a  
        Gets the template of this V1beta2StatefulSetSpec.
        template is the object that describes the pod that will be created if
        insufficient replicas are detected. Each pod stamped out by the
        StatefulSet will fulfill this Template, but have a unique identity from
        the rest of the StatefulSet.

        :return: The template of this V1beta2StatefulSetSpec.
        :rtype: V1PodTemplateSpec
        )r   r)   s    r$   r   zV1beta2StatefulSetSpec.template   r-   r&   c                 ,    |t        d      || _        y)a  
        Sets the template of this V1beta2StatefulSetSpec.
        template is the object that describes the pod that will be created if
        insufficient replicas are detected. Each pod stamped out by the
        StatefulSet will fulfill this Template, but have a unique identity from
        the rest of the StatefulSet.

        :param template: The template of this V1beta2StatefulSetSpec.
        :type: V1PodTemplateSpec
        Nz0Invalid value for `template`, must not be `None`)r4   r   )r#   r   s     r$   r   zV1beta2StatefulSetSpec.template  s     IJJDNr&   c                     | j                   S )am  
        Gets the update_strategy of this V1beta2StatefulSetSpec.
        updateStrategy indicates the StatefulSetUpdateStrategy that will be
        employed to update Pods in the StatefulSet when a revision is made to
        Template.

        :return: The update_strategy of this V1beta2StatefulSetSpec.
        :rtype: V1beta2StatefulSetUpdateStrategy
        r    r)   s    r$   r   z&V1beta2StatefulSetSpec.update_strategy  s        r&   c                     || _         y)a  
        Sets the update_strategy of this V1beta2StatefulSetSpec.
        updateStrategy indicates the StatefulSetUpdateStrategy that will be
        employed to update Pods in the StatefulSet when a revision is made to
        Template.

        :param update_strategy: The update_strategy of this
        V1beta2StatefulSetSpec.
        :type: V1beta2StatefulSetUpdateStrategy
        Nr:   )r#   r   s     r$   r   z&V1beta2StatefulSetSpec.update_strategy$  s     ,Dr&   c                     | j                   S )a  
        Gets the volume_claim_templates of this V1beta2StatefulSetSpec.
        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.

        :return: The volume_claim_templates of this V1beta2StatefulSetSpec.
        :rtype: list[V1PersistentVolumeClaim]
        r!   r)   s    r$   r   z-V1beta2StatefulSetSpec.volume_claim_templates3  s     '''r&   c                     || _         y)a  
        Sets the volume_claim_templates of this V1beta2StatefulSetSpec.
        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.

        :param volume_claim_templates: The volume_claim_templates of this
        V1beta2StatefulSetSpec.
        :type: list[V1PersistentVolumeClaim]
        Nr=   )r#   r   s     r$   r   z-V1beta2StatefulSetSpec.volume_claim_templatesC  s      $:D r&   c                 j   i }t        | j                        D ]  \  }}t        | |      }t        |t              rt	        t        d |            ||<   <t        |d      r|j                         ||<   \t        |t              r(t        t        d |j                                     ||<   |||<    |S )z8
        Returns the model properties as a dict
        c                 >    t        | d      r| j                         S | S )Nto_dicthasattrrA   )xs    r$   <lambda>z0V1beta2StatefulSetSpec.to_dict.<locals>.<lambda>_  s    I)>!))+EAEr&   rA   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   rA   r   rB   )items    r$   rE   z0V1beta2StatefulSetSpec.to_dict.<locals>.<lambda>e  s6    47I. #1gtAw'89 9489r&   )
r   swagger_typesgetattr
isinstancelistmaprC   rA   dictitems)r#   resultattr_values        r$   rA   zV1beta2StatefulSetSpec.to_dictU  s     FT//0adD!e	E4	 EuMOt5)$}}teT"9:?++-IJt
 t 1 Mr&   c                 4    t        | j                               S )z@
        Returns the string representation of the model
        )r   rA   r)   s    r$   to_strzV1beta2StatefulSetSpec.to_strl  s     4<<>""r&   c                 "    | j                         S )z*
        For `print` and `pprint`
        )rU   r)   s    r$   __repr__zV1beta2StatefulSetSpec.__repr__r  s     ;;=r&   c                 V    t        |t              sy| j                  |j                  k(  S )z8
        Returns true if both objects are equal
        F)rK   r   __dict__r#   others     r$   __eq__zV1beta2StatefulSetSpec.__eq__x  s%     e34==ENN**r&   c                     | |k(   S )z<
        Returns true if both objects are not equal
         rZ   s     r$   __ne__zV1beta2StatefulSetSpec.__ne__  s     u}r&   )NNNNNNNN)__name__
__module____qualname____doc__rI   attribute_mapr%   propertyr   setterr   r   r   r   r   r   r   rA   rU   rW   r\   r_   r^   r&   r$   r   r      s     % %#%; ?	-  5 6#) 6	- &*&* #&*#;J ' '" 8  8&   ??  ( (   : !: 
 
 ??    & &"   ??   
! 
! , , ( (   : !:".#+r&   r   )rc   pprintr   sixr   reobjectr   r^   r&   r$   <module>rk      s#   	   	sV sr&   