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 V1beta1ReplicaSet(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': 'V1beta1ReplicaSetSpec',
35      'status': 'V1beta1ReplicaSetStatus'
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        V1beta1ReplicaSet - 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 V1beta1ReplicaSet.
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 V1beta1ReplicaSet.
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 V1beta1ReplicaSet.
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 V1beta1ReplicaSet.
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 V1beta1ReplicaSet.
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 V1beta1ReplicaSet.
113        :rtype: str
114        """
115    return self._kind
116
117  @kind.setter
118  def kind(self, kind):
119    """
120        Sets the kind of this V1beta1ReplicaSet.
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 V1beta1ReplicaSet.
127        :type: str
128        """
129
130    self._kind = kind
131
132  @property
133  def metadata(self):
134    """
135        Gets the metadata of this V1beta1ReplicaSet.
136        If the Labels of a ReplicaSet are empty, they are defaulted to be the
137        same as the Pod(s) that the ReplicaSet manages. Standard object's
138        metadata. More info:
139        https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
140
141        :return: The metadata of this V1beta1ReplicaSet.
142        :rtype: V1ObjectMeta
143        """
144    return self._metadata
145
146  @metadata.setter
147  def metadata(self, metadata):
148    """
149        Sets the metadata of this V1beta1ReplicaSet.
150        If the Labels of a ReplicaSet are empty, they are defaulted to be the
151        same as the Pod(s) that the ReplicaSet manages. Standard object's
152        metadata. More info:
153        https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
154
155        :param metadata: The metadata of this V1beta1ReplicaSet.
156        :type: V1ObjectMeta
157        """
158
159    self._metadata = metadata
160
161  @property
162  def spec(self):
163    """
164        Gets the spec of this V1beta1ReplicaSet.
165        Spec defines the specification of the desired behavior of the
166        ReplicaSet. More info:
167        https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
168
169        :return: The spec of this V1beta1ReplicaSet.
170        :rtype: V1beta1ReplicaSetSpec
171        """
172    return self._spec
173
174  @spec.setter
175  def spec(self, spec):
176    """
177        Sets the spec of this V1beta1ReplicaSet.
178        Spec defines the specification of the desired behavior of the
179        ReplicaSet. More info:
180        https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
181
182        :param spec: The spec of this V1beta1ReplicaSet.
183        :type: V1beta1ReplicaSetSpec
184        """
185
186    self._spec = spec
187
188  @property
189  def status(self):
190    """
191        Gets the status of this V1beta1ReplicaSet.
192        Status is the most recently observed status of the ReplicaSet. This data
193        may be out of date by some window of time. Populated by the system.
194        Read-only. More info:
195        https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
196
197        :return: The status of this V1beta1ReplicaSet.
198        :rtype: V1beta1ReplicaSetStatus
199        """
200    return self._status
201
202  @status.setter
203  def status(self, status):
204    """
205        Sets the status of this V1beta1ReplicaSet.
206        Status is the most recently observed status of the ReplicaSet. This data
207        may be out of date by some window of time. Populated by the system.
208        Read-only. More info:
209        https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
210
211        :param status: The status of this V1beta1ReplicaSet.
212        :type: V1beta1ReplicaSetStatus
213        """
214
215    self._status = status
216
217  def to_dict(self):
218    """
219        Returns the model properties as a dict
220        """
221    result = {}
222
223    for attr, _ in iteritems(self.swagger_types):
224      value = getattr(self, attr)
225      if isinstance(value, list):
226        result[attr] = list(
227            map(lambda x: x.to_dict() if hasattr(x, 'to_dict') else x, value))
228      elif hasattr(value, 'to_dict'):
229        result[attr] = value.to_dict()
230      elif isinstance(value, dict):
231        result[attr] = dict(
232            map(
233                lambda item: (item[0], item[1].to_dict())
234                if hasattr(item[1], 'to_dict') else item, value.items()))
235      else:
236        result[attr] = value
237
238    return result
239
240  def to_str(self):
241    """
242        Returns the string representation of the model
243        """
244    return pformat(self.to_dict())
245
246  def __repr__(self):
247    """
248        For `print` and `pprint`
249        """
250    return self.to_str()
251
252  def __eq__(self, other):
253    """
254        Returns true if both objects are equal
255        """
256    if not isinstance(other, V1beta1ReplicaSet):
257      return False
258
259    return self.__dict__ == other.__dict__
260
261  def __ne__(self, other):
262    """
263        Returns true if both objects are not equal
264        """
265    return not self == other
266