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
@@ -38,7 +38,8 @@ class CreateInternalProductionJob(object):
|
|
38
38
|
'project_id': 'str',
|
39
39
|
'config': 'CreateProductionJobConfig',
|
40
40
|
'job_queue_config': 'CreateJobQueueConfig',
|
41
|
-
'workspace_id': 'str'
|
41
|
+
'workspace_id': 'str',
|
42
|
+
'tags': 'dict(str, str)'
|
42
43
|
}
|
43
44
|
|
44
45
|
attribute_map = {
|
@@ -47,10 +48,11 @@ class CreateInternalProductionJob(object):
|
|
47
48
|
'project_id': 'project_id',
|
48
49
|
'config': 'config',
|
49
50
|
'job_queue_config': 'job_queue_config',
|
50
|
-
'workspace_id': 'workspace_id'
|
51
|
+
'workspace_id': 'workspace_id',
|
52
|
+
'tags': 'tags'
|
51
53
|
}
|
52
54
|
|
53
|
-
def __init__(self, name=None, description=None, project_id=None, config=None, job_queue_config=None, workspace_id=None, local_vars_configuration=None): # noqa: E501
|
55
|
+
def __init__(self, name=None, description=None, project_id=None, config=None, job_queue_config=None, workspace_id=None, tags=None, local_vars_configuration=None): # noqa: E501
|
54
56
|
"""CreateInternalProductionJob - a model defined in OpenAPI""" # noqa: E501
|
55
57
|
if local_vars_configuration is None:
|
56
58
|
local_vars_configuration = Configuration()
|
@@ -62,6 +64,7 @@ class CreateInternalProductionJob(object):
|
|
62
64
|
self._config = None
|
63
65
|
self._job_queue_config = None
|
64
66
|
self._workspace_id = None
|
67
|
+
self._tags = None
|
65
68
|
self.discriminator = None
|
66
69
|
|
67
70
|
self.name = name
|
@@ -74,6 +77,8 @@ class CreateInternalProductionJob(object):
|
|
74
77
|
self.job_queue_config = job_queue_config
|
75
78
|
if workspace_id is not None:
|
76
79
|
self.workspace_id = workspace_id
|
80
|
+
if tags is not None:
|
81
|
+
self.tags = tags
|
77
82
|
|
78
83
|
@property
|
79
84
|
def name(self):
|
@@ -215,6 +220,29 @@ class CreateInternalProductionJob(object):
|
|
215
220
|
|
216
221
|
self._workspace_id = workspace_id
|
217
222
|
|
223
|
+
@property
|
224
|
+
def tags(self):
|
225
|
+
"""Gets the tags of this CreateInternalProductionJob. # noqa: E501
|
226
|
+
|
227
|
+
Tags to associate with the job # noqa: E501
|
228
|
+
|
229
|
+
:return: The tags of this CreateInternalProductionJob. # noqa: E501
|
230
|
+
:rtype: dict(str, str)
|
231
|
+
"""
|
232
|
+
return self._tags
|
233
|
+
|
234
|
+
@tags.setter
|
235
|
+
def tags(self, tags):
|
236
|
+
"""Sets the tags of this CreateInternalProductionJob.
|
237
|
+
|
238
|
+
Tags to associate with the job # noqa: E501
|
239
|
+
|
240
|
+
:param tags: The tags of this CreateInternalProductionJob. # noqa: E501
|
241
|
+
:type: dict(str, str)
|
242
|
+
"""
|
243
|
+
|
244
|
+
self._tags = tags
|
245
|
+
|
218
246
|
def to_dict(self):
|
219
247
|
"""Returns the model properties as a dict"""
|
220
248
|
result = {}
|
@@ -40,7 +40,8 @@ class CreateJobQueueRequests(object):
|
|
40
40
|
'max_concurrency': 'int',
|
41
41
|
'idle_timeout_sec': 'int',
|
42
42
|
'auto_termination_threshold_job_count': 'int',
|
43
|
-
'project_id': 'str'
|
43
|
+
'project_id': 'str',
|
44
|
+
'tags': 'dict(str, str)'
|
44
45
|
}
|
45
46
|
|
46
47
|
attribute_map = {
|
@@ -51,10 +52,11 @@ class CreateJobQueueRequests(object):
|
|
51
52
|
'max_concurrency': 'max_concurrency',
|
52
53
|
'idle_timeout_sec': 'idle_timeout_sec',
|
53
54
|
'auto_termination_threshold_job_count': 'auto_termination_threshold_job_count',
|
54
|
-
'project_id': 'project_id'
|
55
|
+
'project_id': 'project_id',
|
56
|
+
'tags': 'tags'
|
55
57
|
}
|
56
58
|
|
57
|
-
def __init__(self, job_queue_name=None, execution_mode=None, compute_config_id=None, cluster_environment_build_id=None, max_concurrency=1, idle_timeout_sec=None, auto_termination_threshold_job_count=None, project_id=None, local_vars_configuration=None): # noqa: E501
|
59
|
+
def __init__(self, job_queue_name=None, execution_mode=None, compute_config_id=None, cluster_environment_build_id=None, max_concurrency=1, idle_timeout_sec=None, auto_termination_threshold_job_count=None, project_id=None, tags=None, local_vars_configuration=None): # noqa: E501
|
58
60
|
"""CreateJobQueueRequests - a model defined in OpenAPI""" # noqa: E501
|
59
61
|
if local_vars_configuration is None:
|
60
62
|
local_vars_configuration = Configuration()
|
@@ -68,6 +70,7 @@ class CreateJobQueueRequests(object):
|
|
68
70
|
self._idle_timeout_sec = None
|
69
71
|
self._auto_termination_threshold_job_count = None
|
70
72
|
self._project_id = None
|
73
|
+
self._tags = None
|
71
74
|
self.discriminator = None
|
72
75
|
|
73
76
|
if job_queue_name is not None:
|
@@ -82,6 +85,8 @@ class CreateJobQueueRequests(object):
|
|
82
85
|
if auto_termination_threshold_job_count is not None:
|
83
86
|
self.auto_termination_threshold_job_count = auto_termination_threshold_job_count
|
84
87
|
self.project_id = project_id
|
88
|
+
if tags is not None:
|
89
|
+
self.tags = tags
|
85
90
|
|
86
91
|
@property
|
87
92
|
def job_queue_name(self):
|
@@ -275,6 +280,29 @@ class CreateJobQueueRequests(object):
|
|
275
280
|
|
276
281
|
self._project_id = project_id
|
277
282
|
|
283
|
+
@property
|
284
|
+
def tags(self):
|
285
|
+
"""Gets the tags of this CreateJobQueueRequests. # noqa: E501
|
286
|
+
|
287
|
+
Tags to associate with the job queue # noqa: E501
|
288
|
+
|
289
|
+
:return: The tags of this CreateJobQueueRequests. # noqa: E501
|
290
|
+
:rtype: dict(str, str)
|
291
|
+
"""
|
292
|
+
return self._tags
|
293
|
+
|
294
|
+
@tags.setter
|
295
|
+
def tags(self, tags):
|
296
|
+
"""Sets the tags of this CreateJobQueueRequests.
|
297
|
+
|
298
|
+
Tags to associate with the job queue # noqa: E501
|
299
|
+
|
300
|
+
:param tags: The tags of this CreateJobQueueRequests. # noqa: E501
|
301
|
+
:type: dict(str, str)
|
302
|
+
"""
|
303
|
+
|
304
|
+
self._tags = tags
|
305
|
+
|
278
306
|
def to_dict(self):
|
279
307
|
"""Returns the model properties as a dict"""
|
280
308
|
result = {}
|
@@ -0,0 +1,404 @@
|
|
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 CreateWorkspaceTemplate(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
|
+
'name': 'str',
|
37
|
+
'description': 'str',
|
38
|
+
'mins_to_complete': 'int',
|
39
|
+
'icon_type': 'WorkspaceTemplateIconType',
|
40
|
+
'icon_bg_color': 'WorkspaceTemplateIconBackgroundColor',
|
41
|
+
'complexity': 'WorkspaceTemplateComplexity',
|
42
|
+
'category': 'WorkspaceTemplateCategory',
|
43
|
+
'labels': 'list[str]',
|
44
|
+
'published_version_id': 'str',
|
45
|
+
'cloud_id': 'str',
|
46
|
+
'is_global': 'bool'
|
47
|
+
}
|
48
|
+
|
49
|
+
attribute_map = {
|
50
|
+
'name': 'name',
|
51
|
+
'description': 'description',
|
52
|
+
'mins_to_complete': 'mins_to_complete',
|
53
|
+
'icon_type': 'icon_type',
|
54
|
+
'icon_bg_color': 'icon_bg_color',
|
55
|
+
'complexity': 'complexity',
|
56
|
+
'category': 'category',
|
57
|
+
'labels': 'labels',
|
58
|
+
'published_version_id': 'published_version_id',
|
59
|
+
'cloud_id': 'cloud_id',
|
60
|
+
'is_global': 'is_global'
|
61
|
+
}
|
62
|
+
|
63
|
+
def __init__(self, name=None, description=None, mins_to_complete=None, icon_type=None, icon_bg_color=None, complexity=None, category=None, labels=None, published_version_id=None, cloud_id=None, is_global=False, local_vars_configuration=None): # noqa: E501
|
64
|
+
"""CreateWorkspaceTemplate - a model defined in OpenAPI""" # noqa: E501
|
65
|
+
if local_vars_configuration is None:
|
66
|
+
local_vars_configuration = Configuration()
|
67
|
+
self.local_vars_configuration = local_vars_configuration
|
68
|
+
|
69
|
+
self._name = None
|
70
|
+
self._description = None
|
71
|
+
self._mins_to_complete = None
|
72
|
+
self._icon_type = None
|
73
|
+
self._icon_bg_color = None
|
74
|
+
self._complexity = None
|
75
|
+
self._category = None
|
76
|
+
self._labels = None
|
77
|
+
self._published_version_id = None
|
78
|
+
self._cloud_id = None
|
79
|
+
self._is_global = None
|
80
|
+
self.discriminator = None
|
81
|
+
|
82
|
+
self.name = name
|
83
|
+
if description is not None:
|
84
|
+
self.description = description
|
85
|
+
if mins_to_complete is not None:
|
86
|
+
self.mins_to_complete = mins_to_complete
|
87
|
+
if icon_type is not None:
|
88
|
+
self.icon_type = icon_type
|
89
|
+
if icon_bg_color is not None:
|
90
|
+
self.icon_bg_color = icon_bg_color
|
91
|
+
if complexity is not None:
|
92
|
+
self.complexity = complexity
|
93
|
+
if category is not None:
|
94
|
+
self.category = category
|
95
|
+
if labels is not None:
|
96
|
+
self.labels = labels
|
97
|
+
if published_version_id is not None:
|
98
|
+
self.published_version_id = published_version_id
|
99
|
+
self.cloud_id = cloud_id
|
100
|
+
if is_global is not None:
|
101
|
+
self.is_global = is_global
|
102
|
+
|
103
|
+
@property
|
104
|
+
def name(self):
|
105
|
+
"""Gets the name of this CreateWorkspaceTemplate. # noqa: E501
|
106
|
+
|
107
|
+
Name of the template # noqa: E501
|
108
|
+
|
109
|
+
:return: The name of this CreateWorkspaceTemplate. # noqa: E501
|
110
|
+
:rtype: str
|
111
|
+
"""
|
112
|
+
return self._name
|
113
|
+
|
114
|
+
@name.setter
|
115
|
+
def name(self, name):
|
116
|
+
"""Sets the name of this CreateWorkspaceTemplate.
|
117
|
+
|
118
|
+
Name of the template # noqa: E501
|
119
|
+
|
120
|
+
:param name: The name of this CreateWorkspaceTemplate. # noqa: E501
|
121
|
+
:type: str
|
122
|
+
"""
|
123
|
+
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
124
|
+
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
125
|
+
|
126
|
+
self._name = name
|
127
|
+
|
128
|
+
@property
|
129
|
+
def description(self):
|
130
|
+
"""Gets the description of this CreateWorkspaceTemplate. # noqa: E501
|
131
|
+
|
132
|
+
Description of the template # noqa: E501
|
133
|
+
|
134
|
+
:return: The description of this CreateWorkspaceTemplate. # noqa: E501
|
135
|
+
:rtype: str
|
136
|
+
"""
|
137
|
+
return self._description
|
138
|
+
|
139
|
+
@description.setter
|
140
|
+
def description(self, description):
|
141
|
+
"""Sets the description of this CreateWorkspaceTemplate.
|
142
|
+
|
143
|
+
Description of the template # noqa: E501
|
144
|
+
|
145
|
+
:param description: The description of this CreateWorkspaceTemplate. # noqa: E501
|
146
|
+
:type: str
|
147
|
+
"""
|
148
|
+
|
149
|
+
self._description = description
|
150
|
+
|
151
|
+
@property
|
152
|
+
def mins_to_complete(self):
|
153
|
+
"""Gets the mins_to_complete of this CreateWorkspaceTemplate. # noqa: E501
|
154
|
+
|
155
|
+
Estimated minutes to complete this template # noqa: E501
|
156
|
+
|
157
|
+
:return: The mins_to_complete of this CreateWorkspaceTemplate. # noqa: E501
|
158
|
+
:rtype: int
|
159
|
+
"""
|
160
|
+
return self._mins_to_complete
|
161
|
+
|
162
|
+
@mins_to_complete.setter
|
163
|
+
def mins_to_complete(self, mins_to_complete):
|
164
|
+
"""Sets the mins_to_complete of this CreateWorkspaceTemplate.
|
165
|
+
|
166
|
+
Estimated minutes to complete this template # noqa: E501
|
167
|
+
|
168
|
+
:param mins_to_complete: The mins_to_complete of this CreateWorkspaceTemplate. # noqa: E501
|
169
|
+
:type: int
|
170
|
+
"""
|
171
|
+
|
172
|
+
self._mins_to_complete = mins_to_complete
|
173
|
+
|
174
|
+
@property
|
175
|
+
def icon_type(self):
|
176
|
+
"""Gets the icon_type of this CreateWorkspaceTemplate. # noqa: E501
|
177
|
+
|
178
|
+
Icon type for the template # noqa: E501
|
179
|
+
|
180
|
+
:return: The icon_type of this CreateWorkspaceTemplate. # noqa: E501
|
181
|
+
:rtype: WorkspaceTemplateIconType
|
182
|
+
"""
|
183
|
+
return self._icon_type
|
184
|
+
|
185
|
+
@icon_type.setter
|
186
|
+
def icon_type(self, icon_type):
|
187
|
+
"""Sets the icon_type of this CreateWorkspaceTemplate.
|
188
|
+
|
189
|
+
Icon type for the template # noqa: E501
|
190
|
+
|
191
|
+
:param icon_type: The icon_type of this CreateWorkspaceTemplate. # noqa: E501
|
192
|
+
:type: WorkspaceTemplateIconType
|
193
|
+
"""
|
194
|
+
|
195
|
+
self._icon_type = icon_type
|
196
|
+
|
197
|
+
@property
|
198
|
+
def icon_bg_color(self):
|
199
|
+
"""Gets the icon_bg_color of this CreateWorkspaceTemplate. # noqa: E501
|
200
|
+
|
201
|
+
Background color for the icon # noqa: E501
|
202
|
+
|
203
|
+
:return: The icon_bg_color of this CreateWorkspaceTemplate. # noqa: E501
|
204
|
+
:rtype: WorkspaceTemplateIconBackgroundColor
|
205
|
+
"""
|
206
|
+
return self._icon_bg_color
|
207
|
+
|
208
|
+
@icon_bg_color.setter
|
209
|
+
def icon_bg_color(self, icon_bg_color):
|
210
|
+
"""Sets the icon_bg_color of this CreateWorkspaceTemplate.
|
211
|
+
|
212
|
+
Background color for the icon # noqa: E501
|
213
|
+
|
214
|
+
:param icon_bg_color: The icon_bg_color of this CreateWorkspaceTemplate. # noqa: E501
|
215
|
+
:type: WorkspaceTemplateIconBackgroundColor
|
216
|
+
"""
|
217
|
+
|
218
|
+
self._icon_bg_color = icon_bg_color
|
219
|
+
|
220
|
+
@property
|
221
|
+
def complexity(self):
|
222
|
+
"""Gets the complexity of this CreateWorkspaceTemplate. # noqa: E501
|
223
|
+
|
224
|
+
Complexity level of the template # noqa: E501
|
225
|
+
|
226
|
+
:return: The complexity of this CreateWorkspaceTemplate. # noqa: E501
|
227
|
+
:rtype: WorkspaceTemplateComplexity
|
228
|
+
"""
|
229
|
+
return self._complexity
|
230
|
+
|
231
|
+
@complexity.setter
|
232
|
+
def complexity(self, complexity):
|
233
|
+
"""Sets the complexity of this CreateWorkspaceTemplate.
|
234
|
+
|
235
|
+
Complexity level of the template # noqa: E501
|
236
|
+
|
237
|
+
:param complexity: The complexity of this CreateWorkspaceTemplate. # noqa: E501
|
238
|
+
:type: WorkspaceTemplateComplexity
|
239
|
+
"""
|
240
|
+
|
241
|
+
self._complexity = complexity
|
242
|
+
|
243
|
+
@property
|
244
|
+
def category(self):
|
245
|
+
"""Gets the category of this CreateWorkspaceTemplate. # noqa: E501
|
246
|
+
|
247
|
+
Category of the template # noqa: E501
|
248
|
+
|
249
|
+
:return: The category of this CreateWorkspaceTemplate. # noqa: E501
|
250
|
+
:rtype: WorkspaceTemplateCategory
|
251
|
+
"""
|
252
|
+
return self._category
|
253
|
+
|
254
|
+
@category.setter
|
255
|
+
def category(self, category):
|
256
|
+
"""Sets the category of this CreateWorkspaceTemplate.
|
257
|
+
|
258
|
+
Category of the template # noqa: E501
|
259
|
+
|
260
|
+
:param category: The category of this CreateWorkspaceTemplate. # noqa: E501
|
261
|
+
:type: WorkspaceTemplateCategory
|
262
|
+
"""
|
263
|
+
|
264
|
+
self._category = category
|
265
|
+
|
266
|
+
@property
|
267
|
+
def labels(self):
|
268
|
+
"""Gets the labels of this CreateWorkspaceTemplate. # noqa: E501
|
269
|
+
|
270
|
+
Searchable labels for the template # noqa: E501
|
271
|
+
|
272
|
+
:return: The labels of this CreateWorkspaceTemplate. # noqa: E501
|
273
|
+
:rtype: list[str]
|
274
|
+
"""
|
275
|
+
return self._labels
|
276
|
+
|
277
|
+
@labels.setter
|
278
|
+
def labels(self, labels):
|
279
|
+
"""Sets the labels of this CreateWorkspaceTemplate.
|
280
|
+
|
281
|
+
Searchable labels for the template # noqa: E501
|
282
|
+
|
283
|
+
:param labels: The labels of this CreateWorkspaceTemplate. # noqa: E501
|
284
|
+
:type: list[str]
|
285
|
+
"""
|
286
|
+
|
287
|
+
self._labels = labels
|
288
|
+
|
289
|
+
@property
|
290
|
+
def published_version_id(self):
|
291
|
+
"""Gets the published_version_id of this CreateWorkspaceTemplate. # noqa: E501
|
292
|
+
|
293
|
+
ID of the published version # noqa: E501
|
294
|
+
|
295
|
+
:return: The published_version_id of this CreateWorkspaceTemplate. # noqa: E501
|
296
|
+
:rtype: str
|
297
|
+
"""
|
298
|
+
return self._published_version_id
|
299
|
+
|
300
|
+
@published_version_id.setter
|
301
|
+
def published_version_id(self, published_version_id):
|
302
|
+
"""Sets the published_version_id of this CreateWorkspaceTemplate.
|
303
|
+
|
304
|
+
ID of the published version # noqa: E501
|
305
|
+
|
306
|
+
:param published_version_id: The published_version_id of this CreateWorkspaceTemplate. # noqa: E501
|
307
|
+
:type: str
|
308
|
+
"""
|
309
|
+
|
310
|
+
self._published_version_id = published_version_id
|
311
|
+
|
312
|
+
@property
|
313
|
+
def cloud_id(self):
|
314
|
+
"""Gets the cloud_id of this CreateWorkspaceTemplate. # noqa: E501
|
315
|
+
|
316
|
+
Cloud ID this template is associated with # noqa: E501
|
317
|
+
|
318
|
+
:return: The cloud_id of this CreateWorkspaceTemplate. # noqa: E501
|
319
|
+
:rtype: str
|
320
|
+
"""
|
321
|
+
return self._cloud_id
|
322
|
+
|
323
|
+
@cloud_id.setter
|
324
|
+
def cloud_id(self, cloud_id):
|
325
|
+
"""Sets the cloud_id of this CreateWorkspaceTemplate.
|
326
|
+
|
327
|
+
Cloud ID this template is associated with # noqa: E501
|
328
|
+
|
329
|
+
:param cloud_id: The cloud_id of this CreateWorkspaceTemplate. # noqa: E501
|
330
|
+
:type: str
|
331
|
+
"""
|
332
|
+
if self.local_vars_configuration.client_side_validation and cloud_id is None: # noqa: E501
|
333
|
+
raise ValueError("Invalid value for `cloud_id`, must not be `None`") # noqa: E501
|
334
|
+
|
335
|
+
self._cloud_id = cloud_id
|
336
|
+
|
337
|
+
@property
|
338
|
+
def is_global(self):
|
339
|
+
"""Gets the is_global of this CreateWorkspaceTemplate. # noqa: E501
|
340
|
+
|
341
|
+
Whether this is a global template # noqa: E501
|
342
|
+
|
343
|
+
:return: The is_global of this CreateWorkspaceTemplate. # noqa: E501
|
344
|
+
:rtype: bool
|
345
|
+
"""
|
346
|
+
return self._is_global
|
347
|
+
|
348
|
+
@is_global.setter
|
349
|
+
def is_global(self, is_global):
|
350
|
+
"""Sets the is_global of this CreateWorkspaceTemplate.
|
351
|
+
|
352
|
+
Whether this is a global template # noqa: E501
|
353
|
+
|
354
|
+
:param is_global: The is_global of this CreateWorkspaceTemplate. # noqa: E501
|
355
|
+
:type: bool
|
356
|
+
"""
|
357
|
+
|
358
|
+
self._is_global = is_global
|
359
|
+
|
360
|
+
def to_dict(self):
|
361
|
+
"""Returns the model properties as a dict"""
|
362
|
+
result = {}
|
363
|
+
|
364
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
365
|
+
value = getattr(self, attr)
|
366
|
+
if isinstance(value, list):
|
367
|
+
result[attr] = list(map(
|
368
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
369
|
+
value
|
370
|
+
))
|
371
|
+
elif hasattr(value, "to_dict"):
|
372
|
+
result[attr] = value.to_dict()
|
373
|
+
elif isinstance(value, dict):
|
374
|
+
result[attr] = dict(map(
|
375
|
+
lambda item: (item[0], item[1].to_dict())
|
376
|
+
if hasattr(item[1], "to_dict") else item,
|
377
|
+
value.items()
|
378
|
+
))
|
379
|
+
else:
|
380
|
+
result[attr] = value
|
381
|
+
|
382
|
+
return result
|
383
|
+
|
384
|
+
def to_str(self):
|
385
|
+
"""Returns the string representation of the model"""
|
386
|
+
return pprint.pformat(self.to_dict())
|
387
|
+
|
388
|
+
def __repr__(self):
|
389
|
+
"""For `print` and `pprint`"""
|
390
|
+
return self.to_str()
|
391
|
+
|
392
|
+
def __eq__(self, other):
|
393
|
+
"""Returns true if both objects are equal"""
|
394
|
+
if not isinstance(other, CreateWorkspaceTemplate):
|
395
|
+
return False
|
396
|
+
|
397
|
+
return self.to_dict() == other.to_dict()
|
398
|
+
|
399
|
+
def __ne__(self, other):
|
400
|
+
"""Returns true if both objects are not equal"""
|
401
|
+
if not isinstance(other, CreateWorkspaceTemplate):
|
402
|
+
return True
|
403
|
+
|
404
|
+
return self.to_dict() != other.to_dict()
|