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 V2alpha1CronJobList(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[V2alpha1CronJob]',
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        V2alpha1CronJobList - 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 V2alpha1CronJobList.
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 V2alpha1CronJobList.
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 V2alpha1CronJobList.
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 V2alpha1CronJobList.
87        :type: str
88        """
89
90    self._api_version = api_version
91
92  @property
93  def items(self):
94    """
95        Gets the items of this V2alpha1CronJobList.
96        items is the list of CronJobs.
97
98        :return: The items of this V2alpha1CronJobList.
99        :rtype: list[V2alpha1CronJob]
100        """
101    return self._items
102
103  @items.setter
104  def items(self, items):
105    """
106        Sets the items of this V2alpha1CronJobList.
107        items is the list of CronJobs.
108
109        :param items: The items of this V2alpha1CronJobList.
110        :type: list[V2alpha1CronJob]
111        """
112    if items is None:
113      raise ValueError('Invalid value for `items`, must not be `None`')
114
115    self._items = items
116
117  @property
118  def kind(self):
119    """
120        Gets the kind of this V2alpha1CronJobList.
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        :return: The kind of this V2alpha1CronJobList.
127        :rtype: str
128        """
129    return self._kind
130
131  @kind.setter
132  def kind(self, kind):
133    """
134        Sets the kind of this V2alpha1CronJobList.
135        Kind is a string value representing the REST resource this object
136        represents. Servers may infer this from the endpoint the client submits
137        requests to. Cannot be updated. In CamelCase. More info:
138        https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
139
140        :param kind: The kind of this V2alpha1CronJobList.
141        :type: str
142        """
143
144    self._kind = kind
145
146  @property
147  def metadata(self):
148    """
149        Gets the metadata of this V2alpha1CronJobList.
150        Standard list metadata. More info:
151        https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
152
153        :return: The metadata of this V2alpha1CronJobList.
154        :rtype: V1ListMeta
155        """
156    return self._metadata
157
158  @metadata.setter
159  def metadata(self, metadata):
160    """
161        Sets the metadata of this V2alpha1CronJobList.
162        Standard list metadata. More info:
163        https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
164
165        :param metadata: The metadata of this V2alpha1CronJobList.
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, V2alpha1CronJobList):
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