
    >g:                     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Z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d Zd Zd Zd  Zd! Zy)#V2MetricSpeczNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    V2ContainerResourceMetricSourceV2ExternalMetricSourceV2ObjectMetricSourceV2PodsMetricSourceV2ResourceMetricSourcestr)container_resourceexternalobjectpodsresourcetypecontainerResourcer   r   r   r   r   Nc                     |
t               }|| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _        ||| _	        ||| _
        ||| _        ||| _        ||| _        || _        y)z)V2MetricSpec - a model defined in OpenAPIN)r   local_vars_configuration_container_resource	_external_object_pods	_resource_typediscriminatorr   r   r   r   r   r   )selfr   r   r   r   r   r   r   s           \/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/models/v2_metric_spec.py__init__zV2MetricSpec.__init__5   s    #+'4$(@%#' 

!)&8D#$DM DKDI$DM	    c                     | j                   S )zGets the container_resource of this V2MetricSpec.  # noqa: E501


        :return: The container_resource of this V2MetricSpec.  # noqa: E501
        :rtype: V2ContainerResourceMetricSource
        r   r   s    r   r   zV2MetricSpec.container_resourceO   s     '''r   c                     || _         y)zSets the container_resource of this V2MetricSpec.


        :param container_resource: The container_resource of this V2MetricSpec.  # noqa: E501
        :type: V2ContainerResourceMetricSource
        Nr!   )r   r   s     r   r   zV2MetricSpec.container_resourceY   s     $6 r   c                     | j                   S )zGets the external of this V2MetricSpec.  # noqa: E501


        :return: The external of this V2MetricSpec.  # noqa: E501
        :rtype: V2ExternalMetricSource
        r   r"   s    r   r   zV2MetricSpec.externald        ~~r   c                     || _         y)zSets the external of this V2MetricSpec.


        :param external: The external of this V2MetricSpec.  # noqa: E501
        :type: V2ExternalMetricSource
        Nr%   )r   r   s     r   r   zV2MetricSpec.externaln        "r   c                     | j                   S )zGets the object of this V2MetricSpec.  # noqa: E501


        :return: The object of this V2MetricSpec.  # noqa: E501
        :rtype: V2ObjectMetricSource
        r   r"   s    r   r   zV2MetricSpec.objecty   s     ||r   c                     || _         y)zSets the object of this V2MetricSpec.


        :param object: The object of this V2MetricSpec.  # noqa: E501
        :type: V2ObjectMetricSource
        Nr*   )r   r   s     r   r   zV2MetricSpec.object   s     r   c                     | j                   S )zGets the pods of this V2MetricSpec.  # noqa: E501


        :return: The pods of this V2MetricSpec.  # noqa: E501
        :rtype: V2PodsMetricSource
        r   r"   s    r   r   zV2MetricSpec.pods   s     zzr   c                     || _         y)zSets the pods of this V2MetricSpec.


        :param pods: The pods of this V2MetricSpec.  # noqa: E501
        :type: V2PodsMetricSource
        Nr-   )r   r   s     r   r   zV2MetricSpec.pods   s     
r   c                     | j                   S )zGets the resource of this V2MetricSpec.  # noqa: E501


        :return: The resource of this V2MetricSpec.  # noqa: E501
        :rtype: V2ResourceMetricSource
        r   r"   s    r   r   zV2MetricSpec.resource   r&   r   c                     || _         y)zSets the resource of this V2MetricSpec.


        :param resource: The resource of this V2MetricSpec.  # noqa: E501
        :type: V2ResourceMetricSource
        Nr0   )r   r   s     r   r   zV2MetricSpec.resource   r(   r   c                     | j                   S )aM  Gets the type of this V2MetricSpec.  # noqa: E501

        type is the type of metric source.  It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object.  # noqa: E501

        :return: The type of this V2MetricSpec.  # noqa: E501
        :rtype: str
        )r   r"   s    r   r   zV2MetricSpec.type   s     zzr   c                 X    | j                   j                  r|t        d      || _        y)aB  Sets the type of this V2MetricSpec.

        type is the type of metric source.  It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object.  # noqa: E501

        :param type: The type of this V2MetricSpec.  # noqa: E501
        :type: str
        Nz,Invalid value for `type`, must not be `None`)r   client_side_validation
ValueErrorr   )r   r   s     r   r   zV2MetricSpec.type   s*     ((??DLKLL
r   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hasattrr8   )xs    r   <lambda>z&V2MetricSpec.to_dict.<locals>.<lambda>   s    WQ	-BaiikIIr   r8   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   r8   r   r9   )items    r   r<   z&V2MetricSpec.to_dict.<locals>.<lambda>   s6    tAw	2 #'q'47??+<!= "=8<"=r   )six	iteritemsopenapi_typesgetattr
isinstancelistmapr:   r8   dictitems)r   resultattr_values        r   r8   zV2MetricSpec.to_dict   s    }}T%7%78GD!D$'E%&#CI%  t 	*$}}tE4(#C=KKM%  t  %t! 9$ r   c                 H    t        j                  | j                               S )z.Returns the string representation of the model)pprintpformatr8   r"   s    r   to_strzV2MetricSpec.to_str   s    ~~dlln--r   c                 "    | j                         S )zFor `print` and `pprint`)rP   r"   s    r   __repr__zV2MetricSpec.__repr__   s    {{}r   c                 f    t        |t              sy| j                         |j                         k(  S )z&Returns true if both objects are equalFrD   r   r8   r   others     r   __eq__zV2MetricSpec.__eq__   s&    %.||~00r   c                 f    t        |t              sy| j                         |j                         k7  S )z*Returns true if both objects are not equalTrT   rU   s     r   __ne__zV2MetricSpec.__ne__   s&    %.||~00r   )NNNNNNN)__name__
__module____qualname____doc__rB   attribute_mapr   propertyr   setterr   r   r   r   r   r8   rP   rR   rW   rY    r   r   r   r      sk    @,($,M 2M4 ( ( 6 6   __" "   ]]    
[[    __" "   
[[ 0.11r   r   )r]   rN   rer@   kubernetes.client.configurationr   r   r   ra   r   r   <module>rd      s&     	 
 9h16 h1r   