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.
Files changed (94) hide show
  1. anyscale/_private/anyscale_client/anyscale_client.py +1 -1
  2. anyscale/_private/anyscale_client/common.py +1 -1
  3. anyscale/_private/docgen/__main__.py +0 -8
  4. anyscale/_private/docgen/models.md +41 -184
  5. anyscale/_private/workload/workload_config.py +1 -1
  6. anyscale/client/README.md +2 -35
  7. anyscale/client/openapi_client/__init__.py +2 -21
  8. anyscale/client/openapi_client/api/default_api.py +275 -1868
  9. anyscale/client/openapi_client/models/__init__.py +2 -21
  10. anyscale/client/openapi_client/models/baseimagesenum.py +68 -1
  11. anyscale/client/openapi_client/models/cloud_data_bucket_file_type.py +2 -1
  12. anyscale/client/openapi_client/models/cloud_deployment.py +2 -2
  13. anyscale/client/openapi_client/models/cloud_deployment_compute_config.py +291 -0
  14. anyscale/client/openapi_client/models/cloud_deployment_selector.py +206 -0
  15. anyscale/client/openapi_client/models/cloud_providers.py +2 -1
  16. anyscale/client/openapi_client/models/compute_template_config.py +61 -34
  17. anyscale/client/openapi_client/models/create_cluster_compute_config.py +59 -31
  18. anyscale/client/openapi_client/models/create_compute_template_config.py +61 -34
  19. anyscale/client/openapi_client/models/create_workspace_from_template.py +3 -2
  20. anyscale/client/openapi_client/models/decorated_compute_template_config.py +61 -34
  21. anyscale/client/openapi_client/models/decorated_session.py +31 -3
  22. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +68 -1
  23. anyscale/client/openapi_client/models/workspace_dataplane_proxied_artifacts.py +31 -3
  24. anyscale/cluster_compute.py +4 -4
  25. anyscale/commands/anyscale_api/sessions_commands.py +1 -70
  26. anyscale/commands/cloud_commands.py +5 -4
  27. anyscale/commands/image_commands.py +2 -2
  28. anyscale/commands/job_commands.py +1 -1
  29. anyscale/commands/service_commands.py +1 -1
  30. anyscale/commands/workspace_commands_v2.py +1 -1
  31. anyscale/connect_utils/prepare_cluster.py +1 -3
  32. anyscale/controllers/cloud_controller.py +12 -6
  33. anyscale/controllers/cloud_functional_verification_controller.py +2 -2
  34. anyscale/image/commands.py +1 -1
  35. anyscale/sdk/anyscale_client/__init__.py +2 -15
  36. anyscale/sdk/anyscale_client/api/default_api.py +1270 -2871
  37. anyscale/sdk/anyscale_client/models/__init__.py +2 -15
  38. anyscale/sdk/anyscale_client/models/baseimagesenum.py +68 -1
  39. anyscale/sdk/anyscale_client/models/cloud_deployment_compute_config.py +291 -0
  40. anyscale/sdk/anyscale_client/models/cloud_deployment_selector.py +206 -0
  41. anyscale/sdk/anyscale_client/models/cloud_providers.py +2 -1
  42. anyscale/sdk/anyscale_client/models/cluster_compute_config.py +61 -34
  43. anyscale/sdk/anyscale_client/models/cluster_services_urls.py +29 -1
  44. anyscale/sdk/anyscale_client/models/compute_template_config.py +61 -34
  45. anyscale/sdk/anyscale_client/models/create_cluster_compute_config.py +59 -31
  46. anyscale/sdk/anyscale_client/models/session.py +31 -3
  47. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +68 -1
  48. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  49. anyscale/shared_anyscale_utils/utils/id_gen.py +3 -1
  50. anyscale/version.py +1 -1
  51. anyscale/workspace/models.py +1 -1
  52. {anyscale-0.26.22.dist-info → anyscale-0.26.24.dist-info}/METADATA +1 -1
  53. {anyscale-0.26.22.dist-info → anyscale-0.26.24.dist-info}/RECORD +58 -90
  54. anyscale/client/openapi_client/models/bank_account_information.py +0 -239
  55. anyscale/client/openapi_client/models/billing_information.py +0 -181
  56. anyscale/client/openapi_client/models/credit_card_information.py +0 -268
  57. anyscale/client/openapi_client/models/decoratedunifiedjob_response.py +0 -121
  58. anyscale/client/openapi_client/models/invoice.py +0 -413
  59. anyscale/client/openapi_client/models/invoice_list_response.py +0 -147
  60. anyscale/client/openapi_client/models/invoice_status.py +0 -102
  61. anyscale/client/openapi_client/models/invoices_query.py +0 -150
  62. anyscale/client/openapi_client/models/log_stream.py +0 -151
  63. anyscale/client/openapi_client/models/logstream_response.py +0 -121
  64. anyscale/client/openapi_client/models/miniproject_list_response.py +0 -147
  65. anyscale/client/openapi_client/models/organization_project_collaborator.py +0 -175
  66. anyscale/client/openapi_client/models/organization_project_collaborator_value.py +0 -148
  67. anyscale/client/openapi_client/models/organizationprojectcollaborator_list_response.py +0 -147
  68. anyscale/client/openapi_client/models/product_type.py +0 -100
  69. anyscale/client/openapi_client/models/service_usage.py +0 -353
  70. anyscale/client/openapi_client/models/templatized_compute_configs.py +0 -202
  71. anyscale/client/openapi_client/models/templatized_decorated_application_templates.py +0 -202
  72. anyscale/client/openapi_client/models/templatizedcomputeconfigs_response.py +0 -121
  73. anyscale/client/openapi_client/models/templatizeddecoratedapplicationtemplates_response.py +0 -121
  74. anyscale/client/openapi_client/models/write_session.py +0 -147
  75. anyscale/sdk/anyscale_client/models/build_list_response.py +0 -147
  76. anyscale/sdk/anyscale_client/models/build_log_response.py +0 -123
  77. anyscale/sdk/anyscale_client/models/buildlogresponse_response.py +0 -121
  78. anyscale/sdk/anyscale_client/models/compute_template_query.py +0 -316
  79. anyscale/sdk/anyscale_client/models/computetemplate_list_response.py +0 -147
  80. anyscale/sdk/anyscale_client/models/create_build.py +0 -263
  81. anyscale/sdk/anyscale_client/models/create_compute_template.py +0 -229
  82. anyscale/sdk/anyscale_client/models/create_compute_template_config.py +0 -464
  83. anyscale/sdk/anyscale_client/models/session_list_response.py +0 -147
  84. anyscale/sdk/anyscale_client/models/sessions_query.py +0 -206
  85. anyscale/sdk/anyscale_client/models/start_session_options.py +0 -206
  86. anyscale/sdk/anyscale_client/models/terminate_session_options.py +0 -206
  87. anyscale/sdk/anyscale_client/models/update_compute_template.py +0 -146
  88. anyscale/sdk/anyscale_client/models/update_compute_template_config.py +0 -464
  89. anyscale/sdk/anyscale_client/models/update_session.py +0 -150
  90. {anyscale-0.26.22.dist-info → anyscale-0.26.24.dist-info}/LICENSE +0 -0
  91. {anyscale-0.26.22.dist-info → anyscale-0.26.24.dist-info}/NOTICE +0 -0
  92. {anyscale-0.26.22.dist-info → anyscale-0.26.24.dist-info}/WHEEL +0 -0
  93. {anyscale-0.26.22.dist-info → anyscale-0.26.24.dist-info}/entry_points.txt +0 -0
  94. {anyscale-0.26.22.dist-info → anyscale-0.26.24.dist-info}/top_level.txt +0 -0
@@ -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
@@ -60,6 +60,7 @@ class Session(object):
60
60
  'train_metrics_dashboard_url': 'str',
61
61
  'serve_metrics_dashboard_url': 'str',
62
62
  'serve_deployment_metrics_dashboard_url': 'str',
63
+ 'serve_llm_metrics_dashboard_url': 'str',
63
64
  'persistent_metrics_url': 'str',
64
65
  'connect_url': 'str',
65
66
  'jupyter_notebook_url': 'str',
@@ -114,6 +115,7 @@ class Session(object):
114
115
  'train_metrics_dashboard_url': 'train_metrics_dashboard_url',
115
116
  'serve_metrics_dashboard_url': 'serve_metrics_dashboard_url',
116
117
  'serve_deployment_metrics_dashboard_url': 'serve_deployment_metrics_dashboard_url',
118
+ 'serve_llm_metrics_dashboard_url': 'serve_llm_metrics_dashboard_url',
117
119
  'persistent_metrics_url': 'persistent_metrics_url',
118
120
  'connect_url': 'connect_url',
119
121
  'jupyter_notebook_url': 'jupyter_notebook_url',
@@ -140,7 +142,7 @@ class Session(object):
140
142
  'ray_dashboard_snapshot_last_reported_at': 'ray_dashboard_snapshot_last_reported_at'
141
143
  }
142
144
 
143
- def __init__(self, name=None, project_id=None, cloud_id=None, cluster_config=None, build_id=None, compute_template_id=None, idle_timeout=120, uses_app_config=False, allow_public_internet_traffic=False, user_service_access=None, user_service_token=None, ha_job_id=None, id=None, state=None, pending_state=None, state_data=None, status=None, status_details=None, creator_id=None, created_at=None, archived_at=None, 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, access_token=None, service_proxy_url=None, tensorboard_available=None, cluster_config_last_modified_at=None, host_name=None, head_node_ip=None, ssh_authorized_keys=None, ssh_private_key=None, anyscaled_config=None, anyscaled_config_generated_at=None, default_build_id=None, idle_timeout_last_activity_at=None, ray_version=None, ray_version_last_updated_at=None, user_service_url=None, ray_component_activities_last_reported_at=None, activity_details=None, maximum_uptime_will_terminate_cluster_at=None, idle_termination_status=None, ray_dashboard_snapshot_last_reported_at=None, local_vars_configuration=None): # noqa: E501
145
+ def __init__(self, name=None, project_id=None, cloud_id=None, cluster_config=None, build_id=None, compute_template_id=None, idle_timeout=120, uses_app_config=False, allow_public_internet_traffic=False, user_service_access=None, user_service_token=None, ha_job_id=None, id=None, state=None, pending_state=None, state_data=None, status=None, status_details=None, creator_id=None, created_at=None, archived_at=None, 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, access_token=None, service_proxy_url=None, tensorboard_available=None, cluster_config_last_modified_at=None, host_name=None, head_node_ip=None, ssh_authorized_keys=None, ssh_private_key=None, anyscaled_config=None, anyscaled_config_generated_at=None, default_build_id=None, idle_timeout_last_activity_at=None, ray_version=None, ray_version_last_updated_at=None, user_service_url=None, ray_component_activities_last_reported_at=None, activity_details=None, maximum_uptime_will_terminate_cluster_at=None, idle_termination_status=None, ray_dashboard_snapshot_last_reported_at=None, local_vars_configuration=None): # noqa: E501
144
146
  """Session - a model defined in OpenAPI""" # noqa: E501
145
147
  if local_vars_configuration is None:
146
148
  local_vars_configuration = Configuration()
@@ -173,6 +175,7 @@ class Session(object):
173
175
  self._train_metrics_dashboard_url = None
174
176
  self._serve_metrics_dashboard_url = None
175
177
  self._serve_deployment_metrics_dashboard_url = None
178
+ self._serve_llm_metrics_dashboard_url = None
176
179
  self._persistent_metrics_url = None
177
180
  self._connect_url = None
178
181
  self._jupyter_notebook_url = None
@@ -245,6 +248,8 @@ class Session(object):
245
248
  self.serve_metrics_dashboard_url = serve_metrics_dashboard_url
246
249
  if serve_deployment_metrics_dashboard_url is not None:
247
250
  self.serve_deployment_metrics_dashboard_url = serve_deployment_metrics_dashboard_url
251
+ if serve_llm_metrics_dashboard_url is not None:
252
+ self.serve_llm_metrics_dashboard_url = serve_llm_metrics_dashboard_url
248
253
  if persistent_metrics_url is not None:
249
254
  self.persistent_metrics_url = persistent_metrics_url
250
255
  if connect_url is not None:
@@ -926,6 +931,29 @@ class Session(object):
926
931
 
927
932
  self._serve_deployment_metrics_dashboard_url = serve_deployment_metrics_dashboard_url
928
933
 
934
+ @property
935
+ def serve_llm_metrics_dashboard_url(self):
936
+ """Gets the serve_llm_metrics_dashboard_url of this Session. # noqa: E501
937
+
938
+ URL for Serve LLM Grafana dashboard for this Session. This field will only be populated after the Session finishes starting. # noqa: E501
939
+
940
+ :return: The serve_llm_metrics_dashboard_url of this Session. # noqa: E501
941
+ :rtype: str
942
+ """
943
+ return self._serve_llm_metrics_dashboard_url
944
+
945
+ @serve_llm_metrics_dashboard_url.setter
946
+ def serve_llm_metrics_dashboard_url(self, serve_llm_metrics_dashboard_url):
947
+ """Sets the serve_llm_metrics_dashboard_url of this Session.
948
+
949
+ URL for Serve LLM Grafana dashboard for this Session. This field will only be populated after the Session finishes starting. # noqa: E501
950
+
951
+ :param serve_llm_metrics_dashboard_url: The serve_llm_metrics_dashboard_url of this Session. # noqa: E501
952
+ :type: str
953
+ """
954
+
955
+ self._serve_llm_metrics_dashboard_url = serve_llm_metrics_dashboard_url
956
+
929
957
  @property
930
958
  def persistent_metrics_url(self):
931
959
  """Gets the persistent_metrics_url of this Session. # noqa: E501
@@ -1022,7 +1050,7 @@ class Session(object):
1022
1050
  def access_token(self):
1023
1051
  """Gets the access_token of this Session. # noqa: E501
1024
1052
 
1025
- Access token for web based services (e.g. jupyter, tensorboard, etc). This field will be populated when the web based services are available after the Session finishes starting. # noqa: E501
1053
+ [DEPRECATED] Call GET /api/v2/authentication/{cluster_id}/cluster_access_token to get this. # noqa: E501
1026
1054
 
1027
1055
  :return: The access_token of this Session. # noqa: E501
1028
1056
  :rtype: str
@@ -1033,7 +1061,7 @@ class Session(object):
1033
1061
  def access_token(self, access_token):
1034
1062
  """Sets the access_token of this Session.
1035
1063
 
1036
- Access token for web based services (e.g. jupyter, tensorboard, etc). This field will be populated when the web based services are available after the Session finishes starting. # noqa: E501
1064
+ [DEPRECATED] Call GET /api/v2/authentication/{cluster_id}/cluster_access_token to get this. # noqa: E501
1037
1065
 
1038
1066
  :param access_token: The access_token of this Session. # noqa: E501
1039
1067
  :type: str