anyscale 0.26.17__py3-none-any.whl → 0.26.20__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 (61) hide show
  1. anyscale/_private/docgen/models.md +3 -3
  2. anyscale/anyscale-cloud-setup.yaml +0 -4
  3. anyscale/client/README.md +18 -38
  4. anyscale/client/openapi_client/__init__.py +14 -20
  5. anyscale/client/openapi_client/api/default_api.py +460 -2097
  6. anyscale/client/openapi_client/models/__init__.py +14 -20
  7. anyscale/client/openapi_client/models/aws_config.py +402 -0
  8. anyscale/client/openapi_client/models/baseimagesenum.py +68 -1
  9. anyscale/client/openapi_client/models/cloud_deployment.py +397 -0
  10. anyscale/client/openapi_client/models/{webterminal_list_response.py → clouddeployment_list_response.py} +15 -15
  11. anyscale/client/openapi_client/models/decorated_production_job_state_transition.py +2 -2
  12. anyscale/client/openapi_client/models/file_storage.py +206 -0
  13. anyscale/client/openapi_client/models/gcp_config.py +402 -0
  14. anyscale/client/openapi_client/models/{session_details.py → job_queue_sort_directive.py} +39 -39
  15. anyscale/client/openapi_client/models/{sessiondescribe_response.py → job_queue_sort_field.py} +20 -34
  16. anyscale/client/openapi_client/models/job_queues_query.py +31 -3
  17. anyscale/client/openapi_client/models/kubernetes_config.py +150 -0
  18. anyscale/client/openapi_client/models/{monitor_logs_extension.py → networking_mode.py} +7 -7
  19. anyscale/client/openapi_client/models/object_storage.py +178 -0
  20. anyscale/client/openapi_client/models/{sessiondetails_response.py → pcp_config.py} +23 -22
  21. anyscale/client/openapi_client/models/production_job_state_transition.py +2 -2
  22. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +68 -1
  23. anyscale/client/openapi_client/models/{external_service_status.py → update_job_queue_request.py} +39 -36
  24. anyscale/client/openapi_client/models/workspace_template_readme.py +181 -0
  25. anyscale/client/openapi_client/models/{archivedlogsinfo_response.py → workspacetemplatereadme_response.py} +11 -11
  26. anyscale/commands/cloud_commands.py +55 -7
  27. anyscale/commands/command_examples.py +58 -0
  28. anyscale/commands/job_commands.py +2 -2
  29. anyscale/commands/job_queue_commands.py +172 -0
  30. anyscale/connect_utils/prepare_cluster.py +19 -14
  31. anyscale/controllers/cloud_controller.py +60 -3
  32. anyscale/controllers/job_controller.py +215 -3
  33. anyscale/scripts.py +3 -0
  34. anyscale/sdk/anyscale_client/models/baseimagesenum.py +68 -1
  35. anyscale/sdk/anyscale_client/models/production_job_state_transition.py +2 -2
  36. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +68 -1
  37. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  38. anyscale/util.py +3 -1
  39. anyscale/utils/connect_helpers.py +34 -0
  40. anyscale/version.py +1 -1
  41. anyscale/workspace/_private/workspace_sdk.py +19 -6
  42. {anyscale-0.26.17.dist-info → anyscale-0.26.20.dist-info}/METADATA +1 -1
  43. {anyscale-0.26.17.dist-info → anyscale-0.26.20.dist-info}/RECORD +48 -53
  44. anyscale/client/openapi_client/models/archived_logs_info.py +0 -164
  45. anyscale/client/openapi_client/models/create_experimental_workspace_from_job.py +0 -123
  46. anyscale/client/openapi_client/models/create_session_from_snapshot_options.py +0 -538
  47. anyscale/client/openapi_client/models/create_session_in_db.py +0 -434
  48. anyscale/client/openapi_client/models/create_session_response.py +0 -174
  49. anyscale/client/openapi_client/models/createsessionresponse_response.py +0 -121
  50. anyscale/client/openapi_client/models/external_service_status_response.py +0 -250
  51. anyscale/client/openapi_client/models/externalservicestatusresponse_response.py +0 -121
  52. anyscale/client/openapi_client/models/session_describe.py +0 -175
  53. anyscale/client/openapi_client/models/session_history_item.py +0 -146
  54. anyscale/client/openapi_client/models/sessionhistoryitem_list_response.py +0 -147
  55. anyscale/client/openapi_client/models/update_compute_template.py +0 -146
  56. anyscale/client/openapi_client/models/update_compute_template_config.py +0 -464
  57. {anyscale-0.26.17.dist-info → anyscale-0.26.20.dist-info}/LICENSE +0 -0
  58. {anyscale-0.26.17.dist-info → anyscale-0.26.20.dist-info}/NOTICE +0 -0
  59. {anyscale-0.26.17.dist-info → anyscale-0.26.20.dist-info}/WHEEL +0 -0
  60. {anyscale-0.26.17.dist-info → anyscale-0.26.20.dist-info}/entry_points.txt +0 -0
  61. {anyscale-0.26.17.dist-info → anyscale-0.26.20.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,397 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Managed Ray API
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: 0.1.0
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ import pprint
14
+ import re # noqa: F401
15
+
16
+ import six
17
+
18
+ from openapi_client.configuration import Configuration
19
+
20
+
21
+ class CloudDeployment(object):
22
+ """NOTE: This class is auto generated by OpenAPI Generator.
23
+ Ref: https://openapi-generator.tech
24
+
25
+ Do not edit the class manually.
26
+ """
27
+
28
+ """
29
+ Attributes:
30
+ openapi_types (dict): The key is attribute name
31
+ and the value is attribute type.
32
+ attribute_map (dict): The key is attribute name
33
+ and the value is json key in definition.
34
+ """
35
+ openapi_types = {
36
+ 'cloud_deployment_id': 'str',
37
+ 'provider': 'CloudProviders',
38
+ 'compute_stack': 'ComputeStack',
39
+ 'region': 'str',
40
+ 'networking_mode': 'NetworkingMode',
41
+ 'object_storage': 'ObjectStorage',
42
+ 'file_storage': 'FileStorage',
43
+ 'aws_config': 'AWSConfig',
44
+ 'gcp_config': 'GCPConfig',
45
+ 'pcp_config': 'PCPConfig',
46
+ 'kubernetes_config': 'KubernetesConfig'
47
+ }
48
+
49
+ attribute_map = {
50
+ 'cloud_deployment_id': 'cloud_deployment_id',
51
+ 'provider': 'provider',
52
+ 'compute_stack': 'compute_stack',
53
+ 'region': 'region',
54
+ 'networking_mode': 'networking_mode',
55
+ 'object_storage': 'object_storage',
56
+ 'file_storage': 'file_storage',
57
+ 'aws_config': 'aws_config',
58
+ 'gcp_config': 'gcp_config',
59
+ 'pcp_config': 'pcp_config',
60
+ 'kubernetes_config': 'kubernetes_config'
61
+ }
62
+
63
+ def __init__(self, cloud_deployment_id=None, provider=None, compute_stack=None, region=None, networking_mode=None, object_storage=None, file_storage=None, aws_config=None, gcp_config=None, pcp_config=None, kubernetes_config=None, local_vars_configuration=None): # noqa: E501
64
+ """CloudDeployment - a model defined in OpenAPI""" # noqa: E501
65
+ if local_vars_configuration is None:
66
+ local_vars_configuration = Configuration()
67
+ self.local_vars_configuration = local_vars_configuration
68
+
69
+ self._cloud_deployment_id = None
70
+ self._provider = None
71
+ self._compute_stack = None
72
+ self._region = None
73
+ self._networking_mode = None
74
+ self._object_storage = None
75
+ self._file_storage = None
76
+ self._aws_config = None
77
+ self._gcp_config = None
78
+ self._pcp_config = None
79
+ self._kubernetes_config = None
80
+ self.discriminator = None
81
+
82
+ if cloud_deployment_id is not None:
83
+ self.cloud_deployment_id = cloud_deployment_id
84
+ self.provider = provider
85
+ if compute_stack is not None:
86
+ self.compute_stack = compute_stack
87
+ if region is not None:
88
+ self.region = region
89
+ if networking_mode is not None:
90
+ self.networking_mode = networking_mode
91
+ self.object_storage = object_storage
92
+ self.file_storage = file_storage
93
+ self.aws_config = aws_config
94
+ self.gcp_config = gcp_config
95
+ self.pcp_config = pcp_config
96
+ self.kubernetes_config = kubernetes_config
97
+
98
+ @property
99
+ def cloud_deployment_id(self):
100
+ """Gets the cloud_deployment_id of this CloudDeployment. # noqa: E501
101
+
102
+ Unique identifier for this deployment. # noqa: E501
103
+
104
+ :return: The cloud_deployment_id of this CloudDeployment. # noqa: E501
105
+ :rtype: str
106
+ """
107
+ return self._cloud_deployment_id
108
+
109
+ @cloud_deployment_id.setter
110
+ def cloud_deployment_id(self, cloud_deployment_id):
111
+ """Sets the cloud_deployment_id of this CloudDeployment.
112
+
113
+ Unique identifier for this deployment. # noqa: E501
114
+
115
+ :param cloud_deployment_id: The cloud_deployment_id of this CloudDeployment. # noqa: E501
116
+ :type: str
117
+ """
118
+
119
+ self._cloud_deployment_id = cloud_deployment_id
120
+
121
+ @property
122
+ def provider(self):
123
+ """Gets the provider of this CloudDeployment. # noqa: E501
124
+
125
+ The cloud provider type (AWS, GCP, PCP, or GENERIC). # noqa: E501
126
+
127
+ :return: The provider of this CloudDeployment. # noqa: E501
128
+ :rtype: CloudProviders
129
+ """
130
+ return self._provider
131
+
132
+ @provider.setter
133
+ def provider(self, provider):
134
+ """Sets the provider of this CloudDeployment.
135
+
136
+ The cloud provider type (AWS, GCP, PCP, or GENERIC). # noqa: E501
137
+
138
+ :param provider: The provider of this CloudDeployment. # noqa: E501
139
+ :type: CloudProviders
140
+ """
141
+ if self.local_vars_configuration.client_side_validation and provider is None: # noqa: E501
142
+ raise ValueError("Invalid value for `provider`, must not be `None`") # noqa: E501
143
+
144
+ self._provider = provider
145
+
146
+ @property
147
+ def compute_stack(self):
148
+ """Gets the compute_stack of this CloudDeployment. # noqa: E501
149
+
150
+ The compute stack (VM or K8S). # noqa: E501
151
+
152
+ :return: The compute_stack of this CloudDeployment. # noqa: E501
153
+ :rtype: ComputeStack
154
+ """
155
+ return self._compute_stack
156
+
157
+ @compute_stack.setter
158
+ def compute_stack(self, compute_stack):
159
+ """Sets the compute_stack of this CloudDeployment.
160
+
161
+ The compute stack (VM or K8S). # noqa: E501
162
+
163
+ :param compute_stack: The compute_stack of this CloudDeployment. # noqa: E501
164
+ :type: ComputeStack
165
+ """
166
+
167
+ self._compute_stack = compute_stack
168
+
169
+ @property
170
+ def region(self):
171
+ """Gets the region of this CloudDeployment. # noqa: E501
172
+
173
+ The region for the deployment (e.g., us-west-2). # noqa: E501
174
+
175
+ :return: The region of this CloudDeployment. # noqa: E501
176
+ :rtype: str
177
+ """
178
+ return self._region
179
+
180
+ @region.setter
181
+ def region(self, region):
182
+ """Sets the region of this CloudDeployment.
183
+
184
+ The region for the deployment (e.g., us-west-2). # noqa: E501
185
+
186
+ :param region: The region of this CloudDeployment. # noqa: E501
187
+ :type: str
188
+ """
189
+
190
+ self._region = region
191
+
192
+ @property
193
+ def networking_mode(self):
194
+ """Gets the networking_mode of this CloudDeployment. # noqa: E501
195
+
196
+ Whether to use public or private networking. # noqa: E501
197
+
198
+ :return: The networking_mode of this CloudDeployment. # noqa: E501
199
+ :rtype: NetworkingMode
200
+ """
201
+ return self._networking_mode
202
+
203
+ @networking_mode.setter
204
+ def networking_mode(self, networking_mode):
205
+ """Sets the networking_mode of this CloudDeployment.
206
+
207
+ Whether to use public or private networking. # noqa: E501
208
+
209
+ :param networking_mode: The networking_mode of this CloudDeployment. # noqa: E501
210
+ :type: NetworkingMode
211
+ """
212
+
213
+ self._networking_mode = networking_mode
214
+
215
+ @property
216
+ def object_storage(self):
217
+ """Gets the object_storage of this CloudDeployment. # noqa: E501
218
+
219
+ Object storage configuration. # noqa: E501
220
+
221
+ :return: The object_storage of this CloudDeployment. # noqa: E501
222
+ :rtype: ObjectStorage
223
+ """
224
+ return self._object_storage
225
+
226
+ @object_storage.setter
227
+ def object_storage(self, object_storage):
228
+ """Sets the object_storage of this CloudDeployment.
229
+
230
+ Object storage configuration. # noqa: E501
231
+
232
+ :param object_storage: The object_storage of this CloudDeployment. # noqa: E501
233
+ :type: ObjectStorage
234
+ """
235
+
236
+ self._object_storage = object_storage
237
+
238
+ @property
239
+ def file_storage(self):
240
+ """Gets the file_storage of this CloudDeployment. # noqa: E501
241
+
242
+ File storage configuration. # noqa: E501
243
+
244
+ :return: The file_storage of this CloudDeployment. # noqa: E501
245
+ :rtype: FileStorage
246
+ """
247
+ return self._file_storage
248
+
249
+ @file_storage.setter
250
+ def file_storage(self, file_storage):
251
+ """Sets the file_storage of this CloudDeployment.
252
+
253
+ File storage configuration. # noqa: E501
254
+
255
+ :param file_storage: The file_storage of this CloudDeployment. # noqa: E501
256
+ :type: FileStorage
257
+ """
258
+
259
+ self._file_storage = file_storage
260
+
261
+ @property
262
+ def aws_config(self):
263
+ """Gets the aws_config of this CloudDeployment. # noqa: E501
264
+
265
+ AWS provider-specific configurations. # noqa: E501
266
+
267
+ :return: The aws_config of this CloudDeployment. # noqa: E501
268
+ :rtype: AWSConfig
269
+ """
270
+ return self._aws_config
271
+
272
+ @aws_config.setter
273
+ def aws_config(self, aws_config):
274
+ """Sets the aws_config of this CloudDeployment.
275
+
276
+ AWS provider-specific configurations. # noqa: E501
277
+
278
+ :param aws_config: The aws_config of this CloudDeployment. # noqa: E501
279
+ :type: AWSConfig
280
+ """
281
+
282
+ self._aws_config = aws_config
283
+
284
+ @property
285
+ def gcp_config(self):
286
+ """Gets the gcp_config of this CloudDeployment. # noqa: E501
287
+
288
+ GCP provider-specific configurations. # noqa: E501
289
+
290
+ :return: The gcp_config of this CloudDeployment. # noqa: E501
291
+ :rtype: GCPConfig
292
+ """
293
+ return self._gcp_config
294
+
295
+ @gcp_config.setter
296
+ def gcp_config(self, gcp_config):
297
+ """Sets the gcp_config of this CloudDeployment.
298
+
299
+ GCP provider-specific configurations. # noqa: E501
300
+
301
+ :param gcp_config: The gcp_config of this CloudDeployment. # noqa: E501
302
+ :type: GCPConfig
303
+ """
304
+
305
+ self._gcp_config = gcp_config
306
+
307
+ @property
308
+ def pcp_config(self):
309
+ """Gets the pcp_config of this CloudDeployment. # noqa: E501
310
+
311
+ Machine pool configurations. # noqa: E501
312
+
313
+ :return: The pcp_config of this CloudDeployment. # noqa: E501
314
+ :rtype: PCPConfig
315
+ """
316
+ return self._pcp_config
317
+
318
+ @pcp_config.setter
319
+ def pcp_config(self, pcp_config):
320
+ """Sets the pcp_config of this CloudDeployment.
321
+
322
+ Machine pool configurations. # noqa: E501
323
+
324
+ :param pcp_config: The pcp_config of this CloudDeployment. # noqa: E501
325
+ :type: PCPConfig
326
+ """
327
+
328
+ self._pcp_config = pcp_config
329
+
330
+ @property
331
+ def kubernetes_config(self):
332
+ """Gets the kubernetes_config of this CloudDeployment. # noqa: E501
333
+
334
+ Kubernetes stack configurations. # noqa: E501
335
+
336
+ :return: The kubernetes_config of this CloudDeployment. # noqa: E501
337
+ :rtype: KubernetesConfig
338
+ """
339
+ return self._kubernetes_config
340
+
341
+ @kubernetes_config.setter
342
+ def kubernetes_config(self, kubernetes_config):
343
+ """Sets the kubernetes_config of this CloudDeployment.
344
+
345
+ Kubernetes stack configurations. # noqa: E501
346
+
347
+ :param kubernetes_config: The kubernetes_config of this CloudDeployment. # noqa: E501
348
+ :type: KubernetesConfig
349
+ """
350
+
351
+ self._kubernetes_config = kubernetes_config
352
+
353
+ def to_dict(self):
354
+ """Returns the model properties as a dict"""
355
+ result = {}
356
+
357
+ for attr, _ in six.iteritems(self.openapi_types):
358
+ value = getattr(self, attr)
359
+ if isinstance(value, list):
360
+ result[attr] = list(map(
361
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
362
+ value
363
+ ))
364
+ elif hasattr(value, "to_dict"):
365
+ result[attr] = value.to_dict()
366
+ elif isinstance(value, dict):
367
+ result[attr] = dict(map(
368
+ lambda item: (item[0], item[1].to_dict())
369
+ if hasattr(item[1], "to_dict") else item,
370
+ value.items()
371
+ ))
372
+ else:
373
+ result[attr] = value
374
+
375
+ return result
376
+
377
+ def to_str(self):
378
+ """Returns the string representation of the model"""
379
+ return pprint.pformat(self.to_dict())
380
+
381
+ def __repr__(self):
382
+ """For `print` and `pprint`"""
383
+ return self.to_str()
384
+
385
+ def __eq__(self, other):
386
+ """Returns true if both objects are equal"""
387
+ if not isinstance(other, CloudDeployment):
388
+ return False
389
+
390
+ return self.to_dict() == other.to_dict()
391
+
392
+ def __ne__(self, other):
393
+ """Returns true if both objects are not equal"""
394
+ if not isinstance(other, CloudDeployment):
395
+ return True
396
+
397
+ return self.to_dict() != other.to_dict()
@@ -18,7 +18,7 @@ import six
18
18
  from openapi_client.configuration import Configuration
19
19
 
20
20
 
21
- class WebterminalListResponse(object):
21
+ class ClouddeploymentListResponse(object):
22
22
  """NOTE: This class is auto generated by OpenAPI Generator.
23
23
  Ref: https://openapi-generator.tech
24
24
 
@@ -33,7 +33,7 @@ class WebterminalListResponse(object):
33
33
  and the value is json key in definition.
34
34
  """
35
35
  openapi_types = {
36
- 'results': 'list[WebTerminal]',
36
+ 'results': 'list[CloudDeployment]',
37
37
  'metadata': 'ListResponseMetadata'
38
38
  }
39
39
 
@@ -43,7 +43,7 @@ class WebterminalListResponse(object):
43
43
  }
44
44
 
45
45
  def __init__(self, results=None, metadata=None, local_vars_configuration=None): # noqa: E501
46
- """WebterminalListResponse - a model defined in OpenAPI""" # noqa: E501
46
+ """ClouddeploymentListResponse - a model defined in OpenAPI""" # noqa: E501
47
47
  if local_vars_configuration is None:
48
48
  local_vars_configuration = Configuration()
49
49
  self.local_vars_configuration = local_vars_configuration
@@ -58,21 +58,21 @@ class WebterminalListResponse(object):
58
58
 
59
59
  @property
60
60
  def results(self):
61
- """Gets the results of this WebterminalListResponse. # noqa: E501
61
+ """Gets the results of this ClouddeploymentListResponse. # noqa: E501
62
62
 
63
63
 
64
- :return: The results of this WebterminalListResponse. # noqa: E501
65
- :rtype: list[WebTerminal]
64
+ :return: The results of this ClouddeploymentListResponse. # noqa: E501
65
+ :rtype: list[CloudDeployment]
66
66
  """
67
67
  return self._results
68
68
 
69
69
  @results.setter
70
70
  def results(self, results):
71
- """Sets the results of this WebterminalListResponse.
71
+ """Sets the results of this ClouddeploymentListResponse.
72
72
 
73
73
 
74
- :param results: The results of this WebterminalListResponse. # noqa: E501
75
- :type: list[WebTerminal]
74
+ :param results: The results of this ClouddeploymentListResponse. # noqa: E501
75
+ :type: list[CloudDeployment]
76
76
  """
77
77
  if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501
78
78
  raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501
@@ -81,20 +81,20 @@ class WebterminalListResponse(object):
81
81
 
82
82
  @property
83
83
  def metadata(self):
84
- """Gets the metadata of this WebterminalListResponse. # noqa: E501
84
+ """Gets the metadata of this ClouddeploymentListResponse. # noqa: E501
85
85
 
86
86
 
87
- :return: The metadata of this WebterminalListResponse. # noqa: E501
87
+ :return: The metadata of this ClouddeploymentListResponse. # noqa: E501
88
88
  :rtype: ListResponseMetadata
89
89
  """
90
90
  return self._metadata
91
91
 
92
92
  @metadata.setter
93
93
  def metadata(self, metadata):
94
- """Sets the metadata of this WebterminalListResponse.
94
+ """Sets the metadata of this ClouddeploymentListResponse.
95
95
 
96
96
 
97
- :param metadata: The metadata of this WebterminalListResponse. # noqa: E501
97
+ :param metadata: The metadata of this ClouddeploymentListResponse. # noqa: E501
98
98
  :type: ListResponseMetadata
99
99
  """
100
100
 
@@ -134,14 +134,14 @@ class WebterminalListResponse(object):
134
134
 
135
135
  def __eq__(self, other):
136
136
  """Returns true if both objects are equal"""
137
- if not isinstance(other, WebterminalListResponse):
137
+ if not isinstance(other, ClouddeploymentListResponse):
138
138
  return False
139
139
 
140
140
  return self.to_dict() == other.to_dict()
141
141
 
142
142
  def __ne__(self, other):
143
143
  """Returns true if both objects are not equal"""
144
- if not isinstance(other, WebterminalListResponse):
144
+ if not isinstance(other, ClouddeploymentListResponse):
145
145
  return True
146
146
 
147
147
  return self.to_dict() != other.to_dict()
@@ -113,7 +113,7 @@ class DecoratedProductionJobStateTransition(object):
113
113
  def state_transitioned_at(self):
114
114
  """Gets the state_transitioned_at of this DecoratedProductionJobStateTransition. # noqa: E501
115
115
 
116
- The last time the state of this job was updated. This includes updates to the state and to the goal state # noqa: E501
116
+ The last time the state of this job was updated # noqa: E501
117
117
 
118
118
  :return: The state_transitioned_at of this DecoratedProductionJobStateTransition. # noqa: E501
119
119
  :rtype: datetime
@@ -124,7 +124,7 @@ class DecoratedProductionJobStateTransition(object):
124
124
  def state_transitioned_at(self, state_transitioned_at):
125
125
  """Sets the state_transitioned_at of this DecoratedProductionJobStateTransition.
126
126
 
127
- The last time the state of this job was updated. This includes updates to the state and to the goal state # noqa: E501
127
+ The last time the state of this job was updated # noqa: E501
128
128
 
129
129
  :param state_transitioned_at: The state_transitioned_at of this DecoratedProductionJobStateTransition. # noqa: E501
130
130
  :type: datetime