1# coding: utf-8 2""" 3 Kubernetes 4 5 No description provided (generated by Swagger Codegen 6 https://github.com/swagger-api/swagger-codegen) 7 8 OpenAPI spec version: v1.14.4 9 10 Generated by: https://github.com/swagger-api/swagger-codegen.git 11""" 12 13from pprint import pformat 14from six import iteritems 15import re 16 17 18class V2beta1HorizontalPodAutoscalerList(object): 19 """ 20 NOTE: This class is auto generated by the swagger code generator program. 21 Do not edit the class manually. 22 """ 23 """ 24 Attributes: 25 swagger_types (dict): The key is attribute name and the value is attribute 26 type. 27 attribute_map (dict): The key is attribute name and the value is json key 28 in definition. 29 """ 30 swagger_types = { 31 'api_version': 'str', 32 'items': 'list[V2beta1HorizontalPodAutoscaler]', 33 'kind': 'str', 34 'metadata': 'V1ListMeta' 35 } 36 37 attribute_map = { 38 'api_version': 'apiVersion', 39 'items': 'items', 40 'kind': 'kind', 41 'metadata': 'metadata' 42 } 43 44 def __init__(self, api_version=None, items=None, kind=None, metadata=None): 45 """ 46 V2beta1HorizontalPodAutoscalerList - a model defined in Swagger 47 """ 48 49 self._api_version = None 50 self._items = None 51 self._kind = None 52 self._metadata = None 53 self.discriminator = None 54 55 if api_version is not None: 56 self.api_version = api_version 57 self.items = items 58 if kind is not None: 59 self.kind = kind 60 if metadata is not None: 61 self.metadata = metadata 62 63 @property 64 def api_version(self): 65 """ 66 Gets the api_version of this V2beta1HorizontalPodAutoscalerList. 67 APIVersion defines the versioned schema of this representation of an 68 object. Servers should convert recognized schemas to the latest internal 69 value, and may reject unrecognized values. More info: 70 https://git.k8s.io/community/contributors/devel/api-conventions.md#resources 71 72 :return: The api_version of this V2beta1HorizontalPodAutoscalerList. 73 :rtype: str 74 """ 75 return self._api_version 76 77 @api_version.setter 78 def api_version(self, api_version): 79 """ 80 Sets the api_version of this V2beta1HorizontalPodAutoscalerList. 81 APIVersion defines the versioned schema of this representation of an 82 object. Servers should convert recognized schemas to the latest internal 83 value, and may reject unrecognized values. More info: 84 https://git.k8s.io/community/contributors/devel/api-conventions.md#resources 85 86 :param api_version: The api_version of this 87 V2beta1HorizontalPodAutoscalerList. 88 :type: str 89 """ 90 91 self._api_version = api_version 92 93 @property 94 def items(self): 95 """ 96 Gets the items of this V2beta1HorizontalPodAutoscalerList. 97 items is the list of horizontal pod autoscaler objects. 98 99 :return: The items of this V2beta1HorizontalPodAutoscalerList. 100 :rtype: list[V2beta1HorizontalPodAutoscaler] 101 """ 102 return self._items 103 104 @items.setter 105 def items(self, items): 106 """ 107 Sets the items of this V2beta1HorizontalPodAutoscalerList. 108 items is the list of horizontal pod autoscaler objects. 109 110 :param items: The items of this V2beta1HorizontalPodAutoscalerList. 111 :type: list[V2beta1HorizontalPodAutoscaler] 112 """ 113 if items is None: 114 raise ValueError('Invalid value for `items`, must not be `None`') 115 116 self._items = items 117 118 @property 119 def kind(self): 120 """ 121 Gets the kind of this V2beta1HorizontalPodAutoscalerList. 122 Kind is a string value representing the REST resource this object 123 represents. Servers may infer this from the endpoint the client submits 124 requests to. Cannot be updated. In CamelCase. More info: 125 https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds 126 127 :return: The kind of this V2beta1HorizontalPodAutoscalerList. 128 :rtype: str 129 """ 130 return self._kind 131 132 @kind.setter 133 def kind(self, kind): 134 """ 135 Sets the kind of this V2beta1HorizontalPodAutoscalerList. 136 Kind is a string value representing the REST resource this object 137 represents. Servers may infer this from the endpoint the client submits 138 requests to. Cannot be updated. In CamelCase. More info: 139 https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds 140 141 :param kind: The kind of this V2beta1HorizontalPodAutoscalerList. 142 :type: str 143 """ 144 145 self._kind = kind 146 147 @property 148 def metadata(self): 149 """ 150 Gets the metadata of this V2beta1HorizontalPodAutoscalerList. 151 metadata is the standard list metadata. 152 153 :return: The metadata of this V2beta1HorizontalPodAutoscalerList. 154 :rtype: V1ListMeta 155 """ 156 return self._metadata 157 158 @metadata.setter 159 def metadata(self, metadata): 160 """ 161 Sets the metadata of this V2beta1HorizontalPodAutoscalerList. 162 metadata is the standard list metadata. 163 164 :param metadata: The metadata of this 165 V2beta1HorizontalPodAutoscalerList. 166 :type: V1ListMeta 167 """ 168 169 self._metadata = metadata 170 171 def to_dict(self): 172 """ 173 Returns the model properties as a dict 174 """ 175 result = {} 176 177 for attr, _ in iteritems(self.swagger_types): 178 value = getattr(self, attr) 179 if isinstance(value, list): 180 result[attr] = list( 181 map(lambda x: x.to_dict() if hasattr(x, 'to_dict') else x, value)) 182 elif hasattr(value, 'to_dict'): 183 result[attr] = value.to_dict() 184 elif isinstance(value, dict): 185 result[attr] = dict( 186 map( 187 lambda item: (item[0], item[1].to_dict()) 188 if hasattr(item[1], 'to_dict') else item, value.items())) 189 else: 190 result[attr] = value 191 192 return result 193 194 def to_str(self): 195 """ 196 Returns the string representation of the model 197 """ 198 return pformat(self.to_dict()) 199 200 def __repr__(self): 201 """ 202 For `print` and `pprint` 203 """ 204 return self.to_str() 205 206 def __eq__(self, other): 207 """ 208 Returns true if both objects are equal 209 """ 210 if not isinstance(other, V2beta1HorizontalPodAutoscalerList): 211 return False 212 213 return self.__dict__ == other.__dict__ 214 215 def __ne__(self, other): 216 """ 217 Returns true if both objects are not equal 218 """ 219 return not self == other 220