
                         >    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Z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d Zd Zd Zd Zd Zy)V1alpha1WebhookClientConfigzw
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    strV1alpha1ServiceReference)	ca_bundleserviceurlcaBundler
   r   Nc                 t    d| _         d| _        d| _        d| _        ||| _        ||| _        ||| _        yy)zJ
        V1alpha1WebhookClientConfig - a model defined in Swagger
        N)
_ca_bundle_service_urldiscriminatorr	   r
   r   )selfr	   r
   r   s       Jlib/third_party/kubernetes/client/models/v1alpha1_webhook_client_config.py__init__z$V1alpha1WebhookClientConfig.__init__&   sL    
 DODMDID dndl
dh     c                     | j                   S )a_  
        Gets the ca_bundle of this V1alpha1WebhookClientConfig.
        `caBundle` is a PEM encoded CA bundle which will be used to validate the
        webhook's server certificate. If unspecified, system trust roots on the
        apiserver are used.

        :return: The ca_bundle of this V1alpha1WebhookClientConfig.
        :rtype: str
        )r   r   s    r   r	   z%V1alpha1WebhookClientConfig.ca_bundle7   s     ??r   c                 X    |!t        j                  d|      st        d      || _        y)ag  
        Sets the ca_bundle of this V1alpha1WebhookClientConfig.
        `caBundle` is a PEM encoded CA bundle which will be used to validate the
        webhook's server certificate. If unspecified, system trust roots on the
        apiserver are used.

        :param ca_bundle: The ca_bundle of this V1alpha1WebhookClientConfig.
        :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%V1alpha1WebhookClientConfig.ca_bundleD   s9     RYYK&  V   DOr   c                     | j                   S )a  
        Gets the service of this V1alpha1WebhookClientConfig.
        `service` is a reference to the service for this webhook. Either
        `service` or `url` must be specified.  If the webhook is running within
        the cluster, then you should use `service`.  Port 443 will be used if it
        is open, otherwise it is an error.

        :return: The service of this V1alpha1WebhookClientConfig.
        :rtype: V1alpha1ServiceReference
        r   r   s    r   r
   z#V1alpha1WebhookClientConfig.serviceX   s     ==r   c                     || _         y)a  
        Sets the service of this V1alpha1WebhookClientConfig.
        `service` is a reference to the service for this webhook. Either
        `service` or `url` must be specified.  If the webhook is running within
        the cluster, then you should use `service`.  Port 443 will be used if it
        is open, otherwise it is an error.

        :param service: The service of this V1alpha1WebhookClientConfig.
        :type: V1alpha1ServiceReference
        Nr   )r   r
   s     r   r
   z#V1alpha1WebhookClientConfig.servicef   s     DMr   c                     | j                   S )a}  
        Gets the url of this V1alpha1WebhookClientConfig.
        `url` gives the location of the webhook, in standard URL form
        (`scheme://host:port/path`). Exactly one of `url` or `service` must be
        specified.  The `host` should not refer to a service running in the
        cluster; use the `service` field instead. The host might be resolved via
        external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve
        in-cluster DNS as that would be a layering violation). `host` may also
        be an IP address.  Please note that using `localhost` or `127.0.0.1` as
        a `host` is risky unless you take great care to run this webhook on all
        hosts which run an apiserver which might need to make calls to this
        webhook. Such installs are likely to be non-portable, i.e., not easy to
        turn up in a new cluster.  The scheme must be "https"; the URL must
        begin with "https://".  A path is optional, and if present may be any
        string permissible in a URL. You may use the path to pass an arbitrary
        string to the webhook, for example, a cluster identifier.  Attempting to
        use a user or basic auth e.g. "user:password@" is not allowed.
        Fragments ("#...") and query parameters ("?...") are not allowed,
        either.

        :return: The url of this V1alpha1WebhookClientConfig.
        :rtype: str
        r   r   s    r   r   zV1alpha1WebhookClientConfig.urlu   s    2 99r   c                     || _         y)a  
        Sets the url of this V1alpha1WebhookClientConfig.
        `url` gives the location of the webhook, in standard URL form
        (`scheme://host:port/path`). Exactly one of `url` or `service` must be
        specified.  The `host` should not refer to a service running in the
        cluster; use the `service` field instead. The host might be resolved via
        external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve
        in-cluster DNS as that would be a layering violation). `host` may also
        be an IP address.  Please note that using `localhost` or `127.0.0.1` as
        a `host` is risky unless you take great care to run this webhook on all
        hosts which run an apiserver which might need to make calls to this
        webhook. Such installs are likely to be non-portable, i.e., not easy to
        turn up in a new cluster.  The scheme must be "https"; the URL must
        begin with "https://".  A path is optional, and if present may be any
        string permissible in a URL. You may use the path to pass an arbitrary
        string to the webhook, for example, a cluster identifier.  Attempting to
        use a user or basic auth e.g. "user:password@" is not allowed.
        Fragments ("#...") and query parameters ("?...") are not allowed,
        either.

        :param url: The url of this V1alpha1WebhookClientConfig.
        :type: str
        Nr    )r   r   s     r   r   zV1alpha1WebhookClientConfig.url   s    4 DIr   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>z5V1alpha1WebhookClientConfig.to_dict.<locals>.<lambda>   s    I)>!))+EAEr   r$   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   r$   r   r%   )items    r   r(   z5V1alpha1WebhookClientConfig.to_dict.<locals>.<lambda>   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#V1alpha1WebhookClientConfig.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"V1alpha1WebhookClientConfig.to_str   s     4<<>""r   c                 "    | j                         S )z*
        For `print` and `pprint`
        )r8   r   s    r   __repr__z$V1alpha1WebhookClientConfig.__repr__   s     ;;=r   c                 V    t        |t              sy| j                  |j                  k(  S )z8
        Returns true if both objects are equal
        F)r.   r   __dict__r   others     r   __eq__z"V1alpha1WebhookClientConfig.__eq__   s%     e89==ENN**r   c                     | |k(   S )z<
        Returns true if both objects are not equal
         r=   s     r   __ne__z"V1alpha1WebhookClientConfig.__ne__   s     u}r   )NNN)__name__
__module____qualname____doc__r,   attribute_mapr   propertyr	   setterr
   r   r$   r8   r:   r?   rB   rA   r   r   r   r      s     +- !+yO-" 
 
    &   >>   4 :: 6.#+r   r   )rF   pprintr   sixr   r   objectr   rA   r   r   <module>rM      s#   	   	J& Jr   