anyscale 0.26.59__py3-none-any.whl → 0.26.61__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.
@@ -0,0 +1,361 @@
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 ClusterDashboardNode(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
+ 'node_id': 'str',
37
+ 'node_ip': 'str',
38
+ 'name': 'str',
39
+ 'status': 'NodeStatus',
40
+ 'is_head_node': 'bool',
41
+ 'resources': 'dict(str, float)',
42
+ 'labels': 'dict(str, str)',
43
+ 'start_time_ms': 'int',
44
+ 'end_time_ms': 'int',
45
+ 'ray_session_name': 'str'
46
+ }
47
+
48
+ attribute_map = {
49
+ 'node_id': 'node_id',
50
+ 'node_ip': 'node_ip',
51
+ 'name': 'name',
52
+ 'status': 'status',
53
+ 'is_head_node': 'is_head_node',
54
+ 'resources': 'resources',
55
+ 'labels': 'labels',
56
+ 'start_time_ms': 'start_time_ms',
57
+ 'end_time_ms': 'end_time_ms',
58
+ 'ray_session_name': 'ray_session_name'
59
+ }
60
+
61
+ def __init__(self, node_id=None, node_ip=None, name=None, status=None, is_head_node=None, resources=None, labels=None, start_time_ms=None, end_time_ms=None, ray_session_name=None, local_vars_configuration=None): # noqa: E501
62
+ """ClusterDashboardNode - 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._node_id = None
68
+ self._node_ip = None
69
+ self._name = None
70
+ self._status = None
71
+ self._is_head_node = None
72
+ self._resources = None
73
+ self._labels = None
74
+ self._start_time_ms = None
75
+ self._end_time_ms = None
76
+ self._ray_session_name = None
77
+ self.discriminator = None
78
+
79
+ self.node_id = node_id
80
+ self.node_ip = node_ip
81
+ self.name = name
82
+ self.status = status
83
+ self.is_head_node = is_head_node
84
+ self.resources = resources
85
+ self.labels = labels
86
+ if start_time_ms is not None:
87
+ self.start_time_ms = start_time_ms
88
+ if end_time_ms is not None:
89
+ self.end_time_ms = end_time_ms
90
+ if ray_session_name is not None:
91
+ self.ray_session_name = ray_session_name
92
+
93
+ @property
94
+ def node_id(self):
95
+ """Gets the node_id of this ClusterDashboardNode. # noqa: E501
96
+
97
+
98
+ :return: The node_id of this ClusterDashboardNode. # noqa: E501
99
+ :rtype: str
100
+ """
101
+ return self._node_id
102
+
103
+ @node_id.setter
104
+ def node_id(self, node_id):
105
+ """Sets the node_id of this ClusterDashboardNode.
106
+
107
+
108
+ :param node_id: The node_id of this ClusterDashboardNode. # noqa: E501
109
+ :type: str
110
+ """
111
+ if self.local_vars_configuration.client_side_validation and node_id is None: # noqa: E501
112
+ raise ValueError("Invalid value for `node_id`, must not be `None`") # noqa: E501
113
+
114
+ self._node_id = node_id
115
+
116
+ @property
117
+ def node_ip(self):
118
+ """Gets the node_ip of this ClusterDashboardNode. # noqa: E501
119
+
120
+
121
+ :return: The node_ip of this ClusterDashboardNode. # noqa: E501
122
+ :rtype: str
123
+ """
124
+ return self._node_ip
125
+
126
+ @node_ip.setter
127
+ def node_ip(self, node_ip):
128
+ """Sets the node_ip of this ClusterDashboardNode.
129
+
130
+
131
+ :param node_ip: The node_ip of this ClusterDashboardNode. # noqa: E501
132
+ :type: str
133
+ """
134
+ if self.local_vars_configuration.client_side_validation and node_ip is None: # noqa: E501
135
+ raise ValueError("Invalid value for `node_ip`, must not be `None`") # noqa: E501
136
+
137
+ self._node_ip = node_ip
138
+
139
+ @property
140
+ def name(self):
141
+ """Gets the name of this ClusterDashboardNode. # noqa: E501
142
+
143
+
144
+ :return: The name of this ClusterDashboardNode. # noqa: E501
145
+ :rtype: str
146
+ """
147
+ return self._name
148
+
149
+ @name.setter
150
+ def name(self, name):
151
+ """Sets the name of this ClusterDashboardNode.
152
+
153
+
154
+ :param name: The name of this ClusterDashboardNode. # noqa: E501
155
+ :type: str
156
+ """
157
+ if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
158
+ raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
159
+
160
+ self._name = name
161
+
162
+ @property
163
+ def status(self):
164
+ """Gets the status of this ClusterDashboardNode. # noqa: E501
165
+
166
+
167
+ :return: The status of this ClusterDashboardNode. # noqa: E501
168
+ :rtype: NodeStatus
169
+ """
170
+ return self._status
171
+
172
+ @status.setter
173
+ def status(self, status):
174
+ """Sets the status of this ClusterDashboardNode.
175
+
176
+
177
+ :param status: The status of this ClusterDashboardNode. # noqa: E501
178
+ :type: NodeStatus
179
+ """
180
+ if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501
181
+ raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501
182
+
183
+ self._status = status
184
+
185
+ @property
186
+ def is_head_node(self):
187
+ """Gets the is_head_node of this ClusterDashboardNode. # noqa: E501
188
+
189
+
190
+ :return: The is_head_node of this ClusterDashboardNode. # noqa: E501
191
+ :rtype: bool
192
+ """
193
+ return self._is_head_node
194
+
195
+ @is_head_node.setter
196
+ def is_head_node(self, is_head_node):
197
+ """Sets the is_head_node of this ClusterDashboardNode.
198
+
199
+
200
+ :param is_head_node: The is_head_node of this ClusterDashboardNode. # noqa: E501
201
+ :type: bool
202
+ """
203
+ if self.local_vars_configuration.client_side_validation and is_head_node is None: # noqa: E501
204
+ raise ValueError("Invalid value for `is_head_node`, must not be `None`") # noqa: E501
205
+
206
+ self._is_head_node = is_head_node
207
+
208
+ @property
209
+ def resources(self):
210
+ """Gets the resources of this ClusterDashboardNode. # noqa: E501
211
+
212
+
213
+ :return: The resources of this ClusterDashboardNode. # noqa: E501
214
+ :rtype: dict(str, float)
215
+ """
216
+ return self._resources
217
+
218
+ @resources.setter
219
+ def resources(self, resources):
220
+ """Sets the resources of this ClusterDashboardNode.
221
+
222
+
223
+ :param resources: The resources of this ClusterDashboardNode. # noqa: E501
224
+ :type: dict(str, float)
225
+ """
226
+ if self.local_vars_configuration.client_side_validation and resources is None: # noqa: E501
227
+ raise ValueError("Invalid value for `resources`, must not be `None`") # noqa: E501
228
+
229
+ self._resources = resources
230
+
231
+ @property
232
+ def labels(self):
233
+ """Gets the labels of this ClusterDashboardNode. # noqa: E501
234
+
235
+
236
+ :return: The labels of this ClusterDashboardNode. # noqa: E501
237
+ :rtype: dict(str, str)
238
+ """
239
+ return self._labels
240
+
241
+ @labels.setter
242
+ def labels(self, labels):
243
+ """Sets the labels of this ClusterDashboardNode.
244
+
245
+
246
+ :param labels: The labels of this ClusterDashboardNode. # noqa: E501
247
+ :type: dict(str, str)
248
+ """
249
+ if self.local_vars_configuration.client_side_validation and labels is None: # noqa: E501
250
+ raise ValueError("Invalid value for `labels`, must not be `None`") # noqa: E501
251
+
252
+ self._labels = labels
253
+
254
+ @property
255
+ def start_time_ms(self):
256
+ """Gets the start_time_ms of this ClusterDashboardNode. # noqa: E501
257
+
258
+
259
+ :return: The start_time_ms of this ClusterDashboardNode. # noqa: E501
260
+ :rtype: int
261
+ """
262
+ return self._start_time_ms
263
+
264
+ @start_time_ms.setter
265
+ def start_time_ms(self, start_time_ms):
266
+ """Sets the start_time_ms of this ClusterDashboardNode.
267
+
268
+
269
+ :param start_time_ms: The start_time_ms of this ClusterDashboardNode. # noqa: E501
270
+ :type: int
271
+ """
272
+
273
+ self._start_time_ms = start_time_ms
274
+
275
+ @property
276
+ def end_time_ms(self):
277
+ """Gets the end_time_ms of this ClusterDashboardNode. # noqa: E501
278
+
279
+
280
+ :return: The end_time_ms of this ClusterDashboardNode. # noqa: E501
281
+ :rtype: int
282
+ """
283
+ return self._end_time_ms
284
+
285
+ @end_time_ms.setter
286
+ def end_time_ms(self, end_time_ms):
287
+ """Sets the end_time_ms of this ClusterDashboardNode.
288
+
289
+
290
+ :param end_time_ms: The end_time_ms of this ClusterDashboardNode. # noqa: E501
291
+ :type: int
292
+ """
293
+
294
+ self._end_time_ms = end_time_ms
295
+
296
+ @property
297
+ def ray_session_name(self):
298
+ """Gets the ray_session_name of this ClusterDashboardNode. # noqa: E501
299
+
300
+
301
+ :return: The ray_session_name of this ClusterDashboardNode. # noqa: E501
302
+ :rtype: str
303
+ """
304
+ return self._ray_session_name
305
+
306
+ @ray_session_name.setter
307
+ def ray_session_name(self, ray_session_name):
308
+ """Sets the ray_session_name of this ClusterDashboardNode.
309
+
310
+
311
+ :param ray_session_name: The ray_session_name of this ClusterDashboardNode. # noqa: E501
312
+ :type: str
313
+ """
314
+
315
+ self._ray_session_name = ray_session_name
316
+
317
+ def to_dict(self):
318
+ """Returns the model properties as a dict"""
319
+ result = {}
320
+
321
+ for attr, _ in six.iteritems(self.openapi_types):
322
+ value = getattr(self, attr)
323
+ if isinstance(value, list):
324
+ result[attr] = list(map(
325
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
326
+ value
327
+ ))
328
+ elif hasattr(value, "to_dict"):
329
+ result[attr] = value.to_dict()
330
+ elif isinstance(value, dict):
331
+ result[attr] = dict(map(
332
+ lambda item: (item[0], item[1].to_dict())
333
+ if hasattr(item[1], "to_dict") else item,
334
+ value.items()
335
+ ))
336
+ else:
337
+ result[attr] = value
338
+
339
+ return result
340
+
341
+ def to_str(self):
342
+ """Returns the string representation of the model"""
343
+ return pprint.pformat(self.to_dict())
344
+
345
+ def __repr__(self):
346
+ """For `print` and `pprint`"""
347
+ return self.to_str()
348
+
349
+ def __eq__(self, other):
350
+ """Returns true if both objects are equal"""
351
+ if not isinstance(other, ClusterDashboardNode):
352
+ return False
353
+
354
+ return self.to_dict() == other.to_dict()
355
+
356
+ def __ne__(self, other):
357
+ """Returns true if both objects are not equal"""
358
+ if not isinstance(other, ClusterDashboardNode):
359
+ return True
360
+
361
+ 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 ClusterdashboardnodeListResponse(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[ClusterDashboardNode]',
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
+ """ClusterdashboardnodeListResponse - 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 ClusterdashboardnodeListResponse. # noqa: E501
62
+
63
+
64
+ :return: The results of this ClusterdashboardnodeListResponse. # noqa: E501
65
+ :rtype: list[ClusterDashboardNode]
66
+ """
67
+ return self._results
68
+
69
+ @results.setter
70
+ def results(self, results):
71
+ """Sets the results of this ClusterdashboardnodeListResponse.
72
+
73
+
74
+ :param results: The results of this ClusterdashboardnodeListResponse. # noqa: E501
75
+ :type: list[ClusterDashboardNode]
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 ClusterdashboardnodeListResponse. # noqa: E501
85
+
86
+
87
+ :return: The metadata of this ClusterdashboardnodeListResponse. # 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 ClusterdashboardnodeListResponse.
95
+
96
+
97
+ :param metadata: The metadata of this ClusterdashboardnodeListResponse. # 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, ClusterdashboardnodeListResponse):
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, ClusterdashboardnodeListResponse):
145
+ return True
146
+
147
+ return self.to_dict() != other.to_dict()
@@ -43,7 +43,8 @@ class DatasetMetrics(object):
43
43
  'start_time': 'float',
44
44
  'end_time': 'float',
45
45
  'operator_metrics': 'list[OperatorMetrics]',
46
- 'metrics': 'dict(str, Metric)'
46
+ 'metrics': 'dict(str, Metric)',
47
+ 'operator_panels': 'list[DashboardPanel]'
47
48
  }
48
49
 
49
50
  attribute_map = {
@@ -57,10 +58,11 @@ class DatasetMetrics(object):
57
58
  'start_time': 'start_time',
58
59
  'end_time': 'end_time',
59
60
  'operator_metrics': 'operator_metrics',
60
- 'metrics': 'metrics'
61
+ 'metrics': 'metrics',
62
+ 'operator_panels': 'operator_panels'
61
63
  }
62
64
 
63
- def __init__(self, id=None, name=None, job_id=None, session_name=None, state=None, progress=None, total=None, start_time=None, end_time=None, operator_metrics=None, metrics=None, local_vars_configuration=None): # noqa: E501
65
+ def __init__(self, id=None, name=None, job_id=None, session_name=None, state=None, progress=None, total=None, start_time=None, end_time=None, operator_metrics=None, metrics=None, operator_panels=None, local_vars_configuration=None): # noqa: E501
64
66
  """DatasetMetrics - a model defined in OpenAPI""" # noqa: E501
65
67
  if local_vars_configuration is None:
66
68
  local_vars_configuration = Configuration()
@@ -77,6 +79,7 @@ class DatasetMetrics(object):
77
79
  self._end_time = None
78
80
  self._operator_metrics = None
79
81
  self._metrics = None
82
+ self._operator_panels = None
80
83
  self.discriminator = None
81
84
 
82
85
  self.id = id
@@ -92,6 +95,8 @@ class DatasetMetrics(object):
92
95
  self.end_time = end_time
93
96
  self.operator_metrics = operator_metrics
94
97
  self.metrics = metrics
98
+ if operator_panels is not None:
99
+ self.operator_panels = operator_panels
95
100
 
96
101
  @property
97
102
  def id(self):
@@ -342,6 +347,27 @@ class DatasetMetrics(object):
342
347
 
343
348
  self._metrics = metrics
344
349
 
350
+ @property
351
+ def operator_panels(self):
352
+ """Gets the operator_panels of this DatasetMetrics. # noqa: E501
353
+
354
+
355
+ :return: The operator_panels of this DatasetMetrics. # noqa: E501
356
+ :rtype: list[DashboardPanel]
357
+ """
358
+ return self._operator_panels
359
+
360
+ @operator_panels.setter
361
+ def operator_panels(self, operator_panels):
362
+ """Sets the operator_panels of this DatasetMetrics.
363
+
364
+
365
+ :param operator_panels: The operator_panels of this DatasetMetrics. # noqa: E501
366
+ :type: list[DashboardPanel]
367
+ """
368
+
369
+ self._operator_panels = operator_panels
370
+
345
371
  def to_dict(self):
346
372
  """Returns the model properties as a dict"""
347
373
  result = {}
@@ -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 NodeStatus(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
+ ALIVE = "ALIVE"
32
+ DEAD = "DEAD"
33
+ PENDING = "PENDING"
34
+
35
+ allowable_values = [ALIVE, DEAD, PENDING] # 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
+ """NodeStatus - 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, NodeStatus):
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, NodeStatus):
99
+ return True
100
+
101
+ return self.to_dict() != other.to_dict()