anyscale 0.26.12__py3-none-any.whl → 0.26.14__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/docgen/__main__.py +0 -3
- anyscale/_private/docgen/api.md +0 -14
- anyscale/_private/docgen/models.md +2 -47
- anyscale/client/README.md +24 -7
- anyscale/client/openapi_client/__init__.py +18 -5
- anyscale/client/openapi_client/api/default_api.py +746 -282
- anyscale/client/openapi_client/models/__init__.py +18 -5
- anyscale/client/openapi_client/models/baseimagesenum.py +23 -4
- anyscale/client/openapi_client/models/dataset_dag.py +229 -0
- anyscale/client/openapi_client/models/dataset_dag_response.py +121 -0
- anyscale/client/openapi_client/models/{operator_metric_id.py → operator_branch.py} +26 -26
- anyscale/{sdk/anyscale_client/models/runtimeenvironment_response.py → client/openapi_client/models/operator_id.py} +24 -24
- anyscale/client/openapi_client/models/operator_metrics.py +3 -30
- anyscale/client/openapi_client/models/organization_marketing_questions.py +15 -41
- anyscale/client/openapi_client/models/supportedbaseimagesenum.py +14 -14
- anyscale/client/openapi_client/models/task_exception_group_aggregate.py +148 -0
- anyscale/client/openapi_client/models/task_function_name_group_aggregate.py +175 -0
- anyscale/client/openapi_client/models/task_grouped_aggregate_metrics.py +337 -0
- anyscale/client/openapi_client/models/task_job_group_aggregate.py +148 -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/{cluster_size.py → task_type.py} +7 -10
- anyscale/client/openapi_client/models/taskexceptiongroupaggregate_list_response.py +147 -0
- anyscale/client/openapi_client/models/taskfunctionnamegroupaggregate_list_response.py +147 -0
- anyscale/client/openapi_client/models/{decoratedruntimeenv_list_response.py → taskjobgroupaggregate_list_response.py} +15 -15
- anyscale/client/openapi_client/models/{decoratedruntimeenv_response.py → tasksummary_response.py} +11 -11
- anyscale/commands/command_examples.py +22 -0
- anyscale/sdk/anyscale_client/__init__.py +0 -3
- anyscale/sdk/anyscale_client/api/default_api.py +0 -232
- anyscale/sdk/anyscale_client/models/__init__.py +0 -3
- anyscale/sdk/anyscale_client/models/baseimagesenum.py +23 -4
- anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +14 -14
- anyscale/version.py +1 -1
- {anyscale-0.26.12.dist-info → anyscale-0.26.14.dist-info}/METADATA +1 -1
- {anyscale-0.26.12.dist-info → anyscale-0.26.14.dist-info}/RECORD +43 -33
- anyscale/client/openapi_client/models/decorated_runtime_env.py +0 -488
- anyscale/sdk/anyscale_client/models/create_session.py +0 -432
- anyscale/sdk/anyscale_client/models/runtime_environment.py +0 -406
- {anyscale-0.26.12.dist-info → anyscale-0.26.14.dist-info}/LICENSE +0 -0
- {anyscale-0.26.12.dist-info → anyscale-0.26.14.dist-info}/NOTICE +0 -0
- {anyscale-0.26.12.dist-info → anyscale-0.26.14.dist-info}/WHEEL +0 -0
- {anyscale-0.26.12.dist-info → anyscale-0.26.14.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.12.dist-info → anyscale-0.26.14.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,229 @@
|
|
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 DatasetDag(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
|
+
'job_id': 'str',
|
39
|
+
'session_name': 'str',
|
40
|
+
'operator_dag': 'list[OperatorBranch]'
|
41
|
+
}
|
42
|
+
|
43
|
+
attribute_map = {
|
44
|
+
'id': 'id',
|
45
|
+
'name': 'name',
|
46
|
+
'job_id': 'job_id',
|
47
|
+
'session_name': 'session_name',
|
48
|
+
'operator_dag': 'operator_dag'
|
49
|
+
}
|
50
|
+
|
51
|
+
def __init__(self, id=None, name=None, job_id=None, session_name=None, operator_dag=None, local_vars_configuration=None): # noqa: E501
|
52
|
+
"""DatasetDag - a model defined in OpenAPI""" # noqa: E501
|
53
|
+
if local_vars_configuration is None:
|
54
|
+
local_vars_configuration = Configuration()
|
55
|
+
self.local_vars_configuration = local_vars_configuration
|
56
|
+
|
57
|
+
self._id = None
|
58
|
+
self._name = None
|
59
|
+
self._job_id = None
|
60
|
+
self._session_name = None
|
61
|
+
self._operator_dag = None
|
62
|
+
self.discriminator = None
|
63
|
+
|
64
|
+
self.id = id
|
65
|
+
self.name = name
|
66
|
+
self.job_id = job_id
|
67
|
+
self.session_name = session_name
|
68
|
+
self.operator_dag = operator_dag
|
69
|
+
|
70
|
+
@property
|
71
|
+
def id(self):
|
72
|
+
"""Gets the id of this DatasetDag. # noqa: E501
|
73
|
+
|
74
|
+
|
75
|
+
:return: The id of this DatasetDag. # noqa: E501
|
76
|
+
:rtype: str
|
77
|
+
"""
|
78
|
+
return self._id
|
79
|
+
|
80
|
+
@id.setter
|
81
|
+
def id(self, id):
|
82
|
+
"""Sets the id of this DatasetDag.
|
83
|
+
|
84
|
+
|
85
|
+
:param id: The id of this DatasetDag. # noqa: E501
|
86
|
+
:type: str
|
87
|
+
"""
|
88
|
+
if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
|
89
|
+
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
|
90
|
+
|
91
|
+
self._id = id
|
92
|
+
|
93
|
+
@property
|
94
|
+
def name(self):
|
95
|
+
"""Gets the name of this DatasetDag. # noqa: E501
|
96
|
+
|
97
|
+
|
98
|
+
:return: The name of this DatasetDag. # noqa: E501
|
99
|
+
:rtype: str
|
100
|
+
"""
|
101
|
+
return self._name
|
102
|
+
|
103
|
+
@name.setter
|
104
|
+
def name(self, name):
|
105
|
+
"""Sets the name of this DatasetDag.
|
106
|
+
|
107
|
+
|
108
|
+
:param name: The name of this DatasetDag. # noqa: E501
|
109
|
+
:type: str
|
110
|
+
"""
|
111
|
+
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
112
|
+
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
113
|
+
|
114
|
+
self._name = name
|
115
|
+
|
116
|
+
@property
|
117
|
+
def job_id(self):
|
118
|
+
"""Gets the job_id of this DatasetDag. # noqa: E501
|
119
|
+
|
120
|
+
|
121
|
+
:return: The job_id of this DatasetDag. # noqa: E501
|
122
|
+
:rtype: str
|
123
|
+
"""
|
124
|
+
return self._job_id
|
125
|
+
|
126
|
+
@job_id.setter
|
127
|
+
def job_id(self, job_id):
|
128
|
+
"""Sets the job_id of this DatasetDag.
|
129
|
+
|
130
|
+
|
131
|
+
:param job_id: The job_id of this DatasetDag. # noqa: E501
|
132
|
+
:type: str
|
133
|
+
"""
|
134
|
+
if self.local_vars_configuration.client_side_validation and job_id is None: # noqa: E501
|
135
|
+
raise ValueError("Invalid value for `job_id`, must not be `None`") # noqa: E501
|
136
|
+
|
137
|
+
self._job_id = job_id
|
138
|
+
|
139
|
+
@property
|
140
|
+
def session_name(self):
|
141
|
+
"""Gets the session_name of this DatasetDag. # noqa: E501
|
142
|
+
|
143
|
+
|
144
|
+
:return: The session_name of this DatasetDag. # noqa: E501
|
145
|
+
:rtype: str
|
146
|
+
"""
|
147
|
+
return self._session_name
|
148
|
+
|
149
|
+
@session_name.setter
|
150
|
+
def session_name(self, session_name):
|
151
|
+
"""Sets the session_name of this DatasetDag.
|
152
|
+
|
153
|
+
|
154
|
+
:param session_name: The session_name of this DatasetDag. # noqa: E501
|
155
|
+
:type: str
|
156
|
+
"""
|
157
|
+
if self.local_vars_configuration.client_side_validation and session_name is None: # noqa: E501
|
158
|
+
raise ValueError("Invalid value for `session_name`, must not be `None`") # noqa: E501
|
159
|
+
|
160
|
+
self._session_name = session_name
|
161
|
+
|
162
|
+
@property
|
163
|
+
def operator_dag(self):
|
164
|
+
"""Gets the operator_dag of this DatasetDag. # noqa: E501
|
165
|
+
|
166
|
+
|
167
|
+
:return: The operator_dag of this DatasetDag. # noqa: E501
|
168
|
+
:rtype: list[OperatorBranch]
|
169
|
+
"""
|
170
|
+
return self._operator_dag
|
171
|
+
|
172
|
+
@operator_dag.setter
|
173
|
+
def operator_dag(self, operator_dag):
|
174
|
+
"""Sets the operator_dag of this DatasetDag.
|
175
|
+
|
176
|
+
|
177
|
+
:param operator_dag: The operator_dag of this DatasetDag. # noqa: E501
|
178
|
+
:type: list[OperatorBranch]
|
179
|
+
"""
|
180
|
+
if self.local_vars_configuration.client_side_validation and operator_dag is None: # noqa: E501
|
181
|
+
raise ValueError("Invalid value for `operator_dag`, must not be `None`") # noqa: E501
|
182
|
+
|
183
|
+
self._operator_dag = operator_dag
|
184
|
+
|
185
|
+
def to_dict(self):
|
186
|
+
"""Returns the model properties as a dict"""
|
187
|
+
result = {}
|
188
|
+
|
189
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
190
|
+
value = getattr(self, attr)
|
191
|
+
if isinstance(value, list):
|
192
|
+
result[attr] = list(map(
|
193
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
194
|
+
value
|
195
|
+
))
|
196
|
+
elif hasattr(value, "to_dict"):
|
197
|
+
result[attr] = value.to_dict()
|
198
|
+
elif isinstance(value, dict):
|
199
|
+
result[attr] = dict(map(
|
200
|
+
lambda item: (item[0], item[1].to_dict())
|
201
|
+
if hasattr(item[1], "to_dict") else item,
|
202
|
+
value.items()
|
203
|
+
))
|
204
|
+
else:
|
205
|
+
result[attr] = value
|
206
|
+
|
207
|
+
return result
|
208
|
+
|
209
|
+
def to_str(self):
|
210
|
+
"""Returns the string representation of the model"""
|
211
|
+
return pprint.pformat(self.to_dict())
|
212
|
+
|
213
|
+
def __repr__(self):
|
214
|
+
"""For `print` and `pprint`"""
|
215
|
+
return self.to_str()
|
216
|
+
|
217
|
+
def __eq__(self, other):
|
218
|
+
"""Returns true if both objects are equal"""
|
219
|
+
if not isinstance(other, DatasetDag):
|
220
|
+
return False
|
221
|
+
|
222
|
+
return self.to_dict() == other.to_dict()
|
223
|
+
|
224
|
+
def __ne__(self, other):
|
225
|
+
"""Returns true if both objects are not equal"""
|
226
|
+
if not isinstance(other, DatasetDag):
|
227
|
+
return True
|
228
|
+
|
229
|
+
return self.to_dict() != other.to_dict()
|
@@ -0,0 +1,121 @@
|
|
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 DatasetDagResponse(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
|
+
'datasets': 'list[DatasetDag]'
|
37
|
+
}
|
38
|
+
|
39
|
+
attribute_map = {
|
40
|
+
'datasets': 'datasets'
|
41
|
+
}
|
42
|
+
|
43
|
+
def __init__(self, datasets=None, local_vars_configuration=None): # noqa: E501
|
44
|
+
"""DatasetDagResponse - a model defined in OpenAPI""" # noqa: E501
|
45
|
+
if local_vars_configuration is None:
|
46
|
+
local_vars_configuration = Configuration()
|
47
|
+
self.local_vars_configuration = local_vars_configuration
|
48
|
+
|
49
|
+
self._datasets = None
|
50
|
+
self.discriminator = None
|
51
|
+
|
52
|
+
self.datasets = datasets
|
53
|
+
|
54
|
+
@property
|
55
|
+
def datasets(self):
|
56
|
+
"""Gets the datasets of this DatasetDagResponse. # noqa: E501
|
57
|
+
|
58
|
+
|
59
|
+
:return: The datasets of this DatasetDagResponse. # noqa: E501
|
60
|
+
:rtype: list[DatasetDag]
|
61
|
+
"""
|
62
|
+
return self._datasets
|
63
|
+
|
64
|
+
@datasets.setter
|
65
|
+
def datasets(self, datasets):
|
66
|
+
"""Sets the datasets of this DatasetDagResponse.
|
67
|
+
|
68
|
+
|
69
|
+
:param datasets: The datasets of this DatasetDagResponse. # noqa: E501
|
70
|
+
:type: list[DatasetDag]
|
71
|
+
"""
|
72
|
+
if self.local_vars_configuration.client_side_validation and datasets is None: # noqa: E501
|
73
|
+
raise ValueError("Invalid value for `datasets`, must not be `None`") # noqa: E501
|
74
|
+
|
75
|
+
self._datasets = datasets
|
76
|
+
|
77
|
+
def to_dict(self):
|
78
|
+
"""Returns the model properties as a dict"""
|
79
|
+
result = {}
|
80
|
+
|
81
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
82
|
+
value = getattr(self, attr)
|
83
|
+
if isinstance(value, list):
|
84
|
+
result[attr] = list(map(
|
85
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
86
|
+
value
|
87
|
+
))
|
88
|
+
elif hasattr(value, "to_dict"):
|
89
|
+
result[attr] = value.to_dict()
|
90
|
+
elif isinstance(value, dict):
|
91
|
+
result[attr] = dict(map(
|
92
|
+
lambda item: (item[0], item[1].to_dict())
|
93
|
+
if hasattr(item[1], "to_dict") else item,
|
94
|
+
value.items()
|
95
|
+
))
|
96
|
+
else:
|
97
|
+
result[attr] = value
|
98
|
+
|
99
|
+
return result
|
100
|
+
|
101
|
+
def to_str(self):
|
102
|
+
"""Returns the string representation of the model"""
|
103
|
+
return pprint.pformat(self.to_dict())
|
104
|
+
|
105
|
+
def __repr__(self):
|
106
|
+
"""For `print` and `pprint`"""
|
107
|
+
return self.to_str()
|
108
|
+
|
109
|
+
def __eq__(self, other):
|
110
|
+
"""Returns true if both objects are equal"""
|
111
|
+
if not isinstance(other, DatasetDagResponse):
|
112
|
+
return False
|
113
|
+
|
114
|
+
return self.to_dict() == other.to_dict()
|
115
|
+
|
116
|
+
def __ne__(self, other):
|
117
|
+
"""Returns true if both objects are not equal"""
|
118
|
+
if not isinstance(other, DatasetDagResponse):
|
119
|
+
return True
|
120
|
+
|
121
|
+
return self.to_dict() != other.to_dict()
|
@@ -18,7 +18,7 @@ import six
|
|
18
18
|
from openapi_client.configuration import Configuration
|
19
19
|
|
20
20
|
|
21
|
-
class
|
21
|
+
class OperatorBranch(object):
|
22
22
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
23
23
|
Ref: https://openapi-generator.tech
|
24
24
|
|
@@ -34,43 +34,43 @@ class OperatorMetricId(object):
|
|
34
34
|
"""
|
35
35
|
openapi_types = {
|
36
36
|
'id': 'str',
|
37
|
-
'
|
37
|
+
'parents': 'list[OperatorId]'
|
38
38
|
}
|
39
39
|
|
40
40
|
attribute_map = {
|
41
41
|
'id': 'id',
|
42
|
-
'
|
42
|
+
'parents': 'parents'
|
43
43
|
}
|
44
44
|
|
45
|
-
def __init__(self, id=None,
|
46
|
-
"""
|
45
|
+
def __init__(self, id=None, parents=None, local_vars_configuration=None): # noqa: E501
|
46
|
+
"""OperatorBranch - a model defined in OpenAPI""" # noqa: E501
|
47
47
|
if local_vars_configuration is None:
|
48
48
|
local_vars_configuration = Configuration()
|
49
49
|
self.local_vars_configuration = local_vars_configuration
|
50
50
|
|
51
51
|
self._id = None
|
52
|
-
self.
|
52
|
+
self._parents = None
|
53
53
|
self.discriminator = None
|
54
54
|
|
55
55
|
self.id = id
|
56
|
-
self.
|
56
|
+
self.parents = parents
|
57
57
|
|
58
58
|
@property
|
59
59
|
def id(self):
|
60
|
-
"""Gets the id of this
|
60
|
+
"""Gets the id of this OperatorBranch. # noqa: E501
|
61
61
|
|
62
62
|
|
63
|
-
:return: The id of this
|
63
|
+
:return: The id of this OperatorBranch. # noqa: E501
|
64
64
|
:rtype: str
|
65
65
|
"""
|
66
66
|
return self._id
|
67
67
|
|
68
68
|
@id.setter
|
69
69
|
def id(self, id):
|
70
|
-
"""Sets the id of this
|
70
|
+
"""Sets the id of this OperatorBranch.
|
71
71
|
|
72
72
|
|
73
|
-
:param id: The id of this
|
73
|
+
:param id: The id of this OperatorBranch. # noqa: E501
|
74
74
|
:type: str
|
75
75
|
"""
|
76
76
|
if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
|
@@ -79,27 +79,27 @@ class OperatorMetricId(object):
|
|
79
79
|
self._id = id
|
80
80
|
|
81
81
|
@property
|
82
|
-
def
|
83
|
-
"""Gets the
|
82
|
+
def parents(self):
|
83
|
+
"""Gets the parents of this OperatorBranch. # noqa: E501
|
84
84
|
|
85
85
|
|
86
|
-
:return: The
|
87
|
-
:rtype:
|
86
|
+
:return: The parents of this OperatorBranch. # noqa: E501
|
87
|
+
:rtype: list[OperatorId]
|
88
88
|
"""
|
89
|
-
return self.
|
89
|
+
return self._parents
|
90
90
|
|
91
|
-
@
|
92
|
-
def
|
93
|
-
"""Sets the
|
91
|
+
@parents.setter
|
92
|
+
def parents(self, parents):
|
93
|
+
"""Sets the parents of this OperatorBranch.
|
94
94
|
|
95
95
|
|
96
|
-
:param
|
97
|
-
:type:
|
96
|
+
:param parents: The parents of this OperatorBranch. # noqa: E501
|
97
|
+
:type: list[OperatorId]
|
98
98
|
"""
|
99
|
-
if self.local_vars_configuration.client_side_validation and
|
100
|
-
raise ValueError("Invalid value for `
|
99
|
+
if self.local_vars_configuration.client_side_validation and parents is None: # noqa: E501
|
100
|
+
raise ValueError("Invalid value for `parents`, must not be `None`") # noqa: E501
|
101
101
|
|
102
|
-
self.
|
102
|
+
self._parents = parents
|
103
103
|
|
104
104
|
def to_dict(self):
|
105
105
|
"""Returns the model properties as a dict"""
|
@@ -135,14 +135,14 @@ class OperatorMetricId(object):
|
|
135
135
|
|
136
136
|
def __eq__(self, other):
|
137
137
|
"""Returns true if both objects are equal"""
|
138
|
-
if not isinstance(other,
|
138
|
+
if not isinstance(other, OperatorBranch):
|
139
139
|
return False
|
140
140
|
|
141
141
|
return self.to_dict() == other.to_dict()
|
142
142
|
|
143
143
|
def __ne__(self, other):
|
144
144
|
"""Returns true if both objects are not equal"""
|
145
|
-
if not isinstance(other,
|
145
|
+
if not isinstance(other, OperatorBranch):
|
146
146
|
return True
|
147
147
|
|
148
148
|
return self.to_dict() != other.to_dict()
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
|
3
3
|
"""
|
4
|
-
|
4
|
+
Managed Ray API
|
5
5
|
|
6
6
|
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
7
7
|
|
@@ -15,10 +15,10 @@ import re # noqa: F401
|
|
15
15
|
|
16
16
|
import six
|
17
17
|
|
18
|
-
from
|
18
|
+
from openapi_client.configuration import Configuration
|
19
19
|
|
20
20
|
|
21
|
-
class
|
21
|
+
class OperatorId(object):
|
22
22
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
23
23
|
Ref: https://openapi-generator.tech
|
24
24
|
|
@@ -33,46 +33,46 @@ class RuntimeenvironmentResponse(object):
|
|
33
33
|
and the value is json key in definition.
|
34
34
|
"""
|
35
35
|
openapi_types = {
|
36
|
-
'
|
36
|
+
'id': 'str'
|
37
37
|
}
|
38
38
|
|
39
39
|
attribute_map = {
|
40
|
-
'
|
40
|
+
'id': 'id'
|
41
41
|
}
|
42
42
|
|
43
|
-
def __init__(self,
|
44
|
-
"""
|
43
|
+
def __init__(self, id=None, local_vars_configuration=None): # noqa: E501
|
44
|
+
"""OperatorId - a model defined in OpenAPI""" # noqa: E501
|
45
45
|
if local_vars_configuration is None:
|
46
46
|
local_vars_configuration = Configuration()
|
47
47
|
self.local_vars_configuration = local_vars_configuration
|
48
48
|
|
49
|
-
self.
|
49
|
+
self._id = None
|
50
50
|
self.discriminator = None
|
51
51
|
|
52
|
-
self.
|
52
|
+
self.id = id
|
53
53
|
|
54
54
|
@property
|
55
|
-
def
|
56
|
-
"""Gets the
|
55
|
+
def id(self):
|
56
|
+
"""Gets the id of this OperatorId. # noqa: E501
|
57
57
|
|
58
58
|
|
59
|
-
:return: The
|
60
|
-
:rtype:
|
59
|
+
:return: The id of this OperatorId. # noqa: E501
|
60
|
+
:rtype: str
|
61
61
|
"""
|
62
|
-
return self.
|
62
|
+
return self._id
|
63
63
|
|
64
|
-
@
|
65
|
-
def
|
66
|
-
"""Sets the
|
64
|
+
@id.setter
|
65
|
+
def id(self, id):
|
66
|
+
"""Sets the id of this OperatorId.
|
67
67
|
|
68
68
|
|
69
|
-
:param
|
70
|
-
:type:
|
69
|
+
:param id: The id of this OperatorId. # noqa: E501
|
70
|
+
:type: str
|
71
71
|
"""
|
72
|
-
if self.local_vars_configuration.client_side_validation and
|
73
|
-
raise ValueError("Invalid value for `
|
72
|
+
if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
|
73
|
+
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
|
74
74
|
|
75
|
-
self.
|
75
|
+
self._id = id
|
76
76
|
|
77
77
|
def to_dict(self):
|
78
78
|
"""Returns the model properties as a dict"""
|
@@ -108,14 +108,14 @@ class RuntimeenvironmentResponse(object):
|
|
108
108
|
|
109
109
|
def __eq__(self, other):
|
110
110
|
"""Returns true if both objects are equal"""
|
111
|
-
if not isinstance(other,
|
111
|
+
if not isinstance(other, OperatorId):
|
112
112
|
return False
|
113
113
|
|
114
114
|
return self.to_dict() == other.to_dict()
|
115
115
|
|
116
116
|
def __ne__(self, other):
|
117
117
|
"""Returns true if both objects are not equal"""
|
118
|
-
if not isinstance(other,
|
118
|
+
if not isinstance(other, OperatorId):
|
119
119
|
return True
|
120
120
|
|
121
121
|
return self.to_dict() != other.to_dict()
|
@@ -40,8 +40,7 @@ class OperatorMetrics(object):
|
|
40
40
|
'total': 'int',
|
41
41
|
'start_time': 'int',
|
42
42
|
'end_time': 'int',
|
43
|
-
'metrics': 'dict(str, Metric)'
|
44
|
-
'sub_operators': 'list[OperatorMetricId]'
|
43
|
+
'metrics': 'dict(str, Metric)'
|
45
44
|
}
|
46
45
|
|
47
46
|
attribute_map = {
|
@@ -52,11 +51,10 @@ class OperatorMetrics(object):
|
|
52
51
|
'total': 'total',
|
53
52
|
'start_time': 'start_time',
|
54
53
|
'end_time': 'end_time',
|
55
|
-
'metrics': 'metrics'
|
56
|
-
'sub_operators': 'sub_operators'
|
54
|
+
'metrics': 'metrics'
|
57
55
|
}
|
58
56
|
|
59
|
-
def __init__(self, id=None, name=None, state=None, progress=None, total=None, start_time=None, end_time=None, metrics=None,
|
57
|
+
def __init__(self, id=None, name=None, state=None, progress=None, total=None, start_time=None, end_time=None, metrics=None, local_vars_configuration=None): # noqa: E501
|
60
58
|
"""OperatorMetrics - a model defined in OpenAPI""" # noqa: E501
|
61
59
|
if local_vars_configuration is None:
|
62
60
|
local_vars_configuration = Configuration()
|
@@ -70,7 +68,6 @@ class OperatorMetrics(object):
|
|
70
68
|
self._start_time = None
|
71
69
|
self._end_time = None
|
72
70
|
self._metrics = None
|
73
|
-
self._sub_operators = None
|
74
71
|
self.discriminator = None
|
75
72
|
|
76
73
|
self.id = id
|
@@ -82,7 +79,6 @@ class OperatorMetrics(object):
|
|
82
79
|
if end_time is not None:
|
83
80
|
self.end_time = end_time
|
84
81
|
self.metrics = metrics
|
85
|
-
self.sub_operators = sub_operators
|
86
82
|
|
87
83
|
@property
|
88
84
|
def id(self):
|
@@ -266,29 +262,6 @@ class OperatorMetrics(object):
|
|
266
262
|
|
267
263
|
self._metrics = metrics
|
268
264
|
|
269
|
-
@property
|
270
|
-
def sub_operators(self):
|
271
|
-
"""Gets the sub_operators of this OperatorMetrics. # noqa: E501
|
272
|
-
|
273
|
-
|
274
|
-
:return: The sub_operators of this OperatorMetrics. # noqa: E501
|
275
|
-
:rtype: list[OperatorMetricId]
|
276
|
-
"""
|
277
|
-
return self._sub_operators
|
278
|
-
|
279
|
-
@sub_operators.setter
|
280
|
-
def sub_operators(self, sub_operators):
|
281
|
-
"""Sets the sub_operators of this OperatorMetrics.
|
282
|
-
|
283
|
-
|
284
|
-
:param sub_operators: The sub_operators of this OperatorMetrics. # noqa: E501
|
285
|
-
:type: list[OperatorMetricId]
|
286
|
-
"""
|
287
|
-
if self.local_vars_configuration.client_side_validation and sub_operators is None: # noqa: E501
|
288
|
-
raise ValueError("Invalid value for `sub_operators`, must not be `None`") # noqa: E501
|
289
|
-
|
290
|
-
self._sub_operators = sub_operators
|
291
|
-
|
292
265
|
def to_dict(self):
|
293
266
|
"""Returns the model properties as a dict"""
|
294
267
|
result = {}
|