anyscale 0.26.22__py3-none-any.whl → 0.26.24__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/anyscale_client.py +1 -1
- anyscale/_private/anyscale_client/common.py +1 -1
- anyscale/_private/docgen/__main__.py +0 -8
- anyscale/_private/docgen/models.md +41 -184
- anyscale/_private/workload/workload_config.py +1 -1
- anyscale/client/README.md +2 -35
- anyscale/client/openapi_client/__init__.py +2 -21
- anyscale/client/openapi_client/api/default_api.py +275 -1868
- anyscale/client/openapi_client/models/__init__.py +2 -21
- anyscale/client/openapi_client/models/baseimagesenum.py +68 -1
- anyscale/client/openapi_client/models/cloud_data_bucket_file_type.py +2 -1
- anyscale/client/openapi_client/models/cloud_deployment.py +2 -2
- anyscale/client/openapi_client/models/cloud_deployment_compute_config.py +291 -0
- anyscale/client/openapi_client/models/cloud_deployment_selector.py +206 -0
- anyscale/client/openapi_client/models/cloud_providers.py +2 -1
- anyscale/client/openapi_client/models/compute_template_config.py +61 -34
- anyscale/client/openapi_client/models/create_cluster_compute_config.py +59 -31
- anyscale/client/openapi_client/models/create_compute_template_config.py +61 -34
- anyscale/client/openapi_client/models/create_workspace_from_template.py +3 -2
- anyscale/client/openapi_client/models/decorated_compute_template_config.py +61 -34
- anyscale/client/openapi_client/models/decorated_session.py +31 -3
- anyscale/client/openapi_client/models/supportedbaseimagesenum.py +68 -1
- anyscale/client/openapi_client/models/workspace_dataplane_proxied_artifacts.py +31 -3
- anyscale/cluster_compute.py +4 -4
- anyscale/commands/anyscale_api/sessions_commands.py +1 -70
- anyscale/commands/cloud_commands.py +5 -4
- anyscale/commands/image_commands.py +2 -2
- anyscale/commands/job_commands.py +1 -1
- anyscale/commands/service_commands.py +1 -1
- anyscale/commands/workspace_commands_v2.py +1 -1
- anyscale/connect_utils/prepare_cluster.py +1 -3
- anyscale/controllers/cloud_controller.py +12 -6
- anyscale/controllers/cloud_functional_verification_controller.py +2 -2
- anyscale/image/commands.py +1 -1
- anyscale/sdk/anyscale_client/__init__.py +2 -15
- anyscale/sdk/anyscale_client/api/default_api.py +1270 -2871
- anyscale/sdk/anyscale_client/models/__init__.py +2 -15
- anyscale/sdk/anyscale_client/models/baseimagesenum.py +68 -1
- anyscale/sdk/anyscale_client/models/cloud_deployment_compute_config.py +291 -0
- anyscale/sdk/anyscale_client/models/cloud_deployment_selector.py +206 -0
- anyscale/sdk/anyscale_client/models/cloud_providers.py +2 -1
- anyscale/sdk/anyscale_client/models/cluster_compute_config.py +61 -34
- anyscale/sdk/anyscale_client/models/cluster_services_urls.py +29 -1
- anyscale/sdk/anyscale_client/models/compute_template_config.py +61 -34
- anyscale/sdk/anyscale_client/models/create_cluster_compute_config.py +59 -31
- anyscale/sdk/anyscale_client/models/session.py +31 -3
- anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +68 -1
- anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
- anyscale/shared_anyscale_utils/utils/id_gen.py +3 -1
- anyscale/version.py +1 -1
- anyscale/workspace/models.py +1 -1
- {anyscale-0.26.22.dist-info → anyscale-0.26.24.dist-info}/METADATA +1 -1
- {anyscale-0.26.22.dist-info → anyscale-0.26.24.dist-info}/RECORD +58 -90
- anyscale/client/openapi_client/models/bank_account_information.py +0 -239
- anyscale/client/openapi_client/models/billing_information.py +0 -181
- anyscale/client/openapi_client/models/credit_card_information.py +0 -268
- anyscale/client/openapi_client/models/decoratedunifiedjob_response.py +0 -121
- anyscale/client/openapi_client/models/invoice.py +0 -413
- anyscale/client/openapi_client/models/invoice_list_response.py +0 -147
- anyscale/client/openapi_client/models/invoice_status.py +0 -102
- anyscale/client/openapi_client/models/invoices_query.py +0 -150
- anyscale/client/openapi_client/models/log_stream.py +0 -151
- anyscale/client/openapi_client/models/logstream_response.py +0 -121
- anyscale/client/openapi_client/models/miniproject_list_response.py +0 -147
- anyscale/client/openapi_client/models/organization_project_collaborator.py +0 -175
- anyscale/client/openapi_client/models/organization_project_collaborator_value.py +0 -148
- anyscale/client/openapi_client/models/organizationprojectcollaborator_list_response.py +0 -147
- anyscale/client/openapi_client/models/product_type.py +0 -100
- anyscale/client/openapi_client/models/service_usage.py +0 -353
- anyscale/client/openapi_client/models/templatized_compute_configs.py +0 -202
- anyscale/client/openapi_client/models/templatized_decorated_application_templates.py +0 -202
- anyscale/client/openapi_client/models/templatizedcomputeconfigs_response.py +0 -121
- anyscale/client/openapi_client/models/templatizeddecoratedapplicationtemplates_response.py +0 -121
- anyscale/client/openapi_client/models/write_session.py +0 -147
- anyscale/sdk/anyscale_client/models/build_list_response.py +0 -147
- anyscale/sdk/anyscale_client/models/build_log_response.py +0 -123
- anyscale/sdk/anyscale_client/models/buildlogresponse_response.py +0 -121
- anyscale/sdk/anyscale_client/models/compute_template_query.py +0 -316
- anyscale/sdk/anyscale_client/models/computetemplate_list_response.py +0 -147
- anyscale/sdk/anyscale_client/models/create_build.py +0 -263
- anyscale/sdk/anyscale_client/models/create_compute_template.py +0 -229
- anyscale/sdk/anyscale_client/models/create_compute_template_config.py +0 -464
- anyscale/sdk/anyscale_client/models/session_list_response.py +0 -147
- anyscale/sdk/anyscale_client/models/sessions_query.py +0 -206
- anyscale/sdk/anyscale_client/models/start_session_options.py +0 -206
- anyscale/sdk/anyscale_client/models/terminate_session_options.py +0 -206
- anyscale/sdk/anyscale_client/models/update_compute_template.py +0 -146
- anyscale/sdk/anyscale_client/models/update_compute_template_config.py +0 -464
- anyscale/sdk/anyscale_client/models/update_session.py +0 -150
- {anyscale-0.26.22.dist-info → anyscale-0.26.24.dist-info}/LICENSE +0 -0
- {anyscale-0.26.22.dist-info → anyscale-0.26.24.dist-info}/NOTICE +0 -0
- {anyscale-0.26.22.dist-info → anyscale-0.26.24.dist-info}/WHEEL +0 -0
- {anyscale-0.26.22.dist-info → anyscale-0.26.24.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.22.dist-info → anyscale-0.26.24.dist-info}/top_level.txt +0 -0
@@ -34,6 +34,8 @@ class ComputeTemplateConfig(object):
|
|
34
34
|
"""
|
35
35
|
openapi_types = {
|
36
36
|
'cloud_id': 'str',
|
37
|
+
'maximum_uptime_minutes': 'int',
|
38
|
+
'deployment_configs': 'list[CloudDeploymentComputeConfig]',
|
37
39
|
'max_workers': 'int',
|
38
40
|
'region': 'str',
|
39
41
|
'allowed_azs': 'list[str]',
|
@@ -42,7 +44,6 @@ class ComputeTemplateConfig(object):
|
|
42
44
|
'aws_advanced_configurations_json': 'object',
|
43
45
|
'gcp_advanced_configurations_json': 'object',
|
44
46
|
'advanced_configurations_json': 'object',
|
45
|
-
'maximum_uptime_minutes': 'int',
|
46
47
|
'auto_select_worker_config': 'bool',
|
47
48
|
'flags': 'object',
|
48
49
|
'idle_termination_minutes': 'int'
|
@@ -50,6 +51,8 @@ class ComputeTemplateConfig(object):
|
|
50
51
|
|
51
52
|
attribute_map = {
|
52
53
|
'cloud_id': 'cloud_id',
|
54
|
+
'maximum_uptime_minutes': 'maximum_uptime_minutes',
|
55
|
+
'deployment_configs': 'deployment_configs',
|
53
56
|
'max_workers': 'max_workers',
|
54
57
|
'region': 'region',
|
55
58
|
'allowed_azs': 'allowed_azs',
|
@@ -58,19 +61,20 @@ class ComputeTemplateConfig(object):
|
|
58
61
|
'aws_advanced_configurations_json': 'aws_advanced_configurations_json',
|
59
62
|
'gcp_advanced_configurations_json': 'gcp_advanced_configurations_json',
|
60
63
|
'advanced_configurations_json': 'advanced_configurations_json',
|
61
|
-
'maximum_uptime_minutes': 'maximum_uptime_minutes',
|
62
64
|
'auto_select_worker_config': 'auto_select_worker_config',
|
63
65
|
'flags': 'flags',
|
64
66
|
'idle_termination_minutes': 'idle_termination_minutes'
|
65
67
|
}
|
66
68
|
|
67
|
-
def __init__(self, cloud_id=None, max_workers=None, region=None, allowed_azs=None, head_node_type=None, worker_node_types=None, aws_advanced_configurations_json=None, gcp_advanced_configurations_json=None, advanced_configurations_json=None,
|
69
|
+
def __init__(self, cloud_id=None, maximum_uptime_minutes=None, deployment_configs=None, max_workers=None, region=None, allowed_azs=None, head_node_type=None, worker_node_types=None, aws_advanced_configurations_json=None, gcp_advanced_configurations_json=None, advanced_configurations_json=None, auto_select_worker_config=False, flags=None, idle_termination_minutes=None, local_vars_configuration=None): # noqa: E501
|
68
70
|
"""ComputeTemplateConfig - a model defined in OpenAPI""" # noqa: E501
|
69
71
|
if local_vars_configuration is None:
|
70
72
|
local_vars_configuration = Configuration()
|
71
73
|
self.local_vars_configuration = local_vars_configuration
|
72
74
|
|
73
75
|
self._cloud_id = None
|
76
|
+
self._maximum_uptime_minutes = None
|
77
|
+
self._deployment_configs = None
|
74
78
|
self._max_workers = None
|
75
79
|
self._region = None
|
76
80
|
self._allowed_azs = None
|
@@ -79,16 +83,20 @@ class ComputeTemplateConfig(object):
|
|
79
83
|
self._aws_advanced_configurations_json = None
|
80
84
|
self._gcp_advanced_configurations_json = None
|
81
85
|
self._advanced_configurations_json = None
|
82
|
-
self._maximum_uptime_minutes = None
|
83
86
|
self._auto_select_worker_config = None
|
84
87
|
self._flags = None
|
85
88
|
self._idle_termination_minutes = None
|
86
89
|
self.discriminator = None
|
87
90
|
|
88
91
|
self.cloud_id = cloud_id
|
92
|
+
if maximum_uptime_minutes is not None:
|
93
|
+
self.maximum_uptime_minutes = maximum_uptime_minutes
|
94
|
+
if deployment_configs is not None:
|
95
|
+
self.deployment_configs = deployment_configs
|
89
96
|
if max_workers is not None:
|
90
97
|
self.max_workers = max_workers
|
91
|
-
|
98
|
+
if region is not None:
|
99
|
+
self.region = region
|
92
100
|
if allowed_azs is not None:
|
93
101
|
self.allowed_azs = allowed_azs
|
94
102
|
self.head_node_type = head_node_type
|
@@ -100,8 +108,6 @@ class ComputeTemplateConfig(object):
|
|
100
108
|
self.gcp_advanced_configurations_json = gcp_advanced_configurations_json
|
101
109
|
if advanced_configurations_json is not None:
|
102
110
|
self.advanced_configurations_json = advanced_configurations_json
|
103
|
-
if maximum_uptime_minutes is not None:
|
104
|
-
self.maximum_uptime_minutes = maximum_uptime_minutes
|
105
111
|
if auto_select_worker_config is not None:
|
106
112
|
self.auto_select_worker_config = auto_select_worker_config
|
107
113
|
if flags is not None:
|
@@ -134,11 +140,57 @@ class ComputeTemplateConfig(object):
|
|
134
140
|
|
135
141
|
self._cloud_id = cloud_id
|
136
142
|
|
143
|
+
@property
|
144
|
+
def maximum_uptime_minutes(self):
|
145
|
+
"""Gets the maximum_uptime_minutes of this ComputeTemplateConfig. # noqa: E501
|
146
|
+
|
147
|
+
If set to a positive number, Anyscale will terminate the cluster this many minutes after cluster start. # noqa: E501
|
148
|
+
|
149
|
+
:return: The maximum_uptime_minutes of this ComputeTemplateConfig. # noqa: E501
|
150
|
+
:rtype: int
|
151
|
+
"""
|
152
|
+
return self._maximum_uptime_minutes
|
153
|
+
|
154
|
+
@maximum_uptime_minutes.setter
|
155
|
+
def maximum_uptime_minutes(self, maximum_uptime_minutes):
|
156
|
+
"""Sets the maximum_uptime_minutes of this ComputeTemplateConfig.
|
157
|
+
|
158
|
+
If set to a positive number, Anyscale will terminate the cluster this many minutes after cluster start. # noqa: E501
|
159
|
+
|
160
|
+
:param maximum_uptime_minutes: The maximum_uptime_minutes of this ComputeTemplateConfig. # noqa: E501
|
161
|
+
:type: int
|
162
|
+
"""
|
163
|
+
|
164
|
+
self._maximum_uptime_minutes = maximum_uptime_minutes
|
165
|
+
|
166
|
+
@property
|
167
|
+
def deployment_configs(self):
|
168
|
+
"""Gets the deployment_configs of this ComputeTemplateConfig. # noqa: E501
|
169
|
+
|
170
|
+
A list of cloud deployment-specific configs to use. # noqa: E501
|
171
|
+
|
172
|
+
:return: The deployment_configs of this ComputeTemplateConfig. # noqa: E501
|
173
|
+
:rtype: list[CloudDeploymentComputeConfig]
|
174
|
+
"""
|
175
|
+
return self._deployment_configs
|
176
|
+
|
177
|
+
@deployment_configs.setter
|
178
|
+
def deployment_configs(self, deployment_configs):
|
179
|
+
"""Sets the deployment_configs of this ComputeTemplateConfig.
|
180
|
+
|
181
|
+
A list of cloud deployment-specific configs to use. # noqa: E501
|
182
|
+
|
183
|
+
:param deployment_configs: The deployment_configs of this ComputeTemplateConfig. # noqa: E501
|
184
|
+
:type: list[CloudDeploymentComputeConfig]
|
185
|
+
"""
|
186
|
+
|
187
|
+
self._deployment_configs = deployment_configs
|
188
|
+
|
137
189
|
@property
|
138
190
|
def max_workers(self):
|
139
191
|
"""Gets the max_workers of this ComputeTemplateConfig. # noqa: E501
|
140
192
|
|
141
|
-
|
193
|
+
DEPRECATED. This attribute will be ignored - please use the \"max_resources\" flag to configure resource limits. # noqa: E501
|
142
194
|
|
143
195
|
:return: The max_workers of this ComputeTemplateConfig. # noqa: E501
|
144
196
|
:rtype: int
|
@@ -149,7 +201,7 @@ class ComputeTemplateConfig(object):
|
|
149
201
|
def max_workers(self, max_workers):
|
150
202
|
"""Sets the max_workers of this ComputeTemplateConfig.
|
151
203
|
|
152
|
-
|
204
|
+
DEPRECATED. This attribute will be ignored - please use the \"max_resources\" flag to configure resource limits. # noqa: E501
|
153
205
|
|
154
206
|
:param max_workers: The max_workers of this ComputeTemplateConfig. # noqa: E501
|
155
207
|
:type: int
|
@@ -177,8 +229,6 @@ class ComputeTemplateConfig(object):
|
|
177
229
|
:param region: The region of this ComputeTemplateConfig. # noqa: E501
|
178
230
|
:type: str
|
179
231
|
"""
|
180
|
-
if self.local_vars_configuration.client_side_validation and region is None: # noqa: E501
|
181
|
-
raise ValueError("Invalid value for `region`, must not be `None`") # noqa: E501
|
182
232
|
|
183
233
|
self._region = region
|
184
234
|
|
@@ -322,29 +372,6 @@ class ComputeTemplateConfig(object):
|
|
322
372
|
|
323
373
|
self._advanced_configurations_json = advanced_configurations_json
|
324
374
|
|
325
|
-
@property
|
326
|
-
def maximum_uptime_minutes(self):
|
327
|
-
"""Gets the maximum_uptime_minutes of this ComputeTemplateConfig. # noqa: E501
|
328
|
-
|
329
|
-
If set to a positive number, Anyscale will terminate the cluster this many minutes after cluster start. # noqa: E501
|
330
|
-
|
331
|
-
:return: The maximum_uptime_minutes of this ComputeTemplateConfig. # noqa: E501
|
332
|
-
:rtype: int
|
333
|
-
"""
|
334
|
-
return self._maximum_uptime_minutes
|
335
|
-
|
336
|
-
@maximum_uptime_minutes.setter
|
337
|
-
def maximum_uptime_minutes(self, maximum_uptime_minutes):
|
338
|
-
"""Sets the maximum_uptime_minutes of this ComputeTemplateConfig.
|
339
|
-
|
340
|
-
If set to a positive number, Anyscale will terminate the cluster this many minutes after cluster start. # noqa: E501
|
341
|
-
|
342
|
-
:param maximum_uptime_minutes: The maximum_uptime_minutes of this ComputeTemplateConfig. # noqa: E501
|
343
|
-
:type: int
|
344
|
-
"""
|
345
|
-
|
346
|
-
self._maximum_uptime_minutes = maximum_uptime_minutes
|
347
|
-
|
348
375
|
@property
|
349
376
|
def auto_select_worker_config(self):
|
350
377
|
"""Gets the auto_select_worker_config of this ComputeTemplateConfig. # noqa: E501
|
@@ -34,6 +34,8 @@ class CreateClusterComputeConfig(object):
|
|
34
34
|
"""
|
35
35
|
openapi_types = {
|
36
36
|
'cloud_id': 'str',
|
37
|
+
'maximum_uptime_minutes': 'int',
|
38
|
+
'deployment_configs': 'list[CloudDeploymentComputeConfig]',
|
37
39
|
'max_workers': 'int',
|
38
40
|
'region': 'str',
|
39
41
|
'allowed_azs': 'list[str]',
|
@@ -42,7 +44,6 @@ class CreateClusterComputeConfig(object):
|
|
42
44
|
'aws_advanced_configurations_json': 'object',
|
43
45
|
'gcp_advanced_configurations_json': 'object',
|
44
46
|
'advanced_configurations_json': 'object',
|
45
|
-
'maximum_uptime_minutes': 'int',
|
46
47
|
'auto_select_worker_config': 'bool',
|
47
48
|
'flags': 'object',
|
48
49
|
'idle_termination_minutes': 'int'
|
@@ -50,6 +51,8 @@ class CreateClusterComputeConfig(object):
|
|
50
51
|
|
51
52
|
attribute_map = {
|
52
53
|
'cloud_id': 'cloud_id',
|
54
|
+
'maximum_uptime_minutes': 'maximum_uptime_minutes',
|
55
|
+
'deployment_configs': 'deployment_configs',
|
53
56
|
'max_workers': 'max_workers',
|
54
57
|
'region': 'region',
|
55
58
|
'allowed_azs': 'allowed_azs',
|
@@ -58,19 +61,20 @@ class CreateClusterComputeConfig(object):
|
|
58
61
|
'aws_advanced_configurations_json': 'aws_advanced_configurations_json',
|
59
62
|
'gcp_advanced_configurations_json': 'gcp_advanced_configurations_json',
|
60
63
|
'advanced_configurations_json': 'advanced_configurations_json',
|
61
|
-
'maximum_uptime_minutes': 'maximum_uptime_minutes',
|
62
64
|
'auto_select_worker_config': 'auto_select_worker_config',
|
63
65
|
'flags': 'flags',
|
64
66
|
'idle_termination_minutes': 'idle_termination_minutes'
|
65
67
|
}
|
66
68
|
|
67
|
-
def __init__(self, cloud_id=None, max_workers=None, region='USE_CLOUD', allowed_azs=None, head_node_type=None, worker_node_types=None, aws_advanced_configurations_json=None, gcp_advanced_configurations_json=None, advanced_configurations_json=None,
|
69
|
+
def __init__(self, cloud_id=None, maximum_uptime_minutes=None, deployment_configs=None, max_workers=None, region='USE_CLOUD', allowed_azs=None, head_node_type=None, worker_node_types=None, aws_advanced_configurations_json=None, gcp_advanced_configurations_json=None, advanced_configurations_json=None, auto_select_worker_config=False, flags=None, idle_termination_minutes=120, local_vars_configuration=None): # noqa: E501
|
68
70
|
"""CreateClusterComputeConfig - a model defined in OpenAPI""" # noqa: E501
|
69
71
|
if local_vars_configuration is None:
|
70
72
|
local_vars_configuration = Configuration()
|
71
73
|
self.local_vars_configuration = local_vars_configuration
|
72
74
|
|
73
75
|
self._cloud_id = None
|
76
|
+
self._maximum_uptime_minutes = None
|
77
|
+
self._deployment_configs = None
|
74
78
|
self._max_workers = None
|
75
79
|
self._region = None
|
76
80
|
self._allowed_azs = None
|
@@ -79,13 +83,16 @@ class CreateClusterComputeConfig(object):
|
|
79
83
|
self._aws_advanced_configurations_json = None
|
80
84
|
self._gcp_advanced_configurations_json = None
|
81
85
|
self._advanced_configurations_json = None
|
82
|
-
self._maximum_uptime_minutes = None
|
83
86
|
self._auto_select_worker_config = None
|
84
87
|
self._flags = None
|
85
88
|
self._idle_termination_minutes = None
|
86
89
|
self.discriminator = None
|
87
90
|
|
88
91
|
self.cloud_id = cloud_id
|
92
|
+
if maximum_uptime_minutes is not None:
|
93
|
+
self.maximum_uptime_minutes = maximum_uptime_minutes
|
94
|
+
if deployment_configs is not None:
|
95
|
+
self.deployment_configs = deployment_configs
|
89
96
|
if max_workers is not None:
|
90
97
|
self.max_workers = max_workers
|
91
98
|
if region is not None:
|
@@ -101,8 +108,6 @@ class CreateClusterComputeConfig(object):
|
|
101
108
|
self.gcp_advanced_configurations_json = gcp_advanced_configurations_json
|
102
109
|
if advanced_configurations_json is not None:
|
103
110
|
self.advanced_configurations_json = advanced_configurations_json
|
104
|
-
if maximum_uptime_minutes is not None:
|
105
|
-
self.maximum_uptime_minutes = maximum_uptime_minutes
|
106
111
|
if auto_select_worker_config is not None:
|
107
112
|
self.auto_select_worker_config = auto_select_worker_config
|
108
113
|
if flags is not None:
|
@@ -135,11 +140,57 @@ class CreateClusterComputeConfig(object):
|
|
135
140
|
|
136
141
|
self._cloud_id = cloud_id
|
137
142
|
|
143
|
+
@property
|
144
|
+
def maximum_uptime_minutes(self):
|
145
|
+
"""Gets the maximum_uptime_minutes of this CreateClusterComputeConfig. # noqa: E501
|
146
|
+
|
147
|
+
If set to a positive number, Anyscale will terminate the cluster this many minutes after cluster start. # noqa: E501
|
148
|
+
|
149
|
+
:return: The maximum_uptime_minutes of this CreateClusterComputeConfig. # noqa: E501
|
150
|
+
:rtype: int
|
151
|
+
"""
|
152
|
+
return self._maximum_uptime_minutes
|
153
|
+
|
154
|
+
@maximum_uptime_minutes.setter
|
155
|
+
def maximum_uptime_minutes(self, maximum_uptime_minutes):
|
156
|
+
"""Sets the maximum_uptime_minutes of this CreateClusterComputeConfig.
|
157
|
+
|
158
|
+
If set to a positive number, Anyscale will terminate the cluster this many minutes after cluster start. # noqa: E501
|
159
|
+
|
160
|
+
:param maximum_uptime_minutes: The maximum_uptime_minutes of this CreateClusterComputeConfig. # noqa: E501
|
161
|
+
:type: int
|
162
|
+
"""
|
163
|
+
|
164
|
+
self._maximum_uptime_minutes = maximum_uptime_minutes
|
165
|
+
|
166
|
+
@property
|
167
|
+
def deployment_configs(self):
|
168
|
+
"""Gets the deployment_configs of this CreateClusterComputeConfig. # noqa: E501
|
169
|
+
|
170
|
+
A list of cloud deployment-specific configs to use. # noqa: E501
|
171
|
+
|
172
|
+
:return: The deployment_configs of this CreateClusterComputeConfig. # noqa: E501
|
173
|
+
:rtype: list[CloudDeploymentComputeConfig]
|
174
|
+
"""
|
175
|
+
return self._deployment_configs
|
176
|
+
|
177
|
+
@deployment_configs.setter
|
178
|
+
def deployment_configs(self, deployment_configs):
|
179
|
+
"""Sets the deployment_configs of this CreateClusterComputeConfig.
|
180
|
+
|
181
|
+
A list of cloud deployment-specific configs to use. # noqa: E501
|
182
|
+
|
183
|
+
:param deployment_configs: The deployment_configs of this CreateClusterComputeConfig. # noqa: E501
|
184
|
+
:type: list[CloudDeploymentComputeConfig]
|
185
|
+
"""
|
186
|
+
|
187
|
+
self._deployment_configs = deployment_configs
|
188
|
+
|
138
189
|
@property
|
139
190
|
def max_workers(self):
|
140
191
|
"""Gets the max_workers of this CreateClusterComputeConfig. # noqa: E501
|
141
192
|
|
142
|
-
|
193
|
+
DEPRECATED. This attribute will be ignored - please use the \"max_resources\" flag to configure resource limits. # noqa: E501
|
143
194
|
|
144
195
|
:return: The max_workers of this CreateClusterComputeConfig. # noqa: E501
|
145
196
|
:rtype: int
|
@@ -150,7 +201,7 @@ class CreateClusterComputeConfig(object):
|
|
150
201
|
def max_workers(self, max_workers):
|
151
202
|
"""Sets the max_workers of this CreateClusterComputeConfig.
|
152
203
|
|
153
|
-
|
204
|
+
DEPRECATED. This attribute will be ignored - please use the \"max_resources\" flag to configure resource limits. # noqa: E501
|
154
205
|
|
155
206
|
:param max_workers: The max_workers of this CreateClusterComputeConfig. # noqa: E501
|
156
207
|
:type: int
|
@@ -321,29 +372,6 @@ class CreateClusterComputeConfig(object):
|
|
321
372
|
|
322
373
|
self._advanced_configurations_json = advanced_configurations_json
|
323
374
|
|
324
|
-
@property
|
325
|
-
def maximum_uptime_minutes(self):
|
326
|
-
"""Gets the maximum_uptime_minutes of this CreateClusterComputeConfig. # noqa: E501
|
327
|
-
|
328
|
-
If set to a positive number, Anyscale will terminate the cluster this many minutes after cluster start. # noqa: E501
|
329
|
-
|
330
|
-
:return: The maximum_uptime_minutes of this CreateClusterComputeConfig. # noqa: E501
|
331
|
-
:rtype: int
|
332
|
-
"""
|
333
|
-
return self._maximum_uptime_minutes
|
334
|
-
|
335
|
-
@maximum_uptime_minutes.setter
|
336
|
-
def maximum_uptime_minutes(self, maximum_uptime_minutes):
|
337
|
-
"""Sets the maximum_uptime_minutes of this CreateClusterComputeConfig.
|
338
|
-
|
339
|
-
If set to a positive number, Anyscale will terminate the cluster this many minutes after cluster start. # noqa: E501
|
340
|
-
|
341
|
-
:param maximum_uptime_minutes: The maximum_uptime_minutes of this CreateClusterComputeConfig. # noqa: E501
|
342
|
-
:type: int
|
343
|
-
"""
|
344
|
-
|
345
|
-
self._maximum_uptime_minutes = maximum_uptime_minutes
|
346
|
-
|
347
375
|
@property
|
348
376
|
def auto_select_worker_config(self):
|
349
377
|
"""Gets the auto_select_worker_config of this CreateClusterComputeConfig. # noqa: E501
|
@@ -34,6 +34,8 @@ class CreateComputeTemplateConfig(object):
|
|
34
34
|
"""
|
35
35
|
openapi_types = {
|
36
36
|
'cloud_id': 'str',
|
37
|
+
'maximum_uptime_minutes': 'int',
|
38
|
+
'deployment_configs': 'list[CloudDeploymentComputeConfig]',
|
37
39
|
'max_workers': 'int',
|
38
40
|
'region': 'str',
|
39
41
|
'allowed_azs': 'list[str]',
|
@@ -42,7 +44,6 @@ class CreateComputeTemplateConfig(object):
|
|
42
44
|
'aws_advanced_configurations_json': 'object',
|
43
45
|
'gcp_advanced_configurations_json': 'object',
|
44
46
|
'advanced_configurations_json': 'object',
|
45
|
-
'maximum_uptime_minutes': 'int',
|
46
47
|
'auto_select_worker_config': 'bool',
|
47
48
|
'flags': 'object',
|
48
49
|
'idle_termination_minutes': 'int'
|
@@ -50,6 +51,8 @@ class CreateComputeTemplateConfig(object):
|
|
50
51
|
|
51
52
|
attribute_map = {
|
52
53
|
'cloud_id': 'cloud_id',
|
54
|
+
'maximum_uptime_minutes': 'maximum_uptime_minutes',
|
55
|
+
'deployment_configs': 'deployment_configs',
|
53
56
|
'max_workers': 'max_workers',
|
54
57
|
'region': 'region',
|
55
58
|
'allowed_azs': 'allowed_azs',
|
@@ -58,19 +61,20 @@ class CreateComputeTemplateConfig(object):
|
|
58
61
|
'aws_advanced_configurations_json': 'aws_advanced_configurations_json',
|
59
62
|
'gcp_advanced_configurations_json': 'gcp_advanced_configurations_json',
|
60
63
|
'advanced_configurations_json': 'advanced_configurations_json',
|
61
|
-
'maximum_uptime_minutes': 'maximum_uptime_minutes',
|
62
64
|
'auto_select_worker_config': 'auto_select_worker_config',
|
63
65
|
'flags': 'flags',
|
64
66
|
'idle_termination_minutes': 'idle_termination_minutes'
|
65
67
|
}
|
66
68
|
|
67
|
-
def __init__(self, cloud_id=None, max_workers=None, region=None, allowed_azs=None, head_node_type=None, worker_node_types=None, aws_advanced_configurations_json=None, gcp_advanced_configurations_json=None, advanced_configurations_json=None,
|
69
|
+
def __init__(self, cloud_id=None, maximum_uptime_minutes=None, deployment_configs=None, max_workers=None, region=None, allowed_azs=None, head_node_type=None, worker_node_types=None, aws_advanced_configurations_json=None, gcp_advanced_configurations_json=None, advanced_configurations_json=None, auto_select_worker_config=False, flags=None, idle_termination_minutes=120, local_vars_configuration=None): # noqa: E501
|
68
70
|
"""CreateComputeTemplateConfig - a model defined in OpenAPI""" # noqa: E501
|
69
71
|
if local_vars_configuration is None:
|
70
72
|
local_vars_configuration = Configuration()
|
71
73
|
self.local_vars_configuration = local_vars_configuration
|
72
74
|
|
73
75
|
self._cloud_id = None
|
76
|
+
self._maximum_uptime_minutes = None
|
77
|
+
self._deployment_configs = None
|
74
78
|
self._max_workers = None
|
75
79
|
self._region = None
|
76
80
|
self._allowed_azs = None
|
@@ -79,16 +83,20 @@ class CreateComputeTemplateConfig(object):
|
|
79
83
|
self._aws_advanced_configurations_json = None
|
80
84
|
self._gcp_advanced_configurations_json = None
|
81
85
|
self._advanced_configurations_json = None
|
82
|
-
self._maximum_uptime_minutes = None
|
83
86
|
self._auto_select_worker_config = None
|
84
87
|
self._flags = None
|
85
88
|
self._idle_termination_minutes = None
|
86
89
|
self.discriminator = None
|
87
90
|
|
88
91
|
self.cloud_id = cloud_id
|
92
|
+
if maximum_uptime_minutes is not None:
|
93
|
+
self.maximum_uptime_minutes = maximum_uptime_minutes
|
94
|
+
if deployment_configs is not None:
|
95
|
+
self.deployment_configs = deployment_configs
|
89
96
|
if max_workers is not None:
|
90
97
|
self.max_workers = max_workers
|
91
|
-
|
98
|
+
if region is not None:
|
99
|
+
self.region = region
|
92
100
|
if allowed_azs is not None:
|
93
101
|
self.allowed_azs = allowed_azs
|
94
102
|
self.head_node_type = head_node_type
|
@@ -100,8 +108,6 @@ class CreateComputeTemplateConfig(object):
|
|
100
108
|
self.gcp_advanced_configurations_json = gcp_advanced_configurations_json
|
101
109
|
if advanced_configurations_json is not None:
|
102
110
|
self.advanced_configurations_json = advanced_configurations_json
|
103
|
-
if maximum_uptime_minutes is not None:
|
104
|
-
self.maximum_uptime_minutes = maximum_uptime_minutes
|
105
111
|
if auto_select_worker_config is not None:
|
106
112
|
self.auto_select_worker_config = auto_select_worker_config
|
107
113
|
if flags is not None:
|
@@ -134,11 +140,57 @@ class CreateComputeTemplateConfig(object):
|
|
134
140
|
|
135
141
|
self._cloud_id = cloud_id
|
136
142
|
|
143
|
+
@property
|
144
|
+
def maximum_uptime_minutes(self):
|
145
|
+
"""Gets the maximum_uptime_minutes of this CreateComputeTemplateConfig. # noqa: E501
|
146
|
+
|
147
|
+
If set to a positive number, Anyscale will terminate the cluster this many minutes after cluster start. # noqa: E501
|
148
|
+
|
149
|
+
:return: The maximum_uptime_minutes of this CreateComputeTemplateConfig. # noqa: E501
|
150
|
+
:rtype: int
|
151
|
+
"""
|
152
|
+
return self._maximum_uptime_minutes
|
153
|
+
|
154
|
+
@maximum_uptime_minutes.setter
|
155
|
+
def maximum_uptime_minutes(self, maximum_uptime_minutes):
|
156
|
+
"""Sets the maximum_uptime_minutes of this CreateComputeTemplateConfig.
|
157
|
+
|
158
|
+
If set to a positive number, Anyscale will terminate the cluster this many minutes after cluster start. # noqa: E501
|
159
|
+
|
160
|
+
:param maximum_uptime_minutes: The maximum_uptime_minutes of this CreateComputeTemplateConfig. # noqa: E501
|
161
|
+
:type: int
|
162
|
+
"""
|
163
|
+
|
164
|
+
self._maximum_uptime_minutes = maximum_uptime_minutes
|
165
|
+
|
166
|
+
@property
|
167
|
+
def deployment_configs(self):
|
168
|
+
"""Gets the deployment_configs of this CreateComputeTemplateConfig. # noqa: E501
|
169
|
+
|
170
|
+
A list of cloud deployment-specific configs to use. # noqa: E501
|
171
|
+
|
172
|
+
:return: The deployment_configs of this CreateComputeTemplateConfig. # noqa: E501
|
173
|
+
:rtype: list[CloudDeploymentComputeConfig]
|
174
|
+
"""
|
175
|
+
return self._deployment_configs
|
176
|
+
|
177
|
+
@deployment_configs.setter
|
178
|
+
def deployment_configs(self, deployment_configs):
|
179
|
+
"""Sets the deployment_configs of this CreateComputeTemplateConfig.
|
180
|
+
|
181
|
+
A list of cloud deployment-specific configs to use. # noqa: E501
|
182
|
+
|
183
|
+
:param deployment_configs: The deployment_configs of this CreateComputeTemplateConfig. # noqa: E501
|
184
|
+
:type: list[CloudDeploymentComputeConfig]
|
185
|
+
"""
|
186
|
+
|
187
|
+
self._deployment_configs = deployment_configs
|
188
|
+
|
137
189
|
@property
|
138
190
|
def max_workers(self):
|
139
191
|
"""Gets the max_workers of this CreateComputeTemplateConfig. # noqa: E501
|
140
192
|
|
141
|
-
|
193
|
+
DEPRECATED. This attribute will be ignored - please use the \"max_resources\" flag to configure resource limits. # noqa: E501
|
142
194
|
|
143
195
|
:return: The max_workers of this CreateComputeTemplateConfig. # noqa: E501
|
144
196
|
:rtype: int
|
@@ -149,7 +201,7 @@ class CreateComputeTemplateConfig(object):
|
|
149
201
|
def max_workers(self, max_workers):
|
150
202
|
"""Sets the max_workers of this CreateComputeTemplateConfig.
|
151
203
|
|
152
|
-
|
204
|
+
DEPRECATED. This attribute will be ignored - please use the \"max_resources\" flag to configure resource limits. # noqa: E501
|
153
205
|
|
154
206
|
:param max_workers: The max_workers of this CreateComputeTemplateConfig. # noqa: E501
|
155
207
|
:type: int
|
@@ -177,8 +229,6 @@ class CreateComputeTemplateConfig(object):
|
|
177
229
|
:param region: The region of this CreateComputeTemplateConfig. # noqa: E501
|
178
230
|
:type: str
|
179
231
|
"""
|
180
|
-
if self.local_vars_configuration.client_side_validation and region is None: # noqa: E501
|
181
|
-
raise ValueError("Invalid value for `region`, must not be `None`") # noqa: E501
|
182
232
|
|
183
233
|
self._region = region
|
184
234
|
|
@@ -322,29 +372,6 @@ class CreateComputeTemplateConfig(object):
|
|
322
372
|
|
323
373
|
self._advanced_configurations_json = advanced_configurations_json
|
324
374
|
|
325
|
-
@property
|
326
|
-
def maximum_uptime_minutes(self):
|
327
|
-
"""Gets the maximum_uptime_minutes of this CreateComputeTemplateConfig. # noqa: E501
|
328
|
-
|
329
|
-
If set to a positive number, Anyscale will terminate the cluster this many minutes after cluster start. # noqa: E501
|
330
|
-
|
331
|
-
:return: The maximum_uptime_minutes of this CreateComputeTemplateConfig. # noqa: E501
|
332
|
-
:rtype: int
|
333
|
-
"""
|
334
|
-
return self._maximum_uptime_minutes
|
335
|
-
|
336
|
-
@maximum_uptime_minutes.setter
|
337
|
-
def maximum_uptime_minutes(self, maximum_uptime_minutes):
|
338
|
-
"""Sets the maximum_uptime_minutes of this CreateComputeTemplateConfig.
|
339
|
-
|
340
|
-
If set to a positive number, Anyscale will terminate the cluster this many minutes after cluster start. # noqa: E501
|
341
|
-
|
342
|
-
:param maximum_uptime_minutes: The maximum_uptime_minutes of this CreateComputeTemplateConfig. # noqa: E501
|
343
|
-
:type: int
|
344
|
-
"""
|
345
|
-
|
346
|
-
self._maximum_uptime_minutes = maximum_uptime_minutes
|
347
|
-
|
348
375
|
@property
|
349
376
|
def auto_select_worker_config(self):
|
350
377
|
"""Gets the auto_select_worker_config of this CreateComputeTemplateConfig. # noqa: E501
|
@@ -65,8 +65,7 @@ class CreateWorkspaceFromTemplate(object):
|
|
65
65
|
self.discriminator = None
|
66
66
|
|
67
67
|
self.template_id = template_id
|
68
|
-
|
69
|
-
self.cloud_id = cloud_id
|
68
|
+
self.cloud_id = cloud_id
|
70
69
|
if project_id is not None:
|
71
70
|
self.project_id = project_id
|
72
71
|
if skip_start is not None:
|
@@ -121,6 +120,8 @@ class CreateWorkspaceFromTemplate(object):
|
|
121
120
|
:param cloud_id: The cloud_id of this CreateWorkspaceFromTemplate. # noqa: E501
|
122
121
|
:type: str
|
123
122
|
"""
|
123
|
+
if self.local_vars_configuration.client_side_validation and cloud_id is None: # noqa: E501
|
124
|
+
raise ValueError("Invalid value for `cloud_id`, must not be `None`") # noqa: E501
|
124
125
|
|
125
126
|
self._cloud_id = cloud_id
|
126
127
|
|