anyscale 0.26.57__py3-none-any.whl → 0.26.58__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.
- anyscale/client/README.md +45 -0
- anyscale/client/openapi_client/__init__.py +32 -0
- anyscale/client/openapi_client/api/default_api.py +1882 -244
- anyscale/client/openapi_client/models/__init__.py +32 -0
- anyscale/client/openapi_client/models/apply_production_service_v2_model.py +31 -3
- anyscale/client/openapi_client/models/create_experimental_workspace.py +29 -1
- anyscale/client/openapi_client/models/create_workspace_template.py +404 -0
- anyscale/client/openapi_client/models/create_workspace_template_version.py +178 -0
- anyscale/client/openapi_client/models/delete_resource_tags_request.py +175 -0
- anyscale/client/openapi_client/models/deleted_count.py +121 -0
- anyscale/client/openapi_client/models/deletedcount_response.py +121 -0
- anyscale/client/openapi_client/models/global_workspace_template.py +465 -0
- anyscale/client/openapi_client/models/globalworkspacetemplate_list_response.py +147 -0
- anyscale/client/openapi_client/models/published_filter.py +101 -0
- anyscale/client/openapi_client/models/resource_tag_record.py +310 -0
- anyscale/client/openapi_client/models/resource_tag_resource_type.py +102 -0
- anyscale/client/openapi_client/models/resource_tags_list.py +121 -0
- anyscale/client/openapi_client/models/resourcetagslist_response.py +121 -0
- anyscale/client/openapi_client/models/tag_key.py +121 -0
- anyscale/client/openapi_client/models/tag_key_value.py +148 -0
- anyscale/client/openapi_client/models/tag_search_in.py +101 -0
- anyscale/client/openapi_client/models/tag_value.py +121 -0
- anyscale/client/openapi_client/models/tagkey_list_response.py +147 -0
- anyscale/client/openapi_client/models/tagkeyvalue_list_response.py +147 -0
- anyscale/client/openapi_client/models/tagvalue_list_response.py +147 -0
- anyscale/client/openapi_client/models/task_attempts.py +101 -0
- anyscale/client/openapi_client/models/task_table_config.py +29 -3
- anyscale/client/openapi_client/models/upsert_resource_tags_request.py +175 -0
- anyscale/client/openapi_client/models/workspace_system_artifacts.py +234 -0
- anyscale/client/openapi_client/models/workspace_template.py +343 -204
- anyscale/client/openapi_client/models/workspace_template_category.py +100 -0
- anyscale/client/openapi_client/models/workspace_template_complexity.py +101 -0
- anyscale/client/openapi_client/models/workspace_template_icon_background_color.py +105 -0
- anyscale/client/openapi_client/models/workspace_template_icon_type.py +108 -0
- anyscale/client/openapi_client/models/workspace_template_version.py +323 -0
- anyscale/client/openapi_client/models/workspace_template_version_data_object.py +323 -0
- anyscale/client/openapi_client/models/workspace_templates_sort_field.py +101 -0
- anyscale/client/openapi_client/models/workspacetemplate_response.py +121 -0
- anyscale/client/openapi_client/models/workspacetemplateversion_list_response.py +147 -0
- anyscale/client/openapi_client/models/workspacetemplateversion_response.py +121 -0
- anyscale/commands/command_examples.py +1 -1
- anyscale/sdk/anyscale_client/models/apply_production_service_v2_model.py +31 -3
- anyscale/sdk/anyscale_client/models/apply_service_model.py +31 -3
- anyscale/shared_anyscale_utils/utils/id_gen.py +3 -0
- anyscale/version.py +1 -1
- {anyscale-0.26.57.dist-info → anyscale-0.26.58.dist-info}/METADATA +1 -1
- {anyscale-0.26.57.dist-info → anyscale-0.26.58.dist-info}/RECORD +52 -20
- {anyscale-0.26.57.dist-info → anyscale-0.26.58.dist-info}/WHEEL +0 -0
- {anyscale-0.26.57.dist-info → anyscale-0.26.58.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.57.dist-info → anyscale-0.26.58.dist-info}/licenses/LICENSE +0 -0
- {anyscale-0.26.57.dist-info → anyscale-0.26.58.dist-info}/licenses/NOTICE +0 -0
- {anyscale-0.26.57.dist-info → anyscale-0.26.58.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,465 @@
|
|
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 GlobalWorkspaceTemplate(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
|
+
'title': 'str',
|
38
|
+
'description': 'str',
|
39
|
+
'emoji': 'str',
|
40
|
+
'labels': 'list[str]',
|
41
|
+
'url': 'str',
|
42
|
+
'maximum_uptime_minutes': 'int',
|
43
|
+
'logo_ids': 'list[str]',
|
44
|
+
'oa_group_name': 'str',
|
45
|
+
'icon_type': 'str',
|
46
|
+
'icon_bg_color': 'str',
|
47
|
+
'mins_to_complete': 'int',
|
48
|
+
'complexity': 'ComplexityLevel'
|
49
|
+
}
|
50
|
+
|
51
|
+
attribute_map = {
|
52
|
+
'id': 'id',
|
53
|
+
'title': 'title',
|
54
|
+
'description': 'description',
|
55
|
+
'emoji': 'emoji',
|
56
|
+
'labels': 'labels',
|
57
|
+
'url': 'url',
|
58
|
+
'maximum_uptime_minutes': 'maximum_uptime_minutes',
|
59
|
+
'logo_ids': 'logo_ids',
|
60
|
+
'oa_group_name': 'oa_group_name',
|
61
|
+
'icon_type': 'icon_type',
|
62
|
+
'icon_bg_color': 'icon_bg_color',
|
63
|
+
'mins_to_complete': 'mins_to_complete',
|
64
|
+
'complexity': 'complexity'
|
65
|
+
}
|
66
|
+
|
67
|
+
def __init__(self, id=None, title=None, description=None, emoji=None, labels=None, url=None, maximum_uptime_minutes=None, logo_ids=None, oa_group_name=None, icon_type=None, icon_bg_color=None, mins_to_complete=None, complexity=None, local_vars_configuration=None): # noqa: E501
|
68
|
+
"""GlobalWorkspaceTemplate - a model defined in OpenAPI""" # noqa: E501
|
69
|
+
if local_vars_configuration is None:
|
70
|
+
local_vars_configuration = Configuration()
|
71
|
+
self.local_vars_configuration = local_vars_configuration
|
72
|
+
|
73
|
+
self._id = None
|
74
|
+
self._title = None
|
75
|
+
self._description = None
|
76
|
+
self._emoji = None
|
77
|
+
self._labels = None
|
78
|
+
self._url = None
|
79
|
+
self._maximum_uptime_minutes = None
|
80
|
+
self._logo_ids = None
|
81
|
+
self._oa_group_name = None
|
82
|
+
self._icon_type = None
|
83
|
+
self._icon_bg_color = None
|
84
|
+
self._mins_to_complete = None
|
85
|
+
self._complexity = None
|
86
|
+
self.discriminator = None
|
87
|
+
|
88
|
+
self.id = id
|
89
|
+
self.title = title
|
90
|
+
self.description = description
|
91
|
+
self.emoji = emoji
|
92
|
+
self.labels = labels
|
93
|
+
self.url = url
|
94
|
+
if maximum_uptime_minutes is not None:
|
95
|
+
self.maximum_uptime_minutes = maximum_uptime_minutes
|
96
|
+
self.logo_ids = logo_ids
|
97
|
+
if oa_group_name is not None:
|
98
|
+
self.oa_group_name = oa_group_name
|
99
|
+
if icon_type is not None:
|
100
|
+
self.icon_type = icon_type
|
101
|
+
if icon_bg_color is not None:
|
102
|
+
self.icon_bg_color = icon_bg_color
|
103
|
+
if mins_to_complete is not None:
|
104
|
+
self.mins_to_complete = mins_to_complete
|
105
|
+
if complexity is not None:
|
106
|
+
self.complexity = complexity
|
107
|
+
|
108
|
+
@property
|
109
|
+
def id(self):
|
110
|
+
"""Gets the id of this GlobalWorkspaceTemplate. # noqa: E501
|
111
|
+
|
112
|
+
The id of the workspace template. # noqa: E501
|
113
|
+
|
114
|
+
:return: The id of this GlobalWorkspaceTemplate. # noqa: E501
|
115
|
+
:rtype: str
|
116
|
+
"""
|
117
|
+
return self._id
|
118
|
+
|
119
|
+
@id.setter
|
120
|
+
def id(self, id):
|
121
|
+
"""Sets the id of this GlobalWorkspaceTemplate.
|
122
|
+
|
123
|
+
The id of the workspace template. # noqa: E501
|
124
|
+
|
125
|
+
:param id: The id of this GlobalWorkspaceTemplate. # noqa: E501
|
126
|
+
:type: str
|
127
|
+
"""
|
128
|
+
if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
|
129
|
+
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
|
130
|
+
|
131
|
+
self._id = id
|
132
|
+
|
133
|
+
@property
|
134
|
+
def title(self):
|
135
|
+
"""Gets the title of this GlobalWorkspaceTemplate. # noqa: E501
|
136
|
+
|
137
|
+
The title of the workspace template # noqa: E501
|
138
|
+
|
139
|
+
:return: The title of this GlobalWorkspaceTemplate. # noqa: E501
|
140
|
+
:rtype: str
|
141
|
+
"""
|
142
|
+
return self._title
|
143
|
+
|
144
|
+
@title.setter
|
145
|
+
def title(self, title):
|
146
|
+
"""Sets the title of this GlobalWorkspaceTemplate.
|
147
|
+
|
148
|
+
The title of the workspace template # noqa: E501
|
149
|
+
|
150
|
+
:param title: The title of this GlobalWorkspaceTemplate. # noqa: E501
|
151
|
+
:type: str
|
152
|
+
"""
|
153
|
+
if self.local_vars_configuration.client_side_validation and title is None: # noqa: E501
|
154
|
+
raise ValueError("Invalid value for `title`, must not be `None`") # noqa: E501
|
155
|
+
|
156
|
+
self._title = title
|
157
|
+
|
158
|
+
@property
|
159
|
+
def description(self):
|
160
|
+
"""Gets the description of this GlobalWorkspaceTemplate. # noqa: E501
|
161
|
+
|
162
|
+
The description of the workspace template # noqa: E501
|
163
|
+
|
164
|
+
:return: The description of this GlobalWorkspaceTemplate. # noqa: E501
|
165
|
+
:rtype: str
|
166
|
+
"""
|
167
|
+
return self._description
|
168
|
+
|
169
|
+
@description.setter
|
170
|
+
def description(self, description):
|
171
|
+
"""Sets the description of this GlobalWorkspaceTemplate.
|
172
|
+
|
173
|
+
The description of the workspace template # noqa: E501
|
174
|
+
|
175
|
+
:param description: The description of this GlobalWorkspaceTemplate. # noqa: E501
|
176
|
+
:type: str
|
177
|
+
"""
|
178
|
+
if self.local_vars_configuration.client_side_validation and description is None: # noqa: E501
|
179
|
+
raise ValueError("Invalid value for `description`, must not be `None`") # noqa: E501
|
180
|
+
|
181
|
+
self._description = description
|
182
|
+
|
183
|
+
@property
|
184
|
+
def emoji(self):
|
185
|
+
"""Gets the emoji of this GlobalWorkspaceTemplate. # noqa: E501
|
186
|
+
|
187
|
+
The emoji of the workspace template # noqa: E501
|
188
|
+
|
189
|
+
:return: The emoji of this GlobalWorkspaceTemplate. # noqa: E501
|
190
|
+
:rtype: str
|
191
|
+
"""
|
192
|
+
return self._emoji
|
193
|
+
|
194
|
+
@emoji.setter
|
195
|
+
def emoji(self, emoji):
|
196
|
+
"""Sets the emoji of this GlobalWorkspaceTemplate.
|
197
|
+
|
198
|
+
The emoji of the workspace template # noqa: E501
|
199
|
+
|
200
|
+
:param emoji: The emoji of this GlobalWorkspaceTemplate. # noqa: E501
|
201
|
+
:type: str
|
202
|
+
"""
|
203
|
+
if self.local_vars_configuration.client_side_validation and emoji is None: # noqa: E501
|
204
|
+
raise ValueError("Invalid value for `emoji`, must not be `None`") # noqa: E501
|
205
|
+
|
206
|
+
self._emoji = emoji
|
207
|
+
|
208
|
+
@property
|
209
|
+
def labels(self):
|
210
|
+
"""Gets the labels of this GlobalWorkspaceTemplate. # noqa: E501
|
211
|
+
|
212
|
+
The labels of the workspace template # noqa: E501
|
213
|
+
|
214
|
+
:return: The labels of this GlobalWorkspaceTemplate. # noqa: E501
|
215
|
+
:rtype: list[str]
|
216
|
+
"""
|
217
|
+
return self._labels
|
218
|
+
|
219
|
+
@labels.setter
|
220
|
+
def labels(self, labels):
|
221
|
+
"""Sets the labels of this GlobalWorkspaceTemplate.
|
222
|
+
|
223
|
+
The labels of the workspace template # noqa: E501
|
224
|
+
|
225
|
+
:param labels: The labels of this GlobalWorkspaceTemplate. # noqa: E501
|
226
|
+
:type: list[str]
|
227
|
+
"""
|
228
|
+
if self.local_vars_configuration.client_side_validation and labels is None: # noqa: E501
|
229
|
+
raise ValueError("Invalid value for `labels`, must not be `None`") # noqa: E501
|
230
|
+
|
231
|
+
self._labels = labels
|
232
|
+
|
233
|
+
@property
|
234
|
+
def url(self):
|
235
|
+
"""Gets the url of this GlobalWorkspaceTemplate. # noqa: E501
|
236
|
+
|
237
|
+
The url of the workspace template # noqa: E501
|
238
|
+
|
239
|
+
:return: The url of this GlobalWorkspaceTemplate. # noqa: E501
|
240
|
+
:rtype: str
|
241
|
+
"""
|
242
|
+
return self._url
|
243
|
+
|
244
|
+
@url.setter
|
245
|
+
def url(self, url):
|
246
|
+
"""Sets the url of this GlobalWorkspaceTemplate.
|
247
|
+
|
248
|
+
The url of the workspace template # noqa: E501
|
249
|
+
|
250
|
+
:param url: The url of this GlobalWorkspaceTemplate. # noqa: E501
|
251
|
+
:type: str
|
252
|
+
"""
|
253
|
+
if self.local_vars_configuration.client_side_validation and url is None: # noqa: E501
|
254
|
+
raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501
|
255
|
+
|
256
|
+
self._url = url
|
257
|
+
|
258
|
+
@property
|
259
|
+
def maximum_uptime_minutes(self):
|
260
|
+
"""Gets the maximum_uptime_minutes of this GlobalWorkspaceTemplate. # noqa: E501
|
261
|
+
|
262
|
+
The maximum uptime of the workspace in minutes. The workspace will force terminate after this time. # noqa: E501
|
263
|
+
|
264
|
+
:return: The maximum_uptime_minutes of this GlobalWorkspaceTemplate. # noqa: E501
|
265
|
+
:rtype: int
|
266
|
+
"""
|
267
|
+
return self._maximum_uptime_minutes
|
268
|
+
|
269
|
+
@maximum_uptime_minutes.setter
|
270
|
+
def maximum_uptime_minutes(self, maximum_uptime_minutes):
|
271
|
+
"""Sets the maximum_uptime_minutes of this GlobalWorkspaceTemplate.
|
272
|
+
|
273
|
+
The maximum uptime of the workspace in minutes. The workspace will force terminate after this time. # noqa: E501
|
274
|
+
|
275
|
+
:param maximum_uptime_minutes: The maximum_uptime_minutes of this GlobalWorkspaceTemplate. # noqa: E501
|
276
|
+
:type: int
|
277
|
+
"""
|
278
|
+
|
279
|
+
self._maximum_uptime_minutes = maximum_uptime_minutes
|
280
|
+
|
281
|
+
@property
|
282
|
+
def logo_ids(self):
|
283
|
+
"""Gets the logo_ids of this GlobalWorkspaceTemplate. # noqa: E501
|
284
|
+
|
285
|
+
The ids for the workspace template logos that we show on the FE # noqa: E501
|
286
|
+
|
287
|
+
:return: The logo_ids of this GlobalWorkspaceTemplate. # noqa: E501
|
288
|
+
:rtype: list[str]
|
289
|
+
"""
|
290
|
+
return self._logo_ids
|
291
|
+
|
292
|
+
@logo_ids.setter
|
293
|
+
def logo_ids(self, logo_ids):
|
294
|
+
"""Sets the logo_ids of this GlobalWorkspaceTemplate.
|
295
|
+
|
296
|
+
The ids for the workspace template logos that we show on the FE # noqa: E501
|
297
|
+
|
298
|
+
:param logo_ids: The logo_ids of this GlobalWorkspaceTemplate. # noqa: E501
|
299
|
+
:type: list[str]
|
300
|
+
"""
|
301
|
+
if self.local_vars_configuration.client_side_validation and logo_ids is None: # noqa: E501
|
302
|
+
raise ValueError("Invalid value for `logo_ids`, must not be `None`") # noqa: E501
|
303
|
+
|
304
|
+
self._logo_ids = logo_ids
|
305
|
+
|
306
|
+
@property
|
307
|
+
def oa_group_name(self):
|
308
|
+
"""Gets the oa_group_name of this GlobalWorkspaceTemplate. # noqa: E501
|
309
|
+
|
310
|
+
The name of the OA group for the workspace template # noqa: E501
|
311
|
+
|
312
|
+
:return: The oa_group_name of this GlobalWorkspaceTemplate. # noqa: E501
|
313
|
+
:rtype: str
|
314
|
+
"""
|
315
|
+
return self._oa_group_name
|
316
|
+
|
317
|
+
@oa_group_name.setter
|
318
|
+
def oa_group_name(self, oa_group_name):
|
319
|
+
"""Sets the oa_group_name of this GlobalWorkspaceTemplate.
|
320
|
+
|
321
|
+
The name of the OA group for the workspace template # noqa: E501
|
322
|
+
|
323
|
+
:param oa_group_name: The oa_group_name of this GlobalWorkspaceTemplate. # noqa: E501
|
324
|
+
:type: str
|
325
|
+
"""
|
326
|
+
|
327
|
+
self._oa_group_name = oa_group_name
|
328
|
+
|
329
|
+
@property
|
330
|
+
def icon_type(self):
|
331
|
+
"""Gets the icon_type of this GlobalWorkspaceTemplate. # noqa: E501
|
332
|
+
|
333
|
+
The type of the icon for the workspace template # noqa: E501
|
334
|
+
|
335
|
+
:return: The icon_type of this GlobalWorkspaceTemplate. # noqa: E501
|
336
|
+
:rtype: str
|
337
|
+
"""
|
338
|
+
return self._icon_type
|
339
|
+
|
340
|
+
@icon_type.setter
|
341
|
+
def icon_type(self, icon_type):
|
342
|
+
"""Sets the icon_type of this GlobalWorkspaceTemplate.
|
343
|
+
|
344
|
+
The type of the icon for the workspace template # noqa: E501
|
345
|
+
|
346
|
+
:param icon_type: The icon_type of this GlobalWorkspaceTemplate. # noqa: E501
|
347
|
+
:type: str
|
348
|
+
"""
|
349
|
+
|
350
|
+
self._icon_type = icon_type
|
351
|
+
|
352
|
+
@property
|
353
|
+
def icon_bg_color(self):
|
354
|
+
"""Gets the icon_bg_color of this GlobalWorkspaceTemplate. # noqa: E501
|
355
|
+
|
356
|
+
The background color of the icon for the workspace template # noqa: E501
|
357
|
+
|
358
|
+
:return: The icon_bg_color of this GlobalWorkspaceTemplate. # noqa: E501
|
359
|
+
:rtype: str
|
360
|
+
"""
|
361
|
+
return self._icon_bg_color
|
362
|
+
|
363
|
+
@icon_bg_color.setter
|
364
|
+
def icon_bg_color(self, icon_bg_color):
|
365
|
+
"""Sets the icon_bg_color of this GlobalWorkspaceTemplate.
|
366
|
+
|
367
|
+
The background color of the icon for the workspace template # noqa: E501
|
368
|
+
|
369
|
+
:param icon_bg_color: The icon_bg_color of this GlobalWorkspaceTemplate. # noqa: E501
|
370
|
+
:type: str
|
371
|
+
"""
|
372
|
+
|
373
|
+
self._icon_bg_color = icon_bg_color
|
374
|
+
|
375
|
+
@property
|
376
|
+
def mins_to_complete(self):
|
377
|
+
"""Gets the mins_to_complete of this GlobalWorkspaceTemplate. # noqa: E501
|
378
|
+
|
379
|
+
The number of minutes expected to complete the template # noqa: E501
|
380
|
+
|
381
|
+
:return: The mins_to_complete of this GlobalWorkspaceTemplate. # noqa: E501
|
382
|
+
:rtype: int
|
383
|
+
"""
|
384
|
+
return self._mins_to_complete
|
385
|
+
|
386
|
+
@mins_to_complete.setter
|
387
|
+
def mins_to_complete(self, mins_to_complete):
|
388
|
+
"""Sets the mins_to_complete of this GlobalWorkspaceTemplate.
|
389
|
+
|
390
|
+
The number of minutes expected to complete the template # noqa: E501
|
391
|
+
|
392
|
+
:param mins_to_complete: The mins_to_complete of this GlobalWorkspaceTemplate. # noqa: E501
|
393
|
+
:type: int
|
394
|
+
"""
|
395
|
+
|
396
|
+
self._mins_to_complete = mins_to_complete
|
397
|
+
|
398
|
+
@property
|
399
|
+
def complexity(self):
|
400
|
+
"""Gets the complexity of this GlobalWorkspaceTemplate. # noqa: E501
|
401
|
+
|
402
|
+
The complexity of the workspace template # noqa: E501
|
403
|
+
|
404
|
+
:return: The complexity of this GlobalWorkspaceTemplate. # noqa: E501
|
405
|
+
:rtype: ComplexityLevel
|
406
|
+
"""
|
407
|
+
return self._complexity
|
408
|
+
|
409
|
+
@complexity.setter
|
410
|
+
def complexity(self, complexity):
|
411
|
+
"""Sets the complexity of this GlobalWorkspaceTemplate.
|
412
|
+
|
413
|
+
The complexity of the workspace template # noqa: E501
|
414
|
+
|
415
|
+
:param complexity: The complexity of this GlobalWorkspaceTemplate. # noqa: E501
|
416
|
+
:type: ComplexityLevel
|
417
|
+
"""
|
418
|
+
|
419
|
+
self._complexity = complexity
|
420
|
+
|
421
|
+
def to_dict(self):
|
422
|
+
"""Returns the model properties as a dict"""
|
423
|
+
result = {}
|
424
|
+
|
425
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
426
|
+
value = getattr(self, attr)
|
427
|
+
if isinstance(value, list):
|
428
|
+
result[attr] = list(map(
|
429
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
430
|
+
value
|
431
|
+
))
|
432
|
+
elif hasattr(value, "to_dict"):
|
433
|
+
result[attr] = value.to_dict()
|
434
|
+
elif isinstance(value, dict):
|
435
|
+
result[attr] = dict(map(
|
436
|
+
lambda item: (item[0], item[1].to_dict())
|
437
|
+
if hasattr(item[1], "to_dict") else item,
|
438
|
+
value.items()
|
439
|
+
))
|
440
|
+
else:
|
441
|
+
result[attr] = value
|
442
|
+
|
443
|
+
return result
|
444
|
+
|
445
|
+
def to_str(self):
|
446
|
+
"""Returns the string representation of the model"""
|
447
|
+
return pprint.pformat(self.to_dict())
|
448
|
+
|
449
|
+
def __repr__(self):
|
450
|
+
"""For `print` and `pprint`"""
|
451
|
+
return self.to_str()
|
452
|
+
|
453
|
+
def __eq__(self, other):
|
454
|
+
"""Returns true if both objects are equal"""
|
455
|
+
if not isinstance(other, GlobalWorkspaceTemplate):
|
456
|
+
return False
|
457
|
+
|
458
|
+
return self.to_dict() == other.to_dict()
|
459
|
+
|
460
|
+
def __ne__(self, other):
|
461
|
+
"""Returns true if both objects are not equal"""
|
462
|
+
if not isinstance(other, GlobalWorkspaceTemplate):
|
463
|
+
return True
|
464
|
+
|
465
|
+
return self.to_dict() != other.to_dict()
|
@@ -0,0 +1,147 @@
|
|
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 GlobalworkspacetemplateListResponse(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
|
+
'results': 'list[GlobalWorkspaceTemplate]',
|
37
|
+
'metadata': 'ListResponseMetadata'
|
38
|
+
}
|
39
|
+
|
40
|
+
attribute_map = {
|
41
|
+
'results': 'results',
|
42
|
+
'metadata': 'metadata'
|
43
|
+
}
|
44
|
+
|
45
|
+
def __init__(self, results=None, metadata=None, local_vars_configuration=None): # noqa: E501
|
46
|
+
"""GlobalworkspacetemplateListResponse - a model defined in OpenAPI""" # noqa: E501
|
47
|
+
if local_vars_configuration is None:
|
48
|
+
local_vars_configuration = Configuration()
|
49
|
+
self.local_vars_configuration = local_vars_configuration
|
50
|
+
|
51
|
+
self._results = None
|
52
|
+
self._metadata = None
|
53
|
+
self.discriminator = None
|
54
|
+
|
55
|
+
self.results = results
|
56
|
+
if metadata is not None:
|
57
|
+
self.metadata = metadata
|
58
|
+
|
59
|
+
@property
|
60
|
+
def results(self):
|
61
|
+
"""Gets the results of this GlobalworkspacetemplateListResponse. # noqa: E501
|
62
|
+
|
63
|
+
|
64
|
+
:return: The results of this GlobalworkspacetemplateListResponse. # noqa: E501
|
65
|
+
:rtype: list[GlobalWorkspaceTemplate]
|
66
|
+
"""
|
67
|
+
return self._results
|
68
|
+
|
69
|
+
@results.setter
|
70
|
+
def results(self, results):
|
71
|
+
"""Sets the results of this GlobalworkspacetemplateListResponse.
|
72
|
+
|
73
|
+
|
74
|
+
:param results: The results of this GlobalworkspacetemplateListResponse. # noqa: E501
|
75
|
+
:type: list[GlobalWorkspaceTemplate]
|
76
|
+
"""
|
77
|
+
if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501
|
78
|
+
raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501
|
79
|
+
|
80
|
+
self._results = results
|
81
|
+
|
82
|
+
@property
|
83
|
+
def metadata(self):
|
84
|
+
"""Gets the metadata of this GlobalworkspacetemplateListResponse. # noqa: E501
|
85
|
+
|
86
|
+
|
87
|
+
:return: The metadata of this GlobalworkspacetemplateListResponse. # noqa: E501
|
88
|
+
:rtype: ListResponseMetadata
|
89
|
+
"""
|
90
|
+
return self._metadata
|
91
|
+
|
92
|
+
@metadata.setter
|
93
|
+
def metadata(self, metadata):
|
94
|
+
"""Sets the metadata of this GlobalworkspacetemplateListResponse.
|
95
|
+
|
96
|
+
|
97
|
+
:param metadata: The metadata of this GlobalworkspacetemplateListResponse. # noqa: E501
|
98
|
+
:type: ListResponseMetadata
|
99
|
+
"""
|
100
|
+
|
101
|
+
self._metadata = metadata
|
102
|
+
|
103
|
+
def to_dict(self):
|
104
|
+
"""Returns the model properties as a dict"""
|
105
|
+
result = {}
|
106
|
+
|
107
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
108
|
+
value = getattr(self, attr)
|
109
|
+
if isinstance(value, list):
|
110
|
+
result[attr] = list(map(
|
111
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
112
|
+
value
|
113
|
+
))
|
114
|
+
elif hasattr(value, "to_dict"):
|
115
|
+
result[attr] = value.to_dict()
|
116
|
+
elif isinstance(value, dict):
|
117
|
+
result[attr] = dict(map(
|
118
|
+
lambda item: (item[0], item[1].to_dict())
|
119
|
+
if hasattr(item[1], "to_dict") else item,
|
120
|
+
value.items()
|
121
|
+
))
|
122
|
+
else:
|
123
|
+
result[attr] = value
|
124
|
+
|
125
|
+
return result
|
126
|
+
|
127
|
+
def to_str(self):
|
128
|
+
"""Returns the string representation of the model"""
|
129
|
+
return pprint.pformat(self.to_dict())
|
130
|
+
|
131
|
+
def __repr__(self):
|
132
|
+
"""For `print` and `pprint`"""
|
133
|
+
return self.to_str()
|
134
|
+
|
135
|
+
def __eq__(self, other):
|
136
|
+
"""Returns true if both objects are equal"""
|
137
|
+
if not isinstance(other, GlobalworkspacetemplateListResponse):
|
138
|
+
return False
|
139
|
+
|
140
|
+
return self.to_dict() == other.to_dict()
|
141
|
+
|
142
|
+
def __ne__(self, other):
|
143
|
+
"""Returns true if both objects are not equal"""
|
144
|
+
if not isinstance(other, GlobalworkspacetemplateListResponse):
|
145
|
+
return True
|
146
|
+
|
147
|
+
return self.to_dict() != other.to_dict()
|