anyscale 0.26.70__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 +63 -6
- anyscale/_private/anyscale_client/common.py +33 -3
- anyscale/_private/anyscale_client/fake_anyscale_client.py +27 -2
- anyscale/client/README.md +29 -0
- anyscale/client/openapi_client/__init__.py +19 -0
- anyscale/client/openapi_client/api/default_api.py +1307 -4
- anyscale/client/openapi_client/models/__init__.py +19 -0
- anyscale/client/openapi_client/models/apply_multi_version_update_weights_update_model.py +152 -0
- 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 +70 -1
- anyscale/client/openapi_client/models/catalog_metadata.py +150 -0
- 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_workspace_template_version.py +31 -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/data_catalog_object_type.py +100 -0
- 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_serve_deployment.py +27 -1
- anyscale/client/openapi_client/models/decoratedproductionservicev2_versionapimodel_response.py +121 -0
- anyscale/client/openapi_client/models/describe_machine_pool_machines_filters.py +2 -2
- anyscale/client/openapi_client/models/describe_machine_pool_requests_filters.py +33 -5
- anyscale/client/openapi_client/models/describe_machine_pool_workloads_filters.py +2 -2
- anyscale/client/openapi_client/models/physical_resources.py +178 -0
- anyscale/client/openapi_client/models/schema_metadata.py +150 -0
- anyscale/client/openapi_client/models/sso_config.py +18 -18
- anyscale/client/openapi_client/models/supportedbaseimagesenum.py +70 -1
- anyscale/client/openapi_client/models/table_data_preview.py +209 -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_template_version.py +29 -1
- anyscale/client/openapi_client/models/workspace_template_version_data_object.py +29 -1
- anyscale/commands/job_commands.py +120 -0
- anyscale/commands/job_queue_commands.py +99 -2
- anyscale/commands/service_commands.py +139 -2
- 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/job_controller.py +12 -0
- anyscale/controllers/workspace_controller.py +67 -5
- anyscale/job/_private/job_sdk.py +3 -1
- 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/baseimagesenum.py +70 -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/supportedbaseimagesenum.py +70 -1
- anyscale/sdk/anyscale_client/models/worker_node_type.py +29 -1
- anyscale/service/__init__.py +40 -0
- anyscale/service/_private/service_sdk.py +121 -24
- anyscale/service/commands.py +75 -1
- anyscale/service/models.py +46 -2
- 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.70.dist-info → anyscale-0.26.71.dist-info}/METADATA +1 -1
- {anyscale-0.26.70.dist-info → anyscale-0.26.71.dist-info}/RECORD +78 -58
- {anyscale-0.26.70.dist-info → anyscale-0.26.71.dist-info}/WHEEL +0 -0
- {anyscale-0.26.70.dist-info → anyscale-0.26.71.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.70.dist-info → anyscale-0.26.71.dist-info}/licenses/LICENSE +0 -0
- {anyscale-0.26.70.dist-info → anyscale-0.26.71.dist-info}/licenses/NOTICE +0 -0
- {anyscale-0.26.70.dist-info → anyscale-0.26.71.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,324 @@
|
|
|
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 DataCatalogSchema(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
|
+
'id': 'str',
|
|
37
|
+
'name': 'str',
|
|
38
|
+
'description': 'str',
|
|
39
|
+
'created_at': 'str',
|
|
40
|
+
'updated_at': 'str',
|
|
41
|
+
'catalog_id': 'str',
|
|
42
|
+
'connection_id': 'str',
|
|
43
|
+
'metadata': 'SchemaMetadata'
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
attribute_map = {
|
|
47
|
+
'id': 'id',
|
|
48
|
+
'name': 'name',
|
|
49
|
+
'description': 'description',
|
|
50
|
+
'created_at': 'created_at',
|
|
51
|
+
'updated_at': 'updated_at',
|
|
52
|
+
'catalog_id': 'catalog_id',
|
|
53
|
+
'connection_id': 'connection_id',
|
|
54
|
+
'metadata': 'metadata'
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
def __init__(self, id=None, name=None, description=None, created_at=None, updated_at=None, catalog_id=None, connection_id=None, metadata=None, local_vars_configuration=None): # noqa: E501
|
|
58
|
+
"""DataCatalogSchema - a model defined in OpenAPI""" # noqa: E501
|
|
59
|
+
if local_vars_configuration is None:
|
|
60
|
+
local_vars_configuration = Configuration()
|
|
61
|
+
self.local_vars_configuration = local_vars_configuration
|
|
62
|
+
|
|
63
|
+
self._id = None
|
|
64
|
+
self._name = None
|
|
65
|
+
self._description = None
|
|
66
|
+
self._created_at = None
|
|
67
|
+
self._updated_at = None
|
|
68
|
+
self._catalog_id = None
|
|
69
|
+
self._connection_id = None
|
|
70
|
+
self._metadata = None
|
|
71
|
+
self.discriminator = None
|
|
72
|
+
|
|
73
|
+
self.id = id
|
|
74
|
+
self.name = name
|
|
75
|
+
if description is not None:
|
|
76
|
+
self.description = description
|
|
77
|
+
self.created_at = created_at
|
|
78
|
+
self.updated_at = updated_at
|
|
79
|
+
self.catalog_id = catalog_id
|
|
80
|
+
self.connection_id = connection_id
|
|
81
|
+
if metadata is not None:
|
|
82
|
+
self.metadata = metadata
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def id(self):
|
|
86
|
+
"""Gets the id of this DataCatalogSchema. # noqa: E501
|
|
87
|
+
|
|
88
|
+
Unique identifier # noqa: E501
|
|
89
|
+
|
|
90
|
+
:return: The id of this DataCatalogSchema. # noqa: E501
|
|
91
|
+
:rtype: str
|
|
92
|
+
"""
|
|
93
|
+
return self._id
|
|
94
|
+
|
|
95
|
+
@id.setter
|
|
96
|
+
def id(self, id):
|
|
97
|
+
"""Sets the id of this DataCatalogSchema.
|
|
98
|
+
|
|
99
|
+
Unique identifier # noqa: E501
|
|
100
|
+
|
|
101
|
+
:param id: The id of this DataCatalogSchema. # noqa: E501
|
|
102
|
+
:type: str
|
|
103
|
+
"""
|
|
104
|
+
if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
|
|
105
|
+
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
|
|
106
|
+
|
|
107
|
+
self._id = id
|
|
108
|
+
|
|
109
|
+
@property
|
|
110
|
+
def name(self):
|
|
111
|
+
"""Gets the name of this DataCatalogSchema. # noqa: E501
|
|
112
|
+
|
|
113
|
+
Display name # noqa: E501
|
|
114
|
+
|
|
115
|
+
:return: The name of this DataCatalogSchema. # noqa: E501
|
|
116
|
+
:rtype: str
|
|
117
|
+
"""
|
|
118
|
+
return self._name
|
|
119
|
+
|
|
120
|
+
@name.setter
|
|
121
|
+
def name(self, name):
|
|
122
|
+
"""Sets the name of this DataCatalogSchema.
|
|
123
|
+
|
|
124
|
+
Display name # noqa: E501
|
|
125
|
+
|
|
126
|
+
:param name: The name of this DataCatalogSchema. # noqa: E501
|
|
127
|
+
:type: str
|
|
128
|
+
"""
|
|
129
|
+
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
|
130
|
+
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
|
131
|
+
|
|
132
|
+
self._name = name
|
|
133
|
+
|
|
134
|
+
@property
|
|
135
|
+
def description(self):
|
|
136
|
+
"""Gets the description of this DataCatalogSchema. # noqa: E501
|
|
137
|
+
|
|
138
|
+
Description # noqa: E501
|
|
139
|
+
|
|
140
|
+
:return: The description of this DataCatalogSchema. # noqa: E501
|
|
141
|
+
:rtype: str
|
|
142
|
+
"""
|
|
143
|
+
return self._description
|
|
144
|
+
|
|
145
|
+
@description.setter
|
|
146
|
+
def description(self, description):
|
|
147
|
+
"""Sets the description of this DataCatalogSchema.
|
|
148
|
+
|
|
149
|
+
Description # noqa: E501
|
|
150
|
+
|
|
151
|
+
:param description: The description of this DataCatalogSchema. # noqa: E501
|
|
152
|
+
:type: str
|
|
153
|
+
"""
|
|
154
|
+
|
|
155
|
+
self._description = description
|
|
156
|
+
|
|
157
|
+
@property
|
|
158
|
+
def created_at(self):
|
|
159
|
+
"""Gets the created_at of this DataCatalogSchema. # noqa: E501
|
|
160
|
+
|
|
161
|
+
Creation timestamp in ISO 8601 format # noqa: E501
|
|
162
|
+
|
|
163
|
+
:return: The created_at of this DataCatalogSchema. # noqa: E501
|
|
164
|
+
:rtype: str
|
|
165
|
+
"""
|
|
166
|
+
return self._created_at
|
|
167
|
+
|
|
168
|
+
@created_at.setter
|
|
169
|
+
def created_at(self, created_at):
|
|
170
|
+
"""Sets the created_at of this DataCatalogSchema.
|
|
171
|
+
|
|
172
|
+
Creation timestamp in ISO 8601 format # noqa: E501
|
|
173
|
+
|
|
174
|
+
:param created_at: The created_at of this DataCatalogSchema. # noqa: E501
|
|
175
|
+
:type: str
|
|
176
|
+
"""
|
|
177
|
+
if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501
|
|
178
|
+
raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501
|
|
179
|
+
|
|
180
|
+
self._created_at = created_at
|
|
181
|
+
|
|
182
|
+
@property
|
|
183
|
+
def updated_at(self):
|
|
184
|
+
"""Gets the updated_at of this DataCatalogSchema. # noqa: E501
|
|
185
|
+
|
|
186
|
+
Last update timestamp in ISO 8601 format # noqa: E501
|
|
187
|
+
|
|
188
|
+
:return: The updated_at of this DataCatalogSchema. # noqa: E501
|
|
189
|
+
:rtype: str
|
|
190
|
+
"""
|
|
191
|
+
return self._updated_at
|
|
192
|
+
|
|
193
|
+
@updated_at.setter
|
|
194
|
+
def updated_at(self, updated_at):
|
|
195
|
+
"""Sets the updated_at of this DataCatalogSchema.
|
|
196
|
+
|
|
197
|
+
Last update timestamp in ISO 8601 format # noqa: E501
|
|
198
|
+
|
|
199
|
+
:param updated_at: The updated_at of this DataCatalogSchema. # noqa: E501
|
|
200
|
+
:type: str
|
|
201
|
+
"""
|
|
202
|
+
if self.local_vars_configuration.client_side_validation and updated_at is None: # noqa: E501
|
|
203
|
+
raise ValueError("Invalid value for `updated_at`, must not be `None`") # noqa: E501
|
|
204
|
+
|
|
205
|
+
self._updated_at = updated_at
|
|
206
|
+
|
|
207
|
+
@property
|
|
208
|
+
def catalog_id(self):
|
|
209
|
+
"""Gets the catalog_id of this DataCatalogSchema. # noqa: E501
|
|
210
|
+
|
|
211
|
+
ID of the parent catalog # noqa: E501
|
|
212
|
+
|
|
213
|
+
:return: The catalog_id of this DataCatalogSchema. # noqa: E501
|
|
214
|
+
:rtype: str
|
|
215
|
+
"""
|
|
216
|
+
return self._catalog_id
|
|
217
|
+
|
|
218
|
+
@catalog_id.setter
|
|
219
|
+
def catalog_id(self, catalog_id):
|
|
220
|
+
"""Sets the catalog_id of this DataCatalogSchema.
|
|
221
|
+
|
|
222
|
+
ID of the parent catalog # noqa: E501
|
|
223
|
+
|
|
224
|
+
:param catalog_id: The catalog_id of this DataCatalogSchema. # noqa: E501
|
|
225
|
+
:type: str
|
|
226
|
+
"""
|
|
227
|
+
if self.local_vars_configuration.client_side_validation and catalog_id is None: # noqa: E501
|
|
228
|
+
raise ValueError("Invalid value for `catalog_id`, must not be `None`") # noqa: E501
|
|
229
|
+
|
|
230
|
+
self._catalog_id = catalog_id
|
|
231
|
+
|
|
232
|
+
@property
|
|
233
|
+
def connection_id(self):
|
|
234
|
+
"""Gets the connection_id of this DataCatalogSchema. # noqa: E501
|
|
235
|
+
|
|
236
|
+
ID of the parent data catalog connection # noqa: E501
|
|
237
|
+
|
|
238
|
+
:return: The connection_id of this DataCatalogSchema. # noqa: E501
|
|
239
|
+
:rtype: str
|
|
240
|
+
"""
|
|
241
|
+
return self._connection_id
|
|
242
|
+
|
|
243
|
+
@connection_id.setter
|
|
244
|
+
def connection_id(self, connection_id):
|
|
245
|
+
"""Sets the connection_id of this DataCatalogSchema.
|
|
246
|
+
|
|
247
|
+
ID of the parent data catalog connection # noqa: E501
|
|
248
|
+
|
|
249
|
+
:param connection_id: The connection_id of this DataCatalogSchema. # noqa: E501
|
|
250
|
+
:type: str
|
|
251
|
+
"""
|
|
252
|
+
if self.local_vars_configuration.client_side_validation and connection_id is None: # noqa: E501
|
|
253
|
+
raise ValueError("Invalid value for `connection_id`, must not be `None`") # noqa: E501
|
|
254
|
+
|
|
255
|
+
self._connection_id = connection_id
|
|
256
|
+
|
|
257
|
+
@property
|
|
258
|
+
def metadata(self):
|
|
259
|
+
"""Gets the metadata of this DataCatalogSchema. # noqa: E501
|
|
260
|
+
|
|
261
|
+
Schema-specific metadata # noqa: E501
|
|
262
|
+
|
|
263
|
+
:return: The metadata of this DataCatalogSchema. # noqa: E501
|
|
264
|
+
:rtype: SchemaMetadata
|
|
265
|
+
"""
|
|
266
|
+
return self._metadata
|
|
267
|
+
|
|
268
|
+
@metadata.setter
|
|
269
|
+
def metadata(self, metadata):
|
|
270
|
+
"""Sets the metadata of this DataCatalogSchema.
|
|
271
|
+
|
|
272
|
+
Schema-specific metadata # noqa: E501
|
|
273
|
+
|
|
274
|
+
:param metadata: The metadata of this DataCatalogSchema. # noqa: E501
|
|
275
|
+
:type: SchemaMetadata
|
|
276
|
+
"""
|
|
277
|
+
|
|
278
|
+
self._metadata = metadata
|
|
279
|
+
|
|
280
|
+
def to_dict(self):
|
|
281
|
+
"""Returns the model properties as a dict"""
|
|
282
|
+
result = {}
|
|
283
|
+
|
|
284
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
285
|
+
value = getattr(self, attr)
|
|
286
|
+
if isinstance(value, list):
|
|
287
|
+
result[attr] = list(map(
|
|
288
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
289
|
+
value
|
|
290
|
+
))
|
|
291
|
+
elif hasattr(value, "to_dict"):
|
|
292
|
+
result[attr] = value.to_dict()
|
|
293
|
+
elif isinstance(value, dict):
|
|
294
|
+
result[attr] = dict(map(
|
|
295
|
+
lambda item: (item[0], item[1].to_dict())
|
|
296
|
+
if hasattr(item[1], "to_dict") else item,
|
|
297
|
+
value.items()
|
|
298
|
+
))
|
|
299
|
+
else:
|
|
300
|
+
result[attr] = value
|
|
301
|
+
|
|
302
|
+
return result
|
|
303
|
+
|
|
304
|
+
def to_str(self):
|
|
305
|
+
"""Returns the string representation of the model"""
|
|
306
|
+
return pprint.pformat(self.to_dict())
|
|
307
|
+
|
|
308
|
+
def __repr__(self):
|
|
309
|
+
"""For `print` and `pprint`"""
|
|
310
|
+
return self.to_str()
|
|
311
|
+
|
|
312
|
+
def __eq__(self, other):
|
|
313
|
+
"""Returns true if both objects are equal"""
|
|
314
|
+
if not isinstance(other, DataCatalogSchema):
|
|
315
|
+
return False
|
|
316
|
+
|
|
317
|
+
return self.to_dict() == other.to_dict()
|
|
318
|
+
|
|
319
|
+
def __ne__(self, other):
|
|
320
|
+
"""Returns true if both objects are not equal"""
|
|
321
|
+
if not isinstance(other, DataCatalogSchema):
|
|
322
|
+
return True
|
|
323
|
+
|
|
324
|
+
return self.to_dict() != other.to_dict()
|