anyscale 0.26.67__py3-none-any.whl → 0.26.69__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 (33) hide show
  1. anyscale/client/README.md +22 -0
  2. anyscale/client/openapi_client/__init__.py +16 -0
  3. anyscale/client/openapi_client/api/default_api.py +801 -19
  4. anyscale/client/openapi_client/models/__init__.py +16 -0
  5. anyscale/client/openapi_client/models/clusterdashboardnode_response.py +121 -0
  6. anyscale/client/openapi_client/models/lineage_artifact.py +383 -0
  7. anyscale/client/openapi_client/models/lineage_artifact_sort_field.py +101 -0
  8. anyscale/client/openapi_client/models/lineage_artifact_type.py +100 -0
  9. anyscale/client/openapi_client/models/lineage_direction.py +101 -0
  10. anyscale/client/openapi_client/models/lineage_graph.py +179 -0
  11. anyscale/client/openapi_client/models/lineage_graph_node.py +467 -0
  12. anyscale/client/openapi_client/models/lineage_node_type.py +100 -0
  13. anyscale/client/openapi_client/models/lineage_workload.py +383 -0
  14. anyscale/client/openapi_client/models/lineage_workload_sort_field.py +101 -0
  15. anyscale/client/openapi_client/models/lineage_workload_type.py +101 -0
  16. anyscale/client/openapi_client/models/lineageartifact_list_response.py +147 -0
  17. anyscale/client/openapi_client/models/lineageartifact_response.py +121 -0
  18. anyscale/client/openapi_client/models/lineagegraph_response.py +121 -0
  19. anyscale/client/openapi_client/models/lineageworkload_list_response.py +147 -0
  20. anyscale/client/openapi_client/models/lineageworkload_response.py +121 -0
  21. anyscale/commands/cloud_commands.py +15 -9
  22. anyscale/commands/command_examples.py +53 -0
  23. anyscale/commands/setup_k8s.py +521 -50
  24. anyscale/controllers/cloud_controller.py +13 -12
  25. anyscale/controllers/kubernetes_verifier.py +57 -11
  26. anyscale/version.py +1 -1
  27. {anyscale-0.26.67.dist-info → anyscale-0.26.69.dist-info}/METADATA +1 -1
  28. {anyscale-0.26.67.dist-info → anyscale-0.26.69.dist-info}/RECORD +33 -17
  29. {anyscale-0.26.67.dist-info → anyscale-0.26.69.dist-info}/WHEEL +0 -0
  30. {anyscale-0.26.67.dist-info → anyscale-0.26.69.dist-info}/entry_points.txt +0 -0
  31. {anyscale-0.26.67.dist-info → anyscale-0.26.69.dist-info}/licenses/LICENSE +0 -0
  32. {anyscale-0.26.67.dist-info → anyscale-0.26.69.dist-info}/licenses/NOTICE +0 -0
  33. {anyscale-0.26.67.dist-info → anyscale-0.26.69.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,467 @@
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 LineageGraphNode(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
+ 'namespace_name': 'str',
39
+ 'uri': 'str',
40
+ 'created_at': 'datetime',
41
+ 'updated_at': 'datetime',
42
+ 'created_by': 'str',
43
+ 'updated_by': 'str',
44
+ 'workload_type': 'LineageWorkloadType',
45
+ 'anyscale_workload_id': 'str',
46
+ 'artifact_type': 'LineageArtifactType',
47
+ 'artifact_file_format': 'str',
48
+ 'node_type': 'LineageNodeType'
49
+ }
50
+
51
+ attribute_map = {
52
+ 'id': 'id',
53
+ 'name': 'name',
54
+ 'namespace_name': 'namespace_name',
55
+ 'uri': 'uri',
56
+ 'created_at': 'created_at',
57
+ 'updated_at': 'updated_at',
58
+ 'created_by': 'created_by',
59
+ 'updated_by': 'updated_by',
60
+ 'workload_type': 'workload_type',
61
+ 'anyscale_workload_id': 'anyscale_workload_id',
62
+ 'artifact_type': 'artifact_type',
63
+ 'artifact_file_format': 'artifact_file_format',
64
+ 'node_type': 'node_type'
65
+ }
66
+
67
+ def __init__(self, id=None, name=None, namespace_name=None, uri=None, created_at=None, updated_at=None, created_by=None, updated_by=None, workload_type=None, anyscale_workload_id=None, artifact_type=None, artifact_file_format=None, node_type=None, local_vars_configuration=None): # noqa: E501
68
+ """LineageGraphNode - a model defined in OpenAPI""" # noqa: E501
69
+ if local_vars_configuration is None:
70
+ local_vars_configuration = Configuration()
71
+ self.local_vars_configuration = local_vars_configuration
72
+
73
+ self._id = None
74
+ self._name = None
75
+ self._namespace_name = None
76
+ self._uri = None
77
+ self._created_at = None
78
+ self._updated_at = None
79
+ self._created_by = None
80
+ self._updated_by = None
81
+ self._workload_type = None
82
+ self._anyscale_workload_id = None
83
+ self._artifact_type = None
84
+ self._artifact_file_format = None
85
+ self._node_type = None
86
+ self.discriminator = None
87
+
88
+ self.id = id
89
+ self.name = name
90
+ self.namespace_name = namespace_name
91
+ self.uri = uri
92
+ self.created_at = created_at
93
+ self.updated_at = updated_at
94
+ self.created_by = created_by
95
+ self.updated_by = updated_by
96
+ if workload_type is not None:
97
+ self.workload_type = workload_type
98
+ if anyscale_workload_id is not None:
99
+ self.anyscale_workload_id = anyscale_workload_id
100
+ if artifact_type is not None:
101
+ self.artifact_type = artifact_type
102
+ if artifact_file_format is not None:
103
+ self.artifact_file_format = artifact_file_format
104
+ self.node_type = node_type
105
+
106
+ @property
107
+ def id(self):
108
+ """Gets the id of this LineageGraphNode. # noqa: E501
109
+
110
+ ID of the lineage node # noqa: E501
111
+
112
+ :return: The id of this LineageGraphNode. # noqa: E501
113
+ :rtype: str
114
+ """
115
+ return self._id
116
+
117
+ @id.setter
118
+ def id(self, id):
119
+ """Sets the id of this LineageGraphNode.
120
+
121
+ ID of the lineage node # noqa: E501
122
+
123
+ :param id: The id of this LineageGraphNode. # noqa: E501
124
+ :type: str
125
+ """
126
+ if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
127
+ raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
128
+
129
+ self._id = id
130
+
131
+ @property
132
+ def name(self):
133
+ """Gets the name of this LineageGraphNode. # noqa: E501
134
+
135
+ Name of the node # noqa: E501
136
+
137
+ :return: The name of this LineageGraphNode. # noqa: E501
138
+ :rtype: str
139
+ """
140
+ return self._name
141
+
142
+ @name.setter
143
+ def name(self, name):
144
+ """Sets the name of this LineageGraphNode.
145
+
146
+ Name of the node # noqa: E501
147
+
148
+ :param name: The name of this LineageGraphNode. # noqa: E501
149
+ :type: str
150
+ """
151
+ if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
152
+ raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
153
+
154
+ self._name = name
155
+
156
+ @property
157
+ def namespace_name(self):
158
+ """Gets the namespace_name of this LineageGraphNode. # noqa: E501
159
+
160
+ Namespace name # noqa: E501
161
+
162
+ :return: The namespace_name of this LineageGraphNode. # noqa: E501
163
+ :rtype: str
164
+ """
165
+ return self._namespace_name
166
+
167
+ @namespace_name.setter
168
+ def namespace_name(self, namespace_name):
169
+ """Sets the namespace_name of this LineageGraphNode.
170
+
171
+ Namespace name # noqa: E501
172
+
173
+ :param namespace_name: The namespace_name of this LineageGraphNode. # noqa: E501
174
+ :type: str
175
+ """
176
+ if self.local_vars_configuration.client_side_validation and namespace_name is None: # noqa: E501
177
+ raise ValueError("Invalid value for `namespace_name`, must not be `None`") # noqa: E501
178
+
179
+ self._namespace_name = namespace_name
180
+
181
+ @property
182
+ def uri(self):
183
+ """Gets the uri of this LineageGraphNode. # noqa: E501
184
+
185
+ URI of the node # noqa: E501
186
+
187
+ :return: The uri of this LineageGraphNode. # noqa: E501
188
+ :rtype: str
189
+ """
190
+ return self._uri
191
+
192
+ @uri.setter
193
+ def uri(self, uri):
194
+ """Sets the uri of this LineageGraphNode.
195
+
196
+ URI of the node # noqa: E501
197
+
198
+ :param uri: The uri of this LineageGraphNode. # noqa: E501
199
+ :type: str
200
+ """
201
+ if self.local_vars_configuration.client_side_validation and uri is None: # noqa: E501
202
+ raise ValueError("Invalid value for `uri`, must not be `None`") # noqa: E501
203
+
204
+ self._uri = uri
205
+
206
+ @property
207
+ def created_at(self):
208
+ """Gets the created_at of this LineageGraphNode. # noqa: E501
209
+
210
+ Creation datetime # noqa: E501
211
+
212
+ :return: The created_at of this LineageGraphNode. # noqa: E501
213
+ :rtype: datetime
214
+ """
215
+ return self._created_at
216
+
217
+ @created_at.setter
218
+ def created_at(self, created_at):
219
+ """Sets the created_at of this LineageGraphNode.
220
+
221
+ Creation datetime # noqa: E501
222
+
223
+ :param created_at: The created_at of this LineageGraphNode. # noqa: E501
224
+ :type: datetime
225
+ """
226
+ if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501
227
+ raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501
228
+
229
+ self._created_at = created_at
230
+
231
+ @property
232
+ def updated_at(self):
233
+ """Gets the updated_at of this LineageGraphNode. # noqa: E501
234
+
235
+ Last update datetime # noqa: E501
236
+
237
+ :return: The updated_at of this LineageGraphNode. # noqa: E501
238
+ :rtype: datetime
239
+ """
240
+ return self._updated_at
241
+
242
+ @updated_at.setter
243
+ def updated_at(self, updated_at):
244
+ """Sets the updated_at of this LineageGraphNode.
245
+
246
+ Last update datetime # noqa: E501
247
+
248
+ :param updated_at: The updated_at of this LineageGraphNode. # noqa: E501
249
+ :type: datetime
250
+ """
251
+ if self.local_vars_configuration.client_side_validation and updated_at is None: # noqa: E501
252
+ raise ValueError("Invalid value for `updated_at`, must not be `None`") # noqa: E501
253
+
254
+ self._updated_at = updated_at
255
+
256
+ @property
257
+ def created_by(self):
258
+ """Gets the created_by of this LineageGraphNode. # noqa: E501
259
+
260
+ User who created the node # noqa: E501
261
+
262
+ :return: The created_by of this LineageGraphNode. # noqa: E501
263
+ :rtype: str
264
+ """
265
+ return self._created_by
266
+
267
+ @created_by.setter
268
+ def created_by(self, created_by):
269
+ """Sets the created_by of this LineageGraphNode.
270
+
271
+ User who created the node # noqa: E501
272
+
273
+ :param created_by: The created_by of this LineageGraphNode. # noqa: E501
274
+ :type: str
275
+ """
276
+ if self.local_vars_configuration.client_side_validation and created_by is None: # noqa: E501
277
+ raise ValueError("Invalid value for `created_by`, must not be `None`") # noqa: E501
278
+
279
+ self._created_by = created_by
280
+
281
+ @property
282
+ def updated_by(self):
283
+ """Gets the updated_by of this LineageGraphNode. # noqa: E501
284
+
285
+ User who last updated the node # noqa: E501
286
+
287
+ :return: The updated_by of this LineageGraphNode. # noqa: E501
288
+ :rtype: str
289
+ """
290
+ return self._updated_by
291
+
292
+ @updated_by.setter
293
+ def updated_by(self, updated_by):
294
+ """Sets the updated_by of this LineageGraphNode.
295
+
296
+ User who last updated the node # noqa: E501
297
+
298
+ :param updated_by: The updated_by of this LineageGraphNode. # noqa: E501
299
+ :type: str
300
+ """
301
+ if self.local_vars_configuration.client_side_validation and updated_by is None: # noqa: E501
302
+ raise ValueError("Invalid value for `updated_by`, must not be `None`") # noqa: E501
303
+
304
+ self._updated_by = updated_by
305
+
306
+ @property
307
+ def workload_type(self):
308
+ """Gets the workload_type of this LineageGraphNode. # noqa: E501
309
+
310
+ Type of workload (WORKSPACE/SERVICE/JOB) # noqa: E501
311
+
312
+ :return: The workload_type of this LineageGraphNode. # noqa: E501
313
+ :rtype: LineageWorkloadType
314
+ """
315
+ return self._workload_type
316
+
317
+ @workload_type.setter
318
+ def workload_type(self, workload_type):
319
+ """Sets the workload_type of this LineageGraphNode.
320
+
321
+ Type of workload (WORKSPACE/SERVICE/JOB) # noqa: E501
322
+
323
+ :param workload_type: The workload_type of this LineageGraphNode. # noqa: E501
324
+ :type: LineageWorkloadType
325
+ """
326
+
327
+ self._workload_type = workload_type
328
+
329
+ @property
330
+ def anyscale_workload_id(self):
331
+ """Gets the anyscale_workload_id of this LineageGraphNode. # noqa: E501
332
+
333
+ Anyscale workload ID # noqa: E501
334
+
335
+ :return: The anyscale_workload_id of this LineageGraphNode. # noqa: E501
336
+ :rtype: str
337
+ """
338
+ return self._anyscale_workload_id
339
+
340
+ @anyscale_workload_id.setter
341
+ def anyscale_workload_id(self, anyscale_workload_id):
342
+ """Sets the anyscale_workload_id of this LineageGraphNode.
343
+
344
+ Anyscale workload ID # noqa: E501
345
+
346
+ :param anyscale_workload_id: The anyscale_workload_id of this LineageGraphNode. # noqa: E501
347
+ :type: str
348
+ """
349
+
350
+ self._anyscale_workload_id = anyscale_workload_id
351
+
352
+ @property
353
+ def artifact_type(self):
354
+ """Gets the artifact_type of this LineageGraphNode. # noqa: E501
355
+
356
+ Type of artifact (DATASET/MODEL) # noqa: E501
357
+
358
+ :return: The artifact_type of this LineageGraphNode. # noqa: E501
359
+ :rtype: LineageArtifactType
360
+ """
361
+ return self._artifact_type
362
+
363
+ @artifact_type.setter
364
+ def artifact_type(self, artifact_type):
365
+ """Sets the artifact_type of this LineageGraphNode.
366
+
367
+ Type of artifact (DATASET/MODEL) # noqa: E501
368
+
369
+ :param artifact_type: The artifact_type of this LineageGraphNode. # noqa: E501
370
+ :type: LineageArtifactType
371
+ """
372
+
373
+ self._artifact_type = artifact_type
374
+
375
+ @property
376
+ def artifact_file_format(self):
377
+ """Gets the artifact_file_format of this LineageGraphNode. # noqa: E501
378
+
379
+ File format (e.g., parquet, csv) # noqa: E501
380
+
381
+ :return: The artifact_file_format of this LineageGraphNode. # noqa: E501
382
+ :rtype: str
383
+ """
384
+ return self._artifact_file_format
385
+
386
+ @artifact_file_format.setter
387
+ def artifact_file_format(self, artifact_file_format):
388
+ """Sets the artifact_file_format of this LineageGraphNode.
389
+
390
+ File format (e.g., parquet, csv) # noqa: E501
391
+
392
+ :param artifact_file_format: The artifact_file_format of this LineageGraphNode. # noqa: E501
393
+ :type: str
394
+ """
395
+
396
+ self._artifact_file_format = artifact_file_format
397
+
398
+ @property
399
+ def node_type(self):
400
+ """Gets the node_type of this LineageGraphNode. # noqa: E501
401
+
402
+ Type of node (ARTIFACT/WORKLOAD) # noqa: E501
403
+
404
+ :return: The node_type of this LineageGraphNode. # noqa: E501
405
+ :rtype: LineageNodeType
406
+ """
407
+ return self._node_type
408
+
409
+ @node_type.setter
410
+ def node_type(self, node_type):
411
+ """Sets the node_type of this LineageGraphNode.
412
+
413
+ Type of node (ARTIFACT/WORKLOAD) # noqa: E501
414
+
415
+ :param node_type: The node_type of this LineageGraphNode. # noqa: E501
416
+ :type: LineageNodeType
417
+ """
418
+ if self.local_vars_configuration.client_side_validation and node_type is None: # noqa: E501
419
+ raise ValueError("Invalid value for `node_type`, must not be `None`") # noqa: E501
420
+
421
+ self._node_type = node_type
422
+
423
+ def to_dict(self):
424
+ """Returns the model properties as a dict"""
425
+ result = {}
426
+
427
+ for attr, _ in six.iteritems(self.openapi_types):
428
+ value = getattr(self, attr)
429
+ if isinstance(value, list):
430
+ result[attr] = list(map(
431
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
432
+ value
433
+ ))
434
+ elif hasattr(value, "to_dict"):
435
+ result[attr] = value.to_dict()
436
+ elif isinstance(value, dict):
437
+ result[attr] = dict(map(
438
+ lambda item: (item[0], item[1].to_dict())
439
+ if hasattr(item[1], "to_dict") else item,
440
+ value.items()
441
+ ))
442
+ else:
443
+ result[attr] = value
444
+
445
+ return result
446
+
447
+ def to_str(self):
448
+ """Returns the string representation of the model"""
449
+ return pprint.pformat(self.to_dict())
450
+
451
+ def __repr__(self):
452
+ """For `print` and `pprint`"""
453
+ return self.to_str()
454
+
455
+ def __eq__(self, other):
456
+ """Returns true if both objects are equal"""
457
+ if not isinstance(other, LineageGraphNode):
458
+ return False
459
+
460
+ return self.to_dict() == other.to_dict()
461
+
462
+ def __ne__(self, other):
463
+ """Returns true if both objects are not equal"""
464
+ if not isinstance(other, LineageGraphNode):
465
+ return True
466
+
467
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,100 @@
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 LineageNodeType(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
+ allowed enum values
30
+ """
31
+ ARTIFACT = "ARTIFACT"
32
+ WORKLOAD = "WORKLOAD"
33
+
34
+ allowable_values = [ARTIFACT, WORKLOAD] # noqa: E501
35
+
36
+ """
37
+ Attributes:
38
+ openapi_types (dict): The key is attribute name
39
+ and the value is attribute type.
40
+ attribute_map (dict): The key is attribute name
41
+ and the value is json key in definition.
42
+ """
43
+ openapi_types = {
44
+ }
45
+
46
+ attribute_map = {
47
+ }
48
+
49
+ def __init__(self, local_vars_configuration=None): # noqa: E501
50
+ """LineageNodeType - 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
+ self.discriminator = None
55
+
56
+ def to_dict(self):
57
+ """Returns the model properties as a dict"""
58
+ result = {}
59
+
60
+ for attr, _ in six.iteritems(self.openapi_types):
61
+ value = getattr(self, attr)
62
+ if isinstance(value, list):
63
+ result[attr] = list(map(
64
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
65
+ value
66
+ ))
67
+ elif hasattr(value, "to_dict"):
68
+ result[attr] = value.to_dict()
69
+ elif isinstance(value, dict):
70
+ result[attr] = dict(map(
71
+ lambda item: (item[0], item[1].to_dict())
72
+ if hasattr(item[1], "to_dict") else item,
73
+ value.items()
74
+ ))
75
+ else:
76
+ result[attr] = value
77
+
78
+ return result
79
+
80
+ def to_str(self):
81
+ """Returns the string representation of the model"""
82
+ return pprint.pformat(self.to_dict())
83
+
84
+ def __repr__(self):
85
+ """For `print` and `pprint`"""
86
+ return self.to_str()
87
+
88
+ def __eq__(self, other):
89
+ """Returns true if both objects are equal"""
90
+ if not isinstance(other, LineageNodeType):
91
+ return False
92
+
93
+ return self.to_dict() == other.to_dict()
94
+
95
+ def __ne__(self, other):
96
+ """Returns true if both objects are not equal"""
97
+ if not isinstance(other, LineageNodeType):
98
+ return True
99
+
100
+ return self.to_dict() != other.to_dict()