3 fY@s8dZddlmZddlmZddlZGdddeZdS)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@seZdZdZdddZeddZejddZedd Zejd d Zed d Z e jd d Z ddZ ddZ ddZ ddZ ddZdS)V2alpha1ResourceMetricStatuszw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCs2dddd|_dddd|_||_||_||_dS)aR V2alpha1ResourceMetricStatus - 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. intstr)current_average_utilizationcurrent_average_valuenameZcurrentAverageUtilizationcurrentAverageValuer N) swagger_types attribute_map_current_average_utilization_current_average_value_name)selfrrr ri/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v2alpha1_resource_metric_status.py__init__s   z%V2alpha1ResourceMetricStatus.__init__cCs|jS)a Gets the current_average_utilization of this V2alpha1ResourceMetricStatus. currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification. :return: The current_average_utilization of this V2alpha1ResourceMetricStatus. :rtype: int )r )rrrrr1s z8V2alpha1ResourceMetricStatus.current_average_utilizationcCs ||_dS)a Sets the current_average_utilization of this V2alpha1ResourceMetricStatus. currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification. :param current_average_utilization: The current_average_utilization of this V2alpha1ResourceMetricStatus. :type: int N)r )rrrrrr<s cCs|jS)a Gets the current_average_value of this V2alpha1ResourceMetricStatus. currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type. It will always be set, regardless of the corresponding metric specification. :return: The current_average_value of this V2alpha1ResourceMetricStatus. :rtype: str )r)rrrrrHs z2V2alpha1ResourceMetricStatus.current_average_valuecCs|dkrtd||_dS)a Sets the current_average_value of this V2alpha1ResourceMetricStatus. currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type. It will always be set, regardless of the corresponding metric specification. :param current_average_value: The current_average_value of this V2alpha1ResourceMetricStatus. :type: str Nz=Invalid value for `current_average_value`, must not be `None`) ValueErrorr)rrrrrrSs cCs|jS)z Gets the name of this V2alpha1ResourceMetricStatus. name is the name of the resource in question. :return: The name of this V2alpha1ResourceMetricStatus. :rtype: str )r)rrrrr as z!V2alpha1ResourceMetricStatus.namecCs|dkrtd||_dS)z Sets the name of this V2alpha1ResourceMetricStatus. name is the name of the resource in question. :param name: The name of this V2alpha1ResourceMetricStatus. :type: str Nz,Invalid value for `name`, must not be `None`)rr)rr rrrr ls cCsi}xt|jD]z\}}t||}t|trDttdd|||<qt|dr\|j||<qt|trttdd|j ||<q|||<qW|S)z8 Returns the model properties as a dict cSst|dr|jS|S)Nto_dict)hasattrr)xrrrsz6V2alpha1ResourceMetricStatus.to_dict..rcSs&t|ddr"|d|djfS|S)Nrr)rr)itemrrrrs) rr getattr isinstancelistmaprrdictitems)rresultattr_valuerrrrzs     z$V2alpha1ResourceMetricStatus.to_dictcCs t|jS)z@ Returns the string representation of the model )rr)rrrrto_strsz#V2alpha1ResourceMetricStatus.to_strcCs|jS)z* For `print` and `pprint` )r%)rrrr__repr__sz%V2alpha1ResourceMetricStatus.__repr__cCst|tsdS|j|jkS)z8 Returns true if both objects are equal F)rr__dict__)rotherrrr__eq__s z#V2alpha1ResourceMetricStatus.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr(rrr__ne__sz#V2alpha1ResourceMetricStatus.__ne__)NNN)__name__ __module__ __qualname____doc__rpropertyrsetterrr rr%r&r)r*rrrrrs     r)r.pprintrsixrreobjectrrrrr s