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.
Files changed (48) hide show
  1. anyscale/_private/docgen/models.md +2 -1
  2. anyscale/_private/workload/workload_config.py +11 -0
  3. anyscale/_private/workload/workload_sdk.py +4 -0
  4. anyscale/client/README.md +3 -43
  5. anyscale/client/openapi_client/__init__.py +0 -26
  6. anyscale/client/openapi_client/api/default_api.py +368 -2030
  7. anyscale/client/openapi_client/models/__init__.py +0 -26
  8. anyscale/client/openapi_client/models/node_type.py +2 -1
  9. anyscale/client/openapi_client/models/ray_runtime_env_config.py +29 -1
  10. anyscale/client/openapi_client/models/train_run.py +29 -3
  11. anyscale/client/openapi_client/models/train_worker.py +29 -3
  12. anyscale/job/_private/job_sdk.py +4 -0
  13. anyscale/sdk/anyscale_client/models/node_type.py +2 -1
  14. anyscale/sdk/anyscale_client/models/ray_runtime_env_config.py +29 -1
  15. anyscale/version.py +1 -1
  16. {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/METADATA +1 -1
  17. {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/RECORD +22 -48
  18. anyscale/client/openapi_client/models/aica_endpoint.py +0 -527
  19. anyscale/client/openapi_client/models/aica_endpoint_event.py +0 -433
  20. anyscale/client/openapi_client/models/aica_endpoint_event_level.py +0 -103
  21. anyscale/client/openapi_client/models/aica_endpoint_event_type.py +0 -120
  22. anyscale/client/openapi_client/models/aica_endpoint_scope.py +0 -102
  23. anyscale/client/openapi_client/models/aica_model.py +0 -398
  24. anyscale/client/openapi_client/models/aica_model_accelerator_map.py +0 -123
  25. anyscale/client/openapi_client/models/aica_model_configuration.py +0 -209
  26. anyscale/client/openapi_client/models/aica_observability_urls.py +0 -178
  27. anyscale/client/openapi_client/models/aicaendpoint_list_response.py +0 -147
  28. anyscale/client/openapi_client/models/aicaendpoint_response.py +0 -121
  29. anyscale/client/openapi_client/models/aicaendpointevent_list_response.py +0 -147
  30. anyscale/client/openapi_client/models/aicamodel_list_response.py +0 -147
  31. anyscale/client/openapi_client/models/aicamodel_response.py +0 -121
  32. anyscale/client/openapi_client/models/aws_credentials.py +0 -181
  33. anyscale/client/openapi_client/models/create_aica_endpoint.py +0 -210
  34. anyscale/client/openapi_client/models/create_cloud_with_cloud_resource.py +0 -546
  35. anyscale/client/openapi_client/models/import_aica_model.py +0 -241
  36. anyscale/client/openapi_client/models/log_detail.py +0 -187
  37. anyscale/client/openapi_client/models/log_details.py +0 -151
  38. anyscale/client/openapi_client/models/logdetails_response.py +0 -121
  39. anyscale/client/openapi_client/models/named_entity.py +0 -148
  40. anyscale/client/openapi_client/models/provider_metadata.py +0 -205
  41. anyscale/client/openapi_client/models/providermetadata_response.py +0 -121
  42. anyscale/client/openapi_client/models/update_endpoint.py +0 -152
  43. anyscale/client/openapi_client/models/update_model_deployment.py +0 -152
  44. {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/LICENSE +0 -0
  45. {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/NOTICE +0 -0
  46. {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/WHEEL +0 -0
  47. {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/entry_points.txt +0 -0
  48. {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/top_level.txt +0 -0
@@ -1,527 +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 AicaEndpoint(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
- 'aviary_version': 'str',
38
- 'service_id': 'str',
39
- 'model_config': 'object',
40
- 'id': 'str',
41
- 'created_at': 'datetime',
42
- 'creator_id': 'str',
43
- 'creator_email': 'str',
44
- 'creator_deleted_at': 'datetime',
45
- 'archived_at': 'datetime',
46
- 'cloud_id': 'str',
47
- 'project_id': 'str',
48
- 'organization_id': 'str',
49
- 'aica_observability_urls': 'AicaObservabilityUrls',
50
- 'state': 'ServiceEventCurrentState'
51
- }
52
-
53
- attribute_map = {
54
- 'name': 'name',
55
- 'aviary_version': 'aviary_version',
56
- 'service_id': 'service_id',
57
- 'model_config': 'model_config',
58
- 'id': 'id',
59
- 'created_at': 'created_at',
60
- 'creator_id': 'creator_id',
61
- 'creator_email': 'creator_email',
62
- 'creator_deleted_at': 'creator_deleted_at',
63
- 'archived_at': 'archived_at',
64
- 'cloud_id': 'cloud_id',
65
- 'project_id': 'project_id',
66
- 'organization_id': 'organization_id',
67
- 'aica_observability_urls': 'aica_observability_urls',
68
- 'state': 'state'
69
- }
70
-
71
- def __init__(self, name=None, aviary_version=None, service_id=None, model_config=None, id=None, created_at=None, creator_id=None, creator_email=None, creator_deleted_at=None, archived_at=None, cloud_id=None, project_id=None, organization_id=None, aica_observability_urls=None, state=None, local_vars_configuration=None): # noqa: E501
72
- """AicaEndpoint - a model defined in OpenAPI""" # noqa: E501
73
- if local_vars_configuration is None:
74
- local_vars_configuration = Configuration()
75
- self.local_vars_configuration = local_vars_configuration
76
-
77
- self._name = None
78
- self._aviary_version = None
79
- self._service_id = None
80
- self._model_config = None
81
- self._id = None
82
- self._created_at = None
83
- self._creator_id = None
84
- self._creator_email = None
85
- self._creator_deleted_at = None
86
- self._archived_at = None
87
- self._cloud_id = None
88
- self._project_id = None
89
- self._organization_id = None
90
- self._aica_observability_urls = None
91
- self._state = None
92
- self.discriminator = None
93
-
94
- self.name = name
95
- self.aviary_version = aviary_version
96
- self.service_id = service_id
97
- self.model_config = model_config
98
- self.id = id
99
- self.created_at = created_at
100
- self.creator_id = creator_id
101
- self.creator_email = creator_email
102
- if creator_deleted_at is not None:
103
- self.creator_deleted_at = creator_deleted_at
104
- if archived_at is not None:
105
- self.archived_at = archived_at
106
- self.cloud_id = cloud_id
107
- self.project_id = project_id
108
- self.organization_id = organization_id
109
- self.aica_observability_urls = aica_observability_urls
110
- self.state = state
111
-
112
- @property
113
- def name(self):
114
- """Gets the name of this AicaEndpoint. # noqa: E501
115
-
116
- Name of the endpoint to be created. # noqa: E501
117
-
118
- :return: The name of this AicaEndpoint. # noqa: E501
119
- :rtype: str
120
- """
121
- return self._name
122
-
123
- @name.setter
124
- def name(self, name):
125
- """Sets the name of this AicaEndpoint.
126
-
127
- Name of the endpoint to be created. # noqa: E501
128
-
129
- :param name: The name of this AicaEndpoint. # noqa: E501
130
- :type: str
131
- """
132
- if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
133
- raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
134
-
135
- self._name = name
136
-
137
- @property
138
- def aviary_version(self):
139
- """Gets the aviary_version of this AicaEndpoint. # noqa: E501
140
-
141
- The version of aviary that this endpoint is running. # noqa: E501
142
-
143
- :return: The aviary_version of this AicaEndpoint. # noqa: E501
144
- :rtype: str
145
- """
146
- return self._aviary_version
147
-
148
- @aviary_version.setter
149
- def aviary_version(self, aviary_version):
150
- """Sets the aviary_version of this AicaEndpoint.
151
-
152
- The version of aviary that this endpoint is running. # noqa: E501
153
-
154
- :param aviary_version: The aviary_version of this AicaEndpoint. # noqa: E501
155
- :type: str
156
- """
157
- if self.local_vars_configuration.client_side_validation and aviary_version is None: # noqa: E501
158
- raise ValueError("Invalid value for `aviary_version`, must not be `None`") # noqa: E501
159
-
160
- self._aviary_version = aviary_version
161
-
162
- @property
163
- def service_id(self):
164
- """Gets the service_id of this AicaEndpoint. # noqa: E501
165
-
166
- Id of the associated service. # noqa: E501
167
-
168
- :return: The service_id of this AicaEndpoint. # noqa: E501
169
- :rtype: str
170
- """
171
- return self._service_id
172
-
173
- @service_id.setter
174
- def service_id(self, service_id):
175
- """Sets the service_id of this AicaEndpoint.
176
-
177
- Id of the associated service. # noqa: E501
178
-
179
- :param service_id: The service_id of this AicaEndpoint. # noqa: E501
180
- :type: str
181
- """
182
- if self.local_vars_configuration.client_side_validation and service_id is None: # noqa: E501
183
- raise ValueError("Invalid value for `service_id`, must not be `None`") # noqa: E501
184
-
185
- self._service_id = service_id
186
-
187
- @property
188
- def model_config(self):
189
- """Gets the model_config of this AicaEndpoint. # noqa: E501
190
-
191
- The configuration for the endpoints models. Key is the model id. # noqa: E501
192
-
193
- :return: The model_config of this AicaEndpoint. # noqa: E501
194
- :rtype: object
195
- """
196
- return self._model_config
197
-
198
- @model_config.setter
199
- def model_config(self, model_config):
200
- """Sets the model_config of this AicaEndpoint.
201
-
202
- The configuration for the endpoints models. Key is the model id. # noqa: E501
203
-
204
- :param model_config: The model_config of this AicaEndpoint. # noqa: E501
205
- :type: object
206
- """
207
- if self.local_vars_configuration.client_side_validation and model_config is None: # noqa: E501
208
- raise ValueError("Invalid value for `model_config`, must not be `None`") # noqa: E501
209
-
210
- self._model_config = model_config
211
-
212
- @property
213
- def id(self):
214
- """Gets the id of this AicaEndpoint. # noqa: E501
215
-
216
- Server assigned unique identifier of the endpoint. # noqa: E501
217
-
218
- :return: The id of this AicaEndpoint. # noqa: E501
219
- :rtype: str
220
- """
221
- return self._id
222
-
223
- @id.setter
224
- def id(self, id):
225
- """Sets the id of this AicaEndpoint.
226
-
227
- Server assigned unique identifier of the endpoint. # noqa: E501
228
-
229
- :param id: The id of this AicaEndpoint. # noqa: E501
230
- :type: str
231
- """
232
- if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
233
- raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
234
-
235
- self._id = id
236
-
237
- @property
238
- def created_at(self):
239
- """Gets the created_at of this AicaEndpoint. # noqa: E501
240
-
241
- Time at which endpoint was created. # noqa: E501
242
-
243
- :return: The created_at of this AicaEndpoint. # noqa: E501
244
- :rtype: datetime
245
- """
246
- return self._created_at
247
-
248
- @created_at.setter
249
- def created_at(self, created_at):
250
- """Sets the created_at of this AicaEndpoint.
251
-
252
- Time at which endpoint was created. # noqa: E501
253
-
254
- :param created_at: The created_at of this AicaEndpoint. # noqa: E501
255
- :type: datetime
256
- """
257
- if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501
258
- raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501
259
-
260
- self._created_at = created_at
261
-
262
- @property
263
- def creator_id(self):
264
- """Gets the creator_id of this AicaEndpoint. # noqa: E501
265
-
266
- Identifier of user who created the endpoint. # noqa: E501
267
-
268
- :return: The creator_id of this AicaEndpoint. # noqa: E501
269
- :rtype: str
270
- """
271
- return self._creator_id
272
-
273
- @creator_id.setter
274
- def creator_id(self, creator_id):
275
- """Sets the creator_id of this AicaEndpoint.
276
-
277
- Identifier of user who created the endpoint. # noqa: E501
278
-
279
- :param creator_id: The creator_id of this AicaEndpoint. # noqa: E501
280
- :type: str
281
- """
282
- if self.local_vars_configuration.client_side_validation and creator_id is None: # noqa: E501
283
- raise ValueError("Invalid value for `creator_id`, must not be `None`") # noqa: E501
284
-
285
- self._creator_id = creator_id
286
-
287
- @property
288
- def creator_email(self):
289
- """Gets the creator_email of this AicaEndpoint. # noqa: E501
290
-
291
- Email of user who created the endpoint. # noqa: E501
292
-
293
- :return: The creator_email of this AicaEndpoint. # noqa: E501
294
- :rtype: str
295
- """
296
- return self._creator_email
297
-
298
- @creator_email.setter
299
- def creator_email(self, creator_email):
300
- """Sets the creator_email of this AicaEndpoint.
301
-
302
- Email of user who created the endpoint. # noqa: E501
303
-
304
- :param creator_email: The creator_email of this AicaEndpoint. # noqa: E501
305
- :type: str
306
- """
307
- if self.local_vars_configuration.client_side_validation and creator_email is None: # noqa: E501
308
- raise ValueError("Invalid value for `creator_email`, must not be `None`") # noqa: E501
309
-
310
- self._creator_email = creator_email
311
-
312
- @property
313
- def creator_deleted_at(self):
314
- """Gets the creator_deleted_at of this AicaEndpoint. # noqa: E501
315
-
316
- Timestamp of when the user who created the endpoint was deleted. # noqa: E501
317
-
318
- :return: The creator_deleted_at of this AicaEndpoint. # noqa: E501
319
- :rtype: datetime
320
- """
321
- return self._creator_deleted_at
322
-
323
- @creator_deleted_at.setter
324
- def creator_deleted_at(self, creator_deleted_at):
325
- """Sets the creator_deleted_at of this AicaEndpoint.
326
-
327
- Timestamp of when the user who created the endpoint was deleted. # noqa: E501
328
-
329
- :param creator_deleted_at: The creator_deleted_at of this AicaEndpoint. # noqa: E501
330
- :type: datetime
331
- """
332
-
333
- self._creator_deleted_at = creator_deleted_at
334
-
335
- @property
336
- def archived_at(self):
337
- """Gets the archived_at of this AicaEndpoint. # noqa: E501
338
-
339
- The time in which this instance is archived. # noqa: E501
340
-
341
- :return: The archived_at of this AicaEndpoint. # noqa: E501
342
- :rtype: datetime
343
- """
344
- return self._archived_at
345
-
346
- @archived_at.setter
347
- def archived_at(self, archived_at):
348
- """Sets the archived_at of this AicaEndpoint.
349
-
350
- The time in which this instance is archived. # noqa: E501
351
-
352
- :param archived_at: The archived_at of this AicaEndpoint. # noqa: E501
353
- :type: datetime
354
- """
355
-
356
- self._archived_at = archived_at
357
-
358
- @property
359
- def cloud_id(self):
360
- """Gets the cloud_id of this AicaEndpoint. # noqa: E501
361
-
362
- The cloud id for the endpoint. # noqa: E501
363
-
364
- :return: The cloud_id of this AicaEndpoint. # noqa: E501
365
- :rtype: str
366
- """
367
- return self._cloud_id
368
-
369
- @cloud_id.setter
370
- def cloud_id(self, cloud_id):
371
- """Sets the cloud_id of this AicaEndpoint.
372
-
373
- The cloud id for the endpoint. # noqa: E501
374
-
375
- :param cloud_id: The cloud_id of this AicaEndpoint. # noqa: E501
376
- :type: str
377
- """
378
- if self.local_vars_configuration.client_side_validation and cloud_id is None: # noqa: E501
379
- raise ValueError("Invalid value for `cloud_id`, must not be `None`") # noqa: E501
380
-
381
- self._cloud_id = cloud_id
382
-
383
- @property
384
- def project_id(self):
385
- """Gets the project_id of this AicaEndpoint. # noqa: E501
386
-
387
- Id of the project that this endpoint belongs to. # noqa: E501
388
-
389
- :return: The project_id of this AicaEndpoint. # noqa: E501
390
- :rtype: str
391
- """
392
- return self._project_id
393
-
394
- @project_id.setter
395
- def project_id(self, project_id):
396
- """Sets the project_id of this AicaEndpoint.
397
-
398
- Id of the project that this endpoint belongs to. # noqa: E501
399
-
400
- :param project_id: The project_id of this AicaEndpoint. # noqa: E501
401
- :type: str
402
- """
403
- if self.local_vars_configuration.client_side_validation and project_id is None: # noqa: E501
404
- raise ValueError("Invalid value for `project_id`, must not be `None`") # noqa: E501
405
-
406
- self._project_id = project_id
407
-
408
- @property
409
- def organization_id(self):
410
- """Gets the organization_id of this AicaEndpoint. # noqa: E501
411
-
412
- Id of the organization that this endpoint belongs to # noqa: E501
413
-
414
- :return: The organization_id of this AicaEndpoint. # noqa: E501
415
- :rtype: str
416
- """
417
- return self._organization_id
418
-
419
- @organization_id.setter
420
- def organization_id(self, organization_id):
421
- """Sets the organization_id of this AicaEndpoint.
422
-
423
- Id of the organization that this endpoint belongs to # noqa: E501
424
-
425
- :param organization_id: The organization_id of this AicaEndpoint. # noqa: E501
426
- :type: str
427
- """
428
- if self.local_vars_configuration.client_side_validation and organization_id is None: # noqa: E501
429
- raise ValueError("Invalid value for `organization_id`, must not be `None`") # noqa: E501
430
-
431
- self._organization_id = organization_id
432
-
433
- @property
434
- def aica_observability_urls(self):
435
- """Gets the aica_observability_urls of this AicaEndpoint. # noqa: E501
436
-
437
- A JSON object with useful urls pointing to Grafana dashboards. # noqa: E501
438
-
439
- :return: The aica_observability_urls of this AicaEndpoint. # noqa: E501
440
- :rtype: AicaObservabilityUrls
441
- """
442
- return self._aica_observability_urls
443
-
444
- @aica_observability_urls.setter
445
- def aica_observability_urls(self, aica_observability_urls):
446
- """Sets the aica_observability_urls of this AicaEndpoint.
447
-
448
- A JSON object with useful urls pointing to Grafana dashboards. # noqa: E501
449
-
450
- :param aica_observability_urls: The aica_observability_urls of this AicaEndpoint. # noqa: E501
451
- :type: AicaObservabilityUrls
452
- """
453
- if self.local_vars_configuration.client_side_validation and aica_observability_urls is None: # noqa: E501
454
- raise ValueError("Invalid value for `aica_observability_urls`, must not be `None`") # noqa: E501
455
-
456
- self._aica_observability_urls = aica_observability_urls
457
-
458
- @property
459
- def state(self):
460
- """Gets the state of this AicaEndpoint. # noqa: E501
461
-
462
- The status of the endpoint. # noqa: E501
463
-
464
- :return: The state of this AicaEndpoint. # noqa: E501
465
- :rtype: ServiceEventCurrentState
466
- """
467
- return self._state
468
-
469
- @state.setter
470
- def state(self, state):
471
- """Sets the state of this AicaEndpoint.
472
-
473
- The status of the endpoint. # noqa: E501
474
-
475
- :param state: The state of this AicaEndpoint. # noqa: E501
476
- :type: ServiceEventCurrentState
477
- """
478
- if self.local_vars_configuration.client_side_validation and state is None: # noqa: E501
479
- raise ValueError("Invalid value for `state`, must not be `None`") # noqa: E501
480
-
481
- self._state = state
482
-
483
- def to_dict(self):
484
- """Returns the model properties as a dict"""
485
- result = {}
486
-
487
- for attr, _ in six.iteritems(self.openapi_types):
488
- value = getattr(self, attr)
489
- if isinstance(value, list):
490
- result[attr] = list(map(
491
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
492
- value
493
- ))
494
- elif hasattr(value, "to_dict"):
495
- result[attr] = value.to_dict()
496
- elif isinstance(value, dict):
497
- result[attr] = dict(map(
498
- lambda item: (item[0], item[1].to_dict())
499
- if hasattr(item[1], "to_dict") else item,
500
- value.items()
501
- ))
502
- else:
503
- result[attr] = value
504
-
505
- return result
506
-
507
- def to_str(self):
508
- """Returns the string representation of the model"""
509
- return pprint.pformat(self.to_dict())
510
-
511
- def __repr__(self):
512
- """For `print` and `pprint`"""
513
- return self.to_str()
514
-
515
- def __eq__(self, other):
516
- """Returns true if both objects are equal"""
517
- if not isinstance(other, AicaEndpoint):
518
- return False
519
-
520
- return self.to_dict() == other.to_dict()
521
-
522
- def __ne__(self, other):
523
- """Returns true if both objects are not equal"""
524
- if not isinstance(other, AicaEndpoint):
525
- return True
526
-
527
- return self.to_dict() != other.to_dict()