anyscale 0.26.7__py3-none-any.whl → 0.26.9__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/anyscale_client.py +17 -1
- anyscale/_private/anyscale_client/common.py +12 -2
- anyscale/_private/anyscale_client/fake_anyscale_client.py +20 -3
- anyscale/_private/docgen/__main__.py +4 -0
- anyscale/_private/docgen/models.md +11 -2
- anyscale/client/README.md +7 -23
- anyscale/client/openapi_client/__init__.py +5 -15
- anyscale/client/openapi_client/api/default_api.py +410 -1091
- anyscale/client/openapi_client/models/__init__.py +5 -15
- anyscale/client/openapi_client/models/baseimagesenum.py +135 -1
- anyscale/client/openapi_client/models/{jobslogs_response.py → cluster_state.py} +21 -34
- anyscale/client/openapi_client/models/describe_system_workload_response.py +226 -0
- anyscale/client/openapi_client/models/{interactivesessionlogs_response.py → describesystemworkloadresponse_response.py} +11 -11
- anyscale/client/openapi_client/models/job_details.py +27 -1
- anyscale/client/openapi_client/models/metric.py +29 -3
- anyscale/client/openapi_client/models/{timestampedlogsoutput_response.py → operator_metric_id.py} +49 -22
- anyscale/client/openapi_client/models/operator_metrics.py +83 -3
- anyscale/client/openapi_client/models/supportedbaseimagesenum.py +135 -1
- anyscale/client/openapi_client/models/{job_submissions_sort_field.py → system_workload_name.py} +6 -8
- anyscale/commands/command_examples.py +4 -0
- anyscale/commands/service_commands.py +62 -27
- anyscale/job/_private/job_sdk.py +1 -3
- anyscale/sdk/anyscale_client/__init__.py +1 -0
- anyscale/sdk/anyscale_client/models/__init__.py +1 -0
- anyscale/sdk/anyscale_client/models/baseimagesenum.py +135 -1
- anyscale/sdk/anyscale_client/models/cluster.py +60 -3
- anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +135 -1
- anyscale/{client/openapi_client/models/job_status.py → sdk/anyscale_client/models/system_workload_name.py} +8 -14
- anyscale/service/__init__.py +19 -0
- anyscale/service/_private/service_sdk.py +26 -2
- anyscale/service/commands.py +48 -9
- anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
- anyscale/version.py +1 -1
- {anyscale-0.26.7.dist-info → anyscale-0.26.9.dist-info}/METADATA +1 -1
- {anyscale-0.26.7.dist-info → anyscale-0.26.9.dist-info}/RECORD +40 -49
- anyscale/client/openapi_client/models/decorated_job_submission.py +0 -547
- anyscale/client/openapi_client/models/decoratedjobsubmission_list_response.py +0 -147
- anyscale/client/openapi_client/models/decoratedjobsubmission_response.py +0 -121
- anyscale/client/openapi_client/models/interactive_session_logs.py +0 -152
- anyscale/client/openapi_client/models/jobs_logs.py +0 -152
- anyscale/client/openapi_client/models/jobs_logs_query_info.py +0 -181
- anyscale/client/openapi_client/models/jobslogsqueryinfo_response.py +0 -121
- anyscale/client/openapi_client/models/serve_deployment_logs.py +0 -152
- anyscale/client/openapi_client/models/servedeploymentlogs_response.py +0 -121
- anyscale/client/openapi_client/models/timestamped_logs_output.py +0 -148
- {anyscale-0.26.7.dist-info → anyscale-0.26.9.dist-info}/LICENSE +0 -0
- {anyscale-0.26.7.dist-info → anyscale-0.26.9.dist-info}/NOTICE +0 -0
- {anyscale-0.26.7.dist-info → anyscale-0.26.9.dist-info}/WHEEL +0 -0
- {anyscale-0.26.7.dist-info → anyscale-0.26.9.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.7.dist-info → anyscale-0.26.9.dist-info}/top_level.txt +0 -0
@@ -18,13 +18,29 @@ import six
|
|
18
18
|
from openapi_client.configuration import Configuration
|
19
19
|
|
20
20
|
|
21
|
-
class
|
21
|
+
class ClusterState(object):
|
22
22
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
23
23
|
Ref: https://openapi-generator.tech
|
24
24
|
|
25
25
|
Do not edit the class manually.
|
26
26
|
"""
|
27
27
|
|
28
|
+
"""
|
29
|
+
allowed enum values
|
30
|
+
"""
|
31
|
+
TERMINATED = "Terminated"
|
32
|
+
STARTINGUP = "StartingUp"
|
33
|
+
STARTUPERRORED = "StartupErrored"
|
34
|
+
RUNNING = "Running"
|
35
|
+
UPDATING = "Updating"
|
36
|
+
UPDATINGERRORED = "UpdatingErrored"
|
37
|
+
TERMINATING = "Terminating"
|
38
|
+
AWAITINGSTARTUP = "AwaitingStartup"
|
39
|
+
TERMINATINGERRORED = "TerminatingErrored"
|
40
|
+
UNKNOWN = "Unknown"
|
41
|
+
|
42
|
+
allowable_values = [TERMINATED, STARTINGUP, STARTUPERRORED, RUNNING, UPDATING, UPDATINGERRORED, TERMINATING, AWAITINGSTARTUP, TERMINATINGERRORED, UNKNOWN] # noqa: E501
|
43
|
+
|
28
44
|
"""
|
29
45
|
Attributes:
|
30
46
|
openapi_types (dict): The key is attribute name
|
@@ -33,47 +49,18 @@ class JobslogsResponse(object):
|
|
33
49
|
and the value is json key in definition.
|
34
50
|
"""
|
35
51
|
openapi_types = {
|
36
|
-
'result': 'JobsLogs'
|
37
52
|
}
|
38
53
|
|
39
54
|
attribute_map = {
|
40
|
-
'result': 'result'
|
41
55
|
}
|
42
56
|
|
43
|
-
def __init__(self,
|
44
|
-
"""
|
57
|
+
def __init__(self, local_vars_configuration=None): # noqa: E501
|
58
|
+
"""ClusterState - a model defined in OpenAPI""" # noqa: E501
|
45
59
|
if local_vars_configuration is None:
|
46
60
|
local_vars_configuration = Configuration()
|
47
61
|
self.local_vars_configuration = local_vars_configuration
|
48
|
-
|
49
|
-
self._result = None
|
50
62
|
self.discriminator = None
|
51
63
|
|
52
|
-
self.result = result
|
53
|
-
|
54
|
-
@property
|
55
|
-
def result(self):
|
56
|
-
"""Gets the result of this JobslogsResponse. # noqa: E501
|
57
|
-
|
58
|
-
|
59
|
-
:return: The result of this JobslogsResponse. # noqa: E501
|
60
|
-
:rtype: JobsLogs
|
61
|
-
"""
|
62
|
-
return self._result
|
63
|
-
|
64
|
-
@result.setter
|
65
|
-
def result(self, result):
|
66
|
-
"""Sets the result of this JobslogsResponse.
|
67
|
-
|
68
|
-
|
69
|
-
:param result: The result of this JobslogsResponse. # noqa: E501
|
70
|
-
:type: JobsLogs
|
71
|
-
"""
|
72
|
-
if self.local_vars_configuration.client_side_validation and result is None: # noqa: E501
|
73
|
-
raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501
|
74
|
-
|
75
|
-
self._result = result
|
76
|
-
|
77
64
|
def to_dict(self):
|
78
65
|
"""Returns the model properties as a dict"""
|
79
66
|
result = {}
|
@@ -108,14 +95,14 @@ class JobslogsResponse(object):
|
|
108
95
|
|
109
96
|
def __eq__(self, other):
|
110
97
|
"""Returns true if both objects are equal"""
|
111
|
-
if not isinstance(other,
|
98
|
+
if not isinstance(other, ClusterState):
|
112
99
|
return False
|
113
100
|
|
114
101
|
return self.to_dict() == other.to_dict()
|
115
102
|
|
116
103
|
def __ne__(self, other):
|
117
104
|
"""Returns true if both objects are not equal"""
|
118
|
-
if not isinstance(other,
|
105
|
+
if not isinstance(other, ClusterState):
|
119
106
|
return True
|
120
107
|
|
121
108
|
return self.to_dict() != other.to_dict()
|
@@ -0,0 +1,226 @@
|
|
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 DescribeSystemWorkloadResponse(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
|
+
'cluster_id': 'str',
|
37
|
+
'workload_names': 'list[SystemWorkloadName]',
|
38
|
+
'workload_service_url': 'str',
|
39
|
+
'workload_service_url_auth': 'str',
|
40
|
+
'status': 'ClusterState'
|
41
|
+
}
|
42
|
+
|
43
|
+
attribute_map = {
|
44
|
+
'cluster_id': 'cluster_id',
|
45
|
+
'workload_names': 'workload_names',
|
46
|
+
'workload_service_url': 'workload_service_url',
|
47
|
+
'workload_service_url_auth': 'workload_service_url_auth',
|
48
|
+
'status': 'status'
|
49
|
+
}
|
50
|
+
|
51
|
+
def __init__(self, cluster_id=None, workload_names=None, workload_service_url=None, workload_service_url_auth=None, status=None, local_vars_configuration=None): # noqa: E501
|
52
|
+
"""DescribeSystemWorkloadResponse - 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._cluster_id = None
|
58
|
+
self._workload_names = None
|
59
|
+
self._workload_service_url = None
|
60
|
+
self._workload_service_url_auth = None
|
61
|
+
self._status = None
|
62
|
+
self.discriminator = None
|
63
|
+
|
64
|
+
self.cluster_id = cluster_id
|
65
|
+
self.workload_names = workload_names
|
66
|
+
if workload_service_url is not None:
|
67
|
+
self.workload_service_url = workload_service_url
|
68
|
+
if workload_service_url_auth is not None:
|
69
|
+
self.workload_service_url_auth = workload_service_url_auth
|
70
|
+
if status is not None:
|
71
|
+
self.status = status
|
72
|
+
|
73
|
+
@property
|
74
|
+
def cluster_id(self):
|
75
|
+
"""Gets the cluster_id of this DescribeSystemWorkloadResponse. # noqa: E501
|
76
|
+
|
77
|
+
|
78
|
+
:return: The cluster_id of this DescribeSystemWorkloadResponse. # noqa: E501
|
79
|
+
:rtype: str
|
80
|
+
"""
|
81
|
+
return self._cluster_id
|
82
|
+
|
83
|
+
@cluster_id.setter
|
84
|
+
def cluster_id(self, cluster_id):
|
85
|
+
"""Sets the cluster_id of this DescribeSystemWorkloadResponse.
|
86
|
+
|
87
|
+
|
88
|
+
:param cluster_id: The cluster_id of this DescribeSystemWorkloadResponse. # noqa: E501
|
89
|
+
:type: str
|
90
|
+
"""
|
91
|
+
if self.local_vars_configuration.client_side_validation and cluster_id is None: # noqa: E501
|
92
|
+
raise ValueError("Invalid value for `cluster_id`, must not be `None`") # noqa: E501
|
93
|
+
|
94
|
+
self._cluster_id = cluster_id
|
95
|
+
|
96
|
+
@property
|
97
|
+
def workload_names(self):
|
98
|
+
"""Gets the workload_names of this DescribeSystemWorkloadResponse. # noqa: E501
|
99
|
+
|
100
|
+
|
101
|
+
:return: The workload_names of this DescribeSystemWorkloadResponse. # noqa: E501
|
102
|
+
:rtype: list[SystemWorkloadName]
|
103
|
+
"""
|
104
|
+
return self._workload_names
|
105
|
+
|
106
|
+
@workload_names.setter
|
107
|
+
def workload_names(self, workload_names):
|
108
|
+
"""Sets the workload_names of this DescribeSystemWorkloadResponse.
|
109
|
+
|
110
|
+
|
111
|
+
:param workload_names: The workload_names of this DescribeSystemWorkloadResponse. # noqa: E501
|
112
|
+
:type: list[SystemWorkloadName]
|
113
|
+
"""
|
114
|
+
if self.local_vars_configuration.client_side_validation and workload_names is None: # noqa: E501
|
115
|
+
raise ValueError("Invalid value for `workload_names`, must not be `None`") # noqa: E501
|
116
|
+
|
117
|
+
self._workload_names = workload_names
|
118
|
+
|
119
|
+
@property
|
120
|
+
def workload_service_url(self):
|
121
|
+
"""Gets the workload_service_url of this DescribeSystemWorkloadResponse. # noqa: E501
|
122
|
+
|
123
|
+
|
124
|
+
:return: The workload_service_url of this DescribeSystemWorkloadResponse. # noqa: E501
|
125
|
+
:rtype: str
|
126
|
+
"""
|
127
|
+
return self._workload_service_url
|
128
|
+
|
129
|
+
@workload_service_url.setter
|
130
|
+
def workload_service_url(self, workload_service_url):
|
131
|
+
"""Sets the workload_service_url of this DescribeSystemWorkloadResponse.
|
132
|
+
|
133
|
+
|
134
|
+
:param workload_service_url: The workload_service_url of this DescribeSystemWorkloadResponse. # noqa: E501
|
135
|
+
:type: str
|
136
|
+
"""
|
137
|
+
|
138
|
+
self._workload_service_url = workload_service_url
|
139
|
+
|
140
|
+
@property
|
141
|
+
def workload_service_url_auth(self):
|
142
|
+
"""Gets the workload_service_url_auth of this DescribeSystemWorkloadResponse. # noqa: E501
|
143
|
+
|
144
|
+
|
145
|
+
:return: The workload_service_url_auth of this DescribeSystemWorkloadResponse. # noqa: E501
|
146
|
+
:rtype: str
|
147
|
+
"""
|
148
|
+
return self._workload_service_url_auth
|
149
|
+
|
150
|
+
@workload_service_url_auth.setter
|
151
|
+
def workload_service_url_auth(self, workload_service_url_auth):
|
152
|
+
"""Sets the workload_service_url_auth of this DescribeSystemWorkloadResponse.
|
153
|
+
|
154
|
+
|
155
|
+
:param workload_service_url_auth: The workload_service_url_auth of this DescribeSystemWorkloadResponse. # noqa: E501
|
156
|
+
:type: str
|
157
|
+
"""
|
158
|
+
|
159
|
+
self._workload_service_url_auth = workload_service_url_auth
|
160
|
+
|
161
|
+
@property
|
162
|
+
def status(self):
|
163
|
+
"""Gets the status of this DescribeSystemWorkloadResponse. # noqa: E501
|
164
|
+
|
165
|
+
|
166
|
+
:return: The status of this DescribeSystemWorkloadResponse. # noqa: E501
|
167
|
+
:rtype: ClusterState
|
168
|
+
"""
|
169
|
+
return self._status
|
170
|
+
|
171
|
+
@status.setter
|
172
|
+
def status(self, status):
|
173
|
+
"""Sets the status of this DescribeSystemWorkloadResponse.
|
174
|
+
|
175
|
+
|
176
|
+
:param status: The status of this DescribeSystemWorkloadResponse. # noqa: E501
|
177
|
+
:type: ClusterState
|
178
|
+
"""
|
179
|
+
|
180
|
+
self._status = status
|
181
|
+
|
182
|
+
def to_dict(self):
|
183
|
+
"""Returns the model properties as a dict"""
|
184
|
+
result = {}
|
185
|
+
|
186
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
187
|
+
value = getattr(self, attr)
|
188
|
+
if isinstance(value, list):
|
189
|
+
result[attr] = list(map(
|
190
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
191
|
+
value
|
192
|
+
))
|
193
|
+
elif hasattr(value, "to_dict"):
|
194
|
+
result[attr] = value.to_dict()
|
195
|
+
elif isinstance(value, dict):
|
196
|
+
result[attr] = dict(map(
|
197
|
+
lambda item: (item[0], item[1].to_dict())
|
198
|
+
if hasattr(item[1], "to_dict") else item,
|
199
|
+
value.items()
|
200
|
+
))
|
201
|
+
else:
|
202
|
+
result[attr] = value
|
203
|
+
|
204
|
+
return result
|
205
|
+
|
206
|
+
def to_str(self):
|
207
|
+
"""Returns the string representation of the model"""
|
208
|
+
return pprint.pformat(self.to_dict())
|
209
|
+
|
210
|
+
def __repr__(self):
|
211
|
+
"""For `print` and `pprint`"""
|
212
|
+
return self.to_str()
|
213
|
+
|
214
|
+
def __eq__(self, other):
|
215
|
+
"""Returns true if both objects are equal"""
|
216
|
+
if not isinstance(other, DescribeSystemWorkloadResponse):
|
217
|
+
return False
|
218
|
+
|
219
|
+
return self.to_dict() == other.to_dict()
|
220
|
+
|
221
|
+
def __ne__(self, other):
|
222
|
+
"""Returns true if both objects are not equal"""
|
223
|
+
if not isinstance(other, DescribeSystemWorkloadResponse):
|
224
|
+
return True
|
225
|
+
|
226
|
+
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 DescribesystemworkloadresponseResponse(object):
|
22
22
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
23
23
|
Ref: https://openapi-generator.tech
|
24
24
|
|
@@ -33,7 +33,7 @@ class InteractivesessionlogsResponse(object):
|
|
33
33
|
and the value is json key in definition.
|
34
34
|
"""
|
35
35
|
openapi_types = {
|
36
|
-
'result': '
|
36
|
+
'result': 'DescribeSystemWorkloadResponse'
|
37
37
|
}
|
38
38
|
|
39
39
|
attribute_map = {
|
@@ -41,7 +41,7 @@ class InteractivesessionlogsResponse(object):
|
|
41
41
|
}
|
42
42
|
|
43
43
|
def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
|
44
|
-
"""
|
44
|
+
"""DescribesystemworkloadresponseResponse - 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
|
@@ -53,21 +53,21 @@ class InteractivesessionlogsResponse(object):
|
|
53
53
|
|
54
54
|
@property
|
55
55
|
def result(self):
|
56
|
-
"""Gets the result of this
|
56
|
+
"""Gets the result of this DescribesystemworkloadresponseResponse. # noqa: E501
|
57
57
|
|
58
58
|
|
59
|
-
:return: The result of this
|
60
|
-
:rtype:
|
59
|
+
:return: The result of this DescribesystemworkloadresponseResponse. # noqa: E501
|
60
|
+
:rtype: DescribeSystemWorkloadResponse
|
61
61
|
"""
|
62
62
|
return self._result
|
63
63
|
|
64
64
|
@result.setter
|
65
65
|
def result(self, result):
|
66
|
-
"""Sets the result of this
|
66
|
+
"""Sets the result of this DescribesystemworkloadresponseResponse.
|
67
67
|
|
68
68
|
|
69
|
-
:param result: The result of this
|
70
|
-
:type:
|
69
|
+
:param result: The result of this DescribesystemworkloadresponseResponse. # noqa: E501
|
70
|
+
:type: DescribeSystemWorkloadResponse
|
71
71
|
"""
|
72
72
|
if self.local_vars_configuration.client_side_validation and result is None: # noqa: E501
|
73
73
|
raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501
|
@@ -108,14 +108,14 @@ class InteractivesessionlogsResponse(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, DescribesystemworkloadresponseResponse):
|
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, DescribesystemworkloadresponseResponse):
|
119
119
|
return True
|
120
120
|
|
121
121
|
return self.to_dict() != other.to_dict()
|
@@ -35,16 +35,18 @@ class JobDetails(object):
|
|
35
35
|
openapi_types = {
|
36
36
|
'job_id': 'str',
|
37
37
|
'submission_id': 'str',
|
38
|
+
'runtime_env': 'object',
|
38
39
|
'entrypoint': 'str'
|
39
40
|
}
|
40
41
|
|
41
42
|
attribute_map = {
|
42
43
|
'job_id': 'job_id',
|
43
44
|
'submission_id': 'submission_id',
|
45
|
+
'runtime_env': 'runtime_env',
|
44
46
|
'entrypoint': 'entrypoint'
|
45
47
|
}
|
46
48
|
|
47
|
-
def __init__(self, job_id=None, submission_id=None, entrypoint=None, local_vars_configuration=None): # noqa: E501
|
49
|
+
def __init__(self, job_id=None, submission_id=None, runtime_env=None, entrypoint=None, local_vars_configuration=None): # noqa: E501
|
48
50
|
"""JobDetails - a model defined in OpenAPI""" # noqa: E501
|
49
51
|
if local_vars_configuration is None:
|
50
52
|
local_vars_configuration = Configuration()
|
@@ -52,6 +54,7 @@ class JobDetails(object):
|
|
52
54
|
|
53
55
|
self._job_id = None
|
54
56
|
self._submission_id = None
|
57
|
+
self._runtime_env = None
|
55
58
|
self._entrypoint = None
|
56
59
|
self.discriminator = None
|
57
60
|
|
@@ -59,6 +62,8 @@ class JobDetails(object):
|
|
59
62
|
self.job_id = job_id
|
60
63
|
if submission_id is not None:
|
61
64
|
self.submission_id = submission_id
|
65
|
+
if runtime_env is not None:
|
66
|
+
self.runtime_env = runtime_env
|
62
67
|
self.entrypoint = entrypoint
|
63
68
|
|
64
69
|
@property
|
@@ -103,6 +108,27 @@ class JobDetails(object):
|
|
103
108
|
|
104
109
|
self._submission_id = submission_id
|
105
110
|
|
111
|
+
@property
|
112
|
+
def runtime_env(self):
|
113
|
+
"""Gets the runtime_env of this JobDetails. # noqa: E501
|
114
|
+
|
115
|
+
|
116
|
+
:return: The runtime_env of this JobDetails. # noqa: E501
|
117
|
+
:rtype: object
|
118
|
+
"""
|
119
|
+
return self._runtime_env
|
120
|
+
|
121
|
+
@runtime_env.setter
|
122
|
+
def runtime_env(self, runtime_env):
|
123
|
+
"""Sets the runtime_env of this JobDetails.
|
124
|
+
|
125
|
+
|
126
|
+
:param runtime_env: The runtime_env of this JobDetails. # noqa: E501
|
127
|
+
:type: object
|
128
|
+
"""
|
129
|
+
|
130
|
+
self._runtime_env = runtime_env
|
131
|
+
|
106
132
|
@property
|
107
133
|
def entrypoint(self):
|
108
134
|
"""Gets the entrypoint of this JobDetails. # noqa: E501
|
@@ -35,16 +35,18 @@ class Metric(object):
|
|
35
35
|
openapi_types = {
|
36
36
|
'name': 'str',
|
37
37
|
'current_value': 'float',
|
38
|
-
'max_over_time': 'float'
|
38
|
+
'max_over_time': 'float',
|
39
|
+
'rate': 'float'
|
39
40
|
}
|
40
41
|
|
41
42
|
attribute_map = {
|
42
43
|
'name': 'name',
|
43
44
|
'current_value': 'current_value',
|
44
|
-
'max_over_time': 'max_over_time'
|
45
|
+
'max_over_time': 'max_over_time',
|
46
|
+
'rate': 'rate'
|
45
47
|
}
|
46
48
|
|
47
|
-
def __init__(self, name=None, current_value=None, max_over_time=None, local_vars_configuration=None): # noqa: E501
|
49
|
+
def __init__(self, name=None, current_value=None, max_over_time=None, rate=None, local_vars_configuration=None): # noqa: E501
|
48
50
|
"""Metric - a model defined in OpenAPI""" # noqa: E501
|
49
51
|
if local_vars_configuration is None:
|
50
52
|
local_vars_configuration = Configuration()
|
@@ -53,6 +55,7 @@ class Metric(object):
|
|
53
55
|
self._name = None
|
54
56
|
self._current_value = None
|
55
57
|
self._max_over_time = None
|
58
|
+
self._rate = None
|
56
59
|
self.discriminator = None
|
57
60
|
|
58
61
|
self.name = name
|
@@ -60,6 +63,8 @@ class Metric(object):
|
|
60
63
|
self.current_value = current_value
|
61
64
|
if max_over_time is not None:
|
62
65
|
self.max_over_time = max_over_time
|
66
|
+
if rate is not None:
|
67
|
+
self.rate = rate
|
63
68
|
|
64
69
|
@property
|
65
70
|
def name(self):
|
@@ -126,6 +131,27 @@ class Metric(object):
|
|
126
131
|
|
127
132
|
self._max_over_time = max_over_time
|
128
133
|
|
134
|
+
@property
|
135
|
+
def rate(self):
|
136
|
+
"""Gets the rate of this Metric. # noqa: E501
|
137
|
+
|
138
|
+
|
139
|
+
:return: The rate of this Metric. # noqa: E501
|
140
|
+
:rtype: float
|
141
|
+
"""
|
142
|
+
return self._rate
|
143
|
+
|
144
|
+
@rate.setter
|
145
|
+
def rate(self, rate):
|
146
|
+
"""Sets the rate of this Metric.
|
147
|
+
|
148
|
+
|
149
|
+
:param rate: The rate of this Metric. # noqa: E501
|
150
|
+
:type: float
|
151
|
+
"""
|
152
|
+
|
153
|
+
self._rate = rate
|
154
|
+
|
129
155
|
def to_dict(self):
|
130
156
|
"""Returns the model properties as a dict"""
|
131
157
|
result = {}
|
anyscale/client/openapi_client/models/{timestampedlogsoutput_response.py → operator_metric_id.py}
RENAMED
@@ -18,7 +18,7 @@ import six
|
|
18
18
|
from openapi_client.configuration import Configuration
|
19
19
|
|
20
20
|
|
21
|
-
class
|
21
|
+
class OperatorMetricId(object):
|
22
22
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
23
23
|
Ref: https://openapi-generator.tech
|
24
24
|
|
@@ -33,46 +33,73 @@ class TimestampedlogsoutputResponse(object):
|
|
33
33
|
and the value is json key in definition.
|
34
34
|
"""
|
35
35
|
openapi_types = {
|
36
|
-
'
|
36
|
+
'id': 'str',
|
37
|
+
'name': 'str'
|
37
38
|
}
|
38
39
|
|
39
40
|
attribute_map = {
|
40
|
-
'
|
41
|
+
'id': 'id',
|
42
|
+
'name': 'name'
|
41
43
|
}
|
42
44
|
|
43
|
-
def __init__(self,
|
44
|
-
"""
|
45
|
+
def __init__(self, id=None, name=None, local_vars_configuration=None): # noqa: E501
|
46
|
+
"""OperatorMetricId - a model defined in OpenAPI""" # noqa: E501
|
45
47
|
if local_vars_configuration is None:
|
46
48
|
local_vars_configuration = Configuration()
|
47
49
|
self.local_vars_configuration = local_vars_configuration
|
48
50
|
|
49
|
-
self.
|
51
|
+
self._id = None
|
52
|
+
self._name = None
|
50
53
|
self.discriminator = None
|
51
54
|
|
52
|
-
self.
|
55
|
+
self.id = id
|
56
|
+
self.name = name
|
53
57
|
|
54
58
|
@property
|
55
|
-
def
|
56
|
-
"""Gets the
|
59
|
+
def id(self):
|
60
|
+
"""Gets the id of this OperatorMetricId. # noqa: E501
|
57
61
|
|
58
62
|
|
59
|
-
:return: The
|
60
|
-
:rtype:
|
63
|
+
:return: The id of this OperatorMetricId. # noqa: E501
|
64
|
+
:rtype: str
|
61
65
|
"""
|
62
|
-
return self.
|
66
|
+
return self._id
|
63
67
|
|
64
|
-
@
|
65
|
-
def
|
66
|
-
"""Sets the
|
68
|
+
@id.setter
|
69
|
+
def id(self, id):
|
70
|
+
"""Sets the id of this OperatorMetricId.
|
67
71
|
|
68
72
|
|
69
|
-
:param
|
70
|
-
:type:
|
73
|
+
:param id: The id of this OperatorMetricId. # noqa: E501
|
74
|
+
:type: str
|
71
75
|
"""
|
72
|
-
if self.local_vars_configuration.client_side_validation and
|
73
|
-
raise ValueError("Invalid value for `
|
76
|
+
if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
|
77
|
+
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
|
74
78
|
|
75
|
-
self.
|
79
|
+
self._id = id
|
80
|
+
|
81
|
+
@property
|
82
|
+
def name(self):
|
83
|
+
"""Gets the name of this OperatorMetricId. # noqa: E501
|
84
|
+
|
85
|
+
|
86
|
+
:return: The name of this OperatorMetricId. # noqa: E501
|
87
|
+
:rtype: str
|
88
|
+
"""
|
89
|
+
return self._name
|
90
|
+
|
91
|
+
@name.setter
|
92
|
+
def name(self, name):
|
93
|
+
"""Sets the name of this OperatorMetricId.
|
94
|
+
|
95
|
+
|
96
|
+
:param name: The name of this OperatorMetricId. # noqa: E501
|
97
|
+
:type: str
|
98
|
+
"""
|
99
|
+
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
100
|
+
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
101
|
+
|
102
|
+
self._name = name
|
76
103
|
|
77
104
|
def to_dict(self):
|
78
105
|
"""Returns the model properties as a dict"""
|
@@ -108,14 +135,14 @@ class TimestampedlogsoutputResponse(object):
|
|
108
135
|
|
109
136
|
def __eq__(self, other):
|
110
137
|
"""Returns true if both objects are equal"""
|
111
|
-
if not isinstance(other,
|
138
|
+
if not isinstance(other, OperatorMetricId):
|
112
139
|
return False
|
113
140
|
|
114
141
|
return self.to_dict() == other.to_dict()
|
115
142
|
|
116
143
|
def __ne__(self, other):
|
117
144
|
"""Returns true if both objects are not equal"""
|
118
|
-
if not isinstance(other,
|
145
|
+
if not isinstance(other, OperatorMetricId):
|
119
146
|
return True
|
120
147
|
|
121
148
|
return self.to_dict() != other.to_dict()
|