anyscale 0.26.1__py3-none-any.whl → 0.26.3__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 (44) hide show
  1. anyscale/_private/anyscale_client/anyscale_client.py +13 -1
  2. anyscale/_private/anyscale_client/common.py +1 -1
  3. anyscale/_private/docgen/models.md +2 -2
  4. anyscale/client/README.md +11 -33
  5. anyscale/client/openapi_client/__init__.py +9 -20
  6. anyscale/client/openapi_client/api/default_api.py +226 -1544
  7. anyscale/client/openapi_client/models/__init__.py +9 -20
  8. anyscale/client/openapi_client/models/{aica_endpoint_scope.py → actor_status.py} +7 -9
  9. anyscale/client/openapi_client/models/baseimagesenum.py +59 -1
  10. anyscale/client/openapi_client/models/{named_entity.py → job_details.py} +60 -35
  11. anyscale/client/openapi_client/models/resource_alert_event_type.py +2 -1
  12. anyscale/client/openapi_client/models/{aica_endpoint_event_level.py → run_attempt_status.py} +10 -10
  13. anyscale/client/openapi_client/models/{aicamodel_response.py → run_status.py} +19 -34
  14. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +59 -1
  15. anyscale/client/openapi_client/models/{aicaendpoint_response.py → train_resources.py} +22 -22
  16. anyscale/client/openapi_client/models/train_run.py +387 -0
  17. anyscale/client/openapi_client/models/train_run_attempt.py +308 -0
  18. anyscale/client/openapi_client/models/train_worker.py +363 -0
  19. anyscale/client/openapi_client/models/{aicamodel_list_response.py → trainrun_list_response.py} +15 -15
  20. anyscale/sdk/anyscale_client/models/baseimagesenum.py +59 -1
  21. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +59 -1
  22. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  23. anyscale/version.py +1 -1
  24. {anyscale-0.26.1.dist-info → anyscale-0.26.3.dist-info}/METADATA +1 -1
  25. {anyscale-0.26.1.dist-info → anyscale-0.26.3.dist-info}/RECORD +30 -41
  26. anyscale/client/openapi_client/models/aica_endpoint.py +0 -527
  27. anyscale/client/openapi_client/models/aica_endpoint_event.py +0 -433
  28. anyscale/client/openapi_client/models/aica_endpoint_event_type.py +0 -120
  29. anyscale/client/openapi_client/models/aica_model.py +0 -398
  30. anyscale/client/openapi_client/models/aica_model_accelerator_map.py +0 -123
  31. anyscale/client/openapi_client/models/aica_model_configuration.py +0 -209
  32. anyscale/client/openapi_client/models/aica_observability_urls.py +0 -178
  33. anyscale/client/openapi_client/models/aicaendpoint_list_response.py +0 -147
  34. anyscale/client/openapi_client/models/aicaendpointevent_list_response.py +0 -147
  35. anyscale/client/openapi_client/models/aws_credentials.py +0 -181
  36. anyscale/client/openapi_client/models/create_aica_endpoint.py +0 -210
  37. anyscale/client/openapi_client/models/import_aica_model.py +0 -241
  38. anyscale/client/openapi_client/models/update_endpoint.py +0 -152
  39. anyscale/client/openapi_client/models/update_model_deployment.py +0 -152
  40. {anyscale-0.26.1.dist-info → anyscale-0.26.3.dist-info}/LICENSE +0 -0
  41. {anyscale-0.26.1.dist-info → anyscale-0.26.3.dist-info}/NOTICE +0 -0
  42. {anyscale-0.26.1.dist-info → anyscale-0.26.3.dist-info}/WHEEL +0 -0
  43. {anyscale-0.26.1.dist-info → anyscale-0.26.3.dist-info}/entry_points.txt +0 -0
  44. {anyscale-0.26.1.dist-info → anyscale-0.26.3.dist-info}/top_level.txt +0 -0
@@ -18,7 +18,7 @@ import six
18
18
  from openapi_client.configuration import Configuration
19
19
 
20
20
 
21
- class AicaendpointResponse(object):
21
+ class TrainResources(object):
22
22
  """NOTE: This class is auto generated by OpenAPI Generator.
23
23
  Ref: https://openapi-generator.tech
24
24
 
@@ -33,46 +33,46 @@ class AicaendpointResponse(object):
33
33
  and the value is json key in definition.
34
34
  """
35
35
  openapi_types = {
36
- 'result': 'AicaEndpoint'
36
+ 'resources': 'dict(str, float)'
37
37
  }
38
38
 
39
39
  attribute_map = {
40
- 'result': 'result'
40
+ 'resources': 'resources'
41
41
  }
42
42
 
43
- def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
44
- """AicaendpointResponse - a model defined in OpenAPI""" # noqa: E501
43
+ def __init__(self, resources=None, local_vars_configuration=None): # noqa: E501
44
+ """TrainResources - a model defined in OpenAPI""" # noqa: E501
45
45
  if local_vars_configuration is None:
46
46
  local_vars_configuration = Configuration()
47
47
  self.local_vars_configuration = local_vars_configuration
48
48
 
49
- self._result = None
49
+ self._resources = None
50
50
  self.discriminator = None
51
51
 
52
- self.result = result
52
+ self.resources = resources
53
53
 
54
54
  @property
55
- def result(self):
56
- """Gets the result of this AicaendpointResponse. # noqa: E501
55
+ def resources(self):
56
+ """Gets the resources of this TrainResources. # noqa: E501
57
57
 
58
58
 
59
- :return: The result of this AicaendpointResponse. # noqa: E501
60
- :rtype: AicaEndpoint
59
+ :return: The resources of this TrainResources. # noqa: E501
60
+ :rtype: dict(str, float)
61
61
  """
62
- return self._result
62
+ return self._resources
63
63
 
64
- @result.setter
65
- def result(self, result):
66
- """Sets the result of this AicaendpointResponse.
64
+ @resources.setter
65
+ def resources(self, resources):
66
+ """Sets the resources of this TrainResources.
67
67
 
68
68
 
69
- :param result: The result of this AicaendpointResponse. # noqa: E501
70
- :type: AicaEndpoint
69
+ :param resources: The resources of this TrainResources. # noqa: E501
70
+ :type: dict(str, float)
71
71
  """
72
- if self.local_vars_configuration.client_side_validation and result is None: # noqa: E501
73
- raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501
72
+ if self.local_vars_configuration.client_side_validation and resources is None: # noqa: E501
73
+ raise ValueError("Invalid value for `resources`, must not be `None`") # noqa: E501
74
74
 
75
- self._result = result
75
+ self._resources = resources
76
76
 
77
77
  def to_dict(self):
78
78
  """Returns the model properties as a dict"""
@@ -108,14 +108,14 @@ class AicaendpointResponse(object):
108
108
 
109
109
  def __eq__(self, other):
110
110
  """Returns true if both objects are equal"""
111
- if not isinstance(other, AicaendpointResponse):
111
+ if not isinstance(other, TrainResources):
112
112
  return False
113
113
 
114
114
  return self.to_dict() == other.to_dict()
115
115
 
116
116
  def __ne__(self, other):
117
117
  """Returns true if both objects are not equal"""
118
- if not isinstance(other, AicaendpointResponse):
118
+ if not isinstance(other, TrainResources):
119
119
  return True
120
120
 
121
121
  return self.to_dict() != other.to_dict()
@@ -0,0 +1,387 @@
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 TrainRun(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
+ 'job_id': 'str',
39
+ 'controller_actor_id': 'str',
40
+ 'status': 'RunStatus',
41
+ 'status_detail': 'str',
42
+ 'start_time_ms': 'int',
43
+ 'end_time_ms': 'int',
44
+ 'attempts': 'list[TrainRunAttempt]',
45
+ 'job_details': 'JobDetails',
46
+ 'session_name': 'str'
47
+ }
48
+
49
+ attribute_map = {
50
+ 'id': 'id',
51
+ 'name': 'name',
52
+ 'job_id': 'job_id',
53
+ 'controller_actor_id': 'controller_actor_id',
54
+ 'status': 'status',
55
+ 'status_detail': 'status_detail',
56
+ 'start_time_ms': 'start_time_ms',
57
+ 'end_time_ms': 'end_time_ms',
58
+ 'attempts': 'attempts',
59
+ 'job_details': 'job_details',
60
+ 'session_name': 'session_name'
61
+ }
62
+
63
+ def __init__(self, id=None, name=None, job_id=None, controller_actor_id=None, status=None, status_detail=None, start_time_ms=None, end_time_ms=None, attempts=None, job_details=None, session_name=None, local_vars_configuration=None): # noqa: E501
64
+ """TrainRun - 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._name = None
71
+ self._job_id = None
72
+ self._controller_actor_id = None
73
+ self._status = None
74
+ self._status_detail = None
75
+ self._start_time_ms = None
76
+ self._end_time_ms = None
77
+ self._attempts = None
78
+ self._job_details = None
79
+ self._session_name = None
80
+ self.discriminator = None
81
+
82
+ self.id = id
83
+ self.name = name
84
+ self.job_id = job_id
85
+ if controller_actor_id is not None:
86
+ self.controller_actor_id = controller_actor_id
87
+ self.status = status
88
+ if status_detail is not None:
89
+ self.status_detail = status_detail
90
+ self.start_time_ms = start_time_ms
91
+ if end_time_ms is not None:
92
+ self.end_time_ms = end_time_ms
93
+ self.attempts = attempts
94
+ self.job_details = job_details
95
+ if session_name is not None:
96
+ self.session_name = session_name
97
+
98
+ @property
99
+ def id(self):
100
+ """Gets the id of this TrainRun. # noqa: E501
101
+
102
+
103
+ :return: The id of this TrainRun. # noqa: E501
104
+ :rtype: str
105
+ """
106
+ return self._id
107
+
108
+ @id.setter
109
+ def id(self, id):
110
+ """Sets the id of this TrainRun.
111
+
112
+
113
+ :param id: The id of this TrainRun. # noqa: E501
114
+ :type: str
115
+ """
116
+ if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
117
+ raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
118
+
119
+ self._id = id
120
+
121
+ @property
122
+ def name(self):
123
+ """Gets the name of this TrainRun. # noqa: E501
124
+
125
+
126
+ :return: The name of this TrainRun. # noqa: E501
127
+ :rtype: str
128
+ """
129
+ return self._name
130
+
131
+ @name.setter
132
+ def name(self, name):
133
+ """Sets the name of this TrainRun.
134
+
135
+
136
+ :param name: The name of this TrainRun. # noqa: E501
137
+ :type: str
138
+ """
139
+ if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
140
+ raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
141
+
142
+ self._name = name
143
+
144
+ @property
145
+ def job_id(self):
146
+ """Gets the job_id of this TrainRun. # noqa: E501
147
+
148
+
149
+ :return: The job_id of this TrainRun. # noqa: E501
150
+ :rtype: str
151
+ """
152
+ return self._job_id
153
+
154
+ @job_id.setter
155
+ def job_id(self, job_id):
156
+ """Sets the job_id of this TrainRun.
157
+
158
+
159
+ :param job_id: The job_id of this TrainRun. # noqa: E501
160
+ :type: str
161
+ """
162
+ if self.local_vars_configuration.client_side_validation and job_id is None: # noqa: E501
163
+ raise ValueError("Invalid value for `job_id`, must not be `None`") # noqa: E501
164
+
165
+ self._job_id = job_id
166
+
167
+ @property
168
+ def controller_actor_id(self):
169
+ """Gets the controller_actor_id of this TrainRun. # noqa: E501
170
+
171
+
172
+ :return: The controller_actor_id of this TrainRun. # noqa: E501
173
+ :rtype: str
174
+ """
175
+ return self._controller_actor_id
176
+
177
+ @controller_actor_id.setter
178
+ def controller_actor_id(self, controller_actor_id):
179
+ """Sets the controller_actor_id of this TrainRun.
180
+
181
+
182
+ :param controller_actor_id: The controller_actor_id of this TrainRun. # noqa: E501
183
+ :type: str
184
+ """
185
+
186
+ self._controller_actor_id = controller_actor_id
187
+
188
+ @property
189
+ def status(self):
190
+ """Gets the status of this TrainRun. # noqa: E501
191
+
192
+
193
+ :return: The status of this TrainRun. # noqa: E501
194
+ :rtype: RunStatus
195
+ """
196
+ return self._status
197
+
198
+ @status.setter
199
+ def status(self, status):
200
+ """Sets the status of this TrainRun.
201
+
202
+
203
+ :param status: The status of this TrainRun. # noqa: E501
204
+ :type: RunStatus
205
+ """
206
+ if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501
207
+ raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501
208
+
209
+ self._status = status
210
+
211
+ @property
212
+ def status_detail(self):
213
+ """Gets the status_detail of this TrainRun. # noqa: E501
214
+
215
+
216
+ :return: The status_detail of this TrainRun. # noqa: E501
217
+ :rtype: str
218
+ """
219
+ return self._status_detail
220
+
221
+ @status_detail.setter
222
+ def status_detail(self, status_detail):
223
+ """Sets the status_detail of this TrainRun.
224
+
225
+
226
+ :param status_detail: The status_detail of this TrainRun. # noqa: E501
227
+ :type: str
228
+ """
229
+
230
+ self._status_detail = status_detail
231
+
232
+ @property
233
+ def start_time_ms(self):
234
+ """Gets the start_time_ms of this TrainRun. # noqa: E501
235
+
236
+
237
+ :return: The start_time_ms of this TrainRun. # noqa: E501
238
+ :rtype: int
239
+ """
240
+ return self._start_time_ms
241
+
242
+ @start_time_ms.setter
243
+ def start_time_ms(self, start_time_ms):
244
+ """Sets the start_time_ms of this TrainRun.
245
+
246
+
247
+ :param start_time_ms: The start_time_ms of this TrainRun. # noqa: E501
248
+ :type: int
249
+ """
250
+ if self.local_vars_configuration.client_side_validation and start_time_ms is None: # noqa: E501
251
+ raise ValueError("Invalid value for `start_time_ms`, must not be `None`") # noqa: E501
252
+
253
+ self._start_time_ms = start_time_ms
254
+
255
+ @property
256
+ def end_time_ms(self):
257
+ """Gets the end_time_ms of this TrainRun. # noqa: E501
258
+
259
+
260
+ :return: The end_time_ms of this TrainRun. # noqa: E501
261
+ :rtype: int
262
+ """
263
+ return self._end_time_ms
264
+
265
+ @end_time_ms.setter
266
+ def end_time_ms(self, end_time_ms):
267
+ """Sets the end_time_ms of this TrainRun.
268
+
269
+
270
+ :param end_time_ms: The end_time_ms of this TrainRun. # noqa: E501
271
+ :type: int
272
+ """
273
+
274
+ self._end_time_ms = end_time_ms
275
+
276
+ @property
277
+ def attempts(self):
278
+ """Gets the attempts of this TrainRun. # noqa: E501
279
+
280
+
281
+ :return: The attempts of this TrainRun. # noqa: E501
282
+ :rtype: list[TrainRunAttempt]
283
+ """
284
+ return self._attempts
285
+
286
+ @attempts.setter
287
+ def attempts(self, attempts):
288
+ """Sets the attempts of this TrainRun.
289
+
290
+
291
+ :param attempts: The attempts of this TrainRun. # noqa: E501
292
+ :type: list[TrainRunAttempt]
293
+ """
294
+ if self.local_vars_configuration.client_side_validation and attempts is None: # noqa: E501
295
+ raise ValueError("Invalid value for `attempts`, must not be `None`") # noqa: E501
296
+
297
+ self._attempts = attempts
298
+
299
+ @property
300
+ def job_details(self):
301
+ """Gets the job_details of this TrainRun. # noqa: E501
302
+
303
+
304
+ :return: The job_details of this TrainRun. # noqa: E501
305
+ :rtype: JobDetails
306
+ """
307
+ return self._job_details
308
+
309
+ @job_details.setter
310
+ def job_details(self, job_details):
311
+ """Sets the job_details of this TrainRun.
312
+
313
+
314
+ :param job_details: The job_details of this TrainRun. # noqa: E501
315
+ :type: JobDetails
316
+ """
317
+ if self.local_vars_configuration.client_side_validation and job_details is None: # noqa: E501
318
+ raise ValueError("Invalid value for `job_details`, must not be `None`") # noqa: E501
319
+
320
+ self._job_details = job_details
321
+
322
+ @property
323
+ def session_name(self):
324
+ """Gets the session_name of this TrainRun. # noqa: E501
325
+
326
+
327
+ :return: The session_name of this TrainRun. # noqa: E501
328
+ :rtype: str
329
+ """
330
+ return self._session_name
331
+
332
+ @session_name.setter
333
+ def session_name(self, session_name):
334
+ """Sets the session_name of this TrainRun.
335
+
336
+
337
+ :param session_name: The session_name of this TrainRun. # noqa: E501
338
+ :type: str
339
+ """
340
+
341
+ self._session_name = session_name
342
+
343
+ def to_dict(self):
344
+ """Returns the model properties as a dict"""
345
+ result = {}
346
+
347
+ for attr, _ in six.iteritems(self.openapi_types):
348
+ value = getattr(self, attr)
349
+ if isinstance(value, list):
350
+ result[attr] = list(map(
351
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
352
+ value
353
+ ))
354
+ elif hasattr(value, "to_dict"):
355
+ result[attr] = value.to_dict()
356
+ elif isinstance(value, dict):
357
+ result[attr] = dict(map(
358
+ lambda item: (item[0], item[1].to_dict())
359
+ if hasattr(item[1], "to_dict") else item,
360
+ value.items()
361
+ ))
362
+ else:
363
+ result[attr] = value
364
+
365
+ return result
366
+
367
+ def to_str(self):
368
+ """Returns the string representation of the model"""
369
+ return pprint.pformat(self.to_dict())
370
+
371
+ def __repr__(self):
372
+ """For `print` and `pprint`"""
373
+ return self.to_str()
374
+
375
+ def __eq__(self, other):
376
+ """Returns true if both objects are equal"""
377
+ if not isinstance(other, TrainRun):
378
+ return False
379
+
380
+ return self.to_dict() == other.to_dict()
381
+
382
+ def __ne__(self, other):
383
+ """Returns true if both objects are not equal"""
384
+ if not isinstance(other, TrainRun):
385
+ return True
386
+
387
+ return self.to_dict() != other.to_dict()