anyscale 0.26.69__py3-none-any.whl → 0.26.71__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/_private/anyscale_client/anyscale_client.py +126 -3
- anyscale/_private/anyscale_client/common.py +51 -2
- anyscale/_private/anyscale_client/fake_anyscale_client.py +103 -11
- anyscale/client/README.md +43 -4
- anyscale/client/openapi_client/__init__.py +30 -4
- anyscale/client/openapi_client/api/default_api.py +1769 -27
- anyscale/client/openapi_client/models/__init__.py +30 -4
- anyscale/client/openapi_client/models/api_key_info.py +29 -3
- anyscale/client/openapi_client/models/apply_autoscaling_config_update_model.py +350 -0
- anyscale/client/openapi_client/models/apply_multi_version_update_weights_update_model.py +152 -0
- anyscale/client/openapi_client/models/apply_production_service_multi_version_v2_model.py +207 -0
- anyscale/client/openapi_client/models/apply_production_service_v2_model.py +31 -3
- anyscale/client/openapi_client/models/apply_version_weight_update_model.py +181 -0
- anyscale/client/openapi_client/models/backend_server_api_product_models_catalog_client_models_table_metadata.py +546 -0
- anyscale/client/openapi_client/models/backend_server_api_product_models_data_catalogs_table_metadata.py +178 -0
- anyscale/client/openapi_client/models/baseimagesenum.py +139 -1
- anyscale/client/openapi_client/models/catalog_metadata.py +150 -0
- anyscale/client/openapi_client/models/cloud_data_bucket_file_type.py +2 -1
- anyscale/client/openapi_client/models/{oauthconnectionresponse_response.py → clouddeployment_response.py} +11 -11
- anyscale/client/openapi_client/models/column_info.py +265 -0
- anyscale/client/openapi_client/models/compute_node_type.py +29 -1
- anyscale/client/openapi_client/models/connection_metadata.py +206 -0
- anyscale/client/openapi_client/models/create_experimental_workspace.py +29 -1
- anyscale/client/openapi_client/models/create_workspace_from_template.py +29 -1
- anyscale/client/openapi_client/models/create_workspace_template_version.py +59 -3
- anyscale/client/openapi_client/models/data_catalog.py +45 -31
- anyscale/client/openapi_client/models/data_catalog_connection.py +74 -58
- anyscale/client/openapi_client/models/{ha_job_event_level.py → data_catalog_object_type.py} +7 -8
- anyscale/client/openapi_client/models/data_catalog_schema.py +324 -0
- anyscale/client/openapi_client/models/data_catalog_table.py +437 -0
- anyscale/client/openapi_client/models/data_catalog_volume.py +437 -0
- anyscale/client/openapi_client/models/datacatalogschema_list_response.py +147 -0
- anyscale/client/openapi_client/models/datacatalogtable_list_response.py +147 -0
- anyscale/client/openapi_client/models/datacatalogvolume_list_response.py +147 -0
- anyscale/client/openapi_client/models/decorated_list_service_api_model.py +58 -1
- anyscale/client/openapi_client/models/decorated_production_service_v2_api_model.py +60 -3
- anyscale/client/openapi_client/models/decorated_serve_deployment.py +27 -1
- anyscale/client/openapi_client/models/decorated_service_event_api_model.py +3 -3
- anyscale/client/openapi_client/models/decoratedproductionservicev2_versionapimodel_response.py +121 -0
- anyscale/client/openapi_client/models/describe_machine_pool_machines_filters.py +33 -5
- anyscale/client/openapi_client/models/describe_machine_pool_requests_filters.py +33 -5
- anyscale/client/openapi_client/models/describe_machine_pool_workloads_filters.py +33 -5
- anyscale/client/openapi_client/models/{service_event_level.py → entity_type.py} +9 -9
- anyscale/client/openapi_client/models/event_level.py +2 -1
- anyscale/client/openapi_client/models/job_event_fields.py +206 -0
- anyscale/client/openapi_client/models/machine_type_partition_filter.py +152 -0
- anyscale/client/openapi_client/models/partition_info.py +30 -1
- anyscale/client/openapi_client/models/physical_resources.py +178 -0
- anyscale/client/openapi_client/models/production_job_event.py +3 -3
- anyscale/client/openapi_client/models/rollout_strategy.py +2 -1
- anyscale/client/openapi_client/models/schema_metadata.py +150 -0
- anyscale/client/openapi_client/models/service_event_fields.py +318 -0
- anyscale/client/openapi_client/models/sso_config.py +18 -18
- anyscale/client/openapi_client/models/supportedbaseimagesenum.py +139 -1
- anyscale/client/openapi_client/models/table_data_preview.py +209 -0
- anyscale/client/openapi_client/models/task_summary_config.py +29 -3
- anyscale/client/openapi_client/models/task_table_config.py +29 -3
- anyscale/client/openapi_client/models/unified_event.py +377 -0
- anyscale/client/openapi_client/models/unified_origin_filter.py +113 -0
- anyscale/client/openapi_client/models/unifiedevent_list_response.py +147 -0
- anyscale/client/openapi_client/models/volume_metadata.py +150 -0
- anyscale/client/openapi_client/models/worker_node_type.py +29 -1
- anyscale/client/openapi_client/models/workspace_event_fields.py +122 -0
- anyscale/client/openapi_client/models/workspace_template_version.py +58 -1
- anyscale/client/openapi_client/models/workspace_template_version_data_object.py +58 -1
- anyscale/cloud/models.py +2 -2
- anyscale/commands/cloud_commands.py +133 -2
- anyscale/commands/job_commands.py +121 -1
- anyscale/commands/job_queue_commands.py +99 -2
- anyscale/commands/service_commands.py +267 -67
- anyscale/commands/setup_k8s.py +546 -31
- anyscale/commands/util.py +104 -1
- anyscale/commands/workspace_commands.py +123 -5
- anyscale/commands/workspace_commands_v2.py +17 -1
- anyscale/compute_config/_private/compute_config_sdk.py +25 -12
- anyscale/compute_config/models.py +15 -0
- anyscale/controllers/cloud_controller.py +15 -2
- anyscale/controllers/job_controller.py +12 -0
- anyscale/controllers/kubernetes_verifier.py +80 -66
- anyscale/controllers/workspace_controller.py +67 -5
- anyscale/job/_private/job_sdk.py +50 -2
- anyscale/job/commands.py +3 -0
- anyscale/job/models.py +16 -0
- anyscale/job_queue/__init__.py +37 -1
- anyscale/job_queue/_private/job_queue_sdk.py +28 -1
- anyscale/job_queue/commands.py +61 -1
- anyscale/sdk/anyscale_client/__init__.py +1 -0
- anyscale/sdk/anyscale_client/api/default_api.py +12 -2
- anyscale/sdk/anyscale_client/models/__init__.py +1 -0
- anyscale/sdk/anyscale_client/models/apply_production_service_v2_model.py +31 -3
- anyscale/sdk/anyscale_client/models/apply_service_model.py +31 -3
- anyscale/sdk/anyscale_client/models/baseimagesenum.py +139 -1
- anyscale/sdk/anyscale_client/models/compute_node_type.py +29 -1
- anyscale/sdk/anyscale_client/models/physical_resources.py +178 -0
- anyscale/sdk/anyscale_client/models/rollout_strategy.py +2 -1
- anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +139 -1
- anyscale/sdk/anyscale_client/models/worker_node_type.py +29 -1
- anyscale/service/__init__.py +51 -3
- anyscale/service/_private/service_sdk.py +481 -58
- anyscale/service/commands.py +90 -4
- anyscale/service/models.py +56 -0
- anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
- anyscale/version.py +1 -1
- anyscale/workspace/_private/workspace_sdk.py +1 -0
- anyscale/workspace/models.py +19 -0
- {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/METADATA +1 -1
- {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/RECORD +112 -85
- anyscale/client/openapi_client/models/o_auth_connection_response.py +0 -229
- {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/WHEEL +0 -0
- {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/licenses/LICENSE +0 -0
- {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/licenses/NOTICE +0 -0
- {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/top_level.txt +0 -0
|
@@ -36,6 +36,7 @@ class ComputeNodeType(object):
|
|
|
36
36
|
'name': 'str',
|
|
37
37
|
'instance_type': 'str',
|
|
38
38
|
'resources': 'Resources',
|
|
39
|
+
'physical_resources': 'PhysicalResources',
|
|
39
40
|
'labels': 'dict(str, str)',
|
|
40
41
|
'aws_advanced_configurations_json': 'object',
|
|
41
42
|
'gcp_advanced_configurations_json': 'object',
|
|
@@ -47,6 +48,7 @@ class ComputeNodeType(object):
|
|
|
47
48
|
'name': 'name',
|
|
48
49
|
'instance_type': 'instance_type',
|
|
49
50
|
'resources': 'resources',
|
|
51
|
+
'physical_resources': 'physical_resources',
|
|
50
52
|
'labels': 'labels',
|
|
51
53
|
'aws_advanced_configurations_json': 'aws_advanced_configurations_json',
|
|
52
54
|
'gcp_advanced_configurations_json': 'gcp_advanced_configurations_json',
|
|
@@ -54,7 +56,7 @@ class ComputeNodeType(object):
|
|
|
54
56
|
'flags': 'flags'
|
|
55
57
|
}
|
|
56
58
|
|
|
57
|
-
def __init__(self, name=None, instance_type=None, resources=None, labels=None, aws_advanced_configurations_json=None, gcp_advanced_configurations_json=None, advanced_configurations_json=None, flags=None, local_vars_configuration=None): # noqa: E501
|
|
59
|
+
def __init__(self, name=None, instance_type=None, resources=None, physical_resources=None, labels=None, aws_advanced_configurations_json=None, gcp_advanced_configurations_json=None, advanced_configurations_json=None, flags=None, local_vars_configuration=None): # noqa: E501
|
|
58
60
|
"""ComputeNodeType - a model defined in OpenAPI""" # noqa: E501
|
|
59
61
|
if local_vars_configuration is None:
|
|
60
62
|
local_vars_configuration = Configuration()
|
|
@@ -63,6 +65,7 @@ class ComputeNodeType(object):
|
|
|
63
65
|
self._name = None
|
|
64
66
|
self._instance_type = None
|
|
65
67
|
self._resources = None
|
|
68
|
+
self._physical_resources = None
|
|
66
69
|
self._labels = None
|
|
67
70
|
self._aws_advanced_configurations_json = None
|
|
68
71
|
self._gcp_advanced_configurations_json = None
|
|
@@ -74,6 +77,8 @@ class ComputeNodeType(object):
|
|
|
74
77
|
self.instance_type = instance_type
|
|
75
78
|
if resources is not None:
|
|
76
79
|
self.resources = resources
|
|
80
|
+
if physical_resources is not None:
|
|
81
|
+
self.physical_resources = physical_resources
|
|
77
82
|
if labels is not None:
|
|
78
83
|
self.labels = labels
|
|
79
84
|
if aws_advanced_configurations_json is not None:
|
|
@@ -158,6 +163,29 @@ class ComputeNodeType(object):
|
|
|
158
163
|
|
|
159
164
|
self._resources = resources
|
|
160
165
|
|
|
166
|
+
@property
|
|
167
|
+
def physical_resources(self):
|
|
168
|
+
"""Gets the physical_resources of this ComputeNodeType. # noqa: E501
|
|
169
|
+
|
|
170
|
+
Physical resources for compute node type which specifies the actual CPU, memory, and GPU resources that should be allocated for this node type. # noqa: E501
|
|
171
|
+
|
|
172
|
+
:return: The physical_resources of this ComputeNodeType. # noqa: E501
|
|
173
|
+
:rtype: PhysicalResources
|
|
174
|
+
"""
|
|
175
|
+
return self._physical_resources
|
|
176
|
+
|
|
177
|
+
@physical_resources.setter
|
|
178
|
+
def physical_resources(self, physical_resources):
|
|
179
|
+
"""Sets the physical_resources of this ComputeNodeType.
|
|
180
|
+
|
|
181
|
+
Physical resources for compute node type which specifies the actual CPU, memory, and GPU resources that should be allocated for this node type. # noqa: E501
|
|
182
|
+
|
|
183
|
+
:param physical_resources: The physical_resources of this ComputeNodeType. # noqa: E501
|
|
184
|
+
:type: PhysicalResources
|
|
185
|
+
"""
|
|
186
|
+
|
|
187
|
+
self._physical_resources = physical_resources
|
|
188
|
+
|
|
161
189
|
@property
|
|
162
190
|
def labels(self):
|
|
163
191
|
"""Gets the labels of this ComputeNodeType. # noqa: E501
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Anyscale 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 anyscale_client.configuration import Configuration
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class PhysicalResources(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
|
+
'cpu': 'int',
|
|
37
|
+
'gpu': 'int',
|
|
38
|
+
'memory': 'int'
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
attribute_map = {
|
|
42
|
+
'cpu': 'cpu',
|
|
43
|
+
'gpu': 'gpu',
|
|
44
|
+
'memory': 'memory'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
def __init__(self, cpu=None, gpu=None, memory=None, local_vars_configuration=None): # noqa: E501
|
|
48
|
+
"""PhysicalResources - a model defined in OpenAPI""" # noqa: E501
|
|
49
|
+
if local_vars_configuration is None:
|
|
50
|
+
local_vars_configuration = Configuration()
|
|
51
|
+
self.local_vars_configuration = local_vars_configuration
|
|
52
|
+
|
|
53
|
+
self._cpu = None
|
|
54
|
+
self._gpu = None
|
|
55
|
+
self._memory = None
|
|
56
|
+
self.discriminator = None
|
|
57
|
+
|
|
58
|
+
if cpu is not None:
|
|
59
|
+
self.cpu = cpu
|
|
60
|
+
if gpu is not None:
|
|
61
|
+
self.gpu = gpu
|
|
62
|
+
if memory is not None:
|
|
63
|
+
self.memory = memory
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
def cpu(self):
|
|
67
|
+
"""Gets the cpu of this PhysicalResources. # noqa: E501
|
|
68
|
+
|
|
69
|
+
Number of CPUs to allocate. # noqa: E501
|
|
70
|
+
|
|
71
|
+
:return: The cpu of this PhysicalResources. # noqa: E501
|
|
72
|
+
:rtype: int
|
|
73
|
+
"""
|
|
74
|
+
return self._cpu
|
|
75
|
+
|
|
76
|
+
@cpu.setter
|
|
77
|
+
def cpu(self, cpu):
|
|
78
|
+
"""Sets the cpu of this PhysicalResources.
|
|
79
|
+
|
|
80
|
+
Number of CPUs to allocate. # noqa: E501
|
|
81
|
+
|
|
82
|
+
:param cpu: The cpu of this PhysicalResources. # noqa: E501
|
|
83
|
+
:type: int
|
|
84
|
+
"""
|
|
85
|
+
|
|
86
|
+
self._cpu = cpu
|
|
87
|
+
|
|
88
|
+
@property
|
|
89
|
+
def gpu(self):
|
|
90
|
+
"""Gets the gpu of this PhysicalResources. # noqa: E501
|
|
91
|
+
|
|
92
|
+
Number of GPUs to allocate. # noqa: E501
|
|
93
|
+
|
|
94
|
+
:return: The gpu of this PhysicalResources. # noqa: E501
|
|
95
|
+
:rtype: int
|
|
96
|
+
"""
|
|
97
|
+
return self._gpu
|
|
98
|
+
|
|
99
|
+
@gpu.setter
|
|
100
|
+
def gpu(self, gpu):
|
|
101
|
+
"""Sets the gpu of this PhysicalResources.
|
|
102
|
+
|
|
103
|
+
Number of GPUs to allocate. # noqa: E501
|
|
104
|
+
|
|
105
|
+
:param gpu: The gpu of this PhysicalResources. # noqa: E501
|
|
106
|
+
:type: int
|
|
107
|
+
"""
|
|
108
|
+
|
|
109
|
+
self._gpu = gpu
|
|
110
|
+
|
|
111
|
+
@property
|
|
112
|
+
def memory(self):
|
|
113
|
+
"""Gets the memory of this PhysicalResources. # noqa: E501
|
|
114
|
+
|
|
115
|
+
Amount of memory in bytes to allocate. # noqa: E501
|
|
116
|
+
|
|
117
|
+
:return: The memory of this PhysicalResources. # noqa: E501
|
|
118
|
+
:rtype: int
|
|
119
|
+
"""
|
|
120
|
+
return self._memory
|
|
121
|
+
|
|
122
|
+
@memory.setter
|
|
123
|
+
def memory(self, memory):
|
|
124
|
+
"""Sets the memory of this PhysicalResources.
|
|
125
|
+
|
|
126
|
+
Amount of memory in bytes to allocate. # noqa: E501
|
|
127
|
+
|
|
128
|
+
:param memory: The memory of this PhysicalResources. # noqa: E501
|
|
129
|
+
:type: int
|
|
130
|
+
"""
|
|
131
|
+
|
|
132
|
+
self._memory = memory
|
|
133
|
+
|
|
134
|
+
def to_dict(self):
|
|
135
|
+
"""Returns the model properties as a dict"""
|
|
136
|
+
result = {}
|
|
137
|
+
|
|
138
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
139
|
+
value = getattr(self, attr)
|
|
140
|
+
if isinstance(value, list):
|
|
141
|
+
result[attr] = list(map(
|
|
142
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
143
|
+
value
|
|
144
|
+
))
|
|
145
|
+
elif hasattr(value, "to_dict"):
|
|
146
|
+
result[attr] = value.to_dict()
|
|
147
|
+
elif isinstance(value, dict):
|
|
148
|
+
result[attr] = dict(map(
|
|
149
|
+
lambda item: (item[0], item[1].to_dict())
|
|
150
|
+
if hasattr(item[1], "to_dict") else item,
|
|
151
|
+
value.items()
|
|
152
|
+
))
|
|
153
|
+
else:
|
|
154
|
+
result[attr] = value
|
|
155
|
+
|
|
156
|
+
return result
|
|
157
|
+
|
|
158
|
+
def to_str(self):
|
|
159
|
+
"""Returns the string representation of the model"""
|
|
160
|
+
return pprint.pformat(self.to_dict())
|
|
161
|
+
|
|
162
|
+
def __repr__(self):
|
|
163
|
+
"""For `print` and `pprint`"""
|
|
164
|
+
return self.to_str()
|
|
165
|
+
|
|
166
|
+
def __eq__(self, other):
|
|
167
|
+
"""Returns true if both objects are equal"""
|
|
168
|
+
if not isinstance(other, PhysicalResources):
|
|
169
|
+
return False
|
|
170
|
+
|
|
171
|
+
return self.to_dict() == other.to_dict()
|
|
172
|
+
|
|
173
|
+
def __ne__(self, other):
|
|
174
|
+
"""Returns true if both objects are not equal"""
|
|
175
|
+
if not isinstance(other, PhysicalResources):
|
|
176
|
+
return True
|
|
177
|
+
|
|
178
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -30,8 +30,9 @@ class RolloutStrategy(object):
|
|
|
30
30
|
"""
|
|
31
31
|
ROLLOUT = "ROLLOUT"
|
|
32
32
|
IN_PLACE = "IN_PLACE"
|
|
33
|
+
MULTI_VERSION = "MULTI_VERSION"
|
|
33
34
|
|
|
34
|
-
allowable_values = [ROLLOUT, IN_PLACE] # noqa: E501
|
|
35
|
+
allowable_values = [ROLLOUT, IN_PLACE, MULTI_VERSION] # noqa: E501
|
|
35
36
|
|
|
36
37
|
"""
|
|
37
38
|
Attributes:
|