anyscale 0.26.47__py3-none-any.whl → 0.26.49__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.
- anyscale/__init__.py +0 -7
- anyscale/_private/anyscale_client/README.md +115 -0
- anyscale/_private/anyscale_client/anyscale_client.py +12 -213
- anyscale/_private/anyscale_client/common.py +0 -55
- anyscale/_private/anyscale_client/fake_anyscale_client.py +19 -46
- anyscale/_private/docgen/__main__.py +32 -47
- anyscale/_private/docgen/generator.py +32 -16
- anyscale/_private/docgen/generator_legacy.py +58 -6
- anyscale/_private/docgen/models.md +3 -2
- anyscale/_private/workload/workload_config.py +16 -8
- anyscale/_private/workload/workload_sdk.py +24 -7
- anyscale/client/README.md +10 -2
- anyscale/client/openapi_client/__init__.py +6 -2
- anyscale/client/openapi_client/api/default_api.py +558 -8
- anyscale/client/openapi_client/models/__init__.py +6 -2
- anyscale/client/openapi_client/models/{alert_type.py → alert_issue_type.py} +8 -20
- anyscale/client/openapi_client/models/baseimagesenum.py +1 -2
- anyscale/client/openapi_client/models/cloud.py +31 -3
- anyscale/client/openapi_client/models/cloud_deployment.py +30 -3
- anyscale/client/openapi_client/models/cloud_with_cloud_resource.py +29 -1
- anyscale/client/openapi_client/models/cloud_with_cloud_resource_gcp.py +29 -1
- anyscale/client/openapi_client/models/dataset_metrics.py +6 -6
- anyscale/client/openapi_client/models/dataset_state.py +2 -1
- anyscale/client/openapi_client/models/decorated_cloud_deployment.py +481 -0
- anyscale/client/openapi_client/models/decoratedclouddeployment_response.py +121 -0
- anyscale/client/openapi_client/models/describe_system_workload_response.py +32 -6
- anyscale/client/openapi_client/models/experimental_workspace.py +29 -1
- anyscale/client/openapi_client/models/experimental_workspaces_sort_field.py +2 -1
- anyscale/client/openapi_client/models/metrics_query_response.py +121 -0
- anyscale/client/openapi_client/models/{clouddeployment_response.py → metricsqueryresponse_response.py} +11 -11
- anyscale/client/openapi_client/models/operator_metrics.py +8 -9
- anyscale/client/openapi_client/models/operator_status.py +102 -0
- anyscale/client/openapi_client/models/organization_usage_alert.py +20 -20
- anyscale/client/openapi_client/models/supportedbaseimagesenum.py +1 -2
- anyscale/cloud/models.py +330 -0
- anyscale/commands/cloud_commands.py +136 -44
- anyscale/commands/command_examples.py +54 -134
- anyscale/commands/compute_config_commands.py +7 -11
- anyscale/compute_config/__init__.py +2 -16
- anyscale/compute_config/_private/compute_config_sdk.py +27 -17
- anyscale/compute_config/commands.py +14 -44
- anyscale/compute_config/models.py +49 -26
- anyscale/controllers/cloud_controller.py +289 -171
- anyscale/controllers/cloud_file_storage_utils.py +204 -0
- anyscale/controllers/kubernetes_verifier.py +1570 -0
- anyscale/job/_private/job_sdk.py +17 -8
- anyscale/job/models.py +1 -1
- anyscale/scripts.py +0 -2
- anyscale/sdk/anyscale_client/models/baseimagesenum.py +1 -2
- anyscale/sdk/anyscale_client/models/cloud.py +31 -3
- anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +1 -2
- anyscale/shared_anyscale_utils/headers.py +3 -0
- anyscale/shared_anyscale_utils/utils/id_gen.py +1 -0
- anyscale/version.py +1 -1
- anyscale/workspace/models.py +14 -7
- {anyscale-0.26.47.dist-info → anyscale-0.26.49.dist-info}/METADATA +1 -1
- {anyscale-0.26.47.dist-info → anyscale-0.26.49.dist-info}/RECORD +62 -73
- anyscale/commands/llm/dataset_commands.py +0 -269
- anyscale/commands/llm/group.py +0 -15
- anyscale/commands/llm/models_commands.py +0 -123
- anyscale/controllers/llm/__init__.py +0 -0
- anyscale/controllers/llm/models_controller.py +0 -144
- anyscale/llm/__init__.py +0 -2
- anyscale/llm/dataset/__init__.py +0 -2
- anyscale/llm/dataset/_private/__init__.py +0 -0
- anyscale/llm/dataset/_private/docs.py +0 -63
- anyscale/llm/dataset/_private/models.py +0 -71
- anyscale/llm/dataset/_private/sdk.py +0 -147
- anyscale/llm/model/__init__.py +0 -2
- anyscale/llm/model/_private/models_sdk.py +0 -62
- anyscale/llm/model/commands.py +0 -93
- anyscale/llm/model/models.py +0 -171
- anyscale/llm/model/sdk.py +0 -62
- anyscale/llm/sdk.py +0 -27
- {anyscale-0.26.47.dist-info → anyscale-0.26.49.dist-info}/WHEEL +0 -0
- {anyscale-0.26.47.dist-info → anyscale-0.26.49.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.47.dist-info → anyscale-0.26.49.dist-info}/licenses/LICENSE +0 -0
- {anyscale-0.26.47.dist-info → anyscale-0.26.49.dist-info}/licenses/NOTICE +0 -0
- {anyscale-0.26.47.dist-info → anyscale-0.26.49.dist-info}/top_level.txt +0 -0
@@ -43,7 +43,8 @@ class CloudDeployment(object):
|
|
43
43
|
'file_storage': 'FileStorage',
|
44
44
|
'aws_config': 'AWSConfig',
|
45
45
|
'gcp_config': 'GCPConfig',
|
46
|
-
'kubernetes_config': 'KubernetesConfig'
|
46
|
+
'kubernetes_config': 'KubernetesConfig',
|
47
|
+
'operator_status': 'OperatorStatus'
|
47
48
|
}
|
48
49
|
|
49
50
|
attribute_map = {
|
@@ -57,10 +58,11 @@ class CloudDeployment(object):
|
|
57
58
|
'file_storage': 'file_storage',
|
58
59
|
'aws_config': 'aws_config',
|
59
60
|
'gcp_config': 'gcp_config',
|
60
|
-
'kubernetes_config': 'kubernetes_config'
|
61
|
+
'kubernetes_config': 'kubernetes_config',
|
62
|
+
'operator_status': 'operator_status'
|
61
63
|
}
|
62
64
|
|
63
|
-
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, local_vars_configuration=None): # noqa: E501
|
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
|
64
66
|
"""CloudDeployment - a model defined in OpenAPI""" # noqa: E501
|
65
67
|
if local_vars_configuration is None:
|
66
68
|
local_vars_configuration = Configuration()
|
@@ -77,6 +79,7 @@ class CloudDeployment(object):
|
|
77
79
|
self._aws_config = None
|
78
80
|
self._gcp_config = None
|
79
81
|
self._kubernetes_config = None
|
82
|
+
self._operator_status = None
|
80
83
|
self.discriminator = None
|
81
84
|
|
82
85
|
if cloud_deployment_id is not None:
|
@@ -95,6 +98,7 @@ class CloudDeployment(object):
|
|
95
98
|
self.aws_config = aws_config
|
96
99
|
self.gcp_config = gcp_config
|
97
100
|
self.kubernetes_config = kubernetes_config
|
101
|
+
self.operator_status = operator_status
|
98
102
|
|
99
103
|
@property
|
100
104
|
def cloud_deployment_id(self):
|
@@ -351,6 +355,29 @@ class CloudDeployment(object):
|
|
351
355
|
|
352
356
|
self._kubernetes_config = kubernetes_config
|
353
357
|
|
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
|
+
|
354
381
|
def to_dict(self):
|
355
382
|
"""Returns the model properties as a dict"""
|
356
383
|
result = {}
|
@@ -59,6 +59,7 @@ class CloudWithCloudResource(object):
|
|
59
59
|
'customer_aggregated_logs_config_id': 'str',
|
60
60
|
'additional_instance_types': 'list[UXInstance]',
|
61
61
|
'is_aggregated_logs_enabled': 'bool',
|
62
|
+
'system_cluster_config_id': 'str',
|
62
63
|
'cloud_resource': 'CloudResource'
|
63
64
|
}
|
64
65
|
|
@@ -89,10 +90,11 @@ class CloudWithCloudResource(object):
|
|
89
90
|
'customer_aggregated_logs_config_id': 'customer_aggregated_logs_config_id',
|
90
91
|
'additional_instance_types': 'additional_instance_types',
|
91
92
|
'is_aggregated_logs_enabled': 'is_aggregated_logs_enabled',
|
93
|
+
'system_cluster_config_id': 'system_cluster_config_id',
|
92
94
|
'cloud_resource': 'cloud_resource'
|
93
95
|
}
|
94
96
|
|
95
|
-
def __init__(self, name=None, provider=None, compute_stack=None, region=None, credentials=None, config=None, is_k8s=False, is_aioa=False, availability_zones=None, is_bring_your_own_resource=None, is_private_cloud=False, cluster_management_stack_version=None, is_private_service_cloud=None, auto_add_user=False, external_id=None, id=None, type=None, creator_id=None, created_at=None, status=None, state=None, version=None, is_default=None, customer_aggregated_logs_config_id=None, additional_instance_types=None, is_aggregated_logs_enabled=None, cloud_resource=None, local_vars_configuration=None): # noqa: E501
|
97
|
+
def __init__(self, name=None, provider=None, compute_stack=None, region=None, credentials=None, config=None, is_k8s=False, is_aioa=False, availability_zones=None, is_bring_your_own_resource=None, is_private_cloud=False, cluster_management_stack_version=None, is_private_service_cloud=None, auto_add_user=False, external_id=None, id=None, type=None, creator_id=None, created_at=None, status=None, state=None, version=None, is_default=None, customer_aggregated_logs_config_id=None, additional_instance_types=None, is_aggregated_logs_enabled=None, system_cluster_config_id=None, cloud_resource=None, local_vars_configuration=None): # noqa: E501
|
96
98
|
"""CloudWithCloudResource - a model defined in OpenAPI""" # noqa: E501
|
97
99
|
if local_vars_configuration is None:
|
98
100
|
local_vars_configuration = Configuration()
|
@@ -124,6 +126,7 @@ class CloudWithCloudResource(object):
|
|
124
126
|
self._customer_aggregated_logs_config_id = None
|
125
127
|
self._additional_instance_types = None
|
126
128
|
self._is_aggregated_logs_enabled = None
|
129
|
+
self._system_cluster_config_id = None
|
127
130
|
self._cloud_resource = None
|
128
131
|
self.discriminator = None
|
129
132
|
|
@@ -169,6 +172,8 @@ class CloudWithCloudResource(object):
|
|
169
172
|
self.additional_instance_types = additional_instance_types
|
170
173
|
if is_aggregated_logs_enabled is not None:
|
171
174
|
self.is_aggregated_logs_enabled = is_aggregated_logs_enabled
|
175
|
+
if system_cluster_config_id is not None:
|
176
|
+
self.system_cluster_config_id = system_cluster_config_id
|
172
177
|
if cloud_resource is not None:
|
173
178
|
self.cloud_resource = cloud_resource
|
174
179
|
|
@@ -788,6 +793,29 @@ class CloudWithCloudResource(object):
|
|
788
793
|
|
789
794
|
self._is_aggregated_logs_enabled = is_aggregated_logs_enabled
|
790
795
|
|
796
|
+
@property
|
797
|
+
def system_cluster_config_id(self):
|
798
|
+
"""Gets the system_cluster_config_id of this CloudWithCloudResource. # noqa: E501
|
799
|
+
|
800
|
+
the id of the system cluster config associated with this cloud. # noqa: E501
|
801
|
+
|
802
|
+
:return: The system_cluster_config_id of this CloudWithCloudResource. # noqa: E501
|
803
|
+
:rtype: str
|
804
|
+
"""
|
805
|
+
return self._system_cluster_config_id
|
806
|
+
|
807
|
+
@system_cluster_config_id.setter
|
808
|
+
def system_cluster_config_id(self, system_cluster_config_id):
|
809
|
+
"""Sets the system_cluster_config_id of this CloudWithCloudResource.
|
810
|
+
|
811
|
+
the id of the system cluster config associated with this cloud. # noqa: E501
|
812
|
+
|
813
|
+
:param system_cluster_config_id: The system_cluster_config_id of this CloudWithCloudResource. # noqa: E501
|
814
|
+
:type: str
|
815
|
+
"""
|
816
|
+
|
817
|
+
self._system_cluster_config_id = system_cluster_config_id
|
818
|
+
|
791
819
|
@property
|
792
820
|
def cloud_resource(self):
|
793
821
|
"""Gets the cloud_resource of this CloudWithCloudResource. # noqa: E501
|
@@ -59,6 +59,7 @@ class CloudWithCloudResourceGCP(object):
|
|
59
59
|
'customer_aggregated_logs_config_id': 'str',
|
60
60
|
'additional_instance_types': 'list[UXInstance]',
|
61
61
|
'is_aggregated_logs_enabled': 'bool',
|
62
|
+
'system_cluster_config_id': 'str',
|
62
63
|
'cloud_resource': 'CloudResourceGCP'
|
63
64
|
}
|
64
65
|
|
@@ -89,10 +90,11 @@ class CloudWithCloudResourceGCP(object):
|
|
89
90
|
'customer_aggregated_logs_config_id': 'customer_aggregated_logs_config_id',
|
90
91
|
'additional_instance_types': 'additional_instance_types',
|
91
92
|
'is_aggregated_logs_enabled': 'is_aggregated_logs_enabled',
|
93
|
+
'system_cluster_config_id': 'system_cluster_config_id',
|
92
94
|
'cloud_resource': 'cloud_resource'
|
93
95
|
}
|
94
96
|
|
95
|
-
def __init__(self, name=None, provider=None, compute_stack=None, region=None, credentials=None, config=None, is_k8s=False, is_aioa=False, availability_zones=None, is_bring_your_own_resource=None, is_private_cloud=False, cluster_management_stack_version=None, is_private_service_cloud=None, auto_add_user=False, external_id=None, id=None, type=None, creator_id=None, created_at=None, status=None, state=None, version=None, is_default=None, customer_aggregated_logs_config_id=None, additional_instance_types=None, is_aggregated_logs_enabled=None, cloud_resource=None, local_vars_configuration=None): # noqa: E501
|
97
|
+
def __init__(self, name=None, provider=None, compute_stack=None, region=None, credentials=None, config=None, is_k8s=False, is_aioa=False, availability_zones=None, is_bring_your_own_resource=None, is_private_cloud=False, cluster_management_stack_version=None, is_private_service_cloud=None, auto_add_user=False, external_id=None, id=None, type=None, creator_id=None, created_at=None, status=None, state=None, version=None, is_default=None, customer_aggregated_logs_config_id=None, additional_instance_types=None, is_aggregated_logs_enabled=None, system_cluster_config_id=None, cloud_resource=None, local_vars_configuration=None): # noqa: E501
|
96
98
|
"""CloudWithCloudResourceGCP - a model defined in OpenAPI""" # noqa: E501
|
97
99
|
if local_vars_configuration is None:
|
98
100
|
local_vars_configuration = Configuration()
|
@@ -124,6 +126,7 @@ class CloudWithCloudResourceGCP(object):
|
|
124
126
|
self._customer_aggregated_logs_config_id = None
|
125
127
|
self._additional_instance_types = None
|
126
128
|
self._is_aggregated_logs_enabled = None
|
129
|
+
self._system_cluster_config_id = None
|
127
130
|
self._cloud_resource = None
|
128
131
|
self.discriminator = None
|
129
132
|
|
@@ -169,6 +172,8 @@ class CloudWithCloudResourceGCP(object):
|
|
169
172
|
self.additional_instance_types = additional_instance_types
|
170
173
|
if is_aggregated_logs_enabled is not None:
|
171
174
|
self.is_aggregated_logs_enabled = is_aggregated_logs_enabled
|
175
|
+
if system_cluster_config_id is not None:
|
176
|
+
self.system_cluster_config_id = system_cluster_config_id
|
172
177
|
if cloud_resource is not None:
|
173
178
|
self.cloud_resource = cloud_resource
|
174
179
|
|
@@ -788,6 +793,29 @@ class CloudWithCloudResourceGCP(object):
|
|
788
793
|
|
789
794
|
self._is_aggregated_logs_enabled = is_aggregated_logs_enabled
|
790
795
|
|
796
|
+
@property
|
797
|
+
def system_cluster_config_id(self):
|
798
|
+
"""Gets the system_cluster_config_id of this CloudWithCloudResourceGCP. # noqa: E501
|
799
|
+
|
800
|
+
the id of the system cluster config associated with this cloud. # noqa: E501
|
801
|
+
|
802
|
+
:return: The system_cluster_config_id of this CloudWithCloudResourceGCP. # noqa: E501
|
803
|
+
:rtype: str
|
804
|
+
"""
|
805
|
+
return self._system_cluster_config_id
|
806
|
+
|
807
|
+
@system_cluster_config_id.setter
|
808
|
+
def system_cluster_config_id(self, system_cluster_config_id):
|
809
|
+
"""Sets the system_cluster_config_id of this CloudWithCloudResourceGCP.
|
810
|
+
|
811
|
+
the id of the system cluster config associated with this cloud. # noqa: E501
|
812
|
+
|
813
|
+
:param system_cluster_config_id: The system_cluster_config_id of this CloudWithCloudResourceGCP. # noqa: E501
|
814
|
+
:type: str
|
815
|
+
"""
|
816
|
+
|
817
|
+
self._system_cluster_config_id = system_cluster_config_id
|
818
|
+
|
791
819
|
@property
|
792
820
|
def cloud_resource(self):
|
793
821
|
"""Gets the cloud_resource of this CloudWithCloudResourceGCP. # noqa: E501
|
@@ -40,8 +40,8 @@ class DatasetMetrics(object):
|
|
40
40
|
'state': 'DatasetState',
|
41
41
|
'progress': 'int',
|
42
42
|
'total': 'int',
|
43
|
-
'start_time': '
|
44
|
-
'end_time': '
|
43
|
+
'start_time': 'float',
|
44
|
+
'end_time': 'float',
|
45
45
|
'operator_metrics': 'list[OperatorMetrics]',
|
46
46
|
'metrics': 'dict(str, Metric)'
|
47
47
|
}
|
@@ -258,7 +258,7 @@ class DatasetMetrics(object):
|
|
258
258
|
|
259
259
|
|
260
260
|
:return: The start_time of this DatasetMetrics. # noqa: E501
|
261
|
-
:rtype:
|
261
|
+
:rtype: float
|
262
262
|
"""
|
263
263
|
return self._start_time
|
264
264
|
|
@@ -268,7 +268,7 @@ class DatasetMetrics(object):
|
|
268
268
|
|
269
269
|
|
270
270
|
:param start_time: The start_time of this DatasetMetrics. # noqa: E501
|
271
|
-
:type:
|
271
|
+
:type: float
|
272
272
|
"""
|
273
273
|
if self.local_vars_configuration.client_side_validation and start_time is None: # noqa: E501
|
274
274
|
raise ValueError("Invalid value for `start_time`, must not be `None`") # noqa: E501
|
@@ -281,7 +281,7 @@ class DatasetMetrics(object):
|
|
281
281
|
|
282
282
|
|
283
283
|
:return: The end_time of this DatasetMetrics. # noqa: E501
|
284
|
-
:rtype:
|
284
|
+
:rtype: float
|
285
285
|
"""
|
286
286
|
return self._end_time
|
287
287
|
|
@@ -291,7 +291,7 @@ class DatasetMetrics(object):
|
|
291
291
|
|
292
292
|
|
293
293
|
:param end_time: The end_time of this DatasetMetrics. # noqa: E501
|
294
|
-
:type:
|
294
|
+
:type: float
|
295
295
|
"""
|
296
296
|
|
297
297
|
self._end_time = end_time
|
@@ -32,8 +32,9 @@ class DatasetState(object):
|
|
32
32
|
RUNNING = "RUNNING"
|
33
33
|
FAILED = "FAILED"
|
34
34
|
FINISHED = "FINISHED"
|
35
|
+
PENDING = "PENDING"
|
35
36
|
|
36
|
-
allowable_values = [UNKNOWN, RUNNING, FAILED, FINISHED] # noqa: E501
|
37
|
+
allowable_values = [UNKNOWN, RUNNING, FAILED, FINISHED, PENDING] # noqa: E501
|
37
38
|
|
38
39
|
"""
|
39
40
|
Attributes:
|