
    \                     >    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	)V1beta1CustomResourceConversionzw
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    z	list[str]str'ApiextensionsV1beta1WebhookClientConfig)conversion_review_versionsstrategywebhook_client_configconversionReviewVersionsr
   webhookClientConfigNc                 p    d| _         d| _        d| _        d| _        ||| _        || _        ||| _        yy)zN
        V1beta1CustomResourceConversion - a model defined in Swagger
        N)_conversion_review_versions	_strategy_webhook_client_configdiscriminatorr	   r
   r   )selfr	   r
   r   s       Nlib/third_party/kubernetes/client/models/v1beta1_custom_resource_conversion.py__init__z(V1beta1CustomResourceConversion.__init__*   sK     (,D$DN"&DD!-(Bd%DM(#8d  )    c                     | j                   S )a  
        Gets the conversion_review_versions of this
        V1beta1CustomResourceConversion.
        ConversionReviewVersions is an ordered list of preferred
        `ConversionReview` versions the Webhook expects. API server will try to
        use first version in the list which it supports. If none of the versions
        specified in this list supported by API server, conversion will fail for
        this object. If a persisted Webhook configuration specifies allowed
        versions and does not include any versions known to the API Server,
        calls to the webhook will fail. Default to `['v1beta1']`.

        :return: The conversion_review_versions of this
        V1beta1CustomResourceConversion.
        :rtype: list[str]
        r   r   s    r   r	   z:V1beta1CustomResourceConversion.conversion_review_versions=   s    " +++r   c                     || _         y)a  
        Sets the conversion_review_versions of this
        V1beta1CustomResourceConversion.
        ConversionReviewVersions is an ordered list of preferred
        `ConversionReview` versions the Webhook expects. API server will try to
        use first version in the list which it supports. If none of the versions
        specified in this list supported by API server, conversion will fail for
        this object. If a persisted Webhook configuration specifies allowed
        versions and does not include any versions known to the API Server,
        calls to the webhook will fail. Default to `['v1beta1']`.

        :param conversion_review_versions: The conversion_review_versions of
        this V1beta1CustomResourceConversion.
        :type: list[str]
        Nr   )r   r	   s     r   r	   z:V1beta1CustomResourceConversion.conversion_review_versionsP   s    $ (BD$r   c                     | j                   S )a  
        Gets the strategy of this V1beta1CustomResourceConversion.
        `strategy` specifies the conversion strategy. Allowed values are: -
        `None`: The converter only change the apiVersion and would not touch any
        other field in the CR. - `Webhook`: API Server will call to an external
        webhook to do the conversion. Additional information is needed for this
        option.

        :return: The strategy of this V1beta1CustomResourceConversion.
        :rtype: str
        )r   r   s    r   r
   z(V1beta1CustomResourceConversion.strategyd   s     >>r   c                 ,    |t        d      || _        y)a  
        Sets the strategy of this V1beta1CustomResourceConversion.
        `strategy` specifies the conversion strategy. Allowed values are: -
        `None`: The converter only change the apiVersion and would not touch any
        other field in the CR. - `Webhook`: API Server will call to an external
        webhook to do the conversion. Additional information is needed for this
        option.

        :param strategy: The strategy of this V1beta1CustomResourceConversion.
        :type: str
        Nz0Invalid value for `strategy`, must not be `None`)
ValueErrorr   )r   r
   s     r   r
   z(V1beta1CustomResourceConversion.strategys   s     IJJDNr   c                     | j                   S )a  
        Gets the webhook_client_config of this V1beta1CustomResourceConversion.
        `webhookClientConfig` is the instructions for how to call the webhook if
        strategy is `Webhook`. This field is alpha-level and is only honored by
        servers that enable the CustomResourceWebhookConversion feature.

        :return: The webhook_client_config of this
        V1beta1CustomResourceConversion.
        :rtype: ApiextensionsV1beta1WebhookClientConfig
        r   r   s    r   r   z5V1beta1CustomResourceConversion.webhook_client_config   s     &&&r   c                     || _         y)a  
        Sets the webhook_client_config of this V1beta1CustomResourceConversion.
        `webhookClientConfig` is the instructions for how to call the webhook if
        strategy is `Webhook`. This field is alpha-level and is only honored by
        servers that enable the CustomResourceWebhookConversion feature.

        :param webhook_client_config: The webhook_client_config of this
        V1beta1CustomResourceConversion.
        :type: ApiextensionsV1beta1WebhookClientConfig
        Nr   )r   r   s     r   r   z5V1beta1CustomResourceConversion.webhook_client_config   s     #8D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>z9V1beta1CustomResourceConversion.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'   z9V1beta1CustomResourceConversion.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'V1beta1CustomResourceConversion.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&V1beta1CustomResourceConversion.to_str   s     4<<>""r   c                 "    | j                         S )z*
        For `print` and `pprint`
        )r7   r   s    r   __repr__z(V1beta1CustomResourceConversion.__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&V1beta1CustomResourceConversion.__eq__   s%     e<===ENN**r   c                     | |k(   S )z<
        Returns true if both objects are not equal
         r<   s     r   __ne__z&V1beta1CustomResourceConversion.__ne__   s     u}r   )NNN)__name__
__module____qualname____doc__r+   attribute_mapr   propertyr	   setterr
   r   r#   r7   r9   r>   rA   r@   r   r   r   r      s     %0H- %?4- +/%)9& , ,$ $$B %B&   ?? " ' ' 8  8.#+r   r   )rE   pprintr   sixr   reobjectr   r@   r   r   <module>rM      s#   	   	@f @r   