anyscale 0.26.2__py3-none-any.whl → 0.26.4__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/docgen/models.md +2 -1
- anyscale/_private/workload/workload_config.py +11 -0
- anyscale/_private/workload/workload_sdk.py +4 -0
- anyscale/client/README.md +3 -43
- anyscale/client/openapi_client/__init__.py +0 -26
- anyscale/client/openapi_client/api/default_api.py +368 -2030
- anyscale/client/openapi_client/models/__init__.py +0 -26
- anyscale/client/openapi_client/models/node_type.py +2 -1
- anyscale/client/openapi_client/models/ray_runtime_env_config.py +29 -1
- anyscale/client/openapi_client/models/train_run.py +29 -3
- anyscale/client/openapi_client/models/train_worker.py +29 -3
- anyscale/job/_private/job_sdk.py +4 -0
- anyscale/sdk/anyscale_client/models/node_type.py +2 -1
- anyscale/sdk/anyscale_client/models/ray_runtime_env_config.py +29 -1
- anyscale/version.py +1 -1
- {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/METADATA +1 -1
- {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/RECORD +22 -48
- anyscale/client/openapi_client/models/aica_endpoint.py +0 -527
- anyscale/client/openapi_client/models/aica_endpoint_event.py +0 -433
- anyscale/client/openapi_client/models/aica_endpoint_event_level.py +0 -103
- anyscale/client/openapi_client/models/aica_endpoint_event_type.py +0 -120
- anyscale/client/openapi_client/models/aica_endpoint_scope.py +0 -102
- anyscale/client/openapi_client/models/aica_model.py +0 -398
- anyscale/client/openapi_client/models/aica_model_accelerator_map.py +0 -123
- anyscale/client/openapi_client/models/aica_model_configuration.py +0 -209
- anyscale/client/openapi_client/models/aica_observability_urls.py +0 -178
- anyscale/client/openapi_client/models/aicaendpoint_list_response.py +0 -147
- anyscale/client/openapi_client/models/aicaendpoint_response.py +0 -121
- anyscale/client/openapi_client/models/aicaendpointevent_list_response.py +0 -147
- anyscale/client/openapi_client/models/aicamodel_list_response.py +0 -147
- anyscale/client/openapi_client/models/aicamodel_response.py +0 -121
- anyscale/client/openapi_client/models/aws_credentials.py +0 -181
- anyscale/client/openapi_client/models/create_aica_endpoint.py +0 -210
- anyscale/client/openapi_client/models/create_cloud_with_cloud_resource.py +0 -546
- anyscale/client/openapi_client/models/import_aica_model.py +0 -241
- anyscale/client/openapi_client/models/log_detail.py +0 -187
- anyscale/client/openapi_client/models/log_details.py +0 -151
- anyscale/client/openapi_client/models/logdetails_response.py +0 -121
- anyscale/client/openapi_client/models/named_entity.py +0 -148
- anyscale/client/openapi_client/models/provider_metadata.py +0 -205
- anyscale/client/openapi_client/models/providermetadata_response.py +0 -121
- anyscale/client/openapi_client/models/update_endpoint.py +0 -152
- anyscale/client/openapi_client/models/update_model_deployment.py +0 -152
- {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/LICENSE +0 -0
- {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/NOTICE +0 -0
- {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/WHEEL +0 -0
- {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/top_level.txt +0 -0
@@ -1,210 +0,0 @@
|
|
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 CreateAicaEndpoint(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
|
-
'name': 'str',
|
37
|
-
'cloud_id': 'str',
|
38
|
-
'aviary_version': 'str',
|
39
|
-
'model_config': 'object'
|
40
|
-
}
|
41
|
-
|
42
|
-
attribute_map = {
|
43
|
-
'name': 'name',
|
44
|
-
'cloud_id': 'cloud_id',
|
45
|
-
'aviary_version': 'aviary_version',
|
46
|
-
'model_config': 'model_config'
|
47
|
-
}
|
48
|
-
|
49
|
-
def __init__(self, name=None, cloud_id=None, aviary_version=None, model_config=None, local_vars_configuration=None): # noqa: E501
|
50
|
-
"""CreateAicaEndpoint - a model defined in OpenAPI""" # noqa: E501
|
51
|
-
if local_vars_configuration is None:
|
52
|
-
local_vars_configuration = Configuration()
|
53
|
-
self.local_vars_configuration = local_vars_configuration
|
54
|
-
|
55
|
-
self._name = None
|
56
|
-
self._cloud_id = None
|
57
|
-
self._aviary_version = None
|
58
|
-
self._model_config = None
|
59
|
-
self.discriminator = None
|
60
|
-
|
61
|
-
self.name = name
|
62
|
-
self.cloud_id = cloud_id
|
63
|
-
self.aviary_version = aviary_version
|
64
|
-
self.model_config = model_config
|
65
|
-
|
66
|
-
@property
|
67
|
-
def name(self):
|
68
|
-
"""Gets the name of this CreateAicaEndpoint. # noqa: E501
|
69
|
-
|
70
|
-
Name of the endpoint to be created. # noqa: E501
|
71
|
-
|
72
|
-
:return: The name of this CreateAicaEndpoint. # noqa: E501
|
73
|
-
:rtype: str
|
74
|
-
"""
|
75
|
-
return self._name
|
76
|
-
|
77
|
-
@name.setter
|
78
|
-
def name(self, name):
|
79
|
-
"""Sets the name of this CreateAicaEndpoint.
|
80
|
-
|
81
|
-
Name of the endpoint to be created. # noqa: E501
|
82
|
-
|
83
|
-
:param name: The name of this CreateAicaEndpoint. # noqa: E501
|
84
|
-
:type: str
|
85
|
-
"""
|
86
|
-
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
87
|
-
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
88
|
-
|
89
|
-
self._name = name
|
90
|
-
|
91
|
-
@property
|
92
|
-
def cloud_id(self):
|
93
|
-
"""Gets the cloud_id of this CreateAicaEndpoint. # noqa: E501
|
94
|
-
|
95
|
-
The cloud id for the endpoint. # noqa: E501
|
96
|
-
|
97
|
-
:return: The cloud_id of this CreateAicaEndpoint. # noqa: E501
|
98
|
-
:rtype: str
|
99
|
-
"""
|
100
|
-
return self._cloud_id
|
101
|
-
|
102
|
-
@cloud_id.setter
|
103
|
-
def cloud_id(self, cloud_id):
|
104
|
-
"""Sets the cloud_id of this CreateAicaEndpoint.
|
105
|
-
|
106
|
-
The cloud id for the endpoint. # noqa: E501
|
107
|
-
|
108
|
-
:param cloud_id: The cloud_id of this CreateAicaEndpoint. # noqa: E501
|
109
|
-
:type: str
|
110
|
-
"""
|
111
|
-
if self.local_vars_configuration.client_side_validation and cloud_id is None: # noqa: E501
|
112
|
-
raise ValueError("Invalid value for `cloud_id`, must not be `None`") # noqa: E501
|
113
|
-
|
114
|
-
self._cloud_id = cloud_id
|
115
|
-
|
116
|
-
@property
|
117
|
-
def aviary_version(self):
|
118
|
-
"""Gets the aviary_version of this CreateAicaEndpoint. # noqa: E501
|
119
|
-
|
120
|
-
The version of aviary that this endpoint is running. # noqa: E501
|
121
|
-
|
122
|
-
:return: The aviary_version of this CreateAicaEndpoint. # noqa: E501
|
123
|
-
:rtype: str
|
124
|
-
"""
|
125
|
-
return self._aviary_version
|
126
|
-
|
127
|
-
@aviary_version.setter
|
128
|
-
def aviary_version(self, aviary_version):
|
129
|
-
"""Sets the aviary_version of this CreateAicaEndpoint.
|
130
|
-
|
131
|
-
The version of aviary that this endpoint is running. # noqa: E501
|
132
|
-
|
133
|
-
:param aviary_version: The aviary_version of this CreateAicaEndpoint. # noqa: E501
|
134
|
-
:type: str
|
135
|
-
"""
|
136
|
-
if self.local_vars_configuration.client_side_validation and aviary_version is None: # noqa: E501
|
137
|
-
raise ValueError("Invalid value for `aviary_version`, must not be `None`") # noqa: E501
|
138
|
-
|
139
|
-
self._aviary_version = aviary_version
|
140
|
-
|
141
|
-
@property
|
142
|
-
def model_config(self):
|
143
|
-
"""Gets the model_config of this CreateAicaEndpoint. # noqa: E501
|
144
|
-
|
145
|
-
The configuration for the endpoints models. Key is the model name. # noqa: E501
|
146
|
-
|
147
|
-
:return: The model_config of this CreateAicaEndpoint. # noqa: E501
|
148
|
-
:rtype: object
|
149
|
-
"""
|
150
|
-
return self._model_config
|
151
|
-
|
152
|
-
@model_config.setter
|
153
|
-
def model_config(self, model_config):
|
154
|
-
"""Sets the model_config of this CreateAicaEndpoint.
|
155
|
-
|
156
|
-
The configuration for the endpoints models. Key is the model name. # noqa: E501
|
157
|
-
|
158
|
-
:param model_config: The model_config of this CreateAicaEndpoint. # noqa: E501
|
159
|
-
:type: object
|
160
|
-
"""
|
161
|
-
if self.local_vars_configuration.client_side_validation and model_config is None: # noqa: E501
|
162
|
-
raise ValueError("Invalid value for `model_config`, must not be `None`") # noqa: E501
|
163
|
-
|
164
|
-
self._model_config = model_config
|
165
|
-
|
166
|
-
def to_dict(self):
|
167
|
-
"""Returns the model properties as a dict"""
|
168
|
-
result = {}
|
169
|
-
|
170
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
171
|
-
value = getattr(self, attr)
|
172
|
-
if isinstance(value, list):
|
173
|
-
result[attr] = list(map(
|
174
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
175
|
-
value
|
176
|
-
))
|
177
|
-
elif hasattr(value, "to_dict"):
|
178
|
-
result[attr] = value.to_dict()
|
179
|
-
elif isinstance(value, dict):
|
180
|
-
result[attr] = dict(map(
|
181
|
-
lambda item: (item[0], item[1].to_dict())
|
182
|
-
if hasattr(item[1], "to_dict") else item,
|
183
|
-
value.items()
|
184
|
-
))
|
185
|
-
else:
|
186
|
-
result[attr] = value
|
187
|
-
|
188
|
-
return result
|
189
|
-
|
190
|
-
def to_str(self):
|
191
|
-
"""Returns the string representation of the model"""
|
192
|
-
return pprint.pformat(self.to_dict())
|
193
|
-
|
194
|
-
def __repr__(self):
|
195
|
-
"""For `print` and `pprint`"""
|
196
|
-
return self.to_str()
|
197
|
-
|
198
|
-
def __eq__(self, other):
|
199
|
-
"""Returns true if both objects are equal"""
|
200
|
-
if not isinstance(other, CreateAicaEndpoint):
|
201
|
-
return False
|
202
|
-
|
203
|
-
return self.to_dict() == other.to_dict()
|
204
|
-
|
205
|
-
def __ne__(self, other):
|
206
|
-
"""Returns true if both objects are not equal"""
|
207
|
-
if not isinstance(other, CreateAicaEndpoint):
|
208
|
-
return True
|
209
|
-
|
210
|
-
return self.to_dict() != other.to_dict()
|