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 ExtensionsV1beta1DeploymentList(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[ExtensionsV1beta1Deployment]',
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        ExtensionsV1beta1DeploymentList - 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 ExtensionsV1beta1DeploymentList.
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 ExtensionsV1beta1DeploymentList.
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 ExtensionsV1beta1DeploymentList.
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        ExtensionsV1beta1DeploymentList.
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 ExtensionsV1beta1DeploymentList.
97        Items is the list of Deployments.
98
99        :return: The items of this ExtensionsV1beta1DeploymentList.
100        :rtype: list[ExtensionsV1beta1Deployment]
101        """
102    return self._items
103
104  @items.setter
105  def items(self, items):
106    """
107        Sets the items of this ExtensionsV1beta1DeploymentList.
108        Items is the list of Deployments.
109
110        :param items: The items of this ExtensionsV1beta1DeploymentList.
111        :type: list[ExtensionsV1beta1Deployment]
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 ExtensionsV1beta1DeploymentList.
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 ExtensionsV1beta1DeploymentList.
128        :rtype: str
129        """
130    return self._kind
131
132  @kind.setter
133  def kind(self, kind):
134    """
135        Sets the kind of this ExtensionsV1beta1DeploymentList.
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 ExtensionsV1beta1DeploymentList.
142        :type: str
143        """
144
145    self._kind = kind
146
147  @property
148  def metadata(self):
149    """
150        Gets the metadata of this ExtensionsV1beta1DeploymentList.
151        Standard list metadata.
152
153        :return: The metadata of this ExtensionsV1beta1DeploymentList.
154        :rtype: V1ListMeta
155        """
156    return self._metadata
157
158  @metadata.setter
159  def metadata(self, metadata):
160    """
161        Sets the metadata of this ExtensionsV1beta1DeploymentList.
162        Standard list metadata.
163
164        :param metadata: The metadata of this ExtensionsV1beta1DeploymentList.
165        :type: V1ListMeta
166        """
167
168    self._metadata = metadata
169
170  def to_dict(self):
171    """
172        Returns the model properties as a dict
173        """
174    result = {}
175
176    for attr, _ in iteritems(self.swagger_types):
177      value = getattr(self, attr)
178      if isinstance(value, list):
179        result[attr] = list(
180            map(lambda x: x.to_dict() if hasattr(x, 'to_dict') else x, value))
181      elif hasattr(value, 'to_dict'):
182        result[attr] = value.to_dict()
183      elif isinstance(value, dict):
184        result[attr] = dict(
185            map(
186                lambda item: (item[0], item[1].to_dict())
187                if hasattr(item[1], 'to_dict') else item, value.items()))
188      else:
189        result[attr] = value
190
191    return result
192
193  def to_str(self):
194    """
195        Returns the string representation of the model
196        """
197    return pformat(self.to_dict())
198
199  def __repr__(self):
200    """
201        For `print` and `pprint`
202        """
203    return self.to_str()
204
205  def __eq__(self, other):
206    """
207        Returns true if both objects are equal
208        """
209    if not isinstance(other, ExtensionsV1beta1DeploymentList):
210      return False
211
212    return self.__dict__ == other.__dict__
213
214  def __ne__(self, other):
215    """
216        Returns true if both objects are not equal
217        """
218    return not self == other
219