
    2                     >    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Z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d Zd Zd  Zd! Zd" Zy)$V1APIServiceSpeczw
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    strintboolV1ServiceReference)	ca_bundlegroupgroup_priority_minimuminsecure_skip_tls_verifyserviceversionversion_prioritycaBundler   groupPriorityMinimuminsecureSkipTLSVerifyr   r   versionPriorityNc                     d| _         d| _        d| _        d| _        d| _        d| _        d| _        d| _        ||| _        ||| _	        || _
        ||| _        || _        ||| _        || _        y)z?
        V1APIServiceSpec - a model defined in Swagger
        N)
_ca_bundle_group_group_priority_minimum_insecure_skip_tls_verify_service_version_version_prioritydiscriminatorr   r   r   r   r   r   r   )selfr   r   r   r   r   r   r   s           ?lib/third_party/kubernetes/client/models/v1_api_service_spec.py__init__zV1APIServiceSpec.__init__2   s     DODK#'D %)D"DMDM!DD dndj"8D+&>d#DLdl,D    c                     | j                   S )aJ  
        Gets the ca_bundle of this V1APIServiceSpec.
        CABundle is a PEM encoded CA bundle which will be used to validate an
        API server's serving certificate. If unspecified, system trust roots on
        the apiserver are used.

        :return: The ca_bundle of this V1APIServiceSpec.
        :rtype: str
        )r   r   s    r    r   zV1APIServiceSpec.ca_bundleS   s     ??r"   c                 X    |!t        j                  d|      st        d      || _        y)aR  
        Sets the ca_bundle of this V1APIServiceSpec.
        CABundle is a PEM encoded CA bundle which will be used to validate an
        API server's serving certificate. If unspecified, system trust roots on
        the apiserver are used.

        :param ca_bundle: The ca_bundle of this V1APIServiceSpec.
        :type: str
        Nz@^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$zInvalid value for `ca_bundle`, must be a follow pattern or equal to r`/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/`)research
ValueErrorr   )r   r   s     r    r   zV1APIServiceSpec.ca_bundle`   s9     RYYK&  V   DOr"   c                     | j                   S )z
        Gets the group of this V1APIServiceSpec.
        Group is the API group name this server hosts

        :return: The group of this V1APIServiceSpec.
        :rtype: str
        r   r$   s    r    r   zV1APIServiceSpec.groupt   s     ;;r"   c                     || _         y)z
        Sets the group of this V1APIServiceSpec.
        Group is the API group name this server hosts

        :param group: The group of this V1APIServiceSpec.
        :type: str
        Nr*   )r   r   s     r    r   zV1APIServiceSpec.group   s     DKr"   c                     | j                   S )ay  
        Gets the group_priority_minimum of this V1APIServiceSpec.
        GroupPriorityMininum is the priority this group should have at least.
        Higher priority means that the group is preferred by clients over lower
        priority ones. Note that other versions of this group might specify even
        higher GroupPriorityMininum values such that the whole group gets a
        higher priority. The primary sort is based on GroupPriorityMinimum,
        ordered highest number to lowest (20 before 10). The secondary sort is
        based on the alphabetical comparison of the name of the object.  (v1.bar
        before v1.foo) We'd recommend something like: *.k8s.io (except
        extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be
        in the 2000s

        :return: The group_priority_minimum of this V1APIServiceSpec.
        :rtype: int
        )r   r$   s    r    r   z'V1APIServiceSpec.group_priority_minimum   s    $ '''r"   c                 ,    |t        d      || _        y)a  
        Sets the group_priority_minimum of this V1APIServiceSpec.
        GroupPriorityMininum is the priority this group should have at least.
        Higher priority means that the group is preferred by clients over lower
        priority ones. Note that other versions of this group might specify even
        higher GroupPriorityMininum values such that the whole group gets a
        higher priority. The primary sort is based on GroupPriorityMinimum,
        ordered highest number to lowest (20 before 10). The secondary sort is
        based on the alphabetical comparison of the name of the object.  (v1.bar
        before v1.foo) We'd recommend something like: *.k8s.io (except
        extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be
        in the 2000s

        :param group_priority_minimum: The group_priority_minimum of this
        V1APIServiceSpec.
        :type: int
        Nz>Invalid value for `group_priority_minimum`, must not be `None`)r(   r   )r   r   s     r    r   z'V1APIServiceSpec.group_priority_minimum   s&    & %
JL L $:D r"   c                     | j                   S )ah  
        Gets the insecure_skip_tls_verify of this V1APIServiceSpec.
        InsecureSkipTLSVerify disables TLS certificate verification when
        communicating with this server. This is strongly discouraged.  You
        should use the CABundle instead.

        :return: The insecure_skip_tls_verify of this V1APIServiceSpec.
        :rtype: bool
        r   r$   s    r    r   z)V1APIServiceSpec.insecure_skip_tls_verify   s     )))r"   c                     || _         y)a  
        Sets the insecure_skip_tls_verify of this V1APIServiceSpec.
        InsecureSkipTLSVerify disables TLS certificate verification when
        communicating with this server. This is strongly discouraged.  You
        should use the CABundle instead.

        :param insecure_skip_tls_verify: The insecure_skip_tls_verify of this
        V1APIServiceSpec.
        :type: bool
        Nr/   )r   r   s     r    r   z)V1APIServiceSpec.insecure_skip_tls_verify   s     &>D"r"   c                     | j                   S )a  
        Gets the service of this V1APIServiceSpec.
        Service is a reference to the service for this API server.  It must
        communicate on port 443 If the Service is nil, that means the handling
        for the API groupversion is handled locally on this server. The call
        will simply delegate to the normal handler chain to be fulfilled.

        :return: The service of this V1APIServiceSpec.
        :rtype: V1ServiceReference
        )r   r$   s    r    r   zV1APIServiceSpec.service   s     ==r"   c                 ,    |t        d      || _        y)a  
        Sets the service of this V1APIServiceSpec.
        Service is a reference to the service for this API server.  It must
        communicate on port 443 If the Service is nil, that means the handling
        for the API groupversion is handled locally on this server. The call
        will simply delegate to the normal handler chain to be fulfilled.

        :param service: The service of this V1APIServiceSpec.
        :type: V1ServiceReference
        Nz/Invalid value for `service`, must not be `None`)r(   r   )r   r   s     r    r   zV1APIServiceSpec.service   s     HIIDMr"   c                     | j                   S )z
        Gets the version of this V1APIServiceSpec.
        Version is the API version this server hosts.  For example, "v1"

        :return: The version of this V1APIServiceSpec.
        :rtype: str
        r   r$   s    r    r   zV1APIServiceSpec.version   s     ==r"   c                     || _         y)z
        Sets the version of this V1APIServiceSpec.
        Version is the API version this server hosts.  For example, "v1"

        :param version: The version of this V1APIServiceSpec.
        :type: str
        Nr4   )r   r   s     r    r   zV1APIServiceSpec.version   s     DMr"   c                     | j                   S )a  
        Gets the version_priority of this V1APIServiceSpec.
        VersionPriority controls the ordering of this API version inside of its
        group.  Must be greater than zero. The primary sort is based on
        VersionPriority, ordered highest to lowest (20 before 10). Since it's
        inside of a group, the number can be small, probably in the 10s. In case
        of equal version priorities, the version string will be used to compute
        the order inside a group. If the version string is "kube-like", it
        will sort above non "kube-like" version strings, which are ordered
        lexicographically. "Kube-like" versions start with a "v", then are
        followed by a number (the major version), then optionally the string
        "alpha" or "beta" and another number (the minor version). These are
        sorted first by GA > beta > alpha (where GA is a version with no suffix
        such as beta or alpha), and then by comparing major version, then minor
        version. An example sorted list of versions: v10, v2, v1, v11beta2,
        v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.

        :return: The version_priority of this V1APIServiceSpec.
        :rtype: int
        )r   r$   s    r    r   z!V1APIServiceSpec.version_priority
  s    , !!!r"   c                 ,    |t        d      || _        y)a  
        Sets the version_priority of this V1APIServiceSpec.
        VersionPriority controls the ordering of this API version inside of its
        group.  Must be greater than zero. The primary sort is based on
        VersionPriority, ordered highest to lowest (20 before 10). Since it's
        inside of a group, the number can be small, probably in the 10s. In case
        of equal version priorities, the version string will be used to compute
        the order inside a group. If the version string is "kube-like", it
        will sort above non "kube-like" version strings, which are ordered
        lexicographically. "Kube-like" versions start with a "v", then are
        followed by a number (the major version), then optionally the string
        "alpha" or "beta" and another number (the minor version). These are
        sorted first by GA > beta > alpha (where GA is a version with no suffix
        such as beta or alpha), and then by comparing major version, then minor
        version. An example sorted list of versions: v10, v2, v1, v11beta2,
        v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.

        :param version_priority: The version_priority of this V1APIServiceSpec.
        :type: int
        Nz8Invalid value for `version_priority`, must not be `None`)r(   r   )r   r   s     r    r   z!V1APIServiceSpec.version_priority"  s&    , 
DF F .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hasattrr:   )xs    r    <lambda>z*V1APIServiceSpec.to_dict.<locals>.<lambda>H  s    I)>!))+EAEr"   r:   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   r:   r   r;   )items    r    r>   z*V1APIServiceSpec.to_dict.<locals>.<lambda>N  s6    47I. #1gtAw'89 9489r"   )
r   swagger_typesgetattr
isinstancelistmapr<   r:   dictitems)r   resultattr_values        r    r:   zV1APIServiceSpec.to_dict>  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   r:   r$   s    r    to_strzV1APIServiceSpec.to_strU  s     4<<>""r"   c                 "    | j                         S )z*
        For `print` and `pprint`
        )rN   r$   s    r    __repr__zV1APIServiceSpec.__repr__[  s     ;;=r"   c                 V    t        |t              sy| j                  |j                  k(  S )z8
        Returns true if both objects are equal
        F)rD   r   __dict__r   others     r    __eq__zV1APIServiceSpec.__eq__a  s%     e-.==ENN**r"   c                     | |k(   S )z<
        Returns true if both objects are not equal
         rS   s     r    __ne__zV1APIServiceSpec.__ne__j  s     u}r"   )NNNNNNN)__name__
__module____qualname____doc__rB   attribute_mapr!   propertyr   setterr   r   r   r   r   r   r:   rN   rP   rU   rX   rW   r"   r    r   r      s     %"(%-  6"9+- &*(, $-B 
 
    &   	<<	 	 ( (&   : !:0 
* 
* ""> #>   >>     >>	 	 " ". . .6.#+r"   r   )r\   pprintr   sixr   r&   objectr   rW   r"   r    <module>rc      s#   	   	\v \r"   