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)ÚV2alpha1MetricStatuszw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCs<dddddœ|_dddd dœ|_||_||_||_||_d S) aJ V2alpha1MetricStatus - 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. ÚV2alpha1ObjectMetricStatusÚV2alpha1PodsMetricStatusÚV2alpha1ResourceMetricStatusÚ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_status.pyÚ__init__s   zV2alpha1MetricStatus.__init__cCs|jS)a" Gets the object of this V2alpha1MetricStatus. object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). :return: The object of this V2alpha1MetricStatus. :rtype: V2alpha1ObjectMetricStatus )r)rrrrr 4s zV2alpha1MetricStatus.objectcCs ||_dS)a' Sets the object of this V2alpha1MetricStatus. 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 V2alpha1MetricStatus. :type: V2alpha1ObjectMetricStatus N)r)rr rrrr ?s cCs|jS)ar Gets the pods of this V2alpha1MetricStatus. 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 V2alpha1MetricStatus. :rtype: V2alpha1PodsMetricStatus )r)rrrrr Ks zV2alpha1MetricStatus.podscCs ||_dS)au Sets the pods of this V2alpha1MetricStatus. 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 V2alpha1MetricStatus. :type: V2alpha1PodsMetricStatus N)r)rr rrrr Vs cCs|jS)aú Gets the resource of this V2alpha1MetricStatus. 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 V2alpha1MetricStatus. :rtype: V2alpha1ResourceMetricStatus )r)rrrrr bs zV2alpha1MetricStatus.resourcecCs ||_dS)a Sets the resource of this V2alpha1MetricStatus. 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 V2alpha1MetricStatus. :type: V2alpha1ResourceMetricStatus N)r)rr rrrr ms cCs|jS)zÝ Gets the type of this V2alpha1MetricStatus. type is the type of metric source. It will match one of the fields below. :return: The type of this V2alpha1MetricStatus. :rtype: str )r)rrrrr ys zV2alpha1MetricStatus.typecCs|dkrtdƒ‚||_dS)zà Sets the type of this V2alpha1MetricStatus. type is the type of metric source. It will match one of the fields below. :param type: The type of this V2alpha1MetricStatus. :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.V2alpha1MetricStatus.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     zV2alpha1MetricStatus.to_dictcCs t|jƒƒS)z@ Returns the string representation of the model )rr)rrrrÚto_str¬szV2alpha1MetricStatus.to_strcCs|jƒS)z* For `print` and `pprint` )r()rrrrÚ__repr__²szV2alpha1MetricStatus.__repr__cCst|tƒsdS|j|jkS)z8 Returns true if both objects are equal F)rrÚ__dict__)rÚotherrrrÚ__eq__¸s zV2alpha1MetricStatus.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr+rrrÚ__ne__ÁszV2alpha1MetricStatus.__ne__)NNNN)Ú__name__Ú __module__Ú __qualname__Ú__doc__rÚpropertyr Úsetterr r r rr(r)r,r-rrrrrs      r)r1ÚpprintrÚsixrÚrer rrrrrÚ s