3 fYD@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)V2alpha1ObjectMetricSourcezw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCs2dddd|_dddd|_||_||_||_dS)aP V2alpha1ObjectMetricSource - 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. str#V2alpha1CrossVersionObjectReference) metric_nametarget target_valueZ metricNamerZ targetValueN) swagger_types attribute_map _metric_name_target _target_value)selfrrr rg/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v2alpha1_object_metric_source.py__init__s   z#V2alpha1ObjectMetricSource.__init__cCs|jS)z Gets the metric_name of this V2alpha1ObjectMetricSource. metricName is the name of the metric in question. :return: The metric_name of this V2alpha1ObjectMetricSource. :rtype: str )r )rrrrr1s z&V2alpha1ObjectMetricSource.metric_namecCs|dkrtd||_dS)z Sets the metric_name of this V2alpha1ObjectMetricSource. metricName is the name of the metric in question. :param metric_name: The metric_name of this V2alpha1ObjectMetricSource. :type: str Nz3Invalid value for `metric_name`, must not be `None`) ValueErrorr )rrrrrr<s cCs|jS)z Gets the target of this V2alpha1ObjectMetricSource. target is the described Kubernetes object. :return: The target of this V2alpha1ObjectMetricSource. :rtype: V2alpha1CrossVersionObjectReference )r )rrrrrJs z!V2alpha1ObjectMetricSource.targetcCs|dkrtd||_dS)z Sets the target of this V2alpha1ObjectMetricSource. target is the described Kubernetes object. :param target: The target of this V2alpha1ObjectMetricSource. :type: V2alpha1CrossVersionObjectReference Nz.Invalid value for `target`, must not be `None`)rr )rrrrrrUs cCs|jS)z Gets the target_value of this V2alpha1ObjectMetricSource. targetValue is the target value of the metric (as a quantity). :return: The target_value of this V2alpha1ObjectMetricSource. :rtype: str )r)rrrrr cs z'V2alpha1ObjectMetricSource.target_valuecCs|dkrtd||_dS)z Sets the target_value of this V2alpha1ObjectMetricSource. targetValue is the target value of the metric (as a quantity). :param target_value: The target_value of this V2alpha1ObjectMetricSource. :type: str Nz4Invalid value for `target_value`, must not be `None`)rr)rr rrrr ns 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)xrrrsz4V2alpha1ObjectMetricSource.to_dict..rcSs&t|ddr"|d|djfS|S)Nrr)rr)itemrrrrs) rr getattr isinstancelistmaprrdictitems)rresultattr_valuerrrr|s     z"V2alpha1ObjectMetricSource.to_dictcCs t|jS)z@ Returns the string representation of the model )rr)rrrrto_strsz!V2alpha1ObjectMetricSource.to_strcCs|jS)z* For `print` and `pprint` )r$)rrrr__repr__sz#V2alpha1ObjectMetricSource.__repr__cCst|tsdS|j|jkS)z8 Returns true if both objects are equal F)rr__dict__)rotherrrr__eq__s z!V2alpha1ObjectMetricSource.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr'rrr__ne__sz!V2alpha1ObjectMetricSource.__ne__)NNN)__name__ __module__ __qualname____doc__rpropertyrsetterrr rr$r%r(r)rrrrrs     r)r-pprintrsixrreobjectrrrrr s