anyscale 0.26.52__py3-none-any.whl → 0.26.53__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 (62) hide show
  1. anyscale/_private/anyscale_client/anyscale_client.py +26 -26
  2. anyscale/_private/anyscale_client/common.py +5 -5
  3. anyscale/_private/anyscale_client/fake_anyscale_client.py +6 -6
  4. anyscale/_private/docgen/__main__.py +8 -8
  5. anyscale/_private/docgen/generator.py +48 -10
  6. anyscale/_private/docgen/models.md +2 -2
  7. anyscale/_private/sdk/__init__.py +124 -1
  8. anyscale/_private/workload/workload_config.py +4 -6
  9. anyscale/_private/workload/workload_sdk.py +9 -11
  10. anyscale/client/README.md +12 -13
  11. anyscale/client/openapi_client/__init__.py +3 -4
  12. anyscale/client/openapi_client/api/default_api.py +272 -325
  13. anyscale/client/openapi_client/models/__init__.py +3 -4
  14. anyscale/client/openapi_client/models/aws_config.py +2 -2
  15. anyscale/client/openapi_client/models/baseimagesenum.py +76 -1
  16. anyscale/client/openapi_client/models/cloud_data_bucket_presigned_url_request.py +31 -3
  17. anyscale/client/openapi_client/models/cloud_deployment.py +37 -36
  18. anyscale/client/openapi_client/models/create_resource_notification.py +31 -3
  19. anyscale/client/openapi_client/models/{decorated_cloud_deployment.py → decorated_cloud_resource.py} +124 -96
  20. anyscale/client/openapi_client/models/{clouddeployment_list_response.py → decoratedcloudresource_list_response.py} +15 -15
  21. anyscale/client/openapi_client/models/{clouddeployment_response.py → decoratedcloudresource_response.py} +11 -11
  22. anyscale/client/openapi_client/models/file_storage.py +4 -4
  23. anyscale/client/openapi_client/models/gcp_config.py +2 -2
  24. anyscale/client/openapi_client/models/ha_job_error_types.py +9 -2
  25. anyscale/client/openapi_client/models/object_storage.py +2 -2
  26. anyscale/client/openapi_client/models/resource_alert_event_type.py +2 -1
  27. anyscale/client/openapi_client/models/resource_notification.py +29 -1
  28. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +76 -1
  29. anyscale/client/openapi_client/models/workload_info.py +31 -3
  30. anyscale/client/openapi_client/models/workload_state_info.py +29 -1
  31. anyscale/cloud/models.py +39 -42
  32. anyscale/commands/cloud_commands.py +25 -23
  33. anyscale/commands/command_examples.py +10 -10
  34. anyscale/commands/exec_commands.py +12 -1
  35. anyscale/commands/list_commands.py +42 -12
  36. anyscale/commands/project_commands.py +23 -10
  37. anyscale/commands/schedule_commands.py +22 -11
  38. anyscale/commands/service_commands.py +11 -6
  39. anyscale/commands/util.py +94 -1
  40. anyscale/commands/workspace_commands.py +92 -38
  41. anyscale/compute_config/__init__.py +1 -1
  42. anyscale/compute_config/_private/compute_config_sdk.py +8 -11
  43. anyscale/compute_config/commands.py +3 -3
  44. anyscale/compute_config/models.py +30 -30
  45. anyscale/controllers/cloud_controller.py +306 -300
  46. anyscale/controllers/kubernetes_verifier.py +1 -1
  47. anyscale/job/_private/job_sdk.py +12 -12
  48. anyscale/job/models.py +1 -1
  49. anyscale/sdk/anyscale_client/models/baseimagesenum.py +76 -1
  50. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +76 -1
  51. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  52. anyscale/version.py +1 -1
  53. anyscale/workspace/commands.py +114 -23
  54. anyscale/workspace/models.py +3 -5
  55. {anyscale-0.26.52.dist-info → anyscale-0.26.53.dist-info}/METADATA +1 -1
  56. {anyscale-0.26.52.dist-info → anyscale-0.26.53.dist-info}/RECORD +61 -62
  57. anyscale/client/openapi_client/models/decoratedclouddeployment_response.py +0 -121
  58. {anyscale-0.26.52.dist-info → anyscale-0.26.53.dist-info}/WHEEL +0 -0
  59. {anyscale-0.26.52.dist-info → anyscale-0.26.53.dist-info}/entry_points.txt +0 -0
  60. {anyscale-0.26.52.dist-info → anyscale-0.26.53.dist-info}/licenses/LICENSE +0 -0
  61. {anyscale-0.26.52.dist-info → anyscale-0.26.53.dist-info}/licenses/NOTICE +0 -0
  62. {anyscale-0.26.52.dist-info → anyscale-0.26.53.dist-info}/top_level.txt +0 -0
@@ -37,6 +37,7 @@ class CloudDataBucketPresignedUrlRequest(object):
37
37
  'file_name': 'str',
38
38
  'access_mode': 'CloudDataBucketAccessMode',
39
39
  'scope': 'CloudDataBucketRequestScope',
40
+ 'cloud_resource_id': 'str',
40
41
  'cloud_deployment_id': 'str'
41
42
  }
42
43
 
@@ -45,10 +46,11 @@ class CloudDataBucketPresignedUrlRequest(object):
45
46
  'file_name': 'file_name',
46
47
  'access_mode': 'access_mode',
47
48
  'scope': 'scope',
49
+ 'cloud_resource_id': 'cloud_resource_id',
48
50
  'cloud_deployment_id': 'cloud_deployment_id'
49
51
  }
50
52
 
51
- def __init__(self, file_type=None, file_name=None, access_mode=None, scope=None, cloud_deployment_id=None, local_vars_configuration=None): # noqa: E501
53
+ def __init__(self, file_type=None, file_name=None, access_mode=None, scope=None, cloud_resource_id=None, cloud_deployment_id=None, local_vars_configuration=None): # noqa: E501
52
54
  """CloudDataBucketPresignedUrlRequest - a model defined in OpenAPI""" # noqa: E501
53
55
  if local_vars_configuration is None:
54
56
  local_vars_configuration = Configuration()
@@ -58,6 +60,7 @@ class CloudDataBucketPresignedUrlRequest(object):
58
60
  self._file_name = None
59
61
  self._access_mode = None
60
62
  self._scope = None
63
+ self._cloud_resource_id = None
61
64
  self._cloud_deployment_id = None
62
65
  self.discriminator = None
63
66
 
@@ -66,6 +69,8 @@ class CloudDataBucketPresignedUrlRequest(object):
66
69
  self.access_mode = access_mode
67
70
  if scope is not None:
68
71
  self.scope = scope
72
+ if cloud_resource_id is not None:
73
+ self.cloud_resource_id = cloud_resource_id
69
74
  if cloud_deployment_id is not None:
70
75
  self.cloud_deployment_id = cloud_deployment_id
71
76
 
@@ -167,11 +172,34 @@ class CloudDataBucketPresignedUrlRequest(object):
167
172
 
168
173
  self._scope = scope
169
174
 
175
+ @property
176
+ def cloud_resource_id(self):
177
+ """Gets the cloud_resource_id of this CloudDataBucketPresignedUrlRequest. # noqa: E501
178
+
179
+ The cloud resource ID of the bucket to generate a presigned URL for. If not specified, the primary cloud resource for the cloud will be used. # noqa: E501
180
+
181
+ :return: The cloud_resource_id of this CloudDataBucketPresignedUrlRequest. # noqa: E501
182
+ :rtype: str
183
+ """
184
+ return self._cloud_resource_id
185
+
186
+ @cloud_resource_id.setter
187
+ def cloud_resource_id(self, cloud_resource_id):
188
+ """Sets the cloud_resource_id of this CloudDataBucketPresignedUrlRequest.
189
+
190
+ The cloud resource ID of the bucket to generate a presigned URL for. If not specified, the primary cloud resource for the cloud will be used. # noqa: E501
191
+
192
+ :param cloud_resource_id: The cloud_resource_id of this CloudDataBucketPresignedUrlRequest. # noqa: E501
193
+ :type: str
194
+ """
195
+
196
+ self._cloud_resource_id = cloud_resource_id
197
+
170
198
  @property
171
199
  def cloud_deployment_id(self):
172
200
  """Gets the cloud_deployment_id of this CloudDataBucketPresignedUrlRequest. # noqa: E501
173
201
 
174
- The cloud deployment ID of the bucket to generate a presigned URL for. If not specified, the primary cloud deployment for the cloud will be used. # noqa: E501
202
+ DEPRECATED. Use cloud_resource_id instead. # noqa: E501
175
203
 
176
204
  :return: The cloud_deployment_id of this CloudDataBucketPresignedUrlRequest. # noqa: E501
177
205
  :rtype: str
@@ -182,7 +210,7 @@ class CloudDataBucketPresignedUrlRequest(object):
182
210
  def cloud_deployment_id(self, cloud_deployment_id):
183
211
  """Sets the cloud_deployment_id of this CloudDataBucketPresignedUrlRequest.
184
212
 
185
- The cloud deployment ID of the bucket to generate a presigned URL for. If not specified, the primary cloud deployment for the cloud will be used. # noqa: E501
213
+ DEPRECATED. Use cloud_resource_id instead. # noqa: E501
186
214
 
187
215
  :param cloud_deployment_id: The cloud_deployment_id of this CloudDataBucketPresignedUrlRequest. # noqa: E501
188
216
  :type: str
@@ -33,6 +33,7 @@ class CloudDeployment(object):
33
33
  and the value is json key in definition.
34
34
  """
35
35
  openapi_types = {
36
+ 'cloud_resource_id': 'str',
36
37
  'cloud_deployment_id': 'str',
37
38
  'name': 'str',
38
39
  'provider': 'CloudProviders',
@@ -43,11 +44,11 @@ class CloudDeployment(object):
43
44
  'file_storage': 'FileStorage',
44
45
  'aws_config': 'AWSConfig',
45
46
  'gcp_config': 'GCPConfig',
46
- 'kubernetes_config': 'KubernetesConfig',
47
- 'operator_status': 'OperatorStatus'
47
+ 'kubernetes_config': 'KubernetesConfig'
48
48
  }
49
49
 
50
50
  attribute_map = {
51
+ 'cloud_resource_id': 'cloud_resource_id',
51
52
  'cloud_deployment_id': 'cloud_deployment_id',
52
53
  'name': 'name',
53
54
  'provider': 'provider',
@@ -58,16 +59,16 @@ class CloudDeployment(object):
58
59
  'file_storage': 'file_storage',
59
60
  'aws_config': 'aws_config',
60
61
  'gcp_config': 'gcp_config',
61
- 'kubernetes_config': 'kubernetes_config',
62
- 'operator_status': 'operator_status'
62
+ 'kubernetes_config': 'kubernetes_config'
63
63
  }
64
64
 
65
- def __init__(self, cloud_deployment_id=None, name=None, provider=None, compute_stack=None, region=None, networking_mode=None, object_storage=None, file_storage=None, aws_config=None, gcp_config=None, kubernetes_config=None, operator_status=None, local_vars_configuration=None): # noqa: E501
65
+ def __init__(self, cloud_resource_id=None, cloud_deployment_id=None, name=None, provider=None, compute_stack=None, region=None, networking_mode=None, object_storage=None, file_storage=None, aws_config=None, gcp_config=None, kubernetes_config=None, local_vars_configuration=None): # noqa: E501
66
66
  """CloudDeployment - a model defined in OpenAPI""" # noqa: E501
67
67
  if local_vars_configuration is None:
68
68
  local_vars_configuration = Configuration()
69
69
  self.local_vars_configuration = local_vars_configuration
70
70
 
71
+ self._cloud_resource_id = None
71
72
  self._cloud_deployment_id = None
72
73
  self._name = None
73
74
  self._provider = None
@@ -79,9 +80,10 @@ class CloudDeployment(object):
79
80
  self._aws_config = None
80
81
  self._gcp_config = None
81
82
  self._kubernetes_config = None
82
- self._operator_status = None
83
83
  self.discriminator = None
84
84
 
85
+ if cloud_resource_id is not None:
86
+ self.cloud_resource_id = cloud_resource_id
85
87
  if cloud_deployment_id is not None:
86
88
  self.cloud_deployment_id = cloud_deployment_id
87
89
  if name is not None:
@@ -98,13 +100,35 @@ class CloudDeployment(object):
98
100
  self.aws_config = aws_config
99
101
  self.gcp_config = gcp_config
100
102
  self.kubernetes_config = kubernetes_config
101
- self.operator_status = operator_status
103
+
104
+ @property
105
+ def cloud_resource_id(self):
106
+ """Gets the cloud_resource_id of this CloudDeployment. # noqa: E501
107
+
108
+ Unique identifier for this cloud resource. # noqa: E501
109
+
110
+ :return: The cloud_resource_id of this CloudDeployment. # noqa: E501
111
+ :rtype: str
112
+ """
113
+ return self._cloud_resource_id
114
+
115
+ @cloud_resource_id.setter
116
+ def cloud_resource_id(self, cloud_resource_id):
117
+ """Sets the cloud_resource_id of this CloudDeployment.
118
+
119
+ Unique identifier for this cloud resource. # noqa: E501
120
+
121
+ :param cloud_resource_id: The cloud_resource_id of this CloudDeployment. # noqa: E501
122
+ :type: str
123
+ """
124
+
125
+ self._cloud_resource_id = cloud_resource_id
102
126
 
103
127
  @property
104
128
  def cloud_deployment_id(self):
105
129
  """Gets the cloud_deployment_id of this CloudDeployment. # noqa: E501
106
130
 
107
- Unique identifier for this deployment. # noqa: E501
131
+ DEPRECATED. Use cloud_resource_id instead. # noqa: E501
108
132
 
109
133
  :return: The cloud_deployment_id of this CloudDeployment. # noqa: E501
110
134
  :rtype: str
@@ -115,7 +139,7 @@ class CloudDeployment(object):
115
139
  def cloud_deployment_id(self, cloud_deployment_id):
116
140
  """Sets the cloud_deployment_id of this CloudDeployment.
117
141
 
118
- Unique identifier for this deployment. # noqa: E501
142
+ DEPRECATED. Use cloud_resource_id instead. # noqa: E501
119
143
 
120
144
  :param cloud_deployment_id: The cloud_deployment_id of this CloudDeployment. # noqa: E501
121
145
  :type: str
@@ -127,7 +151,7 @@ class CloudDeployment(object):
127
151
  def name(self):
128
152
  """Gets the name of this CloudDeployment. # noqa: E501
129
153
 
130
- The name of this deployment. # noqa: E501
154
+ The name of this cloud resource. # noqa: E501
131
155
 
132
156
  :return: The name of this CloudDeployment. # noqa: E501
133
157
  :rtype: str
@@ -138,7 +162,7 @@ class CloudDeployment(object):
138
162
  def name(self, name):
139
163
  """Sets the name of this CloudDeployment.
140
164
 
141
- The name of this deployment. # noqa: E501
165
+ The name of this cloud resource. # noqa: E501
142
166
 
143
167
  :param name: The name of this CloudDeployment. # noqa: E501
144
168
  :type: str
@@ -198,7 +222,7 @@ class CloudDeployment(object):
198
222
  def region(self):
199
223
  """Gets the region of this CloudDeployment. # noqa: E501
200
224
 
201
- The region for the deployment (e.g., us-west-2). # noqa: E501
225
+ The region (e.g., us-west-2). # noqa: E501
202
226
 
203
227
  :return: The region of this CloudDeployment. # noqa: E501
204
228
  :rtype: str
@@ -209,7 +233,7 @@ class CloudDeployment(object):
209
233
  def region(self, region):
210
234
  """Sets the region of this CloudDeployment.
211
235
 
212
- The region for the deployment (e.g., us-west-2). # noqa: E501
236
+ The region (e.g., us-west-2). # noqa: E501
213
237
 
214
238
  :param region: The region of this CloudDeployment. # noqa: E501
215
239
  :type: str
@@ -355,29 +379,6 @@ class CloudDeployment(object):
355
379
 
356
380
  self._kubernetes_config = kubernetes_config
357
381
 
358
- @property
359
- def operator_status(self):
360
- """Gets the operator_status of this CloudDeployment. # noqa: E501
361
-
362
- Status of the Anyscale operator (only for K8s deployments). # noqa: E501
363
-
364
- :return: The operator_status of this CloudDeployment. # noqa: E501
365
- :rtype: OperatorStatus
366
- """
367
- return self._operator_status
368
-
369
- @operator_status.setter
370
- def operator_status(self, operator_status):
371
- """Sets the operator_status of this CloudDeployment.
372
-
373
- Status of the Anyscale operator (only for K8s deployments). # noqa: E501
374
-
375
- :param operator_status: The operator_status of this CloudDeployment. # noqa: E501
376
- :type: OperatorStatus
377
- """
378
-
379
- self._operator_status = operator_status
380
-
381
382
  def to_dict(self):
382
383
  """Returns the model properties as a dict"""
383
384
  result = {}
@@ -38,7 +38,8 @@ class CreateResourceNotification(object):
38
38
  'project_id': 'str',
39
39
  'user_id': 'str',
40
40
  'notification_events': 'list[ResourceAlertEventType]',
41
- 'notification_channel': 'CreateNotificationChannelRecord'
41
+ 'notification_channel': 'CreateNotificationChannelRecord',
42
+ 'alert_config': 'object'
42
43
  }
43
44
 
44
45
  attribute_map = {
@@ -47,10 +48,11 @@ class CreateResourceNotification(object):
47
48
  'project_id': 'project_id',
48
49
  'user_id': 'user_id',
49
50
  'notification_events': 'notification_events',
50
- 'notification_channel': 'notification_channel'
51
+ 'notification_channel': 'notification_channel',
52
+ 'alert_config': 'alert_config'
51
53
  }
52
54
 
53
- def __init__(self, name=None, cloud_id=None, project_id=None, user_id=None, notification_events=None, notification_channel=None, local_vars_configuration=None): # noqa: E501
55
+ def __init__(self, name=None, cloud_id=None, project_id=None, user_id=None, notification_events=None, notification_channel=None, alert_config=None, local_vars_configuration=None): # noqa: E501
54
56
  """CreateResourceNotification - a model defined in OpenAPI""" # noqa: E501
55
57
  if local_vars_configuration is None:
56
58
  local_vars_configuration = Configuration()
@@ -62,6 +64,7 @@ class CreateResourceNotification(object):
62
64
  self._user_id = None
63
65
  self._notification_events = None
64
66
  self._notification_channel = None
67
+ self._alert_config = None
65
68
  self.discriminator = None
66
69
 
67
70
  self.name = name
@@ -73,6 +76,8 @@ class CreateResourceNotification(object):
73
76
  self.notification_events = notification_events
74
77
  if notification_channel is not None:
75
78
  self.notification_channel = notification_channel
79
+ if alert_config is not None:
80
+ self.alert_config = alert_config
76
81
 
77
82
  @property
78
83
  def name(self):
@@ -218,6 +223,29 @@ class CreateResourceNotification(object):
218
223
 
219
224
  self._notification_channel = notification_channel
220
225
 
226
+ @property
227
+ def alert_config(self):
228
+ """Gets the alert_config of this CreateResourceNotification. # noqa: E501
229
+
230
+ The alert configuration for resource alert events. # noqa: E501
231
+
232
+ :return: The alert_config of this CreateResourceNotification. # noqa: E501
233
+ :rtype: object
234
+ """
235
+ return self._alert_config
236
+
237
+ @alert_config.setter
238
+ def alert_config(self, alert_config):
239
+ """Sets the alert_config of this CreateResourceNotification.
240
+
241
+ The alert configuration for resource alert events. # noqa: E501
242
+
243
+ :param alert_config: The alert_config of this CreateResourceNotification. # noqa: E501
244
+ :type: object
245
+ """
246
+
247
+ self._alert_config = alert_config
248
+
221
249
  def to_dict(self):
222
250
  """Returns the model properties as a dict"""
223
251
  result = {}