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.
- anyscale/_private/anyscale_client/common.py +1 -1
- anyscale/client/README.md +60 -0
- anyscale/client/openapi_client/__init__.py +42 -0
- anyscale/client/openapi_client/api/default_api.py +2541 -303
- anyscale/client/openapi_client/models/__init__.py +42 -0
- anyscale/client/openapi_client/models/apply_production_service_v2_model.py +31 -3
- anyscale/client/openapi_client/models/baseimagesenum.py +76 -1
- anyscale/client/openapi_client/models/create_experimental_workspace.py +29 -1
- anyscale/client/openapi_client/models/create_internal_production_job.py +31 -3
- anyscale/client/openapi_client/models/create_job_queue_requests.py +31 -3
- 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/email_verification_request.py +175 -0
- anyscale/client/openapi_client/models/email_verification_response.py +120 -0
- anyscale/client/openapi_client/models/emailverificationresponse_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/job_queues_query.py +31 -3
- anyscale/client/openapi_client/models/operator_event.py +256 -0
- anyscale/client/openapi_client/models/operator_event_response.py +148 -0
- anyscale/client/openapi_client/models/operator_event_type.py +101 -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/supportedbaseimagesenum.py +76 -1
- 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/update_job_queue_request.py +31 -3
- anyscale/client/openapi_client/models/upsert_resource_tags_request.py +175 -0
- anyscale/client/openapi_client/models/use_work_os_response.py +121 -0
- anyscale/client/openapi_client/models/useworkosresponse_response.py +121 -0
- anyscale/client/openapi_client/models/work_os_authorize_url_response.py +120 -0
- anyscale/client/openapi_client/models/workosauthorizeurlresponse_response.py +121 -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/cloud_commands.py +15 -3
- anyscale/commands/command_examples.py +2 -2
- anyscale/controllers/cloud_controller.py +7 -3
- 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/sdk/anyscale_client/models/baseimagesenum.py +76 -1
- anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +76 -1
- anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
- anyscale/shared_anyscale_utils/utils/id_gen.py +3 -0
- anyscale/version.py +1 -1
- {anyscale-0.26.57.dist-info → anyscale-0.26.59.dist-info}/METADATA +1 -1
- {anyscale-0.26.57.dist-info → anyscale-0.26.59.dist-info}/RECORD +74 -32
- {anyscale-0.26.57.dist-info → anyscale-0.26.59.dist-info}/WHEEL +0 -0
- {anyscale-0.26.57.dist-info → anyscale-0.26.59.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.57.dist-info → anyscale-0.26.59.dist-info}/licenses/LICENSE +0 -0
- {anyscale-0.26.57.dist-info → anyscale-0.26.59.dist-info}/licenses/NOTICE +0 -0
- {anyscale-0.26.57.dist-info → anyscale-0.26.59.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,323 @@
|
|
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 WorkspaceTemplateVersion(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
|
+
'template_id': 'str',
|
37
|
+
'image_uri': 'str',
|
38
|
+
'compute_configs': 'dict(str, str)',
|
39
|
+
'artifacts': 'WorkspaceSystemArtifacts',
|
40
|
+
'id': 'str',
|
41
|
+
'version': 'int',
|
42
|
+
'creator_id': 'str',
|
43
|
+
'created_at': 'datetime'
|
44
|
+
}
|
45
|
+
|
46
|
+
attribute_map = {
|
47
|
+
'template_id': 'template_id',
|
48
|
+
'image_uri': 'image_uri',
|
49
|
+
'compute_configs': 'compute_configs',
|
50
|
+
'artifacts': 'artifacts',
|
51
|
+
'id': 'id',
|
52
|
+
'version': 'version',
|
53
|
+
'creator_id': 'creator_id',
|
54
|
+
'created_at': 'created_at'
|
55
|
+
}
|
56
|
+
|
57
|
+
def __init__(self, template_id=None, image_uri=None, compute_configs=None, artifacts=None, id=None, version=None, creator_id=None, created_at=None, local_vars_configuration=None): # noqa: E501
|
58
|
+
"""WorkspaceTemplateVersion - 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._template_id = None
|
64
|
+
self._image_uri = None
|
65
|
+
self._compute_configs = None
|
66
|
+
self._artifacts = None
|
67
|
+
self._id = None
|
68
|
+
self._version = None
|
69
|
+
self._creator_id = None
|
70
|
+
self._created_at = None
|
71
|
+
self.discriminator = None
|
72
|
+
|
73
|
+
self.template_id = template_id
|
74
|
+
if image_uri is not None:
|
75
|
+
self.image_uri = image_uri
|
76
|
+
if compute_configs is not None:
|
77
|
+
self.compute_configs = compute_configs
|
78
|
+
if artifacts is not None:
|
79
|
+
self.artifacts = artifacts
|
80
|
+
self.id = id
|
81
|
+
self.version = version
|
82
|
+
self.creator_id = creator_id
|
83
|
+
self.created_at = created_at
|
84
|
+
|
85
|
+
@property
|
86
|
+
def template_id(self):
|
87
|
+
"""Gets the template_id of this WorkspaceTemplateVersion. # noqa: E501
|
88
|
+
|
89
|
+
Parent workspace template ID # noqa: E501
|
90
|
+
|
91
|
+
:return: The template_id of this WorkspaceTemplateVersion. # noqa: E501
|
92
|
+
:rtype: str
|
93
|
+
"""
|
94
|
+
return self._template_id
|
95
|
+
|
96
|
+
@template_id.setter
|
97
|
+
def template_id(self, template_id):
|
98
|
+
"""Sets the template_id of this WorkspaceTemplateVersion.
|
99
|
+
|
100
|
+
Parent workspace template ID # noqa: E501
|
101
|
+
|
102
|
+
:param template_id: The template_id of this WorkspaceTemplateVersion. # noqa: E501
|
103
|
+
:type: str
|
104
|
+
"""
|
105
|
+
if self.local_vars_configuration.client_side_validation and template_id is None: # noqa: E501
|
106
|
+
raise ValueError("Invalid value for `template_id`, must not be `None`") # noqa: E501
|
107
|
+
|
108
|
+
self._template_id = template_id
|
109
|
+
|
110
|
+
@property
|
111
|
+
def image_uri(self):
|
112
|
+
"""Gets the image_uri of this WorkspaceTemplateVersion. # noqa: E501
|
113
|
+
|
114
|
+
Docker image URI for this version # noqa: E501
|
115
|
+
|
116
|
+
:return: The image_uri of this WorkspaceTemplateVersion. # noqa: E501
|
117
|
+
:rtype: str
|
118
|
+
"""
|
119
|
+
return self._image_uri
|
120
|
+
|
121
|
+
@image_uri.setter
|
122
|
+
def image_uri(self, image_uri):
|
123
|
+
"""Sets the image_uri of this WorkspaceTemplateVersion.
|
124
|
+
|
125
|
+
Docker image URI for this version # noqa: E501
|
126
|
+
|
127
|
+
:param image_uri: The image_uri of this WorkspaceTemplateVersion. # noqa: E501
|
128
|
+
:type: str
|
129
|
+
"""
|
130
|
+
|
131
|
+
self._image_uri = image_uri
|
132
|
+
|
133
|
+
@property
|
134
|
+
def compute_configs(self):
|
135
|
+
"""Gets the compute_configs of this WorkspaceTemplateVersion. # noqa: E501
|
136
|
+
|
137
|
+
Cloud-specific compute config mapping # noqa: E501
|
138
|
+
|
139
|
+
:return: The compute_configs of this WorkspaceTemplateVersion. # noqa: E501
|
140
|
+
:rtype: dict(str, str)
|
141
|
+
"""
|
142
|
+
return self._compute_configs
|
143
|
+
|
144
|
+
@compute_configs.setter
|
145
|
+
def compute_configs(self, compute_configs):
|
146
|
+
"""Sets the compute_configs of this WorkspaceTemplateVersion.
|
147
|
+
|
148
|
+
Cloud-specific compute config mapping # noqa: E501
|
149
|
+
|
150
|
+
:param compute_configs: The compute_configs of this WorkspaceTemplateVersion. # noqa: E501
|
151
|
+
:type: dict(str, str)
|
152
|
+
"""
|
153
|
+
|
154
|
+
self._compute_configs = compute_configs
|
155
|
+
|
156
|
+
@property
|
157
|
+
def artifacts(self):
|
158
|
+
"""Gets the artifacts of this WorkspaceTemplateVersion. # noqa: E501
|
159
|
+
|
160
|
+
Artifacts configuration for this version # noqa: E501
|
161
|
+
|
162
|
+
:return: The artifacts of this WorkspaceTemplateVersion. # noqa: E501
|
163
|
+
:rtype: WorkspaceSystemArtifacts
|
164
|
+
"""
|
165
|
+
return self._artifacts
|
166
|
+
|
167
|
+
@artifacts.setter
|
168
|
+
def artifacts(self, artifacts):
|
169
|
+
"""Sets the artifacts of this WorkspaceTemplateVersion.
|
170
|
+
|
171
|
+
Artifacts configuration for this version # noqa: E501
|
172
|
+
|
173
|
+
:param artifacts: The artifacts of this WorkspaceTemplateVersion. # noqa: E501
|
174
|
+
:type: WorkspaceSystemArtifacts
|
175
|
+
"""
|
176
|
+
|
177
|
+
self._artifacts = artifacts
|
178
|
+
|
179
|
+
@property
|
180
|
+
def id(self):
|
181
|
+
"""Gets the id of this WorkspaceTemplateVersion. # noqa: E501
|
182
|
+
|
183
|
+
Unique version ID # noqa: E501
|
184
|
+
|
185
|
+
:return: The id of this WorkspaceTemplateVersion. # noqa: E501
|
186
|
+
:rtype: str
|
187
|
+
"""
|
188
|
+
return self._id
|
189
|
+
|
190
|
+
@id.setter
|
191
|
+
def id(self, id):
|
192
|
+
"""Sets the id of this WorkspaceTemplateVersion.
|
193
|
+
|
194
|
+
Unique version ID # noqa: E501
|
195
|
+
|
196
|
+
:param id: The id of this WorkspaceTemplateVersion. # noqa: E501
|
197
|
+
:type: str
|
198
|
+
"""
|
199
|
+
if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
|
200
|
+
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
|
201
|
+
|
202
|
+
self._id = id
|
203
|
+
|
204
|
+
@property
|
205
|
+
def version(self):
|
206
|
+
"""Gets the version of this WorkspaceTemplateVersion. # noqa: E501
|
207
|
+
|
208
|
+
Version number # noqa: E501
|
209
|
+
|
210
|
+
:return: The version of this WorkspaceTemplateVersion. # noqa: E501
|
211
|
+
:rtype: int
|
212
|
+
"""
|
213
|
+
return self._version
|
214
|
+
|
215
|
+
@version.setter
|
216
|
+
def version(self, version):
|
217
|
+
"""Sets the version of this WorkspaceTemplateVersion.
|
218
|
+
|
219
|
+
Version number # noqa: E501
|
220
|
+
|
221
|
+
:param version: The version of this WorkspaceTemplateVersion. # noqa: E501
|
222
|
+
:type: int
|
223
|
+
"""
|
224
|
+
if self.local_vars_configuration.client_side_validation and version is None: # noqa: E501
|
225
|
+
raise ValueError("Invalid value for `version`, must not be `None`") # noqa: E501
|
226
|
+
|
227
|
+
self._version = version
|
228
|
+
|
229
|
+
@property
|
230
|
+
def creator_id(self):
|
231
|
+
"""Gets the creator_id of this WorkspaceTemplateVersion. # noqa: E501
|
232
|
+
|
233
|
+
User ID who created this version # noqa: E501
|
234
|
+
|
235
|
+
:return: The creator_id of this WorkspaceTemplateVersion. # noqa: E501
|
236
|
+
:rtype: str
|
237
|
+
"""
|
238
|
+
return self._creator_id
|
239
|
+
|
240
|
+
@creator_id.setter
|
241
|
+
def creator_id(self, creator_id):
|
242
|
+
"""Sets the creator_id of this WorkspaceTemplateVersion.
|
243
|
+
|
244
|
+
User ID who created this version # noqa: E501
|
245
|
+
|
246
|
+
:param creator_id: The creator_id of this WorkspaceTemplateVersion. # noqa: E501
|
247
|
+
:type: str
|
248
|
+
"""
|
249
|
+
if self.local_vars_configuration.client_side_validation and creator_id is None: # noqa: E501
|
250
|
+
raise ValueError("Invalid value for `creator_id`, must not be `None`") # noqa: E501
|
251
|
+
|
252
|
+
self._creator_id = creator_id
|
253
|
+
|
254
|
+
@property
|
255
|
+
def created_at(self):
|
256
|
+
"""Gets the created_at of this WorkspaceTemplateVersion. # noqa: E501
|
257
|
+
|
258
|
+
When this version was created # noqa: E501
|
259
|
+
|
260
|
+
:return: The created_at of this WorkspaceTemplateVersion. # noqa: E501
|
261
|
+
:rtype: datetime
|
262
|
+
"""
|
263
|
+
return self._created_at
|
264
|
+
|
265
|
+
@created_at.setter
|
266
|
+
def created_at(self, created_at):
|
267
|
+
"""Sets the created_at of this WorkspaceTemplateVersion.
|
268
|
+
|
269
|
+
When this version was created # noqa: E501
|
270
|
+
|
271
|
+
:param created_at: The created_at of this WorkspaceTemplateVersion. # noqa: E501
|
272
|
+
:type: datetime
|
273
|
+
"""
|
274
|
+
if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501
|
275
|
+
raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501
|
276
|
+
|
277
|
+
self._created_at = created_at
|
278
|
+
|
279
|
+
def to_dict(self):
|
280
|
+
"""Returns the model properties as a dict"""
|
281
|
+
result = {}
|
282
|
+
|
283
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
284
|
+
value = getattr(self, attr)
|
285
|
+
if isinstance(value, list):
|
286
|
+
result[attr] = list(map(
|
287
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
288
|
+
value
|
289
|
+
))
|
290
|
+
elif hasattr(value, "to_dict"):
|
291
|
+
result[attr] = value.to_dict()
|
292
|
+
elif isinstance(value, dict):
|
293
|
+
result[attr] = dict(map(
|
294
|
+
lambda item: (item[0], item[1].to_dict())
|
295
|
+
if hasattr(item[1], "to_dict") else item,
|
296
|
+
value.items()
|
297
|
+
))
|
298
|
+
else:
|
299
|
+
result[attr] = value
|
300
|
+
|
301
|
+
return result
|
302
|
+
|
303
|
+
def to_str(self):
|
304
|
+
"""Returns the string representation of the model"""
|
305
|
+
return pprint.pformat(self.to_dict())
|
306
|
+
|
307
|
+
def __repr__(self):
|
308
|
+
"""For `print` and `pprint`"""
|
309
|
+
return self.to_str()
|
310
|
+
|
311
|
+
def __eq__(self, other):
|
312
|
+
"""Returns true if both objects are equal"""
|
313
|
+
if not isinstance(other, WorkspaceTemplateVersion):
|
314
|
+
return False
|
315
|
+
|
316
|
+
return self.to_dict() == other.to_dict()
|
317
|
+
|
318
|
+
def __ne__(self, other):
|
319
|
+
"""Returns true if both objects are not equal"""
|
320
|
+
if not isinstance(other, WorkspaceTemplateVersion):
|
321
|
+
return True
|
322
|
+
|
323
|
+
return self.to_dict() != other.to_dict()
|
@@ -0,0 +1,323 @@
|
|
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 WorkspaceTemplateVersionDataObject(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
|
+
'template_id': 'str',
|
37
|
+
'image_uri': 'str',
|
38
|
+
'compute_configs': 'dict(str, str)',
|
39
|
+
'artifacts': 'WorkspaceSystemArtifacts',
|
40
|
+
'id': 'str',
|
41
|
+
'version': 'int',
|
42
|
+
'creator_id': 'str',
|
43
|
+
'created_at': 'datetime'
|
44
|
+
}
|
45
|
+
|
46
|
+
attribute_map = {
|
47
|
+
'template_id': 'template_id',
|
48
|
+
'image_uri': 'image_uri',
|
49
|
+
'compute_configs': 'compute_configs',
|
50
|
+
'artifacts': 'artifacts',
|
51
|
+
'id': 'id',
|
52
|
+
'version': 'version',
|
53
|
+
'creator_id': 'creator_id',
|
54
|
+
'created_at': 'created_at'
|
55
|
+
}
|
56
|
+
|
57
|
+
def __init__(self, template_id=None, image_uri=None, compute_configs=None, artifacts=None, id=None, version=None, creator_id=None, created_at=None, local_vars_configuration=None): # noqa: E501
|
58
|
+
"""WorkspaceTemplateVersionDataObject - 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._template_id = None
|
64
|
+
self._image_uri = None
|
65
|
+
self._compute_configs = None
|
66
|
+
self._artifacts = None
|
67
|
+
self._id = None
|
68
|
+
self._version = None
|
69
|
+
self._creator_id = None
|
70
|
+
self._created_at = None
|
71
|
+
self.discriminator = None
|
72
|
+
|
73
|
+
self.template_id = template_id
|
74
|
+
if image_uri is not None:
|
75
|
+
self.image_uri = image_uri
|
76
|
+
if compute_configs is not None:
|
77
|
+
self.compute_configs = compute_configs
|
78
|
+
if artifacts is not None:
|
79
|
+
self.artifacts = artifacts
|
80
|
+
self.id = id
|
81
|
+
self.version = version
|
82
|
+
self.creator_id = creator_id
|
83
|
+
self.created_at = created_at
|
84
|
+
|
85
|
+
@property
|
86
|
+
def template_id(self):
|
87
|
+
"""Gets the template_id of this WorkspaceTemplateVersionDataObject. # noqa: E501
|
88
|
+
|
89
|
+
Parent workspace template ID # noqa: E501
|
90
|
+
|
91
|
+
:return: The template_id of this WorkspaceTemplateVersionDataObject. # noqa: E501
|
92
|
+
:rtype: str
|
93
|
+
"""
|
94
|
+
return self._template_id
|
95
|
+
|
96
|
+
@template_id.setter
|
97
|
+
def template_id(self, template_id):
|
98
|
+
"""Sets the template_id of this WorkspaceTemplateVersionDataObject.
|
99
|
+
|
100
|
+
Parent workspace template ID # noqa: E501
|
101
|
+
|
102
|
+
:param template_id: The template_id of this WorkspaceTemplateVersionDataObject. # noqa: E501
|
103
|
+
:type: str
|
104
|
+
"""
|
105
|
+
if self.local_vars_configuration.client_side_validation and template_id is None: # noqa: E501
|
106
|
+
raise ValueError("Invalid value for `template_id`, must not be `None`") # noqa: E501
|
107
|
+
|
108
|
+
self._template_id = template_id
|
109
|
+
|
110
|
+
@property
|
111
|
+
def image_uri(self):
|
112
|
+
"""Gets the image_uri of this WorkspaceTemplateVersionDataObject. # noqa: E501
|
113
|
+
|
114
|
+
Docker image URI for this version # noqa: E501
|
115
|
+
|
116
|
+
:return: The image_uri of this WorkspaceTemplateVersionDataObject. # noqa: E501
|
117
|
+
:rtype: str
|
118
|
+
"""
|
119
|
+
return self._image_uri
|
120
|
+
|
121
|
+
@image_uri.setter
|
122
|
+
def image_uri(self, image_uri):
|
123
|
+
"""Sets the image_uri of this WorkspaceTemplateVersionDataObject.
|
124
|
+
|
125
|
+
Docker image URI for this version # noqa: E501
|
126
|
+
|
127
|
+
:param image_uri: The image_uri of this WorkspaceTemplateVersionDataObject. # noqa: E501
|
128
|
+
:type: str
|
129
|
+
"""
|
130
|
+
|
131
|
+
self._image_uri = image_uri
|
132
|
+
|
133
|
+
@property
|
134
|
+
def compute_configs(self):
|
135
|
+
"""Gets the compute_configs of this WorkspaceTemplateVersionDataObject. # noqa: E501
|
136
|
+
|
137
|
+
Cloud-specific compute config mapping # noqa: E501
|
138
|
+
|
139
|
+
:return: The compute_configs of this WorkspaceTemplateVersionDataObject. # noqa: E501
|
140
|
+
:rtype: dict(str, str)
|
141
|
+
"""
|
142
|
+
return self._compute_configs
|
143
|
+
|
144
|
+
@compute_configs.setter
|
145
|
+
def compute_configs(self, compute_configs):
|
146
|
+
"""Sets the compute_configs of this WorkspaceTemplateVersionDataObject.
|
147
|
+
|
148
|
+
Cloud-specific compute config mapping # noqa: E501
|
149
|
+
|
150
|
+
:param compute_configs: The compute_configs of this WorkspaceTemplateVersionDataObject. # noqa: E501
|
151
|
+
:type: dict(str, str)
|
152
|
+
"""
|
153
|
+
|
154
|
+
self._compute_configs = compute_configs
|
155
|
+
|
156
|
+
@property
|
157
|
+
def artifacts(self):
|
158
|
+
"""Gets the artifacts of this WorkspaceTemplateVersionDataObject. # noqa: E501
|
159
|
+
|
160
|
+
Artifacts configuration for this version # noqa: E501
|
161
|
+
|
162
|
+
:return: The artifacts of this WorkspaceTemplateVersionDataObject. # noqa: E501
|
163
|
+
:rtype: WorkspaceSystemArtifacts
|
164
|
+
"""
|
165
|
+
return self._artifacts
|
166
|
+
|
167
|
+
@artifacts.setter
|
168
|
+
def artifacts(self, artifacts):
|
169
|
+
"""Sets the artifacts of this WorkspaceTemplateVersionDataObject.
|
170
|
+
|
171
|
+
Artifacts configuration for this version # noqa: E501
|
172
|
+
|
173
|
+
:param artifacts: The artifacts of this WorkspaceTemplateVersionDataObject. # noqa: E501
|
174
|
+
:type: WorkspaceSystemArtifacts
|
175
|
+
"""
|
176
|
+
|
177
|
+
self._artifacts = artifacts
|
178
|
+
|
179
|
+
@property
|
180
|
+
def id(self):
|
181
|
+
"""Gets the id of this WorkspaceTemplateVersionDataObject. # noqa: E501
|
182
|
+
|
183
|
+
Unique version ID # noqa: E501
|
184
|
+
|
185
|
+
:return: The id of this WorkspaceTemplateVersionDataObject. # noqa: E501
|
186
|
+
:rtype: str
|
187
|
+
"""
|
188
|
+
return self._id
|
189
|
+
|
190
|
+
@id.setter
|
191
|
+
def id(self, id):
|
192
|
+
"""Sets the id of this WorkspaceTemplateVersionDataObject.
|
193
|
+
|
194
|
+
Unique version ID # noqa: E501
|
195
|
+
|
196
|
+
:param id: The id of this WorkspaceTemplateVersionDataObject. # noqa: E501
|
197
|
+
:type: str
|
198
|
+
"""
|
199
|
+
if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
|
200
|
+
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
|
201
|
+
|
202
|
+
self._id = id
|
203
|
+
|
204
|
+
@property
|
205
|
+
def version(self):
|
206
|
+
"""Gets the version of this WorkspaceTemplateVersionDataObject. # noqa: E501
|
207
|
+
|
208
|
+
Version number # noqa: E501
|
209
|
+
|
210
|
+
:return: The version of this WorkspaceTemplateVersionDataObject. # noqa: E501
|
211
|
+
:rtype: int
|
212
|
+
"""
|
213
|
+
return self._version
|
214
|
+
|
215
|
+
@version.setter
|
216
|
+
def version(self, version):
|
217
|
+
"""Sets the version of this WorkspaceTemplateVersionDataObject.
|
218
|
+
|
219
|
+
Version number # noqa: E501
|
220
|
+
|
221
|
+
:param version: The version of this WorkspaceTemplateVersionDataObject. # noqa: E501
|
222
|
+
:type: int
|
223
|
+
"""
|
224
|
+
if self.local_vars_configuration.client_side_validation and version is None: # noqa: E501
|
225
|
+
raise ValueError("Invalid value for `version`, must not be `None`") # noqa: E501
|
226
|
+
|
227
|
+
self._version = version
|
228
|
+
|
229
|
+
@property
|
230
|
+
def creator_id(self):
|
231
|
+
"""Gets the creator_id of this WorkspaceTemplateVersionDataObject. # noqa: E501
|
232
|
+
|
233
|
+
User ID who created this version # noqa: E501
|
234
|
+
|
235
|
+
:return: The creator_id of this WorkspaceTemplateVersionDataObject. # noqa: E501
|
236
|
+
:rtype: str
|
237
|
+
"""
|
238
|
+
return self._creator_id
|
239
|
+
|
240
|
+
@creator_id.setter
|
241
|
+
def creator_id(self, creator_id):
|
242
|
+
"""Sets the creator_id of this WorkspaceTemplateVersionDataObject.
|
243
|
+
|
244
|
+
User ID who created this version # noqa: E501
|
245
|
+
|
246
|
+
:param creator_id: The creator_id of this WorkspaceTemplateVersionDataObject. # noqa: E501
|
247
|
+
:type: str
|
248
|
+
"""
|
249
|
+
if self.local_vars_configuration.client_side_validation and creator_id is None: # noqa: E501
|
250
|
+
raise ValueError("Invalid value for `creator_id`, must not be `None`") # noqa: E501
|
251
|
+
|
252
|
+
self._creator_id = creator_id
|
253
|
+
|
254
|
+
@property
|
255
|
+
def created_at(self):
|
256
|
+
"""Gets the created_at of this WorkspaceTemplateVersionDataObject. # noqa: E501
|
257
|
+
|
258
|
+
When this version was created # noqa: E501
|
259
|
+
|
260
|
+
:return: The created_at of this WorkspaceTemplateVersionDataObject. # noqa: E501
|
261
|
+
:rtype: datetime
|
262
|
+
"""
|
263
|
+
return self._created_at
|
264
|
+
|
265
|
+
@created_at.setter
|
266
|
+
def created_at(self, created_at):
|
267
|
+
"""Sets the created_at of this WorkspaceTemplateVersionDataObject.
|
268
|
+
|
269
|
+
When this version was created # noqa: E501
|
270
|
+
|
271
|
+
:param created_at: The created_at of this WorkspaceTemplateVersionDataObject. # noqa: E501
|
272
|
+
:type: datetime
|
273
|
+
"""
|
274
|
+
if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501
|
275
|
+
raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501
|
276
|
+
|
277
|
+
self._created_at = created_at
|
278
|
+
|
279
|
+
def to_dict(self):
|
280
|
+
"""Returns the model properties as a dict"""
|
281
|
+
result = {}
|
282
|
+
|
283
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
284
|
+
value = getattr(self, attr)
|
285
|
+
if isinstance(value, list):
|
286
|
+
result[attr] = list(map(
|
287
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
288
|
+
value
|
289
|
+
))
|
290
|
+
elif hasattr(value, "to_dict"):
|
291
|
+
result[attr] = value.to_dict()
|
292
|
+
elif isinstance(value, dict):
|
293
|
+
result[attr] = dict(map(
|
294
|
+
lambda item: (item[0], item[1].to_dict())
|
295
|
+
if hasattr(item[1], "to_dict") else item,
|
296
|
+
value.items()
|
297
|
+
))
|
298
|
+
else:
|
299
|
+
result[attr] = value
|
300
|
+
|
301
|
+
return result
|
302
|
+
|
303
|
+
def to_str(self):
|
304
|
+
"""Returns the string representation of the model"""
|
305
|
+
return pprint.pformat(self.to_dict())
|
306
|
+
|
307
|
+
def __repr__(self):
|
308
|
+
"""For `print` and `pprint`"""
|
309
|
+
return self.to_str()
|
310
|
+
|
311
|
+
def __eq__(self, other):
|
312
|
+
"""Returns true if both objects are equal"""
|
313
|
+
if not isinstance(other, WorkspaceTemplateVersionDataObject):
|
314
|
+
return False
|
315
|
+
|
316
|
+
return self.to_dict() == other.to_dict()
|
317
|
+
|
318
|
+
def __ne__(self, other):
|
319
|
+
"""Returns true if both objects are not equal"""
|
320
|
+
if not isinstance(other, WorkspaceTemplateVersionDataObject):
|
321
|
+
return True
|
322
|
+
|
323
|
+
return self.to_dict() != other.to_dict()
|