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,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 LineageWorkload(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
+ }
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
+ 'workload_type': 'workload_type',
58
+ 'anyscale_workload_id': 'anyscale_workload_id'
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, workload_type=None, anyscale_workload_id=None, local_vars_configuration=None): # noqa: E501
62
+ """LineageWorkload - 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._workload_type = None
76
+ self._anyscale_workload_id = 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.workload_type = workload_type
88
+ if anyscale_workload_id is not None:
89
+ self.anyscale_workload_id = anyscale_workload_id
90
+
91
+ @property
92
+ def id(self):
93
+ """Gets the id of this LineageWorkload. # noqa: E501
94
+
95
+ ID of the lineage node # noqa: E501
96
+
97
+ :return: The id of this LineageWorkload. # 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 LineageWorkload.
105
+
106
+ ID of the lineage node # noqa: E501
107
+
108
+ :param id: The id of this LineageWorkload. # 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 LineageWorkload. # noqa: E501
119
+
120
+ Name of the node # noqa: E501
121
+
122
+ :return: The name of this LineageWorkload. # 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 LineageWorkload.
130
+
131
+ Name of the node # noqa: E501
132
+
133
+ :param name: The name of this LineageWorkload. # 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 LineageWorkload. # noqa: E501
144
+
145
+ Namespace name # noqa: E501
146
+
147
+ :return: The namespace_name of this LineageWorkload. # 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 LineageWorkload.
155
+
156
+ Namespace name # noqa: E501
157
+
158
+ :param namespace_name: The namespace_name of this LineageWorkload. # 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 LineageWorkload. # noqa: E501
169
+
170
+ URI of the node # noqa: E501
171
+
172
+ :return: The uri of this LineageWorkload. # 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 LineageWorkload.
180
+
181
+ URI of the node # noqa: E501
182
+
183
+ :param uri: The uri of this LineageWorkload. # 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 LineageWorkload. # noqa: E501
194
+
195
+ Creation datetime # noqa: E501
196
+
197
+ :return: The created_at of this LineageWorkload. # 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 LineageWorkload.
205
+
206
+ Creation datetime # noqa: E501
207
+
208
+ :param created_at: The created_at of this LineageWorkload. # 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 LineageWorkload. # noqa: E501
219
+
220
+ Last update datetime # noqa: E501
221
+
222
+ :return: The updated_at of this LineageWorkload. # 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 LineageWorkload.
230
+
231
+ Last update datetime # noqa: E501
232
+
233
+ :param updated_at: The updated_at of this LineageWorkload. # 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 LineageWorkload. # noqa: E501
244
+
245
+ User who created the node # noqa: E501
246
+
247
+ :return: The created_by of this LineageWorkload. # 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 LineageWorkload.
255
+
256
+ User who created the node # noqa: E501
257
+
258
+ :param created_by: The created_by of this LineageWorkload. # 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 LineageWorkload. # noqa: E501
269
+
270
+ User who last updated the node # noqa: E501
271
+
272
+ :return: The updated_by of this LineageWorkload. # 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 LineageWorkload.
280
+
281
+ User who last updated the node # noqa: E501
282
+
283
+ :param updated_by: The updated_by of this LineageWorkload. # 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 workload_type(self):
293
+ """Gets the workload_type of this LineageWorkload. # noqa: E501
294
+
295
+ Type of workload (WORKSPACE/SERVICE/JOB) # noqa: E501
296
+
297
+ :return: The workload_type of this LineageWorkload. # noqa: E501
298
+ :rtype: LineageWorkloadType
299
+ """
300
+ return self._workload_type
301
+
302
+ @workload_type.setter
303
+ def workload_type(self, workload_type):
304
+ """Sets the workload_type of this LineageWorkload.
305
+
306
+ Type of workload (WORKSPACE/SERVICE/JOB) # noqa: E501
307
+
308
+ :param workload_type: The workload_type of this LineageWorkload. # noqa: E501
309
+ :type: LineageWorkloadType
310
+ """
311
+ if self.local_vars_configuration.client_side_validation and workload_type is None: # noqa: E501
312
+ raise ValueError("Invalid value for `workload_type`, must not be `None`") # noqa: E501
313
+
314
+ self._workload_type = workload_type
315
+
316
+ @property
317
+ def anyscale_workload_id(self):
318
+ """Gets the anyscale_workload_id of this LineageWorkload. # noqa: E501
319
+
320
+ Anyscale workload ID # noqa: E501
321
+
322
+ :return: The anyscale_workload_id of this LineageWorkload. # noqa: E501
323
+ :rtype: str
324
+ """
325
+ return self._anyscale_workload_id
326
+
327
+ @anyscale_workload_id.setter
328
+ def anyscale_workload_id(self, anyscale_workload_id):
329
+ """Sets the anyscale_workload_id of this LineageWorkload.
330
+
331
+ Anyscale workload ID # noqa: E501
332
+
333
+ :param anyscale_workload_id: The anyscale_workload_id of this LineageWorkload. # noqa: E501
334
+ :type: str
335
+ """
336
+
337
+ self._anyscale_workload_id = anyscale_workload_id
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, LineageWorkload):
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, LineageWorkload):
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 LineageWorkloadSortField(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
+ """LineageWorkloadSortField - 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, LineageWorkloadSortField):
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, LineageWorkloadSortField):
99
+ return True
100
+
101
+ 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 LineageWorkloadType(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
+ WORKSPACE = "ANYSCALE_WORKSPACE"
32
+ SERVICE = "ANYSCALE_SERVICE"
33
+ JOB = "ANYSCALE_JOB"
34
+
35
+ allowable_values = [WORKSPACE, SERVICE, JOB] # 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
+ """LineageWorkloadType - 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, LineageWorkloadType):
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, LineageWorkloadType):
99
+ return True
100
+
101
+ return self.to_dict() != other.to_dict()