anyscale 0.26.23__py3-none-any.whl → 0.26.25__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. anyscale/_private/anyscale_client/anyscale_client.py +1 -1
  2. anyscale/_private/docgen/__main__.py +0 -8
  3. anyscale/_private/docgen/models.md +39 -182
  4. anyscale/_private/workload/workload_config.py +1 -1
  5. anyscale/client/README.md +2 -35
  6. anyscale/client/openapi_client/__init__.py +2 -21
  7. anyscale/client/openapi_client/api/default_api.py +275 -1868
  8. anyscale/client/openapi_client/models/__init__.py +2 -21
  9. anyscale/client/openapi_client/models/cloud_data_bucket_file_type.py +2 -1
  10. anyscale/client/openapi_client/models/cloud_deployment.py +2 -2
  11. anyscale/client/openapi_client/models/cloud_deployment_compute_config.py +291 -0
  12. anyscale/client/openapi_client/models/cloud_deployment_selector.py +206 -0
  13. anyscale/client/openapi_client/models/cloud_providers.py +2 -1
  14. anyscale/client/openapi_client/models/compute_template_config.py +61 -34
  15. anyscale/client/openapi_client/models/create_cluster_compute_config.py +59 -31
  16. anyscale/client/openapi_client/models/create_compute_template_config.py +61 -34
  17. anyscale/client/openapi_client/models/create_workspace_from_template.py +3 -2
  18. anyscale/client/openapi_client/models/decorated_compute_template_config.py +61 -34
  19. anyscale/client/openapi_client/models/decorated_session.py +31 -3
  20. anyscale/client/openapi_client/models/workspace_dataplane_proxied_artifacts.py +31 -3
  21. anyscale/cluster_compute.py +4 -4
  22. anyscale/commands/anyscale_api/sessions_commands.py +1 -70
  23. anyscale/commands/cloud_commands.py +5 -4
  24. anyscale/commands/image_commands.py +2 -2
  25. anyscale/commands/job_commands.py +1 -1
  26. anyscale/commands/service_commands.py +1 -1
  27. anyscale/commands/workspace_commands_v2.py +1 -1
  28. anyscale/connect_utils/prepare_cluster.py +1 -3
  29. anyscale/controllers/cloud_controller.py +12 -6
  30. anyscale/controllers/cloud_functional_verification_controller.py +2 -2
  31. anyscale/image/commands.py +1 -1
  32. anyscale/sdk/anyscale_client/__init__.py +2 -15
  33. anyscale/sdk/anyscale_client/api/default_api.py +1270 -2871
  34. anyscale/sdk/anyscale_client/models/__init__.py +2 -15
  35. anyscale/sdk/anyscale_client/models/cloud_deployment_compute_config.py +291 -0
  36. anyscale/sdk/anyscale_client/models/cloud_deployment_selector.py +206 -0
  37. anyscale/sdk/anyscale_client/models/cloud_providers.py +2 -1
  38. anyscale/sdk/anyscale_client/models/cluster_compute_config.py +61 -34
  39. anyscale/sdk/anyscale_client/models/cluster_services_urls.py +29 -1
  40. anyscale/sdk/anyscale_client/models/compute_template_config.py +61 -34
  41. anyscale/sdk/anyscale_client/models/create_cluster_compute_config.py +59 -31
  42. anyscale/sdk/anyscale_client/models/session.py +31 -3
  43. anyscale/shared_anyscale_utils/utils/id_gen.py +3 -1
  44. anyscale/version.py +1 -1
  45. anyscale/workspace/models.py +1 -1
  46. {anyscale-0.26.23.dist-info → anyscale-0.26.25.dist-info}/METADATA +1 -1
  47. {anyscale-0.26.23.dist-info → anyscale-0.26.25.dist-info}/RECORD +52 -84
  48. anyscale/client/openapi_client/models/bank_account_information.py +0 -239
  49. anyscale/client/openapi_client/models/billing_information.py +0 -181
  50. anyscale/client/openapi_client/models/credit_card_information.py +0 -268
  51. anyscale/client/openapi_client/models/decoratedunifiedjob_response.py +0 -121
  52. anyscale/client/openapi_client/models/invoice.py +0 -413
  53. anyscale/client/openapi_client/models/invoice_list_response.py +0 -147
  54. anyscale/client/openapi_client/models/invoice_status.py +0 -102
  55. anyscale/client/openapi_client/models/invoices_query.py +0 -150
  56. anyscale/client/openapi_client/models/log_stream.py +0 -151
  57. anyscale/client/openapi_client/models/logstream_response.py +0 -121
  58. anyscale/client/openapi_client/models/miniproject_list_response.py +0 -147
  59. anyscale/client/openapi_client/models/organization_project_collaborator.py +0 -175
  60. anyscale/client/openapi_client/models/organization_project_collaborator_value.py +0 -148
  61. anyscale/client/openapi_client/models/organizationprojectcollaborator_list_response.py +0 -147
  62. anyscale/client/openapi_client/models/product_type.py +0 -100
  63. anyscale/client/openapi_client/models/service_usage.py +0 -353
  64. anyscale/client/openapi_client/models/templatized_compute_configs.py +0 -202
  65. anyscale/client/openapi_client/models/templatized_decorated_application_templates.py +0 -202
  66. anyscale/client/openapi_client/models/templatizedcomputeconfigs_response.py +0 -121
  67. anyscale/client/openapi_client/models/templatizeddecoratedapplicationtemplates_response.py +0 -121
  68. anyscale/client/openapi_client/models/write_session.py +0 -147
  69. anyscale/sdk/anyscale_client/models/build_list_response.py +0 -147
  70. anyscale/sdk/anyscale_client/models/build_log_response.py +0 -123
  71. anyscale/sdk/anyscale_client/models/buildlogresponse_response.py +0 -121
  72. anyscale/sdk/anyscale_client/models/compute_template_query.py +0 -316
  73. anyscale/sdk/anyscale_client/models/computetemplate_list_response.py +0 -147
  74. anyscale/sdk/anyscale_client/models/create_build.py +0 -263
  75. anyscale/sdk/anyscale_client/models/create_compute_template.py +0 -229
  76. anyscale/sdk/anyscale_client/models/create_compute_template_config.py +0 -464
  77. anyscale/sdk/anyscale_client/models/session_list_response.py +0 -147
  78. anyscale/sdk/anyscale_client/models/sessions_query.py +0 -206
  79. anyscale/sdk/anyscale_client/models/start_session_options.py +0 -206
  80. anyscale/sdk/anyscale_client/models/terminate_session_options.py +0 -206
  81. anyscale/sdk/anyscale_client/models/update_compute_template.py +0 -146
  82. anyscale/sdk/anyscale_client/models/update_compute_template_config.py +0 -464
  83. anyscale/sdk/anyscale_client/models/update_session.py +0 -150
  84. {anyscale-0.26.23.dist-info → anyscale-0.26.25.dist-info}/LICENSE +0 -0
  85. {anyscale-0.26.23.dist-info → anyscale-0.26.25.dist-info}/NOTICE +0 -0
  86. {anyscale-0.26.23.dist-info → anyscale-0.26.25.dist-info}/WHEEL +0 -0
  87. {anyscale-0.26.23.dist-info → anyscale-0.26.25.dist-info}/entry_points.txt +0 -0
  88. {anyscale-0.26.23.dist-info → anyscale-0.26.25.dist-info}/top_level.txt +0 -0
@@ -34,6 +34,8 @@ class ClusterComputeConfig(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 ClusterComputeConfig(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 ClusterComputeConfig(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 ClusterComputeConfig(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, maximum_uptime_minutes=None, auto_select_worker_config=False, flags=None, idle_termination_minutes=None, local_vars_configuration=None): # noqa: E501
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
  """ClusterComputeConfig - 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 ClusterComputeConfig(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
- self.region = region
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 ClusterComputeConfig(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 ClusterComputeConfig(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 ClusterComputeConfig. # 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 ClusterComputeConfig. # 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 ClusterComputeConfig.
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 ClusterComputeConfig. # 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 ClusterComputeConfig. # noqa: E501
169
+
170
+ A list of cloud deployment-specific configs to use. # noqa: E501
171
+
172
+ :return: The deployment_configs of this ClusterComputeConfig. # 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 ClusterComputeConfig.
180
+
181
+ A list of cloud deployment-specific configs to use. # noqa: E501
182
+
183
+ :param deployment_configs: The deployment_configs of this ClusterComputeConfig. # 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 ClusterComputeConfig. # noqa: E501
140
192
 
141
- Desired limit on total running workers for this Cluster. # noqa: E501
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 ClusterComputeConfig. # noqa: E501
144
196
  :rtype: int
@@ -149,7 +201,7 @@ class ClusterComputeConfig(object):
149
201
  def max_workers(self, max_workers):
150
202
  """Sets the max_workers of this ClusterComputeConfig.
151
203
 
152
- Desired limit on total running workers for this Cluster. # noqa: E501
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 ClusterComputeConfig. # noqa: E501
155
207
  :type: int
@@ -177,8 +229,6 @@ class ClusterComputeConfig(object):
177
229
  :param region: The region of this ClusterComputeConfig. # 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 ClusterComputeConfig(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 ClusterComputeConfig. # 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 ClusterComputeConfig. # 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 ClusterComputeConfig.
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 ClusterComputeConfig. # 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 ClusterComputeConfig. # noqa: E501
@@ -39,6 +39,7 @@ class ClusterServicesUrls(object):
39
39
  'train_metrics_dashboard_url': 'str',
40
40
  'serve_metrics_dashboard_url': 'str',
41
41
  'serve_deployment_metrics_dashboard_url': 'str',
42
+ 'serve_llm_metrics_dashboard_url': 'str',
42
43
  'persistent_metrics_url': 'str',
43
44
  'connect_url': 'str',
44
45
  'jupyter_notebook_url': 'str',
@@ -54,6 +55,7 @@ class ClusterServicesUrls(object):
54
55
  'train_metrics_dashboard_url': 'train_metrics_dashboard_url',
55
56
  'serve_metrics_dashboard_url': 'serve_metrics_dashboard_url',
56
57
  'serve_deployment_metrics_dashboard_url': 'serve_deployment_metrics_dashboard_url',
58
+ 'serve_llm_metrics_dashboard_url': 'serve_llm_metrics_dashboard_url',
57
59
  'persistent_metrics_url': 'persistent_metrics_url',
58
60
  'connect_url': 'connect_url',
59
61
  'jupyter_notebook_url': 'jupyter_notebook_url',
@@ -62,7 +64,7 @@ class ClusterServicesUrls(object):
62
64
  'user_service_url': 'user_service_url'
63
65
  }
64
66
 
65
- def __init__(self, webterminal_auth_url=None, metrics_dashboard_url=None, data_metrics_dashboard_url=None, train_metrics_dashboard_url=None, serve_metrics_dashboard_url=None, serve_deployment_metrics_dashboard_url=None, persistent_metrics_url=None, connect_url=None, jupyter_notebook_url=None, ray_dashboard_url=None, service_proxy_url=None, user_service_url=None, local_vars_configuration=None): # noqa: E501
67
+ def __init__(self, webterminal_auth_url=None, metrics_dashboard_url=None, data_metrics_dashboard_url=None, train_metrics_dashboard_url=None, serve_metrics_dashboard_url=None, serve_deployment_metrics_dashboard_url=None, serve_llm_metrics_dashboard_url=None, persistent_metrics_url=None, connect_url=None, jupyter_notebook_url=None, ray_dashboard_url=None, service_proxy_url=None, user_service_url=None, local_vars_configuration=None): # noqa: E501
66
68
  """ClusterServicesUrls - a model defined in OpenAPI""" # noqa: E501
67
69
  if local_vars_configuration is None:
68
70
  local_vars_configuration = Configuration()
@@ -74,6 +76,7 @@ class ClusterServicesUrls(object):
74
76
  self._train_metrics_dashboard_url = None
75
77
  self._serve_metrics_dashboard_url = None
76
78
  self._serve_deployment_metrics_dashboard_url = None
79
+ self._serve_llm_metrics_dashboard_url = None
77
80
  self._persistent_metrics_url = None
78
81
  self._connect_url = None
79
82
  self._jupyter_notebook_url = None
@@ -94,6 +97,8 @@ class ClusterServicesUrls(object):
94
97
  self.serve_metrics_dashboard_url = serve_metrics_dashboard_url
95
98
  if serve_deployment_metrics_dashboard_url is not None:
96
99
  self.serve_deployment_metrics_dashboard_url = serve_deployment_metrics_dashboard_url
100
+ if serve_llm_metrics_dashboard_url is not None:
101
+ self.serve_llm_metrics_dashboard_url = serve_llm_metrics_dashboard_url
97
102
  if persistent_metrics_url is not None:
98
103
  self.persistent_metrics_url = persistent_metrics_url
99
104
  if connect_url is not None:
@@ -245,6 +250,29 @@ class ClusterServicesUrls(object):
245
250
 
246
251
  self._serve_deployment_metrics_dashboard_url = serve_deployment_metrics_dashboard_url
247
252
 
253
+ @property
254
+ def serve_llm_metrics_dashboard_url(self):
255
+ """Gets the serve_llm_metrics_dashboard_url of this ClusterServicesUrls. # noqa: E501
256
+
257
+ URL for the serve LLM Grafana dashboard. # noqa: E501
258
+
259
+ :return: The serve_llm_metrics_dashboard_url of this ClusterServicesUrls. # noqa: E501
260
+ :rtype: str
261
+ """
262
+ return self._serve_llm_metrics_dashboard_url
263
+
264
+ @serve_llm_metrics_dashboard_url.setter
265
+ def serve_llm_metrics_dashboard_url(self, serve_llm_metrics_dashboard_url):
266
+ """Sets the serve_llm_metrics_dashboard_url of this ClusterServicesUrls.
267
+
268
+ URL for the serve LLM Grafana dashboard. # noqa: E501
269
+
270
+ :param serve_llm_metrics_dashboard_url: The serve_llm_metrics_dashboard_url of this ClusterServicesUrls. # noqa: E501
271
+ :type: str
272
+ """
273
+
274
+ self._serve_llm_metrics_dashboard_url = serve_llm_metrics_dashboard_url
275
+
248
276
  @property
249
277
  def persistent_metrics_url(self):
250
278
  """Gets the persistent_metrics_url of this ClusterServicesUrls. # noqa: E501
@@ -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, maximum_uptime_minutes=None, auto_select_worker_config=False, flags=None, idle_termination_minutes=None, local_vars_configuration=None): # noqa: E501
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
- self.region = region
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
- Desired limit on total running workers for this session. # noqa: E501
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
- Desired limit on total running workers for this session. # noqa: E501
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, maximum_uptime_minutes=None, auto_select_worker_config=False, flags=None, idle_termination_minutes=120, local_vars_configuration=None): # noqa: E501
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
- Desired limit on total running workers for this Cluster. # noqa: E501
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
- Desired limit on total running workers for this Cluster. # noqa: E501
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