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,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 TaskTableResponse(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[TaskTableRow]',
|
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
|
+
"""TaskTableResponse - 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 TaskTableResponse. # noqa: E501
|
66
|
+
|
67
|
+
|
68
|
+
:return: The results of this TaskTableResponse. # noqa: E501
|
69
|
+
:rtype: list[TaskTableRow]
|
70
|
+
"""
|
71
|
+
return self._results
|
72
|
+
|
73
|
+
@results.setter
|
74
|
+
def results(self, results):
|
75
|
+
"""Sets the results of this TaskTableResponse.
|
76
|
+
|
77
|
+
|
78
|
+
:param results: The results of this TaskTableResponse. # noqa: E501
|
79
|
+
:type: list[TaskTableRow]
|
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 TaskTableResponse. # noqa: E501
|
89
|
+
|
90
|
+
|
91
|
+
:return: The next_offset of this TaskTableResponse. # 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 TaskTableResponse.
|
99
|
+
|
100
|
+
|
101
|
+
:param next_offset: The next_offset of this TaskTableResponse. # 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 TaskTableResponse. # noqa: E501
|
110
|
+
|
111
|
+
|
112
|
+
:return: The total of this TaskTableResponse. # 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 TaskTableResponse.
|
120
|
+
|
121
|
+
|
122
|
+
:param total: The total of this TaskTableResponse. # 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, TaskTableResponse):
|
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, TaskTableResponse):
|
172
|
+
return True
|
173
|
+
|
174
|
+
return self.to_dict() != other.to_dict()
|
@@ -0,0 +1,491 @@
|
|
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 TaskTableRow(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
|
+
'attempt_number': 'int',
|
38
|
+
'job_id': 'str',
|
39
|
+
'function_name': 'str',
|
40
|
+
'task_type': 'TaskType',
|
41
|
+
'current_state': 'TaskState',
|
42
|
+
'error_message': 'str',
|
43
|
+
'start_time_ns': 'int',
|
44
|
+
'end_time_ns': 'int',
|
45
|
+
'required_resources': 'str',
|
46
|
+
'node_id': 'str',
|
47
|
+
'worker_id': 'str',
|
48
|
+
'worker_pid': 'str',
|
49
|
+
'parent_task_id': 'str',
|
50
|
+
'ray_session_name': 'str'
|
51
|
+
}
|
52
|
+
|
53
|
+
attribute_map = {
|
54
|
+
'id': 'id',
|
55
|
+
'attempt_number': 'attempt_number',
|
56
|
+
'job_id': 'job_id',
|
57
|
+
'function_name': 'function_name',
|
58
|
+
'task_type': 'task_type',
|
59
|
+
'current_state': 'current_state',
|
60
|
+
'error_message': 'error_message',
|
61
|
+
'start_time_ns': 'start_time_ns',
|
62
|
+
'end_time_ns': 'end_time_ns',
|
63
|
+
'required_resources': 'required_resources',
|
64
|
+
'node_id': 'node_id',
|
65
|
+
'worker_id': 'worker_id',
|
66
|
+
'worker_pid': 'worker_pid',
|
67
|
+
'parent_task_id': 'parent_task_id',
|
68
|
+
'ray_session_name': 'ray_session_name'
|
69
|
+
}
|
70
|
+
|
71
|
+
def __init__(self, id=None, attempt_number=None, job_id=None, function_name=None, task_type=None, current_state=None, error_message=None, start_time_ns=None, end_time_ns=None, required_resources=None, node_id=None, worker_id=None, worker_pid=None, parent_task_id=None, ray_session_name=None, local_vars_configuration=None): # noqa: E501
|
72
|
+
"""TaskTableRow - a model defined in OpenAPI""" # noqa: E501
|
73
|
+
if local_vars_configuration is None:
|
74
|
+
local_vars_configuration = Configuration()
|
75
|
+
self.local_vars_configuration = local_vars_configuration
|
76
|
+
|
77
|
+
self._id = None
|
78
|
+
self._attempt_number = None
|
79
|
+
self._job_id = None
|
80
|
+
self._function_name = None
|
81
|
+
self._task_type = None
|
82
|
+
self._current_state = None
|
83
|
+
self._error_message = None
|
84
|
+
self._start_time_ns = None
|
85
|
+
self._end_time_ns = None
|
86
|
+
self._required_resources = None
|
87
|
+
self._node_id = None
|
88
|
+
self._worker_id = None
|
89
|
+
self._worker_pid = None
|
90
|
+
self._parent_task_id = None
|
91
|
+
self._ray_session_name = None
|
92
|
+
self.discriminator = None
|
93
|
+
|
94
|
+
self.id = id
|
95
|
+
self.attempt_number = attempt_number
|
96
|
+
self.job_id = job_id
|
97
|
+
self.function_name = function_name
|
98
|
+
self.task_type = task_type
|
99
|
+
if current_state is not None:
|
100
|
+
self.current_state = current_state
|
101
|
+
if error_message is not None:
|
102
|
+
self.error_message = error_message
|
103
|
+
self.start_time_ns = start_time_ns
|
104
|
+
if end_time_ns is not None:
|
105
|
+
self.end_time_ns = end_time_ns
|
106
|
+
if required_resources is not None:
|
107
|
+
self.required_resources = required_resources
|
108
|
+
if node_id is not None:
|
109
|
+
self.node_id = node_id
|
110
|
+
if worker_id is not None:
|
111
|
+
self.worker_id = worker_id
|
112
|
+
if worker_pid is not None:
|
113
|
+
self.worker_pid = worker_pid
|
114
|
+
if parent_task_id is not None:
|
115
|
+
self.parent_task_id = parent_task_id
|
116
|
+
self.ray_session_name = ray_session_name
|
117
|
+
|
118
|
+
@property
|
119
|
+
def id(self):
|
120
|
+
"""Gets the id of this TaskTableRow. # noqa: E501
|
121
|
+
|
122
|
+
|
123
|
+
:return: The id of this TaskTableRow. # noqa: E501
|
124
|
+
:rtype: str
|
125
|
+
"""
|
126
|
+
return self._id
|
127
|
+
|
128
|
+
@id.setter
|
129
|
+
def id(self, id):
|
130
|
+
"""Sets the id of this TaskTableRow.
|
131
|
+
|
132
|
+
|
133
|
+
:param id: The id of this TaskTableRow. # noqa: E501
|
134
|
+
:type: str
|
135
|
+
"""
|
136
|
+
if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
|
137
|
+
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
|
138
|
+
|
139
|
+
self._id = id
|
140
|
+
|
141
|
+
@property
|
142
|
+
def attempt_number(self):
|
143
|
+
"""Gets the attempt_number of this TaskTableRow. # noqa: E501
|
144
|
+
|
145
|
+
|
146
|
+
:return: The attempt_number of this TaskTableRow. # noqa: E501
|
147
|
+
:rtype: int
|
148
|
+
"""
|
149
|
+
return self._attempt_number
|
150
|
+
|
151
|
+
@attempt_number.setter
|
152
|
+
def attempt_number(self, attempt_number):
|
153
|
+
"""Sets the attempt_number of this TaskTableRow.
|
154
|
+
|
155
|
+
|
156
|
+
:param attempt_number: The attempt_number of this TaskTableRow. # noqa: E501
|
157
|
+
:type: int
|
158
|
+
"""
|
159
|
+
if self.local_vars_configuration.client_side_validation and attempt_number is None: # noqa: E501
|
160
|
+
raise ValueError("Invalid value for `attempt_number`, must not be `None`") # noqa: E501
|
161
|
+
|
162
|
+
self._attempt_number = attempt_number
|
163
|
+
|
164
|
+
@property
|
165
|
+
def job_id(self):
|
166
|
+
"""Gets the job_id of this TaskTableRow. # noqa: E501
|
167
|
+
|
168
|
+
|
169
|
+
:return: The job_id of this TaskTableRow. # noqa: E501
|
170
|
+
:rtype: str
|
171
|
+
"""
|
172
|
+
return self._job_id
|
173
|
+
|
174
|
+
@job_id.setter
|
175
|
+
def job_id(self, job_id):
|
176
|
+
"""Sets the job_id of this TaskTableRow.
|
177
|
+
|
178
|
+
|
179
|
+
:param job_id: The job_id of this TaskTableRow. # noqa: E501
|
180
|
+
:type: str
|
181
|
+
"""
|
182
|
+
if self.local_vars_configuration.client_side_validation and job_id is None: # noqa: E501
|
183
|
+
raise ValueError("Invalid value for `job_id`, must not be `None`") # noqa: E501
|
184
|
+
|
185
|
+
self._job_id = job_id
|
186
|
+
|
187
|
+
@property
|
188
|
+
def function_name(self):
|
189
|
+
"""Gets the function_name of this TaskTableRow. # noqa: E501
|
190
|
+
|
191
|
+
|
192
|
+
:return: The function_name of this TaskTableRow. # noqa: E501
|
193
|
+
:rtype: str
|
194
|
+
"""
|
195
|
+
return self._function_name
|
196
|
+
|
197
|
+
@function_name.setter
|
198
|
+
def function_name(self, function_name):
|
199
|
+
"""Sets the function_name of this TaskTableRow.
|
200
|
+
|
201
|
+
|
202
|
+
:param function_name: The function_name of this TaskTableRow. # noqa: E501
|
203
|
+
:type: str
|
204
|
+
"""
|
205
|
+
if self.local_vars_configuration.client_side_validation and function_name is None: # noqa: E501
|
206
|
+
raise ValueError("Invalid value for `function_name`, must not be `None`") # noqa: E501
|
207
|
+
|
208
|
+
self._function_name = function_name
|
209
|
+
|
210
|
+
@property
|
211
|
+
def task_type(self):
|
212
|
+
"""Gets the task_type of this TaskTableRow. # noqa: E501
|
213
|
+
|
214
|
+
|
215
|
+
:return: The task_type of this TaskTableRow. # noqa: E501
|
216
|
+
:rtype: TaskType
|
217
|
+
"""
|
218
|
+
return self._task_type
|
219
|
+
|
220
|
+
@task_type.setter
|
221
|
+
def task_type(self, task_type):
|
222
|
+
"""Sets the task_type of this TaskTableRow.
|
223
|
+
|
224
|
+
|
225
|
+
:param task_type: The task_type of this TaskTableRow. # noqa: E501
|
226
|
+
:type: TaskType
|
227
|
+
"""
|
228
|
+
if self.local_vars_configuration.client_side_validation and task_type is None: # noqa: E501
|
229
|
+
raise ValueError("Invalid value for `task_type`, must not be `None`") # noqa: E501
|
230
|
+
|
231
|
+
self._task_type = task_type
|
232
|
+
|
233
|
+
@property
|
234
|
+
def current_state(self):
|
235
|
+
"""Gets the current_state of this TaskTableRow. # noqa: E501
|
236
|
+
|
237
|
+
|
238
|
+
:return: The current_state of this TaskTableRow. # noqa: E501
|
239
|
+
:rtype: TaskState
|
240
|
+
"""
|
241
|
+
return self._current_state
|
242
|
+
|
243
|
+
@current_state.setter
|
244
|
+
def current_state(self, current_state):
|
245
|
+
"""Sets the current_state of this TaskTableRow.
|
246
|
+
|
247
|
+
|
248
|
+
:param current_state: The current_state of this TaskTableRow. # noqa: E501
|
249
|
+
:type: TaskState
|
250
|
+
"""
|
251
|
+
|
252
|
+
self._current_state = current_state
|
253
|
+
|
254
|
+
@property
|
255
|
+
def error_message(self):
|
256
|
+
"""Gets the error_message of this TaskTableRow. # noqa: E501
|
257
|
+
|
258
|
+
|
259
|
+
:return: The error_message of this TaskTableRow. # noqa: E501
|
260
|
+
:rtype: str
|
261
|
+
"""
|
262
|
+
return self._error_message
|
263
|
+
|
264
|
+
@error_message.setter
|
265
|
+
def error_message(self, error_message):
|
266
|
+
"""Sets the error_message of this TaskTableRow.
|
267
|
+
|
268
|
+
|
269
|
+
:param error_message: The error_message of this TaskTableRow. # noqa: E501
|
270
|
+
:type: str
|
271
|
+
"""
|
272
|
+
|
273
|
+
self._error_message = error_message
|
274
|
+
|
275
|
+
@property
|
276
|
+
def start_time_ns(self):
|
277
|
+
"""Gets the start_time_ns of this TaskTableRow. # noqa: E501
|
278
|
+
|
279
|
+
|
280
|
+
:return: The start_time_ns of this TaskTableRow. # noqa: E501
|
281
|
+
:rtype: int
|
282
|
+
"""
|
283
|
+
return self._start_time_ns
|
284
|
+
|
285
|
+
@start_time_ns.setter
|
286
|
+
def start_time_ns(self, start_time_ns):
|
287
|
+
"""Sets the start_time_ns of this TaskTableRow.
|
288
|
+
|
289
|
+
|
290
|
+
:param start_time_ns: The start_time_ns of this TaskTableRow. # noqa: E501
|
291
|
+
:type: int
|
292
|
+
"""
|
293
|
+
if self.local_vars_configuration.client_side_validation and start_time_ns is None: # noqa: E501
|
294
|
+
raise ValueError("Invalid value for `start_time_ns`, must not be `None`") # noqa: E501
|
295
|
+
|
296
|
+
self._start_time_ns = start_time_ns
|
297
|
+
|
298
|
+
@property
|
299
|
+
def end_time_ns(self):
|
300
|
+
"""Gets the end_time_ns of this TaskTableRow. # noqa: E501
|
301
|
+
|
302
|
+
|
303
|
+
:return: The end_time_ns of this TaskTableRow. # noqa: E501
|
304
|
+
:rtype: int
|
305
|
+
"""
|
306
|
+
return self._end_time_ns
|
307
|
+
|
308
|
+
@end_time_ns.setter
|
309
|
+
def end_time_ns(self, end_time_ns):
|
310
|
+
"""Sets the end_time_ns of this TaskTableRow.
|
311
|
+
|
312
|
+
|
313
|
+
:param end_time_ns: The end_time_ns of this TaskTableRow. # noqa: E501
|
314
|
+
:type: int
|
315
|
+
"""
|
316
|
+
|
317
|
+
self._end_time_ns = end_time_ns
|
318
|
+
|
319
|
+
@property
|
320
|
+
def required_resources(self):
|
321
|
+
"""Gets the required_resources of this TaskTableRow. # noqa: E501
|
322
|
+
|
323
|
+
|
324
|
+
:return: The required_resources of this TaskTableRow. # noqa: E501
|
325
|
+
:rtype: str
|
326
|
+
"""
|
327
|
+
return self._required_resources
|
328
|
+
|
329
|
+
@required_resources.setter
|
330
|
+
def required_resources(self, required_resources):
|
331
|
+
"""Sets the required_resources of this TaskTableRow.
|
332
|
+
|
333
|
+
|
334
|
+
:param required_resources: The required_resources of this TaskTableRow. # noqa: E501
|
335
|
+
:type: str
|
336
|
+
"""
|
337
|
+
|
338
|
+
self._required_resources = required_resources
|
339
|
+
|
340
|
+
@property
|
341
|
+
def node_id(self):
|
342
|
+
"""Gets the node_id of this TaskTableRow. # noqa: E501
|
343
|
+
|
344
|
+
|
345
|
+
:return: The node_id of this TaskTableRow. # noqa: E501
|
346
|
+
:rtype: str
|
347
|
+
"""
|
348
|
+
return self._node_id
|
349
|
+
|
350
|
+
@node_id.setter
|
351
|
+
def node_id(self, node_id):
|
352
|
+
"""Sets the node_id of this TaskTableRow.
|
353
|
+
|
354
|
+
|
355
|
+
:param node_id: The node_id of this TaskTableRow. # noqa: E501
|
356
|
+
:type: str
|
357
|
+
"""
|
358
|
+
|
359
|
+
self._node_id = node_id
|
360
|
+
|
361
|
+
@property
|
362
|
+
def worker_id(self):
|
363
|
+
"""Gets the worker_id of this TaskTableRow. # noqa: E501
|
364
|
+
|
365
|
+
|
366
|
+
:return: The worker_id of this TaskTableRow. # noqa: E501
|
367
|
+
:rtype: str
|
368
|
+
"""
|
369
|
+
return self._worker_id
|
370
|
+
|
371
|
+
@worker_id.setter
|
372
|
+
def worker_id(self, worker_id):
|
373
|
+
"""Sets the worker_id of this TaskTableRow.
|
374
|
+
|
375
|
+
|
376
|
+
:param worker_id: The worker_id of this TaskTableRow. # noqa: E501
|
377
|
+
:type: str
|
378
|
+
"""
|
379
|
+
|
380
|
+
self._worker_id = worker_id
|
381
|
+
|
382
|
+
@property
|
383
|
+
def worker_pid(self):
|
384
|
+
"""Gets the worker_pid of this TaskTableRow. # noqa: E501
|
385
|
+
|
386
|
+
|
387
|
+
:return: The worker_pid of this TaskTableRow. # noqa: E501
|
388
|
+
:rtype: str
|
389
|
+
"""
|
390
|
+
return self._worker_pid
|
391
|
+
|
392
|
+
@worker_pid.setter
|
393
|
+
def worker_pid(self, worker_pid):
|
394
|
+
"""Sets the worker_pid of this TaskTableRow.
|
395
|
+
|
396
|
+
|
397
|
+
:param worker_pid: The worker_pid of this TaskTableRow. # noqa: E501
|
398
|
+
:type: str
|
399
|
+
"""
|
400
|
+
|
401
|
+
self._worker_pid = worker_pid
|
402
|
+
|
403
|
+
@property
|
404
|
+
def parent_task_id(self):
|
405
|
+
"""Gets the parent_task_id of this TaskTableRow. # noqa: E501
|
406
|
+
|
407
|
+
|
408
|
+
:return: The parent_task_id of this TaskTableRow. # noqa: E501
|
409
|
+
:rtype: str
|
410
|
+
"""
|
411
|
+
return self._parent_task_id
|
412
|
+
|
413
|
+
@parent_task_id.setter
|
414
|
+
def parent_task_id(self, parent_task_id):
|
415
|
+
"""Sets the parent_task_id of this TaskTableRow.
|
416
|
+
|
417
|
+
|
418
|
+
:param parent_task_id: The parent_task_id of this TaskTableRow. # noqa: E501
|
419
|
+
:type: str
|
420
|
+
"""
|
421
|
+
|
422
|
+
self._parent_task_id = parent_task_id
|
423
|
+
|
424
|
+
@property
|
425
|
+
def ray_session_name(self):
|
426
|
+
"""Gets the ray_session_name of this TaskTableRow. # noqa: E501
|
427
|
+
|
428
|
+
|
429
|
+
:return: The ray_session_name of this TaskTableRow. # noqa: E501
|
430
|
+
:rtype: str
|
431
|
+
"""
|
432
|
+
return self._ray_session_name
|
433
|
+
|
434
|
+
@ray_session_name.setter
|
435
|
+
def ray_session_name(self, ray_session_name):
|
436
|
+
"""Sets the ray_session_name of this TaskTableRow.
|
437
|
+
|
438
|
+
|
439
|
+
:param ray_session_name: The ray_session_name of this TaskTableRow. # noqa: E501
|
440
|
+
:type: str
|
441
|
+
"""
|
442
|
+
if self.local_vars_configuration.client_side_validation and ray_session_name is None: # noqa: E501
|
443
|
+
raise ValueError("Invalid value for `ray_session_name`, must not be `None`") # noqa: E501
|
444
|
+
|
445
|
+
self._ray_session_name = ray_session_name
|
446
|
+
|
447
|
+
def to_dict(self):
|
448
|
+
"""Returns the model properties as a dict"""
|
449
|
+
result = {}
|
450
|
+
|
451
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
452
|
+
value = getattr(self, attr)
|
453
|
+
if isinstance(value, list):
|
454
|
+
result[attr] = list(map(
|
455
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
456
|
+
value
|
457
|
+
))
|
458
|
+
elif hasattr(value, "to_dict"):
|
459
|
+
result[attr] = value.to_dict()
|
460
|
+
elif isinstance(value, dict):
|
461
|
+
result[attr] = dict(map(
|
462
|
+
lambda item: (item[0], item[1].to_dict())
|
463
|
+
if hasattr(item[1], "to_dict") else item,
|
464
|
+
value.items()
|
465
|
+
))
|
466
|
+
else:
|
467
|
+
result[attr] = value
|
468
|
+
|
469
|
+
return result
|
470
|
+
|
471
|
+
def to_str(self):
|
472
|
+
"""Returns the string representation of the model"""
|
473
|
+
return pprint.pformat(self.to_dict())
|
474
|
+
|
475
|
+
def __repr__(self):
|
476
|
+
"""For `print` and `pprint`"""
|
477
|
+
return self.to_str()
|
478
|
+
|
479
|
+
def __eq__(self, other):
|
480
|
+
"""Returns true if both objects are equal"""
|
481
|
+
if not isinstance(other, TaskTableRow):
|
482
|
+
return False
|
483
|
+
|
484
|
+
return self.to_dict() == other.to_dict()
|
485
|
+
|
486
|
+
def __ne__(self, other):
|
487
|
+
"""Returns true if both objects are not equal"""
|
488
|
+
if not isinstance(other, TaskTableRow):
|
489
|
+
return True
|
490
|
+
|
491
|
+
return self.to_dict() != other.to_dict()
|