anyscale 0.26.51__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 (75) hide show
  1. anyscale/_private/anyscale_client/README.md +1 -1
  2. anyscale/_private/anyscale_client/anyscale_client.py +178 -46
  3. anyscale/_private/anyscale_client/common.py +61 -2
  4. anyscale/_private/anyscale_client/fake_anyscale_client.py +145 -8
  5. anyscale/_private/docgen/__main__.py +42 -31
  6. anyscale/_private/docgen/generator.py +63 -28
  7. anyscale/_private/docgen/models.md +4 -2
  8. anyscale/_private/sdk/__init__.py +124 -1
  9. anyscale/_private/workload/workload_config.py +4 -6
  10. anyscale/_private/workload/workload_sdk.py +105 -12
  11. anyscale/client/README.md +13 -11
  12. anyscale/client/openapi_client/__init__.py +3 -3
  13. anyscale/client/openapi_client/api/default_api.py +512 -316
  14. anyscale/client/openapi_client/models/__init__.py +3 -3
  15. anyscale/client/openapi_client/models/aws_config.py +2 -2
  16. anyscale/client/openapi_client/models/baseimagesenum.py +158 -1
  17. anyscale/client/openapi_client/models/cloud_data_bucket_presigned_url_request.py +31 -3
  18. anyscale/client/openapi_client/models/cloud_deployment.py +37 -36
  19. anyscale/client/openapi_client/models/cloud_resource.py +59 -3
  20. anyscale/client/openapi_client/models/cloud_resource_gcp.py +59 -3
  21. anyscale/client/openapi_client/models/create_cloud_resource.py +59 -3
  22. anyscale/client/openapi_client/models/create_cloud_resource_gcp.py +59 -3
  23. anyscale/client/openapi_client/models/create_resource_notification.py +31 -3
  24. anyscale/client/openapi_client/models/{decorated_cloud_deployment.py → decorated_cloud_resource.py} +124 -96
  25. anyscale/client/openapi_client/models/{clouddeployment_list_response.py → decoratedcloudresource_list_response.py} +15 -15
  26. anyscale/client/openapi_client/models/{decoratedclouddeployment_response.py → decoratedcloudresource_response.py} +11 -11
  27. anyscale/client/openapi_client/models/file_storage.py +4 -4
  28. anyscale/client/openapi_client/models/gcp_config.py +2 -2
  29. anyscale/client/openapi_client/models/ha_job_error_types.py +9 -2
  30. anyscale/client/openapi_client/models/object_storage.py +4 -4
  31. anyscale/client/openapi_client/models/ray_runtime_env_config.py +57 -1
  32. anyscale/client/openapi_client/models/resource_alert_event_type.py +2 -1
  33. anyscale/client/openapi_client/models/resource_notification.py +29 -1
  34. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +155 -1
  35. anyscale/client/openapi_client/models/workload_info.py +31 -3
  36. anyscale/client/openapi_client/models/workload_state_info.py +29 -1
  37. anyscale/cloud/models.py +40 -43
  38. anyscale/commands/cloud_commands.py +93 -88
  39. anyscale/commands/command_examples.py +37 -49
  40. anyscale/commands/exec_commands.py +12 -1
  41. anyscale/commands/list_commands.py +42 -12
  42. anyscale/commands/project_commands.py +399 -115
  43. anyscale/commands/schedule_commands.py +22 -11
  44. anyscale/commands/service_commands.py +11 -6
  45. anyscale/commands/util.py +94 -1
  46. anyscale/commands/workspace_commands.py +92 -38
  47. anyscale/compute_config/__init__.py +1 -1
  48. anyscale/compute_config/_private/compute_config_sdk.py +8 -11
  49. anyscale/compute_config/commands.py +3 -3
  50. anyscale/compute_config/models.py +30 -30
  51. anyscale/controllers/cloud_controller.py +361 -360
  52. anyscale/controllers/kubernetes_verifier.py +1 -1
  53. anyscale/job/_private/job_sdk.py +41 -23
  54. anyscale/job/models.py +1 -1
  55. anyscale/project/__init__.py +101 -1
  56. anyscale/project/_private/project_sdk.py +90 -2
  57. anyscale/project/commands.py +188 -1
  58. anyscale/project/models.py +198 -2
  59. anyscale/sdk/anyscale_client/models/baseimagesenum.py +158 -1
  60. anyscale/sdk/anyscale_client/models/ray_runtime_env_config.py +57 -1
  61. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +155 -1
  62. anyscale/service/_private/service_sdk.py +2 -1
  63. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  64. anyscale/util.py +3 -0
  65. anyscale/utils/runtime_env.py +3 -1
  66. anyscale/version.py +1 -1
  67. anyscale/workspace/commands.py +114 -23
  68. anyscale/workspace/models.py +3 -5
  69. {anyscale-0.26.51.dist-info → anyscale-0.26.53.dist-info}/METADATA +1 -1
  70. {anyscale-0.26.51.dist-info → anyscale-0.26.53.dist-info}/RECORD +75 -75
  71. {anyscale-0.26.51.dist-info → anyscale-0.26.53.dist-info}/WHEEL +0 -0
  72. {anyscale-0.26.51.dist-info → anyscale-0.26.53.dist-info}/entry_points.txt +0 -0
  73. {anyscale-0.26.51.dist-info → anyscale-0.26.53.dist-info}/licenses/LICENSE +0 -0
  74. {anyscale-0.26.51.dist-info → anyscale-0.26.53.dist-info}/licenses/NOTICE +0 -0
  75. {anyscale-0.26.51.dist-info → anyscale-0.26.53.dist-info}/top_level.txt +0 -0
@@ -39,6 +39,8 @@ class CreateCloudResourceGCP(object):
39
39
  'kubernetes_zones': 'list[str]',
40
40
  'kubernetes_dataplane_identity': 'str',
41
41
  'kubernetes_nfs_persistent_volume_claim': 'str',
42
+ 'persistent_volume_claim': 'str',
43
+ 'csi_ephemeral_volume_driver': 'str',
42
44
  'cloud_storage_bucket_name': 'str',
43
45
  'cloud_storage_bucket_endpoint': 'str',
44
46
  'cloud_storage_bucket_region': 'str',
@@ -62,6 +64,8 @@ class CreateCloudResourceGCP(object):
62
64
  'kubernetes_zones': 'kubernetes_zones',
63
65
  'kubernetes_dataplane_identity': 'kubernetes_dataplane_identity',
64
66
  'kubernetes_nfs_persistent_volume_claim': 'kubernetes_nfs_persistent_volume_claim',
67
+ 'persistent_volume_claim': 'persistent_volume_claim',
68
+ 'csi_ephemeral_volume_driver': 'csi_ephemeral_volume_driver',
65
69
  'cloud_storage_bucket_name': 'cloud_storage_bucket_name',
66
70
  'cloud_storage_bucket_endpoint': 'cloud_storage_bucket_endpoint',
67
71
  'cloud_storage_bucket_region': 'cloud_storage_bucket_region',
@@ -78,7 +82,7 @@ class CreateCloudResourceGCP(object):
78
82
  'memorystore_instance_config': 'memorystore_instance_config'
79
83
  }
80
84
 
81
- def __init__(self, compute_stack=None, kubernetes_ingress_external_address=None, kubernetes_namespaces=None, kubernetes_zones=None, kubernetes_dataplane_identity=None, kubernetes_nfs_persistent_volume_claim=None, cloud_storage_bucket_name=None, cloud_storage_bucket_endpoint=None, cloud_storage_bucket_region=None, nfs_mount_targets=None, nfs_mount_path=None, gcp_vpc_id=None, gcp_subnet_ids=None, gcp_cluster_node_service_account_email=None, gcp_anyscale_iam_service_account_email=None, gcp_filestore_config=None, gcp_firewall_policy_ids=None, gcp_cloud_storage_bucket_id=None, gcp_deployment_manager_id=None, memorystore_instance_config=None, local_vars_configuration=None): # noqa: E501
85
+ def __init__(self, compute_stack=None, kubernetes_ingress_external_address=None, kubernetes_namespaces=None, kubernetes_zones=None, kubernetes_dataplane_identity=None, kubernetes_nfs_persistent_volume_claim=None, persistent_volume_claim=None, csi_ephemeral_volume_driver=None, cloud_storage_bucket_name=None, cloud_storage_bucket_endpoint=None, cloud_storage_bucket_region=None, nfs_mount_targets=None, nfs_mount_path=None, gcp_vpc_id=None, gcp_subnet_ids=None, gcp_cluster_node_service_account_email=None, gcp_anyscale_iam_service_account_email=None, gcp_filestore_config=None, gcp_firewall_policy_ids=None, gcp_cloud_storage_bucket_id=None, gcp_deployment_manager_id=None, memorystore_instance_config=None, local_vars_configuration=None): # noqa: E501
82
86
  """CreateCloudResourceGCP - a model defined in OpenAPI""" # noqa: E501
83
87
  if local_vars_configuration is None:
84
88
  local_vars_configuration = Configuration()
@@ -90,6 +94,8 @@ class CreateCloudResourceGCP(object):
90
94
  self._kubernetes_zones = None
91
95
  self._kubernetes_dataplane_identity = None
92
96
  self._kubernetes_nfs_persistent_volume_claim = None
97
+ self._persistent_volume_claim = None
98
+ self._csi_ephemeral_volume_driver = None
93
99
  self._cloud_storage_bucket_name = None
94
100
  self._cloud_storage_bucket_endpoint = None
95
101
  self._cloud_storage_bucket_region = None
@@ -118,6 +124,10 @@ class CreateCloudResourceGCP(object):
118
124
  self.kubernetes_dataplane_identity = kubernetes_dataplane_identity
119
125
  if kubernetes_nfs_persistent_volume_claim is not None:
120
126
  self.kubernetes_nfs_persistent_volume_claim = kubernetes_nfs_persistent_volume_claim
127
+ if persistent_volume_claim is not None:
128
+ self.persistent_volume_claim = persistent_volume_claim
129
+ if csi_ephemeral_volume_driver is not None:
130
+ self.csi_ephemeral_volume_driver = csi_ephemeral_volume_driver
121
131
  if cloud_storage_bucket_name is not None:
122
132
  self.cloud_storage_bucket_name = cloud_storage_bucket_name
123
133
  if cloud_storage_bucket_endpoint is not None:
@@ -279,11 +289,57 @@ class CreateCloudResourceGCP(object):
279
289
 
280
290
  self._kubernetes_nfs_persistent_volume_claim = kubernetes_nfs_persistent_volume_claim
281
291
 
292
+ @property
293
+ def persistent_volume_claim(self):
294
+ """Gets the persistent_volume_claim of this CreateCloudResourceGCP. # noqa: E501
295
+
296
+ For Kubernetes deployments, the name of the persistent volume claim used to mount shared storage into pods. # noqa: E501
297
+
298
+ :return: The persistent_volume_claim of this CreateCloudResourceGCP. # noqa: E501
299
+ :rtype: str
300
+ """
301
+ return self._persistent_volume_claim
302
+
303
+ @persistent_volume_claim.setter
304
+ def persistent_volume_claim(self, persistent_volume_claim):
305
+ """Sets the persistent_volume_claim of this CreateCloudResourceGCP.
306
+
307
+ For Kubernetes deployments, the name of the persistent volume claim used to mount shared storage into pods. # noqa: E501
308
+
309
+ :param persistent_volume_claim: The persistent_volume_claim of this CreateCloudResourceGCP. # noqa: E501
310
+ :type: str
311
+ """
312
+
313
+ self._persistent_volume_claim = persistent_volume_claim
314
+
315
+ @property
316
+ def csi_ephemeral_volume_driver(self):
317
+ """Gets the csi_ephemeral_volume_driver of this CreateCloudResourceGCP. # noqa: E501
318
+
319
+ For Kubernetes deployments, the CSI ephemeral volume driver used to mount shared storage into pods. # noqa: E501
320
+
321
+ :return: The csi_ephemeral_volume_driver of this CreateCloudResourceGCP. # noqa: E501
322
+ :rtype: str
323
+ """
324
+ return self._csi_ephemeral_volume_driver
325
+
326
+ @csi_ephemeral_volume_driver.setter
327
+ def csi_ephemeral_volume_driver(self, csi_ephemeral_volume_driver):
328
+ """Sets the csi_ephemeral_volume_driver of this CreateCloudResourceGCP.
329
+
330
+ For Kubernetes deployments, the CSI ephemeral volume driver used to mount shared storage into pods. # noqa: E501
331
+
332
+ :param csi_ephemeral_volume_driver: The csi_ephemeral_volume_driver of this CreateCloudResourceGCP. # noqa: E501
333
+ :type: str
334
+ """
335
+
336
+ self._csi_ephemeral_volume_driver = csi_ephemeral_volume_driver
337
+
282
338
  @property
283
339
  def cloud_storage_bucket_name(self):
284
340
  """Gets the cloud_storage_bucket_name of this CreateCloudResourceGCP. # noqa: E501
285
341
 
286
- A fully qualified storage bucket name for cloud storage, e.g. s3://bucket-name, gs://bucket-name, or azure://bucket-name. # noqa: E501
342
+ A fully qualified storage bucket name for cloud storage, e.g. s3://bucket-name, gs://bucket-name, or abfss://bucket-name@account.dfs.core.windows.net. # noqa: E501
287
343
 
288
344
  :return: The cloud_storage_bucket_name of this CreateCloudResourceGCP. # noqa: E501
289
345
  :rtype: str
@@ -294,7 +350,7 @@ class CreateCloudResourceGCP(object):
294
350
  def cloud_storage_bucket_name(self, cloud_storage_bucket_name):
295
351
  """Sets the cloud_storage_bucket_name of this CreateCloudResourceGCP.
296
352
 
297
- A fully qualified storage bucket name for cloud storage, e.g. s3://bucket-name, gs://bucket-name, or azure://bucket-name. # noqa: E501
353
+ A fully qualified storage bucket name for cloud storage, e.g. s3://bucket-name, gs://bucket-name, or abfss://bucket-name@account.dfs.core.windows.net. # noqa: E501
298
354
 
299
355
  :param cloud_storage_bucket_name: The cloud_storage_bucket_name of this CreateCloudResourceGCP. # noqa: E501
300
356
  :type: str
@@ -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 = {}