anyscale 0.26.57__py3-none-any.whl → 0.26.59__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. anyscale/_private/anyscale_client/common.py +1 -1
  2. anyscale/client/README.md +60 -0
  3. anyscale/client/openapi_client/__init__.py +42 -0
  4. anyscale/client/openapi_client/api/default_api.py +2541 -303
  5. anyscale/client/openapi_client/models/__init__.py +42 -0
  6. anyscale/client/openapi_client/models/apply_production_service_v2_model.py +31 -3
  7. anyscale/client/openapi_client/models/baseimagesenum.py +76 -1
  8. anyscale/client/openapi_client/models/create_experimental_workspace.py +29 -1
  9. anyscale/client/openapi_client/models/create_internal_production_job.py +31 -3
  10. anyscale/client/openapi_client/models/create_job_queue_requests.py +31 -3
  11. anyscale/client/openapi_client/models/create_workspace_template.py +404 -0
  12. anyscale/client/openapi_client/models/create_workspace_template_version.py +178 -0
  13. anyscale/client/openapi_client/models/delete_resource_tags_request.py +175 -0
  14. anyscale/client/openapi_client/models/deleted_count.py +121 -0
  15. anyscale/client/openapi_client/models/deletedcount_response.py +121 -0
  16. anyscale/client/openapi_client/models/email_verification_request.py +175 -0
  17. anyscale/client/openapi_client/models/email_verification_response.py +120 -0
  18. anyscale/client/openapi_client/models/emailverificationresponse_response.py +121 -0
  19. anyscale/client/openapi_client/models/global_workspace_template.py +465 -0
  20. anyscale/client/openapi_client/models/globalworkspacetemplate_list_response.py +147 -0
  21. anyscale/client/openapi_client/models/job_queues_query.py +31 -3
  22. anyscale/client/openapi_client/models/operator_event.py +256 -0
  23. anyscale/client/openapi_client/models/operator_event_response.py +148 -0
  24. anyscale/client/openapi_client/models/operator_event_type.py +101 -0
  25. anyscale/client/openapi_client/models/published_filter.py +101 -0
  26. anyscale/client/openapi_client/models/resource_tag_record.py +310 -0
  27. anyscale/client/openapi_client/models/resource_tag_resource_type.py +102 -0
  28. anyscale/client/openapi_client/models/resource_tags_list.py +121 -0
  29. anyscale/client/openapi_client/models/resourcetagslist_response.py +121 -0
  30. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +76 -1
  31. anyscale/client/openapi_client/models/tag_key.py +121 -0
  32. anyscale/client/openapi_client/models/tag_key_value.py +148 -0
  33. anyscale/client/openapi_client/models/tag_search_in.py +101 -0
  34. anyscale/client/openapi_client/models/tag_value.py +121 -0
  35. anyscale/client/openapi_client/models/tagkey_list_response.py +147 -0
  36. anyscale/client/openapi_client/models/tagkeyvalue_list_response.py +147 -0
  37. anyscale/client/openapi_client/models/tagvalue_list_response.py +147 -0
  38. anyscale/client/openapi_client/models/task_attempts.py +101 -0
  39. anyscale/client/openapi_client/models/task_table_config.py +29 -3
  40. anyscale/client/openapi_client/models/update_job_queue_request.py +31 -3
  41. anyscale/client/openapi_client/models/upsert_resource_tags_request.py +175 -0
  42. anyscale/client/openapi_client/models/use_work_os_response.py +121 -0
  43. anyscale/client/openapi_client/models/useworkosresponse_response.py +121 -0
  44. anyscale/client/openapi_client/models/work_os_authorize_url_response.py +120 -0
  45. anyscale/client/openapi_client/models/workosauthorizeurlresponse_response.py +121 -0
  46. anyscale/client/openapi_client/models/workspace_system_artifacts.py +234 -0
  47. anyscale/client/openapi_client/models/workspace_template.py +343 -204
  48. anyscale/client/openapi_client/models/workspace_template_category.py +100 -0
  49. anyscale/client/openapi_client/models/workspace_template_complexity.py +101 -0
  50. anyscale/client/openapi_client/models/workspace_template_icon_background_color.py +105 -0
  51. anyscale/client/openapi_client/models/workspace_template_icon_type.py +108 -0
  52. anyscale/client/openapi_client/models/workspace_template_version.py +323 -0
  53. anyscale/client/openapi_client/models/workspace_template_version_data_object.py +323 -0
  54. anyscale/client/openapi_client/models/workspace_templates_sort_field.py +101 -0
  55. anyscale/client/openapi_client/models/workspacetemplate_response.py +121 -0
  56. anyscale/client/openapi_client/models/workspacetemplateversion_list_response.py +147 -0
  57. anyscale/client/openapi_client/models/workspacetemplateversion_response.py +121 -0
  58. anyscale/commands/cloud_commands.py +15 -3
  59. anyscale/commands/command_examples.py +2 -2
  60. anyscale/controllers/cloud_controller.py +7 -3
  61. anyscale/sdk/anyscale_client/models/apply_production_service_v2_model.py +31 -3
  62. anyscale/sdk/anyscale_client/models/apply_service_model.py +31 -3
  63. anyscale/sdk/anyscale_client/models/baseimagesenum.py +76 -1
  64. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +76 -1
  65. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  66. anyscale/shared_anyscale_utils/utils/id_gen.py +3 -0
  67. anyscale/version.py +1 -1
  68. {anyscale-0.26.57.dist-info → anyscale-0.26.59.dist-info}/METADATA +1 -1
  69. {anyscale-0.26.57.dist-info → anyscale-0.26.59.dist-info}/RECORD +74 -32
  70. {anyscale-0.26.57.dist-info → anyscale-0.26.59.dist-info}/WHEEL +0 -0
  71. {anyscale-0.26.57.dist-info → anyscale-0.26.59.dist-info}/entry_points.txt +0 -0
  72. {anyscale-0.26.57.dist-info → anyscale-0.26.59.dist-info}/licenses/LICENSE +0 -0
  73. {anyscale-0.26.57.dist-info → anyscale-0.26.59.dist-info}/licenses/NOTICE +0 -0
  74. {anyscale-0.26.57.dist-info → anyscale-0.26.59.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,310 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Managed Ray API
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: 0.1.0
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ import pprint
14
+ import re # noqa: F401
15
+
16
+ import six
17
+
18
+ from openapi_client.configuration import Configuration
19
+
20
+
21
+ class ResourceTagRecord(object):
22
+ """NOTE: This class is auto generated by OpenAPI Generator.
23
+ Ref: https://openapi-generator.tech
24
+
25
+ Do not edit the class manually.
26
+ """
27
+
28
+ """
29
+ Attributes:
30
+ openapi_types (dict): The key is attribute name
31
+ and the value is attribute type.
32
+ attribute_map (dict): The key is attribute name
33
+ and the value is json key in definition.
34
+ """
35
+ openapi_types = {
36
+ 'id': 'str',
37
+ 'organization_id': 'str',
38
+ 'resource_type': 'ResourceTagResourceType',
39
+ 'resource_id': 'str',
40
+ 'key': 'str',
41
+ 'value': 'str',
42
+ 'created_at': 'datetime',
43
+ 'updated_at': 'datetime'
44
+ }
45
+
46
+ attribute_map = {
47
+ 'id': 'id',
48
+ 'organization_id': 'organization_id',
49
+ 'resource_type': 'resource_type',
50
+ 'resource_id': 'resource_id',
51
+ 'key': 'key',
52
+ 'value': 'value',
53
+ 'created_at': 'created_at',
54
+ 'updated_at': 'updated_at'
55
+ }
56
+
57
+ def __init__(self, id=None, organization_id=None, resource_type=None, resource_id=None, key=None, value=None, created_at=None, updated_at=None, local_vars_configuration=None): # noqa: E501
58
+ """ResourceTagRecord - a model defined in OpenAPI""" # noqa: E501
59
+ if local_vars_configuration is None:
60
+ local_vars_configuration = Configuration()
61
+ self.local_vars_configuration = local_vars_configuration
62
+
63
+ self._id = None
64
+ self._organization_id = None
65
+ self._resource_type = None
66
+ self._resource_id = None
67
+ self._key = None
68
+ self._value = None
69
+ self._created_at = None
70
+ self._updated_at = None
71
+ self.discriminator = None
72
+
73
+ self.id = id
74
+ self.organization_id = organization_id
75
+ self.resource_type = resource_type
76
+ self.resource_id = resource_id
77
+ self.key = key
78
+ self.value = value
79
+ self.created_at = created_at
80
+ self.updated_at = updated_at
81
+
82
+ @property
83
+ def id(self):
84
+ """Gets the id of this ResourceTagRecord. # noqa: E501
85
+
86
+
87
+ :return: The id of this ResourceTagRecord. # noqa: E501
88
+ :rtype: str
89
+ """
90
+ return self._id
91
+
92
+ @id.setter
93
+ def id(self, id):
94
+ """Sets the id of this ResourceTagRecord.
95
+
96
+
97
+ :param id: The id of this ResourceTagRecord. # noqa: E501
98
+ :type: str
99
+ """
100
+ if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
101
+ raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
102
+
103
+ self._id = id
104
+
105
+ @property
106
+ def organization_id(self):
107
+ """Gets the organization_id of this ResourceTagRecord. # noqa: E501
108
+
109
+
110
+ :return: The organization_id of this ResourceTagRecord. # noqa: E501
111
+ :rtype: str
112
+ """
113
+ return self._organization_id
114
+
115
+ @organization_id.setter
116
+ def organization_id(self, organization_id):
117
+ """Sets the organization_id of this ResourceTagRecord.
118
+
119
+
120
+ :param organization_id: The organization_id of this ResourceTagRecord. # noqa: E501
121
+ :type: str
122
+ """
123
+ if self.local_vars_configuration.client_side_validation and organization_id is None: # noqa: E501
124
+ raise ValueError("Invalid value for `organization_id`, must not be `None`") # noqa: E501
125
+
126
+ self._organization_id = organization_id
127
+
128
+ @property
129
+ def resource_type(self):
130
+ """Gets the resource_type of this ResourceTagRecord. # noqa: E501
131
+
132
+
133
+ :return: The resource_type of this ResourceTagRecord. # noqa: E501
134
+ :rtype: ResourceTagResourceType
135
+ """
136
+ return self._resource_type
137
+
138
+ @resource_type.setter
139
+ def resource_type(self, resource_type):
140
+ """Sets the resource_type of this ResourceTagRecord.
141
+
142
+
143
+ :param resource_type: The resource_type of this ResourceTagRecord. # noqa: E501
144
+ :type: ResourceTagResourceType
145
+ """
146
+ if self.local_vars_configuration.client_side_validation and resource_type is None: # noqa: E501
147
+ raise ValueError("Invalid value for `resource_type`, must not be `None`") # noqa: E501
148
+
149
+ self._resource_type = resource_type
150
+
151
+ @property
152
+ def resource_id(self):
153
+ """Gets the resource_id of this ResourceTagRecord. # noqa: E501
154
+
155
+
156
+ :return: The resource_id of this ResourceTagRecord. # noqa: E501
157
+ :rtype: str
158
+ """
159
+ return self._resource_id
160
+
161
+ @resource_id.setter
162
+ def resource_id(self, resource_id):
163
+ """Sets the resource_id of this ResourceTagRecord.
164
+
165
+
166
+ :param resource_id: The resource_id of this ResourceTagRecord. # noqa: E501
167
+ :type: str
168
+ """
169
+ if self.local_vars_configuration.client_side_validation and resource_id is None: # noqa: E501
170
+ raise ValueError("Invalid value for `resource_id`, must not be `None`") # noqa: E501
171
+
172
+ self._resource_id = resource_id
173
+
174
+ @property
175
+ def key(self):
176
+ """Gets the key of this ResourceTagRecord. # noqa: E501
177
+
178
+
179
+ :return: The key of this ResourceTagRecord. # noqa: E501
180
+ :rtype: str
181
+ """
182
+ return self._key
183
+
184
+ @key.setter
185
+ def key(self, key):
186
+ """Sets the key of this ResourceTagRecord.
187
+
188
+
189
+ :param key: The key of this ResourceTagRecord. # noqa: E501
190
+ :type: str
191
+ """
192
+ if self.local_vars_configuration.client_side_validation and key is None: # noqa: E501
193
+ raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501
194
+
195
+ self._key = key
196
+
197
+ @property
198
+ def value(self):
199
+ """Gets the value of this ResourceTagRecord. # noqa: E501
200
+
201
+
202
+ :return: The value of this ResourceTagRecord. # noqa: E501
203
+ :rtype: str
204
+ """
205
+ return self._value
206
+
207
+ @value.setter
208
+ def value(self, value):
209
+ """Sets the value of this ResourceTagRecord.
210
+
211
+
212
+ :param value: The value of this ResourceTagRecord. # noqa: E501
213
+ :type: str
214
+ """
215
+ if self.local_vars_configuration.client_side_validation and value is None: # noqa: E501
216
+ raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501
217
+
218
+ self._value = value
219
+
220
+ @property
221
+ def created_at(self):
222
+ """Gets the created_at of this ResourceTagRecord. # noqa: E501
223
+
224
+
225
+ :return: The created_at of this ResourceTagRecord. # noqa: E501
226
+ :rtype: datetime
227
+ """
228
+ return self._created_at
229
+
230
+ @created_at.setter
231
+ def created_at(self, created_at):
232
+ """Sets the created_at of this ResourceTagRecord.
233
+
234
+
235
+ :param created_at: The created_at of this ResourceTagRecord. # noqa: E501
236
+ :type: datetime
237
+ """
238
+ if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501
239
+ raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501
240
+
241
+ self._created_at = created_at
242
+
243
+ @property
244
+ def updated_at(self):
245
+ """Gets the updated_at of this ResourceTagRecord. # noqa: E501
246
+
247
+
248
+ :return: The updated_at of this ResourceTagRecord. # noqa: E501
249
+ :rtype: datetime
250
+ """
251
+ return self._updated_at
252
+
253
+ @updated_at.setter
254
+ def updated_at(self, updated_at):
255
+ """Sets the updated_at of this ResourceTagRecord.
256
+
257
+
258
+ :param updated_at: The updated_at of this ResourceTagRecord. # noqa: E501
259
+ :type: datetime
260
+ """
261
+ if self.local_vars_configuration.client_side_validation and updated_at is None: # noqa: E501
262
+ raise ValueError("Invalid value for `updated_at`, must not be `None`") # noqa: E501
263
+
264
+ self._updated_at = updated_at
265
+
266
+ def to_dict(self):
267
+ """Returns the model properties as a dict"""
268
+ result = {}
269
+
270
+ for attr, _ in six.iteritems(self.openapi_types):
271
+ value = getattr(self, attr)
272
+ if isinstance(value, list):
273
+ result[attr] = list(map(
274
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
275
+ value
276
+ ))
277
+ elif hasattr(value, "to_dict"):
278
+ result[attr] = value.to_dict()
279
+ elif isinstance(value, dict):
280
+ result[attr] = dict(map(
281
+ lambda item: (item[0], item[1].to_dict())
282
+ if hasattr(item[1], "to_dict") else item,
283
+ value.items()
284
+ ))
285
+ else:
286
+ result[attr] = value
287
+
288
+ return result
289
+
290
+ def to_str(self):
291
+ """Returns the string representation of the model"""
292
+ return pprint.pformat(self.to_dict())
293
+
294
+ def __repr__(self):
295
+ """For `print` and `pprint`"""
296
+ return self.to_str()
297
+
298
+ def __eq__(self, other):
299
+ """Returns true if both objects are equal"""
300
+ if not isinstance(other, ResourceTagRecord):
301
+ return False
302
+
303
+ return self.to_dict() == other.to_dict()
304
+
305
+ def __ne__(self, other):
306
+ """Returns true if both objects are not equal"""
307
+ if not isinstance(other, ResourceTagRecord):
308
+ return True
309
+
310
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,102 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Managed Ray API
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: 0.1.0
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ import pprint
14
+ import re # noqa: F401
15
+
16
+ import six
17
+
18
+ from openapi_client.configuration import Configuration
19
+
20
+
21
+ class ResourceTagResourceType(object):
22
+ """NOTE: This class is auto generated by OpenAPI Generator.
23
+ Ref: https://openapi-generator.tech
24
+
25
+ Do not edit the class manually.
26
+ """
27
+
28
+ """
29
+ allowed enum values
30
+ """
31
+ SERVICE = "service"
32
+ JOB = "job"
33
+ JOB_QUEUE = "job_queue"
34
+ WORKSPACE = "workspace"
35
+
36
+ allowable_values = [SERVICE, JOB, JOB_QUEUE, WORKSPACE] # noqa: E501
37
+
38
+ """
39
+ Attributes:
40
+ openapi_types (dict): The key is attribute name
41
+ and the value is attribute type.
42
+ attribute_map (dict): The key is attribute name
43
+ and the value is json key in definition.
44
+ """
45
+ openapi_types = {
46
+ }
47
+
48
+ attribute_map = {
49
+ }
50
+
51
+ def __init__(self, local_vars_configuration=None): # noqa: E501
52
+ """ResourceTagResourceType - a model defined in OpenAPI""" # noqa: E501
53
+ if local_vars_configuration is None:
54
+ local_vars_configuration = Configuration()
55
+ self.local_vars_configuration = local_vars_configuration
56
+ self.discriminator = None
57
+
58
+ def to_dict(self):
59
+ """Returns the model properties as a dict"""
60
+ result = {}
61
+
62
+ for attr, _ in six.iteritems(self.openapi_types):
63
+ value = getattr(self, attr)
64
+ if isinstance(value, list):
65
+ result[attr] = list(map(
66
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
67
+ value
68
+ ))
69
+ elif hasattr(value, "to_dict"):
70
+ result[attr] = value.to_dict()
71
+ elif isinstance(value, dict):
72
+ result[attr] = dict(map(
73
+ lambda item: (item[0], item[1].to_dict())
74
+ if hasattr(item[1], "to_dict") else item,
75
+ value.items()
76
+ ))
77
+ else:
78
+ result[attr] = value
79
+
80
+ return result
81
+
82
+ def to_str(self):
83
+ """Returns the string representation of the model"""
84
+ return pprint.pformat(self.to_dict())
85
+
86
+ def __repr__(self):
87
+ """For `print` and `pprint`"""
88
+ return self.to_str()
89
+
90
+ def __eq__(self, other):
91
+ """Returns true if both objects are equal"""
92
+ if not isinstance(other, ResourceTagResourceType):
93
+ return False
94
+
95
+ return self.to_dict() == other.to_dict()
96
+
97
+ def __ne__(self, other):
98
+ """Returns true if both objects are not equal"""
99
+ if not isinstance(other, ResourceTagResourceType):
100
+ return True
101
+
102
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,121 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Managed Ray API
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: 0.1.0
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ import pprint
14
+ import re # noqa: F401
15
+
16
+ import six
17
+
18
+ from openapi_client.configuration import Configuration
19
+
20
+
21
+ class ResourceTagsList(object):
22
+ """NOTE: This class is auto generated by OpenAPI Generator.
23
+ Ref: https://openapi-generator.tech
24
+
25
+ Do not edit the class manually.
26
+ """
27
+
28
+ """
29
+ Attributes:
30
+ openapi_types (dict): The key is attribute name
31
+ and the value is attribute type.
32
+ attribute_map (dict): The key is attribute name
33
+ and the value is json key in definition.
34
+ """
35
+ openapi_types = {
36
+ 'tags': 'list[ResourceTagRecord]'
37
+ }
38
+
39
+ attribute_map = {
40
+ 'tags': 'tags'
41
+ }
42
+
43
+ def __init__(self, tags=None, local_vars_configuration=None): # noqa: E501
44
+ """ResourceTagsList - a model defined in OpenAPI""" # noqa: E501
45
+ if local_vars_configuration is None:
46
+ local_vars_configuration = Configuration()
47
+ self.local_vars_configuration = local_vars_configuration
48
+
49
+ self._tags = None
50
+ self.discriminator = None
51
+
52
+ self.tags = tags
53
+
54
+ @property
55
+ def tags(self):
56
+ """Gets the tags of this ResourceTagsList. # noqa: E501
57
+
58
+
59
+ :return: The tags of this ResourceTagsList. # noqa: E501
60
+ :rtype: list[ResourceTagRecord]
61
+ """
62
+ return self._tags
63
+
64
+ @tags.setter
65
+ def tags(self, tags):
66
+ """Sets the tags of this ResourceTagsList.
67
+
68
+
69
+ :param tags: The tags of this ResourceTagsList. # noqa: E501
70
+ :type: list[ResourceTagRecord]
71
+ """
72
+ if self.local_vars_configuration.client_side_validation and tags is None: # noqa: E501
73
+ raise ValueError("Invalid value for `tags`, must not be `None`") # noqa: E501
74
+
75
+ self._tags = tags
76
+
77
+ def to_dict(self):
78
+ """Returns the model properties as a dict"""
79
+ result = {}
80
+
81
+ for attr, _ in six.iteritems(self.openapi_types):
82
+ value = getattr(self, attr)
83
+ if isinstance(value, list):
84
+ result[attr] = list(map(
85
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
86
+ value
87
+ ))
88
+ elif hasattr(value, "to_dict"):
89
+ result[attr] = value.to_dict()
90
+ elif isinstance(value, dict):
91
+ result[attr] = dict(map(
92
+ lambda item: (item[0], item[1].to_dict())
93
+ if hasattr(item[1], "to_dict") else item,
94
+ value.items()
95
+ ))
96
+ else:
97
+ result[attr] = value
98
+
99
+ return result
100
+
101
+ def to_str(self):
102
+ """Returns the string representation of the model"""
103
+ return pprint.pformat(self.to_dict())
104
+
105
+ def __repr__(self):
106
+ """For `print` and `pprint`"""
107
+ return self.to_str()
108
+
109
+ def __eq__(self, other):
110
+ """Returns true if both objects are equal"""
111
+ if not isinstance(other, ResourceTagsList):
112
+ return False
113
+
114
+ return self.to_dict() == other.to_dict()
115
+
116
+ def __ne__(self, other):
117
+ """Returns true if both objects are not equal"""
118
+ if not isinstance(other, ResourceTagsList):
119
+ return True
120
+
121
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,121 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Managed Ray API
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: 0.1.0
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ import pprint
14
+ import re # noqa: F401
15
+
16
+ import six
17
+
18
+ from openapi_client.configuration import Configuration
19
+
20
+
21
+ class ResourcetagslistResponse(object):
22
+ """NOTE: This class is auto generated by OpenAPI Generator.
23
+ Ref: https://openapi-generator.tech
24
+
25
+ Do not edit the class manually.
26
+ """
27
+
28
+ """
29
+ Attributes:
30
+ openapi_types (dict): The key is attribute name
31
+ and the value is attribute type.
32
+ attribute_map (dict): The key is attribute name
33
+ and the value is json key in definition.
34
+ """
35
+ openapi_types = {
36
+ 'result': 'ResourceTagsList'
37
+ }
38
+
39
+ attribute_map = {
40
+ 'result': 'result'
41
+ }
42
+
43
+ def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
44
+ """ResourcetagslistResponse - a model defined in OpenAPI""" # noqa: E501
45
+ if local_vars_configuration is None:
46
+ local_vars_configuration = Configuration()
47
+ self.local_vars_configuration = local_vars_configuration
48
+
49
+ self._result = None
50
+ self.discriminator = None
51
+
52
+ self.result = result
53
+
54
+ @property
55
+ def result(self):
56
+ """Gets the result of this ResourcetagslistResponse. # noqa: E501
57
+
58
+
59
+ :return: The result of this ResourcetagslistResponse. # noqa: E501
60
+ :rtype: ResourceTagsList
61
+ """
62
+ return self._result
63
+
64
+ @result.setter
65
+ def result(self, result):
66
+ """Sets the result of this ResourcetagslistResponse.
67
+
68
+
69
+ :param result: The result of this ResourcetagslistResponse. # noqa: E501
70
+ :type: ResourceTagsList
71
+ """
72
+ if self.local_vars_configuration.client_side_validation and result is None: # noqa: E501
73
+ raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501
74
+
75
+ self._result = result
76
+
77
+ def to_dict(self):
78
+ """Returns the model properties as a dict"""
79
+ result = {}
80
+
81
+ for attr, _ in six.iteritems(self.openapi_types):
82
+ value = getattr(self, attr)
83
+ if isinstance(value, list):
84
+ result[attr] = list(map(
85
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
86
+ value
87
+ ))
88
+ elif hasattr(value, "to_dict"):
89
+ result[attr] = value.to_dict()
90
+ elif isinstance(value, dict):
91
+ result[attr] = dict(map(
92
+ lambda item: (item[0], item[1].to_dict())
93
+ if hasattr(item[1], "to_dict") else item,
94
+ value.items()
95
+ ))
96
+ else:
97
+ result[attr] = value
98
+
99
+ return result
100
+
101
+ def to_str(self):
102
+ """Returns the string representation of the model"""
103
+ return pprint.pformat(self.to_dict())
104
+
105
+ def __repr__(self):
106
+ """For `print` and `pprint`"""
107
+ return self.to_str()
108
+
109
+ def __eq__(self, other):
110
+ """Returns true if both objects are equal"""
111
+ if not isinstance(other, ResourcetagslistResponse):
112
+ return False
113
+
114
+ return self.to_dict() == other.to_dict()
115
+
116
+ def __ne__(self, other):
117
+ """Returns true if both objects are not equal"""
118
+ if not isinstance(other, ResourcetagslistResponse):
119
+ return True
120
+
121
+ return self.to_dict() != other.to_dict()