anyscale 0.26.12__py3-none-any.whl → 0.26.14__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/__main__.py +0 -3
- anyscale/_private/docgen/api.md +0 -14
- anyscale/_private/docgen/models.md +2 -47
- anyscale/client/README.md +24 -7
- anyscale/client/openapi_client/__init__.py +18 -5
- anyscale/client/openapi_client/api/default_api.py +746 -282
- anyscale/client/openapi_client/models/__init__.py +18 -5
- anyscale/client/openapi_client/models/baseimagesenum.py +23 -4
- anyscale/client/openapi_client/models/dataset_dag.py +229 -0
- anyscale/client/openapi_client/models/dataset_dag_response.py +121 -0
- anyscale/client/openapi_client/models/{operator_metric_id.py → operator_branch.py} +26 -26
- anyscale/{sdk/anyscale_client/models/runtimeenvironment_response.py → client/openapi_client/models/operator_id.py} +24 -24
- anyscale/client/openapi_client/models/operator_metrics.py +3 -30
- anyscale/client/openapi_client/models/organization_marketing_questions.py +15 -41
- anyscale/client/openapi_client/models/supportedbaseimagesenum.py +14 -14
- anyscale/client/openapi_client/models/task_exception_group_aggregate.py +148 -0
- anyscale/client/openapi_client/models/task_function_name_group_aggregate.py +175 -0
- anyscale/client/openapi_client/models/task_grouped_aggregate_metrics.py +337 -0
- anyscale/client/openapi_client/models/task_job_group_aggregate.py +148 -0
- anyscale/client/openapi_client/models/task_state.py +103 -0
- anyscale/client/openapi_client/models/task_summary.py +256 -0
- anyscale/client/openapi_client/models/task_table_config.py +250 -0
- anyscale/client/openapi_client/models/task_table_response.py +174 -0
- anyscale/client/openapi_client/models/task_table_row.py +491 -0
- anyscale/client/openapi_client/models/{cluster_size.py → task_type.py} +7 -10
- anyscale/client/openapi_client/models/taskexceptiongroupaggregate_list_response.py +147 -0
- anyscale/client/openapi_client/models/taskfunctionnamegroupaggregate_list_response.py +147 -0
- anyscale/client/openapi_client/models/{decoratedruntimeenv_list_response.py → taskjobgroupaggregate_list_response.py} +15 -15
- anyscale/client/openapi_client/models/{decoratedruntimeenv_response.py → tasksummary_response.py} +11 -11
- anyscale/commands/command_examples.py +22 -0
- anyscale/sdk/anyscale_client/__init__.py +0 -3
- anyscale/sdk/anyscale_client/api/default_api.py +0 -232
- anyscale/sdk/anyscale_client/models/__init__.py +0 -3
- anyscale/sdk/anyscale_client/models/baseimagesenum.py +23 -4
- anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +14 -14
- anyscale/version.py +1 -1
- {anyscale-0.26.12.dist-info → anyscale-0.26.14.dist-info}/METADATA +1 -1
- {anyscale-0.26.12.dist-info → anyscale-0.26.14.dist-info}/RECORD +43 -33
- anyscale/client/openapi_client/models/decorated_runtime_env.py +0 -488
- anyscale/sdk/anyscale_client/models/create_session.py +0 -432
- anyscale/sdk/anyscale_client/models/runtime_environment.py +0 -406
- {anyscale-0.26.12.dist-info → anyscale-0.26.14.dist-info}/LICENSE +0 -0
- {anyscale-0.26.12.dist-info → anyscale-0.26.14.dist-info}/NOTICE +0 -0
- {anyscale-0.26.12.dist-info → anyscale-0.26.14.dist-info}/WHEEL +0 -0
- {anyscale-0.26.12.dist-info → anyscale-0.26.14.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.12.dist-info → anyscale-0.26.14.dist-info}/top_level.txt +0 -0
@@ -1,406 +0,0 @@
|
|
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 RuntimeEnvironment(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
|
-
'ray_env_hash': 'str',
|
38
|
-
'name': 'str',
|
39
|
-
'working_dir': 'str',
|
40
|
-
'py_modules': 'list[str]',
|
41
|
-
'pip_packages': 'str',
|
42
|
-
'conda_env_name': 'str',
|
43
|
-
'conda_values': 'object',
|
44
|
-
'env_variables': 'dict(str, str)',
|
45
|
-
'created_at': 'datetime',
|
46
|
-
'creator_id': 'str'
|
47
|
-
}
|
48
|
-
|
49
|
-
attribute_map = {
|
50
|
-
'id': 'id',
|
51
|
-
'ray_env_hash': 'ray_env_hash',
|
52
|
-
'name': 'name',
|
53
|
-
'working_dir': 'working_dir',
|
54
|
-
'py_modules': 'py_modules',
|
55
|
-
'pip_packages': 'pip_packages',
|
56
|
-
'conda_env_name': 'conda_env_name',
|
57
|
-
'conda_values': 'conda_values',
|
58
|
-
'env_variables': 'env_variables',
|
59
|
-
'created_at': 'created_at',
|
60
|
-
'creator_id': 'creator_id'
|
61
|
-
}
|
62
|
-
|
63
|
-
def __init__(self, id=None, ray_env_hash=None, name=None, working_dir=None, py_modules=None, pip_packages=None, conda_env_name=None, conda_values=None, env_variables=None, created_at=None, creator_id=None, local_vars_configuration=None): # noqa: E501
|
64
|
-
"""RuntimeEnvironment - a model defined in OpenAPI""" # noqa: E501
|
65
|
-
if local_vars_configuration is None:
|
66
|
-
local_vars_configuration = Configuration()
|
67
|
-
self.local_vars_configuration = local_vars_configuration
|
68
|
-
|
69
|
-
self._id = None
|
70
|
-
self._ray_env_hash = None
|
71
|
-
self._name = None
|
72
|
-
self._working_dir = None
|
73
|
-
self._py_modules = None
|
74
|
-
self._pip_packages = None
|
75
|
-
self._conda_env_name = None
|
76
|
-
self._conda_values = None
|
77
|
-
self._env_variables = None
|
78
|
-
self._created_at = None
|
79
|
-
self._creator_id = None
|
80
|
-
self.discriminator = None
|
81
|
-
|
82
|
-
self.id = id
|
83
|
-
self.ray_env_hash = ray_env_hash
|
84
|
-
if name is not None:
|
85
|
-
self.name = name
|
86
|
-
if working_dir is not None:
|
87
|
-
self.working_dir = working_dir
|
88
|
-
if py_modules is not None:
|
89
|
-
self.py_modules = py_modules
|
90
|
-
if pip_packages is not None:
|
91
|
-
self.pip_packages = pip_packages
|
92
|
-
if conda_env_name is not None:
|
93
|
-
self.conda_env_name = conda_env_name
|
94
|
-
if conda_values is not None:
|
95
|
-
self.conda_values = conda_values
|
96
|
-
if env_variables is not None:
|
97
|
-
self.env_variables = env_variables
|
98
|
-
self.created_at = created_at
|
99
|
-
self.creator_id = creator_id
|
100
|
-
|
101
|
-
@property
|
102
|
-
def id(self):
|
103
|
-
"""Gets the id of this RuntimeEnvironment. # noqa: E501
|
104
|
-
|
105
|
-
Server assigned unique Identifier # noqa: E501
|
106
|
-
|
107
|
-
:return: The id of this RuntimeEnvironment. # noqa: E501
|
108
|
-
:rtype: str
|
109
|
-
"""
|
110
|
-
return self._id
|
111
|
-
|
112
|
-
@id.setter
|
113
|
-
def id(self, id):
|
114
|
-
"""Sets the id of this RuntimeEnvironment.
|
115
|
-
|
116
|
-
Server assigned unique Identifier # noqa: E501
|
117
|
-
|
118
|
-
:param id: The id of this RuntimeEnvironment. # noqa: E501
|
119
|
-
:type: str
|
120
|
-
"""
|
121
|
-
if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
|
122
|
-
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
|
123
|
-
|
124
|
-
self._id = id
|
125
|
-
|
126
|
-
@property
|
127
|
-
def ray_env_hash(self):
|
128
|
-
"""Gets the ray_env_hash of this RuntimeEnvironment. # noqa: E501
|
129
|
-
|
130
|
-
A hash of this Runtime Environment as provided by Ray # noqa: E501
|
131
|
-
|
132
|
-
:return: The ray_env_hash of this RuntimeEnvironment. # noqa: E501
|
133
|
-
:rtype: str
|
134
|
-
"""
|
135
|
-
return self._ray_env_hash
|
136
|
-
|
137
|
-
@ray_env_hash.setter
|
138
|
-
def ray_env_hash(self, ray_env_hash):
|
139
|
-
"""Sets the ray_env_hash of this RuntimeEnvironment.
|
140
|
-
|
141
|
-
A hash of this Runtime Environment as provided by Ray # noqa: E501
|
142
|
-
|
143
|
-
:param ray_env_hash: The ray_env_hash of this RuntimeEnvironment. # noqa: E501
|
144
|
-
:type: str
|
145
|
-
"""
|
146
|
-
if self.local_vars_configuration.client_side_validation and ray_env_hash is None: # noqa: E501
|
147
|
-
raise ValueError("Invalid value for `ray_env_hash`, must not be `None`") # noqa: E501
|
148
|
-
|
149
|
-
self._ray_env_hash = ray_env_hash
|
150
|
-
|
151
|
-
@property
|
152
|
-
def name(self):
|
153
|
-
"""Gets the name of this RuntimeEnvironment. # noqa: E501
|
154
|
-
|
155
|
-
Name for this Runtime Environment. # noqa: E501
|
156
|
-
|
157
|
-
:return: The name of this RuntimeEnvironment. # noqa: E501
|
158
|
-
:rtype: str
|
159
|
-
"""
|
160
|
-
return self._name
|
161
|
-
|
162
|
-
@name.setter
|
163
|
-
def name(self, name):
|
164
|
-
"""Sets the name of this RuntimeEnvironment.
|
165
|
-
|
166
|
-
Name for this Runtime Environment. # noqa: E501
|
167
|
-
|
168
|
-
:param name: The name of this RuntimeEnvironment. # noqa: E501
|
169
|
-
:type: str
|
170
|
-
"""
|
171
|
-
|
172
|
-
self._name = name
|
173
|
-
|
174
|
-
@property
|
175
|
-
def working_dir(self):
|
176
|
-
"""Gets the working_dir of this RuntimeEnvironment. # noqa: E501
|
177
|
-
|
178
|
-
The working directory for this Runtime Environment. # noqa: E501
|
179
|
-
|
180
|
-
:return: The working_dir of this RuntimeEnvironment. # noqa: E501
|
181
|
-
:rtype: str
|
182
|
-
"""
|
183
|
-
return self._working_dir
|
184
|
-
|
185
|
-
@working_dir.setter
|
186
|
-
def working_dir(self, working_dir):
|
187
|
-
"""Sets the working_dir of this RuntimeEnvironment.
|
188
|
-
|
189
|
-
The working directory for this Runtime Environment. # noqa: E501
|
190
|
-
|
191
|
-
:param working_dir: The working_dir of this RuntimeEnvironment. # noqa: E501
|
192
|
-
:type: str
|
193
|
-
"""
|
194
|
-
|
195
|
-
self._working_dir = working_dir
|
196
|
-
|
197
|
-
@property
|
198
|
-
def py_modules(self):
|
199
|
-
"""Gets the py_modules of this RuntimeEnvironment. # noqa: E501
|
200
|
-
|
201
|
-
Python modules included in this Runtime Environment. # noqa: E501
|
202
|
-
|
203
|
-
:return: The py_modules of this RuntimeEnvironment. # noqa: E501
|
204
|
-
:rtype: list[str]
|
205
|
-
"""
|
206
|
-
return self._py_modules
|
207
|
-
|
208
|
-
@py_modules.setter
|
209
|
-
def py_modules(self, py_modules):
|
210
|
-
"""Sets the py_modules of this RuntimeEnvironment.
|
211
|
-
|
212
|
-
Python modules included in this Runtime Environment. # noqa: E501
|
213
|
-
|
214
|
-
:param py_modules: The py_modules of this RuntimeEnvironment. # noqa: E501
|
215
|
-
:type: list[str]
|
216
|
-
"""
|
217
|
-
|
218
|
-
self._py_modules = py_modules
|
219
|
-
|
220
|
-
@property
|
221
|
-
def pip_packages(self):
|
222
|
-
"""Gets the pip_packages of this RuntimeEnvironment. # noqa: E501
|
223
|
-
|
224
|
-
Pip dependencies installed in this Runtime Environment. # noqa: E501
|
225
|
-
|
226
|
-
:return: The pip_packages of this RuntimeEnvironment. # noqa: E501
|
227
|
-
:rtype: str
|
228
|
-
"""
|
229
|
-
return self._pip_packages
|
230
|
-
|
231
|
-
@pip_packages.setter
|
232
|
-
def pip_packages(self, pip_packages):
|
233
|
-
"""Sets the pip_packages of this RuntimeEnvironment.
|
234
|
-
|
235
|
-
Pip dependencies installed in this Runtime Environment. # noqa: E501
|
236
|
-
|
237
|
-
:param pip_packages: The pip_packages of this RuntimeEnvironment. # noqa: E501
|
238
|
-
:type: str
|
239
|
-
"""
|
240
|
-
|
241
|
-
self._pip_packages = pip_packages
|
242
|
-
|
243
|
-
@property
|
244
|
-
def conda_env_name(self):
|
245
|
-
"""Gets the conda_env_name of this RuntimeEnvironment. # noqa: E501
|
246
|
-
|
247
|
-
Name of the Conda environment this Runtime Environment is using. # noqa: E501
|
248
|
-
|
249
|
-
:return: The conda_env_name of this RuntimeEnvironment. # noqa: E501
|
250
|
-
:rtype: str
|
251
|
-
"""
|
252
|
-
return self._conda_env_name
|
253
|
-
|
254
|
-
@conda_env_name.setter
|
255
|
-
def conda_env_name(self, conda_env_name):
|
256
|
-
"""Sets the conda_env_name of this RuntimeEnvironment.
|
257
|
-
|
258
|
-
Name of the Conda environment this Runtime Environment is using. # noqa: E501
|
259
|
-
|
260
|
-
:param conda_env_name: The conda_env_name of this RuntimeEnvironment. # noqa: E501
|
261
|
-
:type: str
|
262
|
-
"""
|
263
|
-
|
264
|
-
self._conda_env_name = conda_env_name
|
265
|
-
|
266
|
-
@property
|
267
|
-
def conda_values(self):
|
268
|
-
"""Gets the conda_values of this RuntimeEnvironment. # noqa: E501
|
269
|
-
|
270
|
-
Conda values for this Runtime Environment. # noqa: E501
|
271
|
-
|
272
|
-
:return: The conda_values of this RuntimeEnvironment. # noqa: E501
|
273
|
-
:rtype: object
|
274
|
-
"""
|
275
|
-
return self._conda_values
|
276
|
-
|
277
|
-
@conda_values.setter
|
278
|
-
def conda_values(self, conda_values):
|
279
|
-
"""Sets the conda_values of this RuntimeEnvironment.
|
280
|
-
|
281
|
-
Conda values for this Runtime Environment. # noqa: E501
|
282
|
-
|
283
|
-
:param conda_values: The conda_values of this RuntimeEnvironment. # noqa: E501
|
284
|
-
:type: object
|
285
|
-
"""
|
286
|
-
|
287
|
-
self._conda_values = conda_values
|
288
|
-
|
289
|
-
@property
|
290
|
-
def env_variables(self):
|
291
|
-
"""Gets the env_variables of this RuntimeEnvironment. # noqa: E501
|
292
|
-
|
293
|
-
Environment variables set for this Runtime Environment. # noqa: E501
|
294
|
-
|
295
|
-
:return: The env_variables of this RuntimeEnvironment. # noqa: E501
|
296
|
-
:rtype: dict(str, str)
|
297
|
-
"""
|
298
|
-
return self._env_variables
|
299
|
-
|
300
|
-
@env_variables.setter
|
301
|
-
def env_variables(self, env_variables):
|
302
|
-
"""Sets the env_variables of this RuntimeEnvironment.
|
303
|
-
|
304
|
-
Environment variables set for this Runtime Environment. # noqa: E501
|
305
|
-
|
306
|
-
:param env_variables: The env_variables of this RuntimeEnvironment. # noqa: E501
|
307
|
-
:type: dict(str, str)
|
308
|
-
"""
|
309
|
-
|
310
|
-
self._env_variables = env_variables
|
311
|
-
|
312
|
-
@property
|
313
|
-
def created_at(self):
|
314
|
-
"""Gets the created_at of this RuntimeEnvironment. # noqa: E501
|
315
|
-
|
316
|
-
Time at which this Runtime Environment was created. # noqa: E501
|
317
|
-
|
318
|
-
:return: The created_at of this RuntimeEnvironment. # noqa: E501
|
319
|
-
:rtype: datetime
|
320
|
-
"""
|
321
|
-
return self._created_at
|
322
|
-
|
323
|
-
@created_at.setter
|
324
|
-
def created_at(self, created_at):
|
325
|
-
"""Sets the created_at of this RuntimeEnvironment.
|
326
|
-
|
327
|
-
Time at which this Runtime Environment was created. # noqa: E501
|
328
|
-
|
329
|
-
:param created_at: The created_at of this RuntimeEnvironment. # noqa: E501
|
330
|
-
:type: datetime
|
331
|
-
"""
|
332
|
-
if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501
|
333
|
-
raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501
|
334
|
-
|
335
|
-
self._created_at = created_at
|
336
|
-
|
337
|
-
@property
|
338
|
-
def creator_id(self):
|
339
|
-
"""Gets the creator_id of this RuntimeEnvironment. # noqa: E501
|
340
|
-
|
341
|
-
ID of the User who created this Runtime Environment. # noqa: E501
|
342
|
-
|
343
|
-
:return: The creator_id of this RuntimeEnvironment. # noqa: E501
|
344
|
-
:rtype: str
|
345
|
-
"""
|
346
|
-
return self._creator_id
|
347
|
-
|
348
|
-
@creator_id.setter
|
349
|
-
def creator_id(self, creator_id):
|
350
|
-
"""Sets the creator_id of this RuntimeEnvironment.
|
351
|
-
|
352
|
-
ID of the User who created this Runtime Environment. # noqa: E501
|
353
|
-
|
354
|
-
:param creator_id: The creator_id of this RuntimeEnvironment. # noqa: E501
|
355
|
-
:type: str
|
356
|
-
"""
|
357
|
-
if self.local_vars_configuration.client_side_validation and creator_id is None: # noqa: E501
|
358
|
-
raise ValueError("Invalid value for `creator_id`, must not be `None`") # noqa: E501
|
359
|
-
|
360
|
-
self._creator_id = creator_id
|
361
|
-
|
362
|
-
def to_dict(self):
|
363
|
-
"""Returns the model properties as a dict"""
|
364
|
-
result = {}
|
365
|
-
|
366
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
367
|
-
value = getattr(self, attr)
|
368
|
-
if isinstance(value, list):
|
369
|
-
result[attr] = list(map(
|
370
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
371
|
-
value
|
372
|
-
))
|
373
|
-
elif hasattr(value, "to_dict"):
|
374
|
-
result[attr] = value.to_dict()
|
375
|
-
elif isinstance(value, dict):
|
376
|
-
result[attr] = dict(map(
|
377
|
-
lambda item: (item[0], item[1].to_dict())
|
378
|
-
if hasattr(item[1], "to_dict") else item,
|
379
|
-
value.items()
|
380
|
-
))
|
381
|
-
else:
|
382
|
-
result[attr] = value
|
383
|
-
|
384
|
-
return result
|
385
|
-
|
386
|
-
def to_str(self):
|
387
|
-
"""Returns the string representation of the model"""
|
388
|
-
return pprint.pformat(self.to_dict())
|
389
|
-
|
390
|
-
def __repr__(self):
|
391
|
-
"""For `print` and `pprint`"""
|
392
|
-
return self.to_str()
|
393
|
-
|
394
|
-
def __eq__(self, other):
|
395
|
-
"""Returns true if both objects are equal"""
|
396
|
-
if not isinstance(other, RuntimeEnvironment):
|
397
|
-
return False
|
398
|
-
|
399
|
-
return self.to_dict() == other.to_dict()
|
400
|
-
|
401
|
-
def __ne__(self, other):
|
402
|
-
"""Returns true if both objects are not equal"""
|
403
|
-
if not isinstance(other, RuntimeEnvironment):
|
404
|
-
return True
|
405
|
-
|
406
|
-
return self.to_dict() != other.to_dict()
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|