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