codekingpro/portable-devtools
114k
1# coding: utf-82 3"""4 Kubernetes5 6 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E5017 8 The version of the OpenAPI document: release-1.359 Generated by: https://openapi-generator.tech10"""11 12 13import pprint14import re # noqa: F40115 16import six17 18from kubernetes.client.configuration import Configuration19 20 21class V1NodeConfigSource(object):22 """NOTE: This class is auto generated by OpenAPI Generator.23 Ref: https://openapi-generator.tech24 25 Do not edit the class manually.26 """27 28 """29 Attributes:30 openapi_types (dict): The key is attribute name31 and the value is attribute type.32 attribute_map (dict): The key is attribute name33 and the value is json key in definition.34 """35 openapi_types = {36 'config_map': 'V1ConfigMapNodeConfigSource'37 }38 39 attribute_map = {40 'config_map': 'configMap'41 }42 43 def __init__(self, config_map=None, local_vars_configuration=None): # noqa: E50144 """V1NodeConfigSource - a model defined in OpenAPI""" # noqa: E50145 if local_vars_configuration is None:46 local_vars_configuration = Configuration()47 self.local_vars_configuration = local_vars_configuration48 49 self._config_map = None50 self.discriminator = None51 52 if config_map is not None:53 self.config_map = config_map54 55 @property56 def config_map(self):57 """Gets the config_map of this V1NodeConfigSource. # noqa: E50158 59 60 :return: The config_map of this V1NodeConfigSource. # noqa: E50161 :rtype: V1ConfigMapNodeConfigSource62 """63 return self._config_map64 65 @config_map.setter66 def config_map(self, config_map):67 """Sets the config_map of this V1NodeConfigSource.68 69 70 :param config_map: The config_map of this V1NodeConfigSource. # noqa: E50171 :type: V1ConfigMapNodeConfigSource72 """73 74 self._config_map = config_map75 76 def to_dict(self):77 """Returns the model properties as a dict"""78 result = {}79 80 for attr, _ in six.iteritems(self.openapi_types):81 value = getattr(self, attr)82 if isinstance(value, list):83 result[attr] = list(map(84 lambda x: x.to_dict() if hasattr(x, "to_dict") else x,85 value86 ))87 elif hasattr(value, "to_dict"):88 result[attr] = value.to_dict()89 elif isinstance(value, dict):90 result[attr] = dict(map(91 lambda item: (item[0], item[1].to_dict())92 if hasattr(item[1], "to_dict") else item,93 value.items()94 ))95 else:96 result[attr] = value97 98 return result99 100 def to_str(self):101 """Returns the string representation of the model"""102 return pprint.pformat(self.to_dict())103 104 def __repr__(self):105 """For `print` and `pprint`"""106 return self.to_str()107 108 def __eq__(self, other):109 """Returns true if both objects are equal"""110 if not isinstance(other, V1NodeConfigSource):111 return False112 113 return self.to_dict() == other.to_dict()114 115 def __ne__(self, other):116 """Returns true if both objects are not equal"""117 if not isinstance(other, V1NodeConfigSource):118 return True119 120 return self.to_dict() != other.to_dict()121 