anyscale 0.26.1__py3-none-any.whl → 0.26.2__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 (30) 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 +10 -0
  5. anyscale/client/openapi_client/__init__.py +9 -0
  6. anyscale/client/openapi_client/api/default_api.py +112 -0
  7. anyscale/client/openapi_client/models/__init__.py +9 -0
  8. anyscale/client/openapi_client/models/actor_status.py +100 -0
  9. anyscale/client/openapi_client/models/baseimagesenum.py +59 -1
  10. anyscale/client/openapi_client/models/job_details.py +173 -0
  11. anyscale/client/openapi_client/models/resource_alert_event_type.py +2 -1
  12. anyscale/client/openapi_client/models/run_attempt_status.py +103 -0
  13. anyscale/client/openapi_client/models/run_status.py +106 -0
  14. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +59 -1
  15. anyscale/client/openapi_client/models/train_resources.py +121 -0
  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/trainrun_list_response.py +147 -0
  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.2.dist-info}/METADATA +1 -1
  25. {anyscale-0.26.1.dist-info → anyscale-0.26.2.dist-info}/RECORD +30 -21
  26. {anyscale-0.26.1.dist-info → anyscale-0.26.2.dist-info}/LICENSE +0 -0
  27. {anyscale-0.26.1.dist-info → anyscale-0.26.2.dist-info}/NOTICE +0 -0
  28. {anyscale-0.26.1.dist-info → anyscale-0.26.2.dist-info}/WHEEL +0 -0
  29. {anyscale-0.26.1.dist-info → anyscale-0.26.2.dist-info}/entry_points.txt +0 -0
  30. {anyscale-0.26.1.dist-info → anyscale-0.26.2.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,363 @@
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 TrainWorker(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
+ 'actor_id': 'str',
37
+ 'world_rank': 'int',
38
+ 'local_rank': 'int',
39
+ 'node_rank': 'int',
40
+ 'node_id': 'str',
41
+ 'node_ip': 'str',
42
+ 'pid': 'int',
43
+ 'gpu_ids': 'list[int]',
44
+ 'status': 'ActorStatus',
45
+ 'resources': 'TrainResources'
46
+ }
47
+
48
+ attribute_map = {
49
+ 'actor_id': 'actor_id',
50
+ 'world_rank': 'world_rank',
51
+ 'local_rank': 'local_rank',
52
+ 'node_rank': 'node_rank',
53
+ 'node_id': 'node_id',
54
+ 'node_ip': 'node_ip',
55
+ 'pid': 'pid',
56
+ 'gpu_ids': 'gpu_ids',
57
+ 'status': 'status',
58
+ 'resources': 'resources'
59
+ }
60
+
61
+ def __init__(self, actor_id=None, world_rank=None, local_rank=None, node_rank=None, node_id=None, node_ip=None, pid=None, gpu_ids=None, status=None, resources=None, local_vars_configuration=None): # noqa: E501
62
+ """TrainWorker - a model defined in OpenAPI""" # noqa: E501
63
+ if local_vars_configuration is None:
64
+ local_vars_configuration = Configuration()
65
+ self.local_vars_configuration = local_vars_configuration
66
+
67
+ self._actor_id = None
68
+ self._world_rank = None
69
+ self._local_rank = None
70
+ self._node_rank = None
71
+ self._node_id = None
72
+ self._node_ip = None
73
+ self._pid = None
74
+ self._gpu_ids = None
75
+ self._status = None
76
+ self._resources = None
77
+ self.discriminator = None
78
+
79
+ self.actor_id = actor_id
80
+ self.world_rank = world_rank
81
+ self.local_rank = local_rank
82
+ self.node_rank = node_rank
83
+ self.node_id = node_id
84
+ self.node_ip = node_ip
85
+ self.pid = pid
86
+ self.gpu_ids = gpu_ids
87
+ self.status = status
88
+ if resources is not None:
89
+ self.resources = resources
90
+
91
+ @property
92
+ def actor_id(self):
93
+ """Gets the actor_id of this TrainWorker. # noqa: E501
94
+
95
+
96
+ :return: The actor_id of this TrainWorker. # noqa: E501
97
+ :rtype: str
98
+ """
99
+ return self._actor_id
100
+
101
+ @actor_id.setter
102
+ def actor_id(self, actor_id):
103
+ """Sets the actor_id of this TrainWorker.
104
+
105
+
106
+ :param actor_id: The actor_id of this TrainWorker. # noqa: E501
107
+ :type: str
108
+ """
109
+ if self.local_vars_configuration.client_side_validation and actor_id is None: # noqa: E501
110
+ raise ValueError("Invalid value for `actor_id`, must not be `None`") # noqa: E501
111
+
112
+ self._actor_id = actor_id
113
+
114
+ @property
115
+ def world_rank(self):
116
+ """Gets the world_rank of this TrainWorker. # noqa: E501
117
+
118
+
119
+ :return: The world_rank of this TrainWorker. # noqa: E501
120
+ :rtype: int
121
+ """
122
+ return self._world_rank
123
+
124
+ @world_rank.setter
125
+ def world_rank(self, world_rank):
126
+ """Sets the world_rank of this TrainWorker.
127
+
128
+
129
+ :param world_rank: The world_rank of this TrainWorker. # noqa: E501
130
+ :type: int
131
+ """
132
+ if self.local_vars_configuration.client_side_validation and world_rank is None: # noqa: E501
133
+ raise ValueError("Invalid value for `world_rank`, must not be `None`") # noqa: E501
134
+
135
+ self._world_rank = world_rank
136
+
137
+ @property
138
+ def local_rank(self):
139
+ """Gets the local_rank of this TrainWorker. # noqa: E501
140
+
141
+
142
+ :return: The local_rank of this TrainWorker. # noqa: E501
143
+ :rtype: int
144
+ """
145
+ return self._local_rank
146
+
147
+ @local_rank.setter
148
+ def local_rank(self, local_rank):
149
+ """Sets the local_rank of this TrainWorker.
150
+
151
+
152
+ :param local_rank: The local_rank of this TrainWorker. # noqa: E501
153
+ :type: int
154
+ """
155
+ if self.local_vars_configuration.client_side_validation and local_rank is None: # noqa: E501
156
+ raise ValueError("Invalid value for `local_rank`, must not be `None`") # noqa: E501
157
+
158
+ self._local_rank = local_rank
159
+
160
+ @property
161
+ def node_rank(self):
162
+ """Gets the node_rank of this TrainWorker. # noqa: E501
163
+
164
+
165
+ :return: The node_rank of this TrainWorker. # noqa: E501
166
+ :rtype: int
167
+ """
168
+ return self._node_rank
169
+
170
+ @node_rank.setter
171
+ def node_rank(self, node_rank):
172
+ """Sets the node_rank of this TrainWorker.
173
+
174
+
175
+ :param node_rank: The node_rank of this TrainWorker. # noqa: E501
176
+ :type: int
177
+ """
178
+ if self.local_vars_configuration.client_side_validation and node_rank is None: # noqa: E501
179
+ raise ValueError("Invalid value for `node_rank`, must not be `None`") # noqa: E501
180
+
181
+ self._node_rank = node_rank
182
+
183
+ @property
184
+ def node_id(self):
185
+ """Gets the node_id of this TrainWorker. # noqa: E501
186
+
187
+
188
+ :return: The node_id of this TrainWorker. # noqa: E501
189
+ :rtype: str
190
+ """
191
+ return self._node_id
192
+
193
+ @node_id.setter
194
+ def node_id(self, node_id):
195
+ """Sets the node_id of this TrainWorker.
196
+
197
+
198
+ :param node_id: The node_id of this TrainWorker. # noqa: E501
199
+ :type: str
200
+ """
201
+ if self.local_vars_configuration.client_side_validation and node_id is None: # noqa: E501
202
+ raise ValueError("Invalid value for `node_id`, must not be `None`") # noqa: E501
203
+
204
+ self._node_id = node_id
205
+
206
+ @property
207
+ def node_ip(self):
208
+ """Gets the node_ip of this TrainWorker. # noqa: E501
209
+
210
+
211
+ :return: The node_ip of this TrainWorker. # noqa: E501
212
+ :rtype: str
213
+ """
214
+ return self._node_ip
215
+
216
+ @node_ip.setter
217
+ def node_ip(self, node_ip):
218
+ """Sets the node_ip of this TrainWorker.
219
+
220
+
221
+ :param node_ip: The node_ip of this TrainWorker. # noqa: E501
222
+ :type: str
223
+ """
224
+ if self.local_vars_configuration.client_side_validation and node_ip is None: # noqa: E501
225
+ raise ValueError("Invalid value for `node_ip`, must not be `None`") # noqa: E501
226
+
227
+ self._node_ip = node_ip
228
+
229
+ @property
230
+ def pid(self):
231
+ """Gets the pid of this TrainWorker. # noqa: E501
232
+
233
+
234
+ :return: The pid of this TrainWorker. # noqa: E501
235
+ :rtype: int
236
+ """
237
+ return self._pid
238
+
239
+ @pid.setter
240
+ def pid(self, pid):
241
+ """Sets the pid of this TrainWorker.
242
+
243
+
244
+ :param pid: The pid of this TrainWorker. # noqa: E501
245
+ :type: int
246
+ """
247
+ if self.local_vars_configuration.client_side_validation and pid is None: # noqa: E501
248
+ raise ValueError("Invalid value for `pid`, must not be `None`") # noqa: E501
249
+
250
+ self._pid = pid
251
+
252
+ @property
253
+ def gpu_ids(self):
254
+ """Gets the gpu_ids of this TrainWorker. # noqa: E501
255
+
256
+
257
+ :return: The gpu_ids of this TrainWorker. # noqa: E501
258
+ :rtype: list[int]
259
+ """
260
+ return self._gpu_ids
261
+
262
+ @gpu_ids.setter
263
+ def gpu_ids(self, gpu_ids):
264
+ """Sets the gpu_ids of this TrainWorker.
265
+
266
+
267
+ :param gpu_ids: The gpu_ids of this TrainWorker. # noqa: E501
268
+ :type: list[int]
269
+ """
270
+ if self.local_vars_configuration.client_side_validation and gpu_ids is None: # noqa: E501
271
+ raise ValueError("Invalid value for `gpu_ids`, must not be `None`") # noqa: E501
272
+
273
+ self._gpu_ids = gpu_ids
274
+
275
+ @property
276
+ def status(self):
277
+ """Gets the status of this TrainWorker. # noqa: E501
278
+
279
+
280
+ :return: The status of this TrainWorker. # noqa: E501
281
+ :rtype: ActorStatus
282
+ """
283
+ return self._status
284
+
285
+ @status.setter
286
+ def status(self, status):
287
+ """Sets the status of this TrainWorker.
288
+
289
+
290
+ :param status: The status of this TrainWorker. # noqa: E501
291
+ :type: ActorStatus
292
+ """
293
+ if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501
294
+ raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501
295
+
296
+ self._status = status
297
+
298
+ @property
299
+ def resources(self):
300
+ """Gets the resources of this TrainWorker. # noqa: E501
301
+
302
+
303
+ :return: The resources of this TrainWorker. # noqa: E501
304
+ :rtype: TrainResources
305
+ """
306
+ return self._resources
307
+
308
+ @resources.setter
309
+ def resources(self, resources):
310
+ """Sets the resources of this TrainWorker.
311
+
312
+
313
+ :param resources: The resources of this TrainWorker. # noqa: E501
314
+ :type: TrainResources
315
+ """
316
+
317
+ self._resources = resources
318
+
319
+ def to_dict(self):
320
+ """Returns the model properties as a dict"""
321
+ result = {}
322
+
323
+ for attr, _ in six.iteritems(self.openapi_types):
324
+ value = getattr(self, attr)
325
+ if isinstance(value, list):
326
+ result[attr] = list(map(
327
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
328
+ value
329
+ ))
330
+ elif hasattr(value, "to_dict"):
331
+ result[attr] = value.to_dict()
332
+ elif isinstance(value, dict):
333
+ result[attr] = dict(map(
334
+ lambda item: (item[0], item[1].to_dict())
335
+ if hasattr(item[1], "to_dict") else item,
336
+ value.items()
337
+ ))
338
+ else:
339
+ result[attr] = value
340
+
341
+ return result
342
+
343
+ def to_str(self):
344
+ """Returns the string representation of the model"""
345
+ return pprint.pformat(self.to_dict())
346
+
347
+ def __repr__(self):
348
+ """For `print` and `pprint`"""
349
+ return self.to_str()
350
+
351
+ def __eq__(self, other):
352
+ """Returns true if both objects are equal"""
353
+ if not isinstance(other, TrainWorker):
354
+ return False
355
+
356
+ return self.to_dict() == other.to_dict()
357
+
358
+ def __ne__(self, other):
359
+ """Returns true if both objects are not equal"""
360
+ if not isinstance(other, TrainWorker):
361
+ return True
362
+
363
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,147 @@
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 TrainrunListResponse(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
+ 'results': 'list[TrainRun]',
37
+ 'metadata': 'ListResponseMetadata'
38
+ }
39
+
40
+ attribute_map = {
41
+ 'results': 'results',
42
+ 'metadata': 'metadata'
43
+ }
44
+
45
+ def __init__(self, results=None, metadata=None, local_vars_configuration=None): # noqa: E501
46
+ """TrainrunListResponse - a model defined in OpenAPI""" # noqa: E501
47
+ if local_vars_configuration is None:
48
+ local_vars_configuration = Configuration()
49
+ self.local_vars_configuration = local_vars_configuration
50
+
51
+ self._results = None
52
+ self._metadata = None
53
+ self.discriminator = None
54
+
55
+ self.results = results
56
+ if metadata is not None:
57
+ self.metadata = metadata
58
+
59
+ @property
60
+ def results(self):
61
+ """Gets the results of this TrainrunListResponse. # noqa: E501
62
+
63
+
64
+ :return: The results of this TrainrunListResponse. # noqa: E501
65
+ :rtype: list[TrainRun]
66
+ """
67
+ return self._results
68
+
69
+ @results.setter
70
+ def results(self, results):
71
+ """Sets the results of this TrainrunListResponse.
72
+
73
+
74
+ :param results: The results of this TrainrunListResponse. # noqa: E501
75
+ :type: list[TrainRun]
76
+ """
77
+ if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501
78
+ raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501
79
+
80
+ self._results = results
81
+
82
+ @property
83
+ def metadata(self):
84
+ """Gets the metadata of this TrainrunListResponse. # noqa: E501
85
+
86
+
87
+ :return: The metadata of this TrainrunListResponse. # noqa: E501
88
+ :rtype: ListResponseMetadata
89
+ """
90
+ return self._metadata
91
+
92
+ @metadata.setter
93
+ def metadata(self, metadata):
94
+ """Sets the metadata of this TrainrunListResponse.
95
+
96
+
97
+ :param metadata: The metadata of this TrainrunListResponse. # noqa: E501
98
+ :type: ListResponseMetadata
99
+ """
100
+
101
+ self._metadata = metadata
102
+
103
+ def to_dict(self):
104
+ """Returns the model properties as a dict"""
105
+ result = {}
106
+
107
+ for attr, _ in six.iteritems(self.openapi_types):
108
+ value = getattr(self, attr)
109
+ if isinstance(value, list):
110
+ result[attr] = list(map(
111
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
112
+ value
113
+ ))
114
+ elif hasattr(value, "to_dict"):
115
+ result[attr] = value.to_dict()
116
+ elif isinstance(value, dict):
117
+ result[attr] = dict(map(
118
+ lambda item: (item[0], item[1].to_dict())
119
+ if hasattr(item[1], "to_dict") else item,
120
+ value.items()
121
+ ))
122
+ else:
123
+ result[attr] = value
124
+
125
+ return result
126
+
127
+ def to_str(self):
128
+ """Returns the string representation of the model"""
129
+ return pprint.pformat(self.to_dict())
130
+
131
+ def __repr__(self):
132
+ """For `print` and `pprint`"""
133
+ return self.to_str()
134
+
135
+ def __eq__(self, other):
136
+ """Returns true if both objects are equal"""
137
+ if not isinstance(other, TrainrunListResponse):
138
+ return False
139
+
140
+ return self.to_dict() == other.to_dict()
141
+
142
+ def __ne__(self, other):
143
+ """Returns true if both objects are not equal"""
144
+ if not isinstance(other, TrainrunListResponse):
145
+ return True
146
+
147
+ return self.to_dict() != other.to_dict()