anyscale 0.26.13__py3-none-any.whl → 0.26.15__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.
- anyscale/_private/anyscale_client/fake_anyscale_client.py +1 -1
- anyscale/_private/docgen/models.md +2 -2
- anyscale/_private/models/model_base.py +5 -2
- anyscale/_private/utils/progress_util.py +2 -2
- anyscale/_private/workload/workload_sdk.py +4 -3
- anyscale/anyscale-cloud-setup.yaml +4 -0
- anyscale/client/README.md +20 -2
- anyscale/client/openapi_client/__init__.py +14 -1
- anyscale/client/openapi_client/api/default_api.py +847 -241
- anyscale/client/openapi_client/models/__init__.py +14 -1
- anyscale/client/openapi_client/models/baseimagesenum.py +2 -4
- anyscale/client/openapi_client/models/supportedbaseimagesenum.py +2 -2
- anyscale/client/openapi_client/models/task_exception_group_aggregate.py +175 -0
- anyscale/client/openapi_client/models/task_exception_group_aggregate_response.py +174 -0
- anyscale/client/openapi_client/models/task_function_name_group_aggregate.py +202 -0
- anyscale/client/openapi_client/models/task_function_name_group_aggregate_response.py +174 -0
- anyscale/client/openapi_client/models/task_grouped_aggregate_metrics.py +337 -0
- anyscale/client/openapi_client/models/task_job_group_aggregate.py +175 -0
- anyscale/client/openapi_client/models/task_job_group_aggregate_response.py +174 -0
- anyscale/client/openapi_client/models/task_state.py +103 -0
- anyscale/client/openapi_client/models/task_summary.py +256 -0
- anyscale/client/openapi_client/models/task_table_config.py +250 -0
- anyscale/client/openapi_client/models/task_table_response.py +174 -0
- anyscale/client/openapi_client/models/task_table_row.py +491 -0
- anyscale/client/openapi_client/models/task_type.py +100 -0
- anyscale/client/openapi_client/models/tasksummary_response.py +121 -0
- anyscale/cloud_resource.py +1 -1
- anyscale/cloud_utils.py +6 -2
- anyscale/cluster_compute.py +4 -3
- anyscale/cluster_env.py +8 -5
- anyscale/commands/command_examples.py +22 -0
- anyscale/compute_config/_private/compute_config_sdk.py +1 -1
- anyscale/connect_utils/prepare_cluster.py +14 -4
- anyscale/controllers/cloud_controller.py +2 -2
- anyscale/controllers/cloud_functional_verification_controller.py +4 -2
- anyscale/controllers/service_controller.py +1 -1
- anyscale/project_utils.py +4 -3
- anyscale/sdk/anyscale_client/models/baseimagesenum.py +2 -4
- anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +2 -2
- anyscale/sdk/anyscale_client/sdk.py +4 -4
- anyscale/utils/connect_helpers.py +16 -3
- anyscale/utils/runtime_env.py +3 -1
- anyscale/version.py +1 -1
- anyscale/workspace/__init__.py +10 -5
- anyscale/workspace/_private/workspace_sdk.py +4 -4
- anyscale/workspace/commands.py +1 -1
- {anyscale-0.26.13.dist-info → anyscale-0.26.15.dist-info}/METADATA +1 -1
- {anyscale-0.26.13.dist-info → anyscale-0.26.15.dist-info}/RECORD +53 -40
- anyscale/client/openapi_client/models/buffer_registration.py +0 -285
- {anyscale-0.26.13.dist-info → anyscale-0.26.15.dist-info}/LICENSE +0 -0
- {anyscale-0.26.13.dist-info → anyscale-0.26.15.dist-info}/NOTICE +0 -0
- {anyscale-0.26.13.dist-info → anyscale-0.26.15.dist-info}/WHEEL +0 -0
- {anyscale-0.26.13.dist-info → anyscale-0.26.15.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.13.dist-info → anyscale-0.26.15.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,202 @@
|
|
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 TaskFunctionNameGroupAggregate(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
|
+
'function_name': 'str',
|
37
|
+
'task_type': 'TaskType',
|
38
|
+
'ray_session_name': 'str',
|
39
|
+
'metrics': 'TaskGroupedAggregateMetrics'
|
40
|
+
}
|
41
|
+
|
42
|
+
attribute_map = {
|
43
|
+
'function_name': 'function_name',
|
44
|
+
'task_type': 'task_type',
|
45
|
+
'ray_session_name': 'ray_session_name',
|
46
|
+
'metrics': 'metrics'
|
47
|
+
}
|
48
|
+
|
49
|
+
def __init__(self, function_name=None, task_type=None, ray_session_name=None, metrics=None, local_vars_configuration=None): # noqa: E501
|
50
|
+
"""TaskFunctionNameGroupAggregate - 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
|
+
|
55
|
+
self._function_name = None
|
56
|
+
self._task_type = None
|
57
|
+
self._ray_session_name = None
|
58
|
+
self._metrics = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
self.function_name = function_name
|
62
|
+
self.task_type = task_type
|
63
|
+
self.ray_session_name = ray_session_name
|
64
|
+
self.metrics = metrics
|
65
|
+
|
66
|
+
@property
|
67
|
+
def function_name(self):
|
68
|
+
"""Gets the function_name of this TaskFunctionNameGroupAggregate. # noqa: E501
|
69
|
+
|
70
|
+
|
71
|
+
:return: The function_name of this TaskFunctionNameGroupAggregate. # noqa: E501
|
72
|
+
:rtype: str
|
73
|
+
"""
|
74
|
+
return self._function_name
|
75
|
+
|
76
|
+
@function_name.setter
|
77
|
+
def function_name(self, function_name):
|
78
|
+
"""Sets the function_name of this TaskFunctionNameGroupAggregate.
|
79
|
+
|
80
|
+
|
81
|
+
:param function_name: The function_name of this TaskFunctionNameGroupAggregate. # noqa: E501
|
82
|
+
:type: str
|
83
|
+
"""
|
84
|
+
if self.local_vars_configuration.client_side_validation and function_name is None: # noqa: E501
|
85
|
+
raise ValueError("Invalid value for `function_name`, must not be `None`") # noqa: E501
|
86
|
+
|
87
|
+
self._function_name = function_name
|
88
|
+
|
89
|
+
@property
|
90
|
+
def task_type(self):
|
91
|
+
"""Gets the task_type of this TaskFunctionNameGroupAggregate. # noqa: E501
|
92
|
+
|
93
|
+
|
94
|
+
:return: The task_type of this TaskFunctionNameGroupAggregate. # noqa: E501
|
95
|
+
:rtype: TaskType
|
96
|
+
"""
|
97
|
+
return self._task_type
|
98
|
+
|
99
|
+
@task_type.setter
|
100
|
+
def task_type(self, task_type):
|
101
|
+
"""Sets the task_type of this TaskFunctionNameGroupAggregate.
|
102
|
+
|
103
|
+
|
104
|
+
:param task_type: The task_type of this TaskFunctionNameGroupAggregate. # noqa: E501
|
105
|
+
:type: TaskType
|
106
|
+
"""
|
107
|
+
if self.local_vars_configuration.client_side_validation and task_type is None: # noqa: E501
|
108
|
+
raise ValueError("Invalid value for `task_type`, must not be `None`") # noqa: E501
|
109
|
+
|
110
|
+
self._task_type = task_type
|
111
|
+
|
112
|
+
@property
|
113
|
+
def ray_session_name(self):
|
114
|
+
"""Gets the ray_session_name of this TaskFunctionNameGroupAggregate. # noqa: E501
|
115
|
+
|
116
|
+
|
117
|
+
:return: The ray_session_name of this TaskFunctionNameGroupAggregate. # noqa: E501
|
118
|
+
:rtype: str
|
119
|
+
"""
|
120
|
+
return self._ray_session_name
|
121
|
+
|
122
|
+
@ray_session_name.setter
|
123
|
+
def ray_session_name(self, ray_session_name):
|
124
|
+
"""Sets the ray_session_name of this TaskFunctionNameGroupAggregate.
|
125
|
+
|
126
|
+
|
127
|
+
:param ray_session_name: The ray_session_name of this TaskFunctionNameGroupAggregate. # noqa: E501
|
128
|
+
:type: str
|
129
|
+
"""
|
130
|
+
if self.local_vars_configuration.client_side_validation and ray_session_name is None: # noqa: E501
|
131
|
+
raise ValueError("Invalid value for `ray_session_name`, must not be `None`") # noqa: E501
|
132
|
+
|
133
|
+
self._ray_session_name = ray_session_name
|
134
|
+
|
135
|
+
@property
|
136
|
+
def metrics(self):
|
137
|
+
"""Gets the metrics of this TaskFunctionNameGroupAggregate. # noqa: E501
|
138
|
+
|
139
|
+
|
140
|
+
:return: The metrics of this TaskFunctionNameGroupAggregate. # noqa: E501
|
141
|
+
:rtype: TaskGroupedAggregateMetrics
|
142
|
+
"""
|
143
|
+
return self._metrics
|
144
|
+
|
145
|
+
@metrics.setter
|
146
|
+
def metrics(self, metrics):
|
147
|
+
"""Sets the metrics of this TaskFunctionNameGroupAggregate.
|
148
|
+
|
149
|
+
|
150
|
+
:param metrics: The metrics of this TaskFunctionNameGroupAggregate. # noqa: E501
|
151
|
+
:type: TaskGroupedAggregateMetrics
|
152
|
+
"""
|
153
|
+
if self.local_vars_configuration.client_side_validation and metrics is None: # noqa: E501
|
154
|
+
raise ValueError("Invalid value for `metrics`, must not be `None`") # noqa: E501
|
155
|
+
|
156
|
+
self._metrics = metrics
|
157
|
+
|
158
|
+
def to_dict(self):
|
159
|
+
"""Returns the model properties as a dict"""
|
160
|
+
result = {}
|
161
|
+
|
162
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
163
|
+
value = getattr(self, attr)
|
164
|
+
if isinstance(value, list):
|
165
|
+
result[attr] = list(map(
|
166
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
167
|
+
value
|
168
|
+
))
|
169
|
+
elif hasattr(value, "to_dict"):
|
170
|
+
result[attr] = value.to_dict()
|
171
|
+
elif isinstance(value, dict):
|
172
|
+
result[attr] = dict(map(
|
173
|
+
lambda item: (item[0], item[1].to_dict())
|
174
|
+
if hasattr(item[1], "to_dict") else item,
|
175
|
+
value.items()
|
176
|
+
))
|
177
|
+
else:
|
178
|
+
result[attr] = value
|
179
|
+
|
180
|
+
return result
|
181
|
+
|
182
|
+
def to_str(self):
|
183
|
+
"""Returns the string representation of the model"""
|
184
|
+
return pprint.pformat(self.to_dict())
|
185
|
+
|
186
|
+
def __repr__(self):
|
187
|
+
"""For `print` and `pprint`"""
|
188
|
+
return self.to_str()
|
189
|
+
|
190
|
+
def __eq__(self, other):
|
191
|
+
"""Returns true if both objects are equal"""
|
192
|
+
if not isinstance(other, TaskFunctionNameGroupAggregate):
|
193
|
+
return False
|
194
|
+
|
195
|
+
return self.to_dict() == other.to_dict()
|
196
|
+
|
197
|
+
def __ne__(self, other):
|
198
|
+
"""Returns true if both objects are not equal"""
|
199
|
+
if not isinstance(other, TaskFunctionNameGroupAggregate):
|
200
|
+
return True
|
201
|
+
|
202
|
+
return self.to_dict() != other.to_dict()
|
@@ -0,0 +1,174 @@
|
|
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 TaskFunctionNameGroupAggregateResponse(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[TaskFunctionNameGroupAggregate]',
|
37
|
+
'next_offset': 'str',
|
38
|
+
'total': 'int'
|
39
|
+
}
|
40
|
+
|
41
|
+
attribute_map = {
|
42
|
+
'results': 'results',
|
43
|
+
'next_offset': 'next_offset',
|
44
|
+
'total': 'total'
|
45
|
+
}
|
46
|
+
|
47
|
+
def __init__(self, results=None, next_offset=None, total=None, local_vars_configuration=None): # noqa: E501
|
48
|
+
"""TaskFunctionNameGroupAggregateResponse - a model defined in OpenAPI""" # noqa: E501
|
49
|
+
if local_vars_configuration is None:
|
50
|
+
local_vars_configuration = Configuration()
|
51
|
+
self.local_vars_configuration = local_vars_configuration
|
52
|
+
|
53
|
+
self._results = None
|
54
|
+
self._next_offset = None
|
55
|
+
self._total = None
|
56
|
+
self.discriminator = None
|
57
|
+
|
58
|
+
self.results = results
|
59
|
+
if next_offset is not None:
|
60
|
+
self.next_offset = next_offset
|
61
|
+
self.total = total
|
62
|
+
|
63
|
+
@property
|
64
|
+
def results(self):
|
65
|
+
"""Gets the results of this TaskFunctionNameGroupAggregateResponse. # noqa: E501
|
66
|
+
|
67
|
+
|
68
|
+
:return: The results of this TaskFunctionNameGroupAggregateResponse. # noqa: E501
|
69
|
+
:rtype: list[TaskFunctionNameGroupAggregate]
|
70
|
+
"""
|
71
|
+
return self._results
|
72
|
+
|
73
|
+
@results.setter
|
74
|
+
def results(self, results):
|
75
|
+
"""Sets the results of this TaskFunctionNameGroupAggregateResponse.
|
76
|
+
|
77
|
+
|
78
|
+
:param results: The results of this TaskFunctionNameGroupAggregateResponse. # noqa: E501
|
79
|
+
:type: list[TaskFunctionNameGroupAggregate]
|
80
|
+
"""
|
81
|
+
if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501
|
82
|
+
raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501
|
83
|
+
|
84
|
+
self._results = results
|
85
|
+
|
86
|
+
@property
|
87
|
+
def next_offset(self):
|
88
|
+
"""Gets the next_offset of this TaskFunctionNameGroupAggregateResponse. # noqa: E501
|
89
|
+
|
90
|
+
|
91
|
+
:return: The next_offset of this TaskFunctionNameGroupAggregateResponse. # noqa: E501
|
92
|
+
:rtype: str
|
93
|
+
"""
|
94
|
+
return self._next_offset
|
95
|
+
|
96
|
+
@next_offset.setter
|
97
|
+
def next_offset(self, next_offset):
|
98
|
+
"""Sets the next_offset of this TaskFunctionNameGroupAggregateResponse.
|
99
|
+
|
100
|
+
|
101
|
+
:param next_offset: The next_offset of this TaskFunctionNameGroupAggregateResponse. # noqa: E501
|
102
|
+
:type: str
|
103
|
+
"""
|
104
|
+
|
105
|
+
self._next_offset = next_offset
|
106
|
+
|
107
|
+
@property
|
108
|
+
def total(self):
|
109
|
+
"""Gets the total of this TaskFunctionNameGroupAggregateResponse. # noqa: E501
|
110
|
+
|
111
|
+
|
112
|
+
:return: The total of this TaskFunctionNameGroupAggregateResponse. # noqa: E501
|
113
|
+
:rtype: int
|
114
|
+
"""
|
115
|
+
return self._total
|
116
|
+
|
117
|
+
@total.setter
|
118
|
+
def total(self, total):
|
119
|
+
"""Sets the total of this TaskFunctionNameGroupAggregateResponse.
|
120
|
+
|
121
|
+
|
122
|
+
:param total: The total of this TaskFunctionNameGroupAggregateResponse. # noqa: E501
|
123
|
+
:type: int
|
124
|
+
"""
|
125
|
+
if self.local_vars_configuration.client_side_validation and total is None: # noqa: E501
|
126
|
+
raise ValueError("Invalid value for `total`, must not be `None`") # noqa: E501
|
127
|
+
|
128
|
+
self._total = total
|
129
|
+
|
130
|
+
def to_dict(self):
|
131
|
+
"""Returns the model properties as a dict"""
|
132
|
+
result = {}
|
133
|
+
|
134
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
135
|
+
value = getattr(self, attr)
|
136
|
+
if isinstance(value, list):
|
137
|
+
result[attr] = list(map(
|
138
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
139
|
+
value
|
140
|
+
))
|
141
|
+
elif hasattr(value, "to_dict"):
|
142
|
+
result[attr] = value.to_dict()
|
143
|
+
elif isinstance(value, dict):
|
144
|
+
result[attr] = dict(map(
|
145
|
+
lambda item: (item[0], item[1].to_dict())
|
146
|
+
if hasattr(item[1], "to_dict") else item,
|
147
|
+
value.items()
|
148
|
+
))
|
149
|
+
else:
|
150
|
+
result[attr] = value
|
151
|
+
|
152
|
+
return result
|
153
|
+
|
154
|
+
def to_str(self):
|
155
|
+
"""Returns the string representation of the model"""
|
156
|
+
return pprint.pformat(self.to_dict())
|
157
|
+
|
158
|
+
def __repr__(self):
|
159
|
+
"""For `print` and `pprint`"""
|
160
|
+
return self.to_str()
|
161
|
+
|
162
|
+
def __eq__(self, other):
|
163
|
+
"""Returns true if both objects are equal"""
|
164
|
+
if not isinstance(other, TaskFunctionNameGroupAggregateResponse):
|
165
|
+
return False
|
166
|
+
|
167
|
+
return self.to_dict() == other.to_dict()
|
168
|
+
|
169
|
+
def __ne__(self, other):
|
170
|
+
"""Returns true if both objects are not equal"""
|
171
|
+
if not isinstance(other, TaskFunctionNameGroupAggregateResponse):
|
172
|
+
return True
|
173
|
+
|
174
|
+
return self.to_dict() != other.to_dict()
|