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
@@ -373,6 +373,21 @@ from openapi_client.models.kubernetes_manager_registration_response import Kuber
373
373
  from openapi_client.models.kubernetesmanagerregistrationresponse_response import KubernetesmanagerregistrationresponseResponse
374
374
  from openapi_client.models.lb_resource import LBResource
375
375
  from openapi_client.models.lbresource_response import LbresourceResponse
376
+ from openapi_client.models.lineage_artifact import LineageArtifact
377
+ from openapi_client.models.lineage_artifact_sort_field import LineageArtifactSortField
378
+ from openapi_client.models.lineage_artifact_type import LineageArtifactType
379
+ from openapi_client.models.lineage_direction import LineageDirection
380
+ from openapi_client.models.lineage_graph import LineageGraph
381
+ from openapi_client.models.lineage_graph_node import LineageGraphNode
382
+ from openapi_client.models.lineage_node_type import LineageNodeType
383
+ from openapi_client.models.lineage_workload import LineageWorkload
384
+ from openapi_client.models.lineage_workload_sort_field import LineageWorkloadSortField
385
+ from openapi_client.models.lineage_workload_type import LineageWorkloadType
386
+ from openapi_client.models.lineageartifact_list_response import LineageartifactListResponse
387
+ from openapi_client.models.lineageartifact_response import LineageartifactResponse
388
+ from openapi_client.models.lineagegraph_response import LineagegraphResponse
389
+ from openapi_client.models.lineageworkload_list_response import LineageworkloadListResponse
390
+ from openapi_client.models.lineageworkload_response import LineageworkloadResponse
376
391
  from openapi_client.models.list_databricks_connections import ListDatabricksConnections
377
392
  from openapi_client.models.list_machine_pools_response import ListMachinePoolsResponse
378
393
  from openapi_client.models.list_machines_response import ListMachinesResponse
@@ -0,0 +1,383 @@
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 LineageArtifact(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
+ 'artifact_type': 'LineageArtifactType',
45
+ 'artifact_file_format': 'str'
46
+ }
47
+
48
+ attribute_map = {
49
+ 'id': 'id',
50
+ 'name': 'name',
51
+ 'namespace_name': 'namespace_name',
52
+ 'uri': 'uri',
53
+ 'created_at': 'created_at',
54
+ 'updated_at': 'updated_at',
55
+ 'created_by': 'created_by',
56
+ 'updated_by': 'updated_by',
57
+ 'artifact_type': 'artifact_type',
58
+ 'artifact_file_format': 'artifact_file_format'
59
+ }
60
+
61
+ def __init__(self, id=None, name=None, namespace_name=None, uri=None, created_at=None, updated_at=None, created_by=None, updated_by=None, artifact_type=None, artifact_file_format=None, local_vars_configuration=None): # noqa: E501
62
+ """LineageArtifact - 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._id = None
68
+ self._name = None
69
+ self._namespace_name = None
70
+ self._uri = None
71
+ self._created_at = None
72
+ self._updated_at = None
73
+ self._created_by = None
74
+ self._updated_by = None
75
+ self._artifact_type = None
76
+ self._artifact_file_format = None
77
+ self.discriminator = None
78
+
79
+ self.id = id
80
+ self.name = name
81
+ self.namespace_name = namespace_name
82
+ self.uri = uri
83
+ self.created_at = created_at
84
+ self.updated_at = updated_at
85
+ self.created_by = created_by
86
+ self.updated_by = updated_by
87
+ self.artifact_type = artifact_type
88
+ if artifact_file_format is not None:
89
+ self.artifact_file_format = artifact_file_format
90
+
91
+ @property
92
+ def id(self):
93
+ """Gets the id of this LineageArtifact. # noqa: E501
94
+
95
+ ID of the lineage node # noqa: E501
96
+
97
+ :return: The id of this LineageArtifact. # noqa: E501
98
+ :rtype: str
99
+ """
100
+ return self._id
101
+
102
+ @id.setter
103
+ def id(self, id):
104
+ """Sets the id of this LineageArtifact.
105
+
106
+ ID of the lineage node # noqa: E501
107
+
108
+ :param id: The id of this LineageArtifact. # noqa: E501
109
+ :type: str
110
+ """
111
+ if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
112
+ raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
113
+
114
+ self._id = id
115
+
116
+ @property
117
+ def name(self):
118
+ """Gets the name of this LineageArtifact. # noqa: E501
119
+
120
+ Name of the node # noqa: E501
121
+
122
+ :return: The name of this LineageArtifact. # noqa: E501
123
+ :rtype: str
124
+ """
125
+ return self._name
126
+
127
+ @name.setter
128
+ def name(self, name):
129
+ """Sets the name of this LineageArtifact.
130
+
131
+ Name of the node # noqa: E501
132
+
133
+ :param name: The name of this LineageArtifact. # noqa: E501
134
+ :type: str
135
+ """
136
+ if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
137
+ raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
138
+
139
+ self._name = name
140
+
141
+ @property
142
+ def namespace_name(self):
143
+ """Gets the namespace_name of this LineageArtifact. # noqa: E501
144
+
145
+ Namespace name # noqa: E501
146
+
147
+ :return: The namespace_name of this LineageArtifact. # noqa: E501
148
+ :rtype: str
149
+ """
150
+ return self._namespace_name
151
+
152
+ @namespace_name.setter
153
+ def namespace_name(self, namespace_name):
154
+ """Sets the namespace_name of this LineageArtifact.
155
+
156
+ Namespace name # noqa: E501
157
+
158
+ :param namespace_name: The namespace_name of this LineageArtifact. # noqa: E501
159
+ :type: str
160
+ """
161
+ if self.local_vars_configuration.client_side_validation and namespace_name is None: # noqa: E501
162
+ raise ValueError("Invalid value for `namespace_name`, must not be `None`") # noqa: E501
163
+
164
+ self._namespace_name = namespace_name
165
+
166
+ @property
167
+ def uri(self):
168
+ """Gets the uri of this LineageArtifact. # noqa: E501
169
+
170
+ URI of the node # noqa: E501
171
+
172
+ :return: The uri of this LineageArtifact. # noqa: E501
173
+ :rtype: str
174
+ """
175
+ return self._uri
176
+
177
+ @uri.setter
178
+ def uri(self, uri):
179
+ """Sets the uri of this LineageArtifact.
180
+
181
+ URI of the node # noqa: E501
182
+
183
+ :param uri: The uri of this LineageArtifact. # noqa: E501
184
+ :type: str
185
+ """
186
+ if self.local_vars_configuration.client_side_validation and uri is None: # noqa: E501
187
+ raise ValueError("Invalid value for `uri`, must not be `None`") # noqa: E501
188
+
189
+ self._uri = uri
190
+
191
+ @property
192
+ def created_at(self):
193
+ """Gets the created_at of this LineageArtifact. # noqa: E501
194
+
195
+ Creation datetime # noqa: E501
196
+
197
+ :return: The created_at of this LineageArtifact. # noqa: E501
198
+ :rtype: datetime
199
+ """
200
+ return self._created_at
201
+
202
+ @created_at.setter
203
+ def created_at(self, created_at):
204
+ """Sets the created_at of this LineageArtifact.
205
+
206
+ Creation datetime # noqa: E501
207
+
208
+ :param created_at: The created_at of this LineageArtifact. # noqa: E501
209
+ :type: datetime
210
+ """
211
+ if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501
212
+ raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501
213
+
214
+ self._created_at = created_at
215
+
216
+ @property
217
+ def updated_at(self):
218
+ """Gets the updated_at of this LineageArtifact. # noqa: E501
219
+
220
+ Last update datetime # noqa: E501
221
+
222
+ :return: The updated_at of this LineageArtifact. # noqa: E501
223
+ :rtype: datetime
224
+ """
225
+ return self._updated_at
226
+
227
+ @updated_at.setter
228
+ def updated_at(self, updated_at):
229
+ """Sets the updated_at of this LineageArtifact.
230
+
231
+ Last update datetime # noqa: E501
232
+
233
+ :param updated_at: The updated_at of this LineageArtifact. # noqa: E501
234
+ :type: datetime
235
+ """
236
+ if self.local_vars_configuration.client_side_validation and updated_at is None: # noqa: E501
237
+ raise ValueError("Invalid value for `updated_at`, must not be `None`") # noqa: E501
238
+
239
+ self._updated_at = updated_at
240
+
241
+ @property
242
+ def created_by(self):
243
+ """Gets the created_by of this LineageArtifact. # noqa: E501
244
+
245
+ User who created the node # noqa: E501
246
+
247
+ :return: The created_by of this LineageArtifact. # noqa: E501
248
+ :rtype: str
249
+ """
250
+ return self._created_by
251
+
252
+ @created_by.setter
253
+ def created_by(self, created_by):
254
+ """Sets the created_by of this LineageArtifact.
255
+
256
+ User who created the node # noqa: E501
257
+
258
+ :param created_by: The created_by of this LineageArtifact. # noqa: E501
259
+ :type: str
260
+ """
261
+ if self.local_vars_configuration.client_side_validation and created_by is None: # noqa: E501
262
+ raise ValueError("Invalid value for `created_by`, must not be `None`") # noqa: E501
263
+
264
+ self._created_by = created_by
265
+
266
+ @property
267
+ def updated_by(self):
268
+ """Gets the updated_by of this LineageArtifact. # noqa: E501
269
+
270
+ User who last updated the node # noqa: E501
271
+
272
+ :return: The updated_by of this LineageArtifact. # noqa: E501
273
+ :rtype: str
274
+ """
275
+ return self._updated_by
276
+
277
+ @updated_by.setter
278
+ def updated_by(self, updated_by):
279
+ """Sets the updated_by of this LineageArtifact.
280
+
281
+ User who last updated the node # noqa: E501
282
+
283
+ :param updated_by: The updated_by of this LineageArtifact. # noqa: E501
284
+ :type: str
285
+ """
286
+ if self.local_vars_configuration.client_side_validation and updated_by is None: # noqa: E501
287
+ raise ValueError("Invalid value for `updated_by`, must not be `None`") # noqa: E501
288
+
289
+ self._updated_by = updated_by
290
+
291
+ @property
292
+ def artifact_type(self):
293
+ """Gets the artifact_type of this LineageArtifact. # noqa: E501
294
+
295
+ Type of artifact (DATASET/MODEL) # noqa: E501
296
+
297
+ :return: The artifact_type of this LineageArtifact. # noqa: E501
298
+ :rtype: LineageArtifactType
299
+ """
300
+ return self._artifact_type
301
+
302
+ @artifact_type.setter
303
+ def artifact_type(self, artifact_type):
304
+ """Sets the artifact_type of this LineageArtifact.
305
+
306
+ Type of artifact (DATASET/MODEL) # noqa: E501
307
+
308
+ :param artifact_type: The artifact_type of this LineageArtifact. # noqa: E501
309
+ :type: LineageArtifactType
310
+ """
311
+ if self.local_vars_configuration.client_side_validation and artifact_type is None: # noqa: E501
312
+ raise ValueError("Invalid value for `artifact_type`, must not be `None`") # noqa: E501
313
+
314
+ self._artifact_type = artifact_type
315
+
316
+ @property
317
+ def artifact_file_format(self):
318
+ """Gets the artifact_file_format of this LineageArtifact. # noqa: E501
319
+
320
+ File format (e.g., parquet, csv) # noqa: E501
321
+
322
+ :return: The artifact_file_format of this LineageArtifact. # noqa: E501
323
+ :rtype: str
324
+ """
325
+ return self._artifact_file_format
326
+
327
+ @artifact_file_format.setter
328
+ def artifact_file_format(self, artifact_file_format):
329
+ """Sets the artifact_file_format of this LineageArtifact.
330
+
331
+ File format (e.g., parquet, csv) # noqa: E501
332
+
333
+ :param artifact_file_format: The artifact_file_format of this LineageArtifact. # noqa: E501
334
+ :type: str
335
+ """
336
+
337
+ self._artifact_file_format = artifact_file_format
338
+
339
+ def to_dict(self):
340
+ """Returns the model properties as a dict"""
341
+ result = {}
342
+
343
+ for attr, _ in six.iteritems(self.openapi_types):
344
+ value = getattr(self, attr)
345
+ if isinstance(value, list):
346
+ result[attr] = list(map(
347
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
348
+ value
349
+ ))
350
+ elif hasattr(value, "to_dict"):
351
+ result[attr] = value.to_dict()
352
+ elif isinstance(value, dict):
353
+ result[attr] = dict(map(
354
+ lambda item: (item[0], item[1].to_dict())
355
+ if hasattr(item[1], "to_dict") else item,
356
+ value.items()
357
+ ))
358
+ else:
359
+ result[attr] = value
360
+
361
+ return result
362
+
363
+ def to_str(self):
364
+ """Returns the string representation of the model"""
365
+ return pprint.pformat(self.to_dict())
366
+
367
+ def __repr__(self):
368
+ """For `print` and `pprint`"""
369
+ return self.to_str()
370
+
371
+ def __eq__(self, other):
372
+ """Returns true if both objects are equal"""
373
+ if not isinstance(other, LineageArtifact):
374
+ return False
375
+
376
+ return self.to_dict() == other.to_dict()
377
+
378
+ def __ne__(self, other):
379
+ """Returns true if both objects are not equal"""
380
+ if not isinstance(other, LineageArtifact):
381
+ return True
382
+
383
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,101 @@
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 LineageArtifactSortField(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
+ NAME = "name"
32
+ CREATED_AT = "created_at"
33
+ UPDATED_AT = "updated_at"
34
+
35
+ allowable_values = [NAME, CREATED_AT, UPDATED_AT] # noqa: E501
36
+
37
+ """
38
+ Attributes:
39
+ openapi_types (dict): The key is attribute name
40
+ and the value is attribute type.
41
+ attribute_map (dict): The key is attribute name
42
+ and the value is json key in definition.
43
+ """
44
+ openapi_types = {
45
+ }
46
+
47
+ attribute_map = {
48
+ }
49
+
50
+ def __init__(self, local_vars_configuration=None): # noqa: E501
51
+ """LineageArtifactSortField - a model defined in OpenAPI""" # noqa: E501
52
+ if local_vars_configuration is None:
53
+ local_vars_configuration = Configuration()
54
+ self.local_vars_configuration = local_vars_configuration
55
+ self.discriminator = None
56
+
57
+ def to_dict(self):
58
+ """Returns the model properties as a dict"""
59
+ result = {}
60
+
61
+ for attr, _ in six.iteritems(self.openapi_types):
62
+ value = getattr(self, attr)
63
+ if isinstance(value, list):
64
+ result[attr] = list(map(
65
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
66
+ value
67
+ ))
68
+ elif hasattr(value, "to_dict"):
69
+ result[attr] = value.to_dict()
70
+ elif isinstance(value, dict):
71
+ result[attr] = dict(map(
72
+ lambda item: (item[0], item[1].to_dict())
73
+ if hasattr(item[1], "to_dict") else item,
74
+ value.items()
75
+ ))
76
+ else:
77
+ result[attr] = value
78
+
79
+ return result
80
+
81
+ def to_str(self):
82
+ """Returns the string representation of the model"""
83
+ return pprint.pformat(self.to_dict())
84
+
85
+ def __repr__(self):
86
+ """For `print` and `pprint`"""
87
+ return self.to_str()
88
+
89
+ def __eq__(self, other):
90
+ """Returns true if both objects are equal"""
91
+ if not isinstance(other, LineageArtifactSortField):
92
+ return False
93
+
94
+ return self.to_dict() == other.to_dict()
95
+
96
+ def __ne__(self, other):
97
+ """Returns true if both objects are not equal"""
98
+ if not isinstance(other, LineageArtifactSortField):
99
+ return True
100
+
101
+ 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 LineageArtifactType(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
+ DATASET = "DATASET"
32
+ MODEL = "MODEL"
33
+
34
+ allowable_values = [DATASET, MODEL] # 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
+ """LineageArtifactType - 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, LineageArtifactType):
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, LineageArtifactType):
98
+ return True
99
+
100
+ return self.to_dict() != other.to_dict()