3 f÷ÔYã@s8dZddlmZddlmZddlZGdd„deƒZdS)zç Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.7.4 Generated by: https://github.com/swagger-api/swagger-codegen.git é)Úpformat)Ú iteritemsNc@sªeZdZdZddd„Zedd„ƒZejdd„ƒZedd „ƒZejd d „ƒZed d „ƒZ e jd d „ƒZ edd„ƒZ e jdd„ƒZ dd„Z dd„Z dd„Z dd„Zdd„ZdS)ÚV2alpha1MetricSpeczw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCs<dddddœ|_dddd dœ|_||_||_||_||_d S) aH V2alpha1MetricSpec - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. ÚV2alpha1ObjectMetricSourceÚV2alpha1PodsMetricSourceÚV2alpha1ResourceMetricSourceÚstr)ÚobjectÚpodsÚresourceÚtyper r r r N)Ú swagger_typesÚ attribute_mapÚ_objectÚ_podsÚ _resourceÚ_type)Úselfr r r r ©rú^/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v2alpha1_metric_spec.pyÚ__init__s   zV2alpha1MetricSpec.__init__cCs|jS)a Gets the object of this V2alpha1MetricSpec. object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). :return: The object of this V2alpha1MetricSpec. :rtype: V2alpha1ObjectMetricSource )r)rrrrr 4s zV2alpha1MetricSpec.objectcCs ||_dS)a# Sets the object of this V2alpha1MetricSpec. 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 V2alpha1MetricSpec. :type: V2alpha1ObjectMetricSource N)r)rr rrrr ?s cCs|jS)an Gets the pods of this V2alpha1MetricSpec. 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 V2alpha1MetricSpec. :rtype: V2alpha1PodsMetricSource )r)rrrrr Ks zV2alpha1MetricSpec.podscCs ||_dS)aq Sets the pods of this V2alpha1MetricSpec. 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 V2alpha1MetricSpec. :type: V2alpha1PodsMetricSource N)r)rr rrrr Vs cCs|jS)aö Gets the resource of this V2alpha1MetricSpec. 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 V2alpha1MetricSpec. :rtype: V2alpha1ResourceMetricSource )r)rrrrr bs zV2alpha1MetricSpec.resourcecCs ||_dS)aý Sets the resource of this V2alpha1MetricSpec. 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 V2alpha1MetricSpec. :type: V2alpha1ResourceMetricSource N)r)rr rrrr ms cCs|jS)zÛ Gets the type of this V2alpha1MetricSpec. type is the type of metric source. It should match one of the fields below. :return: The type of this V2alpha1MetricSpec. :rtype: str )r)rrrrr ys zV2alpha1MetricSpec.typecCs|dkrtdƒ‚||_dS)zÞ Sets the type of this V2alpha1MetricSpec. type is the type of metric source. It should match one of the fields below. :param type: The type of this V2alpha1MetricSpec. :type: str Nz,Invalid value for `type`, must not be `None`)Ú ValueErrorr)rr rrrr „s cCs’i}xˆt|jƒD]z\}}t||ƒ}t|tƒrDttdd„|ƒƒ||<qt|dƒr\|jƒ||<qt|tƒr‚ttdd„|j ƒƒƒ||<q|||<qW|S)z8 Returns the model properties as a dict cSst|dƒr|jƒS|S)NÚto_dict)Úhasattrr)ÚxrrrÚœsz,V2alpha1MetricSpec.to_dict..rcSs&t|ddƒr"|d|djƒfS|S)Nérr)rr)Úitemrrrr£s) rr ÚgetattrÚ isinstanceÚlistÚmaprrÚdictÚitems)rÚresultÚattrÚ_Úvaluerrrr’s     zV2alpha1MetricSpec.to_dictcCs t|jƒƒS)z@ Returns the string representation of the model )rr)rrrrÚto_str¬szV2alpha1MetricSpec.to_strcCs|jƒS)z* For `print` and `pprint` )r()rrrrÚ__repr__²szV2alpha1MetricSpec.__repr__cCst|tƒsdS|j|jkS)z8 Returns true if both objects are equal F)rrÚ__dict__)rÚotherrrrÚ__eq__¸s zV2alpha1MetricSpec.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr+rrrÚ__ne__ÁszV2alpha1MetricSpec.__ne__)NNNN)Ú__name__Ú __module__Ú __qualname__Ú__doc__rÚpropertyr Úsetterr r r rr(r)r,r-rrrrrs      r)r1ÚpprintrÚsixrÚrer rrrrrÚ s