
                         >    S r SSKJr  SSKJr  SSKr " S S\5      rg)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                   p   \ rS rSrSr SSSSSS.rS	S
SSSS.r     S S jr\S 5       r	\	R                  S 5       r	\S 5       r\R                  S 5       r\S 5       r\R                  S 5       r\S 5       r\R                  S 5       r\S 5       r\R                  S 5       rS rS rS rS rS rSrg)!V2beta2MetricSpec   zk
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
V2beta2ExternalMetricSourceV2beta2ObjectMetricSourceV2beta2PodsMetricSourceV2beta2ResourceMetricSourcestr)externalobjectpodsresourcetyper   r   r   r   r   Nc                     SU l         SU l        SU l        SU l        SU l        SU l        Ub  Xl        Ub  X l        Ub  X0l        Ub  X@l	        XPl
        g)z0
V2beta2MetricSpec - a model defined in Swagger
N	_external_object_pods	_resource_typediscriminatorr   r   r   r   r   )selfr   r   r   r   r   s         ?lib/third_party/kubernetes/client/models/v2beta2_metric_spec.py__init__V2beta2MetricSpec.__init__.   s`     DNDLDJDNDJDmkimI    c                     U R                   $ )a  
Gets the external of this V2beta2MetricSpec.
external refers to a global metric that is not associated with any
Kubernetes object. It allows autoscaling based on information coming
from components running outside of cluster (for example length of queue
in cloud messaging service, or QPS from loadbalancer running outside of
cluster).

:return: The external of this V2beta2MetricSpec.
:rtype: V2beta2ExternalMetricSource
r   r   s    r   r   V2beta2MetricSpec.externalI        >>r   c                     Xl         g)a  
Sets the external of this V2beta2MetricSpec.
external refers to a global metric that is not associated with any
Kubernetes object. It allows autoscaling based on information coming
from components running outside of cluster (for example length of queue
in cloud messaging service, or QPS from loadbalancer running outside of
cluster).

:param external: The external of this V2beta2MetricSpec.
:type: V2beta2ExternalMetricSource
Nr    )r   r   s     r   r   r"   X   	     Nr   c                     U R                   $ )z
Gets the object of this V2beta2MetricSpec.
object refers to a metric describing a single kubernetes object (for
example, hits-per-second on an Ingress object).

:return: The object of this V2beta2MetricSpec.
:rtype: V2beta2ObjectMetricSource
r   r!   s    r   r   V2beta2MetricSpec.objecth   s     <<r   c                     Xl         g)z
Sets the object of this V2beta2MetricSpec.
object refers to a metric describing a single kubernetes object (for
example, hits-per-second on an Ingress object).

:param object: The object of this V2beta2MetricSpec.
:type: V2beta2ObjectMetricSource
Nr'   )r   r   s     r   r   r(   t   s	     Lr   c                     U R                   $ )aC  
Gets the pods of this V2beta2MetricSpec.
pods refers to a metric describing each pod in the current scale target
(for example, transactions-processed-per-second).  The values will be
averaged together before being compared to the target value.

:return: The pods of this V2beta2MetricSpec.
:rtype: V2beta2PodsMetricSource
r   r!   s    r   r   V2beta2MetricSpec.pods        ::r   c                     Xl         g)aF  
Sets the pods of this V2beta2MetricSpec.
pods refers to a metric describing each pod in the current scale target
(for example, transactions-processed-per-second).  The values will be
averaged together before being compared to the target value.

:param pods: The pods of this V2beta2MetricSpec.
:type: V2beta2PodsMetricSource
Nr+   )r   r   s     r   r   r,      s	     Jr   c                     U R                   $ )a  
Gets the resource of this V2beta2MetricSpec.
resource refers to a resource metric (such as those specified in
requests and limits) known to Kubernetes describing each pod in the
current scale target (e.g. CPU or memory). Such metrics are built in to
Kubernetes, and have special scaling options on top of those available
to normal per-pod metrics using the "pods" source.

:return: The resource of this V2beta2MetricSpec.
:rtype: V2beta2ResourceMetricSource
r   r!   s    r   r   V2beta2MetricSpec.resource   r#   r   c                     Xl         g)a  
Sets the resource of this V2beta2MetricSpec.
resource refers to a resource metric (such as those specified in
requests and limits) known to Kubernetes describing each pod in the
current scale target (e.g. CPU or memory). Such metrics are built in to
Kubernetes, and have special scaling options on top of those available
to normal per-pod metrics using the "pods" source.

:param resource: The resource of this V2beta2MetricSpec.
:type: V2beta2ResourceMetricSource
Nr0   )r   r   s     r   r   r1      r%   r   c                     U R                   $ )z
Gets the type of this V2beta2MetricSpec.
type is the type of metric source.  It should be one of "Object",
"Pods" or "Resource", each mapping to a matching field in the
object.

:return: The type of this V2beta2MetricSpec.
:rtype: str
)r   r!   s    r   r   V2beta2MetricSpec.type   r-   r   c                 ,    Uc  [        S5      eXl        g)z
Sets the type of this V2beta2MetricSpec.
type is the type of metric source.  It should be one of "Object",
"Pods" or "Resource", each mapping to a matching field in the
object.

:param type: The type of this V2beta2MetricSpec.
:type: str
Nz,Invalid value for `type`, must not be `None`)
ValueErrorr   )r   r   s     r   r   r4      s     |EFFJr   c                    0 n[        U R                  5       H  u  p#[        X5      n[        U[        5      (       a  [	        [        S U5      5      X'   M?  [        US5      (       a  UR                  5       X'   Md  [        U[        5      (       a(  [        [        S UR                  5       5      5      X'   M  XAU'   M     U$ )z(
Returns the model properties as a dict
c                 H    [        U S5      (       a  U R                  5       $ U $ )Nto_dicthasattrr9   )xs    r   <lambda>+V2beta2MetricSpec.to_dict.<locals>.<lambda>   s    I)>)>!))+EAEr   r9   c                 ^    [        U S   S5      (       a  U S   U S   R                  5       4$ U $ )N   r9   r   r:   )items    r   r=   r>      s9    47I.. #1gtAw'89 9489r   )
r   swagger_typesgetattr
isinstancelistmapr;   r9   dictitems)r   resultattr_values        r   r9   V2beta2MetricSpec.to_dict   s     FT//0d!e	E4	 	 EuMO5)$$}}eT""9:?++-IJ
 t 1 Mr   c                 4    [        U R                  5       5      $ )z0
Returns the string representation of the model
)r   r9   r!   s    r   to_strV2beta2MetricSpec.to_str   s     4<<>""r   c                 "    U R                  5       $ )z
For `print` and `pprint`
)rO   r!   s    r   __repr__V2beta2MetricSpec.__repr__   s     ;;=r   c                 `    [        U[        5      (       d  gU R                  UR                  :H  $ )z(
Returns true if both objects are equal
F)rD   r   __dict__r   others     r   __eq__V2beta2MetricSpec.__eq__   s(     e.//==ENN**r   c                     X:X  + $ )z,
Returns true if both objects are not equal
 rV   s     r   __ne__V2beta2MetricSpec.__ne__  s     r   r   )NNNNN)__name__
__module____qualname____firstlineno____doc__rB   attribute_mapr   propertyr   setterr   r   r   r   r9   rO   rR   rX   r\   __static_attributes__r[   r   r   r   r      sG    0+'/- - 6   ??  	 	 
==
 
 
 
 ;;    ??  
 
 ;; .#+r   r   )rb   pprintr   sixr   rer   r   r[   r   r   <module>rj      s#   	   	v vr   