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 ExtensionsV1beta1Scale(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      'kind': 'str',
33      'metadata': 'V1ObjectMeta',
34      'spec': 'ExtensionsV1beta1ScaleSpec',
35      'status': 'ExtensionsV1beta1ScaleStatus'
36  }
37
38  attribute_map = {
39      'api_version': 'apiVersion',
40      'kind': 'kind',
41      'metadata': 'metadata',
42      'spec': 'spec',
43      'status': 'status'
44  }
45
46  def __init__(self,
47               api_version=None,
48               kind=None,
49               metadata=None,
50               spec=None,
51               status=None):
52    """
53        ExtensionsV1beta1Scale - a model defined in Swagger
54        """
55
56    self._api_version = None
57    self._kind = None
58    self._metadata = None
59    self._spec = None
60    self._status = None
61    self.discriminator = None
62
63    if api_version is not None:
64      self.api_version = api_version
65    if kind is not None:
66      self.kind = kind
67    if metadata is not None:
68      self.metadata = metadata
69    if spec is not None:
70      self.spec = spec
71    if status is not None:
72      self.status = status
73
74  @property
75  def api_version(self):
76    """
77        Gets the api_version of this ExtensionsV1beta1Scale.
78        APIVersion defines the versioned schema of this representation of an
79        object. Servers should convert recognized schemas to the latest internal
80        value, and may reject unrecognized values. More info:
81        https://git.k8s.io/community/contributors/devel/api-conventions.md#resources
82
83        :return: The api_version of this ExtensionsV1beta1Scale.
84        :rtype: str
85        """
86    return self._api_version
87
88  @api_version.setter
89  def api_version(self, api_version):
90    """
91        Sets the api_version of this ExtensionsV1beta1Scale.
92        APIVersion defines the versioned schema of this representation of an
93        object. Servers should convert recognized schemas to the latest internal
94        value, and may reject unrecognized values. More info:
95        https://git.k8s.io/community/contributors/devel/api-conventions.md#resources
96
97        :param api_version: The api_version of this ExtensionsV1beta1Scale.
98        :type: str
99        """
100
101    self._api_version = api_version
102
103  @property
104  def kind(self):
105    """
106        Gets the kind of this ExtensionsV1beta1Scale.
107        Kind is a string value representing the REST resource this object
108        represents. Servers may infer this from the endpoint the client submits
109        requests to. Cannot be updated. In CamelCase. More info:
110        https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
111
112        :return: The kind of this ExtensionsV1beta1Scale.
113        :rtype: str
114        """
115    return self._kind
116
117  @kind.setter
118  def kind(self, kind):
119    """
120        Sets the kind of this ExtensionsV1beta1Scale.
121        Kind is a string value representing the REST resource this object
122        represents. Servers may infer this from the endpoint the client submits
123        requests to. Cannot be updated. In CamelCase. More info:
124        https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
125
126        :param kind: The kind of this ExtensionsV1beta1Scale.
127        :type: str
128        """
129
130    self._kind = kind
131
132  @property
133  def metadata(self):
134    """
135        Gets the metadata of this ExtensionsV1beta1Scale.
136        Standard object metadata; More info:
137        https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
138
139        :return: The metadata of this ExtensionsV1beta1Scale.
140        :rtype: V1ObjectMeta
141        """
142    return self._metadata
143
144  @metadata.setter
145  def metadata(self, metadata):
146    """
147        Sets the metadata of this ExtensionsV1beta1Scale.
148        Standard object metadata; More info:
149        https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
150
151        :param metadata: The metadata of this ExtensionsV1beta1Scale.
152        :type: V1ObjectMeta
153        """
154
155    self._metadata = metadata
156
157  @property
158  def spec(self):
159    """
160        Gets the spec of this ExtensionsV1beta1Scale.
161        defines the behavior of the scale. More info:
162        https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
163
164        :return: The spec of this ExtensionsV1beta1Scale.
165        :rtype: ExtensionsV1beta1ScaleSpec
166        """
167    return self._spec
168
169  @spec.setter
170  def spec(self, spec):
171    """
172        Sets the spec of this ExtensionsV1beta1Scale.
173        defines the behavior of the scale. More info:
174        https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
175
176        :param spec: The spec of this ExtensionsV1beta1Scale.
177        :type: ExtensionsV1beta1ScaleSpec
178        """
179
180    self._spec = spec
181
182  @property
183  def status(self):
184    """
185        Gets the status of this ExtensionsV1beta1Scale.
186        current status of the scale. More info:
187        https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
188        Read-only.
189
190        :return: The status of this ExtensionsV1beta1Scale.
191        :rtype: ExtensionsV1beta1ScaleStatus
192        """
193    return self._status
194
195  @status.setter
196  def status(self, status):
197    """
198        Sets the status of this ExtensionsV1beta1Scale.
199        current status of the scale. More info:
200        https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
201        Read-only.
202
203        :param status: The status of this ExtensionsV1beta1Scale.
204        :type: ExtensionsV1beta1ScaleStatus
205        """
206
207    self._status = status
208
209  def to_dict(self):
210    """
211        Returns the model properties as a dict
212        """
213    result = {}
214
215    for attr, _ in iteritems(self.swagger_types):
216      value = getattr(self, attr)
217      if isinstance(value, list):
218        result[attr] = list(
219            map(lambda x: x.to_dict() if hasattr(x, 'to_dict') else x, value))
220      elif hasattr(value, 'to_dict'):
221        result[attr] = value.to_dict()
222      elif isinstance(value, dict):
223        result[attr] = dict(
224            map(
225                lambda item: (item[0], item[1].to_dict())
226                if hasattr(item[1], 'to_dict') else item, value.items()))
227      else:
228        result[attr] = value
229
230    return result
231
232  def to_str(self):
233    """
234        Returns the string representation of the model
235        """
236    return pformat(self.to_dict())
237
238  def __repr__(self):
239    """
240        For `print` and `pprint`
241        """
242    return self.to_str()
243
244  def __eq__(self, other):
245    """
246        Returns true if both objects are equal
247        """
248    if not isinstance(other, ExtensionsV1beta1Scale):
249      return False
250
251    return self.__dict__ == other.__dict__
252
253  def __ne__(self, other):
254    """
255        Returns true if both objects are not equal
256        """
257    return not self == other
258