anyscale 0.26.2__py3-none-any.whl → 0.26.4__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/models.md +2 -1
- anyscale/_private/workload/workload_config.py +11 -0
- anyscale/_private/workload/workload_sdk.py +4 -0
- anyscale/client/README.md +3 -43
- anyscale/client/openapi_client/__init__.py +0 -26
- anyscale/client/openapi_client/api/default_api.py +368 -2030
- anyscale/client/openapi_client/models/__init__.py +0 -26
- anyscale/client/openapi_client/models/node_type.py +2 -1
- anyscale/client/openapi_client/models/ray_runtime_env_config.py +29 -1
- anyscale/client/openapi_client/models/train_run.py +29 -3
- anyscale/client/openapi_client/models/train_worker.py +29 -3
- anyscale/job/_private/job_sdk.py +4 -0
- anyscale/sdk/anyscale_client/models/node_type.py +2 -1
- anyscale/sdk/anyscale_client/models/ray_runtime_env_config.py +29 -1
- anyscale/version.py +1 -1
- {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/METADATA +1 -1
- {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/RECORD +22 -48
- anyscale/client/openapi_client/models/aica_endpoint.py +0 -527
- anyscale/client/openapi_client/models/aica_endpoint_event.py +0 -433
- anyscale/client/openapi_client/models/aica_endpoint_event_level.py +0 -103
- anyscale/client/openapi_client/models/aica_endpoint_event_type.py +0 -120
- anyscale/client/openapi_client/models/aica_endpoint_scope.py +0 -102
- anyscale/client/openapi_client/models/aica_model.py +0 -398
- anyscale/client/openapi_client/models/aica_model_accelerator_map.py +0 -123
- anyscale/client/openapi_client/models/aica_model_configuration.py +0 -209
- anyscale/client/openapi_client/models/aica_observability_urls.py +0 -178
- anyscale/client/openapi_client/models/aicaendpoint_list_response.py +0 -147
- anyscale/client/openapi_client/models/aicaendpoint_response.py +0 -121
- anyscale/client/openapi_client/models/aicaendpointevent_list_response.py +0 -147
- anyscale/client/openapi_client/models/aicamodel_list_response.py +0 -147
- anyscale/client/openapi_client/models/aicamodel_response.py +0 -121
- anyscale/client/openapi_client/models/aws_credentials.py +0 -181
- anyscale/client/openapi_client/models/create_aica_endpoint.py +0 -210
- anyscale/client/openapi_client/models/create_cloud_with_cloud_resource.py +0 -546
- anyscale/client/openapi_client/models/import_aica_model.py +0 -241
- anyscale/client/openapi_client/models/log_detail.py +0 -187
- anyscale/client/openapi_client/models/log_details.py +0 -151
- anyscale/client/openapi_client/models/logdetails_response.py +0 -121
- anyscale/client/openapi_client/models/named_entity.py +0 -148
- anyscale/client/openapi_client/models/provider_metadata.py +0 -205
- anyscale/client/openapi_client/models/providermetadata_response.py +0 -121
- anyscale/client/openapi_client/models/update_endpoint.py +0 -152
- anyscale/client/openapi_client/models/update_model_deployment.py +0 -152
- {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/LICENSE +0 -0
- {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/NOTICE +0 -0
- {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/WHEEL +0 -0
- {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/top_level.txt +0 -0
@@ -1,241 +0,0 @@
|
|
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 ImportAicaModel(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
|
-
'model_object_storage_uri': 'str',
|
38
|
-
'generation_configuration_json': 'object',
|
39
|
-
'params_size_in_billions': 'int',
|
40
|
-
'cloud_id': 'str'
|
41
|
-
}
|
42
|
-
|
43
|
-
attribute_map = {
|
44
|
-
'id': 'id',
|
45
|
-
'model_object_storage_uri': 'model_object_storage_uri',
|
46
|
-
'generation_configuration_json': 'generation_configuration_json',
|
47
|
-
'params_size_in_billions': 'params_size_in_billions',
|
48
|
-
'cloud_id': 'cloud_id'
|
49
|
-
}
|
50
|
-
|
51
|
-
def __init__(self, id=None, model_object_storage_uri=None, generation_configuration_json=None, params_size_in_billions=None, cloud_id=None, local_vars_configuration=None): # noqa: E501
|
52
|
-
"""ImportAicaModel - 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._model_object_storage_uri = None
|
59
|
-
self._generation_configuration_json = None
|
60
|
-
self._params_size_in_billions = None
|
61
|
-
self._cloud_id = None
|
62
|
-
self.discriminator = None
|
63
|
-
|
64
|
-
self.id = id
|
65
|
-
if model_object_storage_uri is not None:
|
66
|
-
self.model_object_storage_uri = model_object_storage_uri
|
67
|
-
self.generation_configuration_json = generation_configuration_json
|
68
|
-
self.params_size_in_billions = params_size_in_billions
|
69
|
-
self.cloud_id = cloud_id
|
70
|
-
|
71
|
-
@property
|
72
|
-
def id(self):
|
73
|
-
"""Gets the id of this ImportAicaModel. # noqa: E501
|
74
|
-
|
75
|
-
Name of the model to be imported. # noqa: E501
|
76
|
-
|
77
|
-
:return: The id of this ImportAicaModel. # noqa: E501
|
78
|
-
:rtype: str
|
79
|
-
"""
|
80
|
-
return self._id
|
81
|
-
|
82
|
-
@id.setter
|
83
|
-
def id(self, id):
|
84
|
-
"""Sets the id of this ImportAicaModel.
|
85
|
-
|
86
|
-
Name of the model to be imported. # noqa: E501
|
87
|
-
|
88
|
-
:param id: The id of this ImportAicaModel. # noqa: E501
|
89
|
-
:type: str
|
90
|
-
"""
|
91
|
-
if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
|
92
|
-
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
|
93
|
-
|
94
|
-
self._id = id
|
95
|
-
|
96
|
-
@property
|
97
|
-
def model_object_storage_uri(self):
|
98
|
-
"""Gets the model_object_storage_uri of this ImportAicaModel. # noqa: E501
|
99
|
-
|
100
|
-
The URI of the model object in the object storage. # noqa: E501
|
101
|
-
|
102
|
-
:return: The model_object_storage_uri of this ImportAicaModel. # noqa: E501
|
103
|
-
:rtype: str
|
104
|
-
"""
|
105
|
-
return self._model_object_storage_uri
|
106
|
-
|
107
|
-
@model_object_storage_uri.setter
|
108
|
-
def model_object_storage_uri(self, model_object_storage_uri):
|
109
|
-
"""Sets the model_object_storage_uri of this ImportAicaModel.
|
110
|
-
|
111
|
-
The URI of the model object in the object storage. # noqa: E501
|
112
|
-
|
113
|
-
:param model_object_storage_uri: The model_object_storage_uri of this ImportAicaModel. # noqa: E501
|
114
|
-
:type: str
|
115
|
-
"""
|
116
|
-
|
117
|
-
self._model_object_storage_uri = model_object_storage_uri
|
118
|
-
|
119
|
-
@property
|
120
|
-
def generation_configuration_json(self):
|
121
|
-
"""Gets the generation_configuration_json of this ImportAicaModel. # noqa: E501
|
122
|
-
|
123
|
-
The configuration for the generation section. # noqa: E501
|
124
|
-
|
125
|
-
:return: The generation_configuration_json of this ImportAicaModel. # noqa: E501
|
126
|
-
:rtype: object
|
127
|
-
"""
|
128
|
-
return self._generation_configuration_json
|
129
|
-
|
130
|
-
@generation_configuration_json.setter
|
131
|
-
def generation_configuration_json(self, generation_configuration_json):
|
132
|
-
"""Sets the generation_configuration_json of this ImportAicaModel.
|
133
|
-
|
134
|
-
The configuration for the generation section. # noqa: E501
|
135
|
-
|
136
|
-
:param generation_configuration_json: The generation_configuration_json of this ImportAicaModel. # noqa: E501
|
137
|
-
:type: object
|
138
|
-
"""
|
139
|
-
if self.local_vars_configuration.client_side_validation and generation_configuration_json is None: # noqa: E501
|
140
|
-
raise ValueError("Invalid value for `generation_configuration_json`, must not be `None`") # noqa: E501
|
141
|
-
|
142
|
-
self._generation_configuration_json = generation_configuration_json
|
143
|
-
|
144
|
-
@property
|
145
|
-
def params_size_in_billions(self):
|
146
|
-
"""Gets the params_size_in_billions of this ImportAicaModel. # noqa: E501
|
147
|
-
|
148
|
-
User provided model parameter size in billions. This value will be used to provide the default rayllm serving configurations of the model. # noqa: E501
|
149
|
-
|
150
|
-
:return: The params_size_in_billions of this ImportAicaModel. # noqa: E501
|
151
|
-
:rtype: int
|
152
|
-
"""
|
153
|
-
return self._params_size_in_billions
|
154
|
-
|
155
|
-
@params_size_in_billions.setter
|
156
|
-
def params_size_in_billions(self, params_size_in_billions):
|
157
|
-
"""Sets the params_size_in_billions of this ImportAicaModel.
|
158
|
-
|
159
|
-
User provided model parameter size in billions. This value will be used to provide the default rayllm serving configurations of the model. # noqa: E501
|
160
|
-
|
161
|
-
:param params_size_in_billions: The params_size_in_billions of this ImportAicaModel. # noqa: E501
|
162
|
-
:type: int
|
163
|
-
"""
|
164
|
-
if self.local_vars_configuration.client_side_validation and params_size_in_billions is None: # noqa: E501
|
165
|
-
raise ValueError("Invalid value for `params_size_in_billions`, must not be `None`") # noqa: E501
|
166
|
-
if (self.local_vars_configuration.client_side_validation and
|
167
|
-
params_size_in_billions is not None and params_size_in_billions < 0): # noqa: E501
|
168
|
-
raise ValueError("Invalid value for `params_size_in_billions`, must be a value greater than or equal to `0`") # noqa: E501
|
169
|
-
|
170
|
-
self._params_size_in_billions = params_size_in_billions
|
171
|
-
|
172
|
-
@property
|
173
|
-
def cloud_id(self):
|
174
|
-
"""Gets the cloud_id of this ImportAicaModel. # noqa: E501
|
175
|
-
|
176
|
-
The cloud id for the model. # noqa: E501
|
177
|
-
|
178
|
-
:return: The cloud_id of this ImportAicaModel. # noqa: E501
|
179
|
-
:rtype: str
|
180
|
-
"""
|
181
|
-
return self._cloud_id
|
182
|
-
|
183
|
-
@cloud_id.setter
|
184
|
-
def cloud_id(self, cloud_id):
|
185
|
-
"""Sets the cloud_id of this ImportAicaModel.
|
186
|
-
|
187
|
-
The cloud id for the model. # noqa: E501
|
188
|
-
|
189
|
-
:param cloud_id: The cloud_id of this ImportAicaModel. # noqa: E501
|
190
|
-
:type: str
|
191
|
-
"""
|
192
|
-
if self.local_vars_configuration.client_side_validation and cloud_id is None: # noqa: E501
|
193
|
-
raise ValueError("Invalid value for `cloud_id`, must not be `None`") # noqa: E501
|
194
|
-
|
195
|
-
self._cloud_id = cloud_id
|
196
|
-
|
197
|
-
def to_dict(self):
|
198
|
-
"""Returns the model properties as a dict"""
|
199
|
-
result = {}
|
200
|
-
|
201
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
202
|
-
value = getattr(self, attr)
|
203
|
-
if isinstance(value, list):
|
204
|
-
result[attr] = list(map(
|
205
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
206
|
-
value
|
207
|
-
))
|
208
|
-
elif hasattr(value, "to_dict"):
|
209
|
-
result[attr] = value.to_dict()
|
210
|
-
elif isinstance(value, dict):
|
211
|
-
result[attr] = dict(map(
|
212
|
-
lambda item: (item[0], item[1].to_dict())
|
213
|
-
if hasattr(item[1], "to_dict") else item,
|
214
|
-
value.items()
|
215
|
-
))
|
216
|
-
else:
|
217
|
-
result[attr] = value
|
218
|
-
|
219
|
-
return result
|
220
|
-
|
221
|
-
def to_str(self):
|
222
|
-
"""Returns the string representation of the model"""
|
223
|
-
return pprint.pformat(self.to_dict())
|
224
|
-
|
225
|
-
def __repr__(self):
|
226
|
-
"""For `print` and `pprint`"""
|
227
|
-
return self.to_str()
|
228
|
-
|
229
|
-
def __eq__(self, other):
|
230
|
-
"""Returns true if both objects are equal"""
|
231
|
-
if not isinstance(other, ImportAicaModel):
|
232
|
-
return False
|
233
|
-
|
234
|
-
return self.to_dict() == other.to_dict()
|
235
|
-
|
236
|
-
def __ne__(self, other):
|
237
|
-
"""Returns true if both objects are not equal"""
|
238
|
-
if not isinstance(other, ImportAicaModel):
|
239
|
-
return True
|
240
|
-
|
241
|
-
return self.to_dict() != other.to_dict()
|
@@ -1,187 +0,0 @@
|
|
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 LogDetail(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
|
-
'name': 'str',
|
37
|
-
'download_url': 'str',
|
38
|
-
'size': 'int'
|
39
|
-
}
|
40
|
-
|
41
|
-
attribute_map = {
|
42
|
-
'name': 'name',
|
43
|
-
'download_url': 'download_url',
|
44
|
-
'size': 'size'
|
45
|
-
}
|
46
|
-
|
47
|
-
def __init__(self, name=None, download_url=None, size=None, local_vars_configuration=None): # noqa: E501
|
48
|
-
"""LogDetail - 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._name = None
|
54
|
-
self._download_url = None
|
55
|
-
self._size = None
|
56
|
-
self.discriminator = None
|
57
|
-
|
58
|
-
self.name = name
|
59
|
-
self.download_url = download_url
|
60
|
-
self.size = size
|
61
|
-
|
62
|
-
@property
|
63
|
-
def name(self):
|
64
|
-
"""Gets the name of this LogDetail. # noqa: E501
|
65
|
-
|
66
|
-
name of the log file. # noqa: E501
|
67
|
-
|
68
|
-
:return: The name of this LogDetail. # noqa: E501
|
69
|
-
:rtype: str
|
70
|
-
"""
|
71
|
-
return self._name
|
72
|
-
|
73
|
-
@name.setter
|
74
|
-
def name(self, name):
|
75
|
-
"""Sets the name of this LogDetail.
|
76
|
-
|
77
|
-
name of the log file. # noqa: E501
|
78
|
-
|
79
|
-
:param name: The name of this LogDetail. # noqa: E501
|
80
|
-
:type: str
|
81
|
-
"""
|
82
|
-
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
83
|
-
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
84
|
-
|
85
|
-
self._name = name
|
86
|
-
|
87
|
-
@property
|
88
|
-
def download_url(self):
|
89
|
-
"""Gets the download_url of this LogDetail. # noqa: E501
|
90
|
-
|
91
|
-
download link for logs. # noqa: E501
|
92
|
-
|
93
|
-
:return: The download_url of this LogDetail. # noqa: E501
|
94
|
-
:rtype: str
|
95
|
-
"""
|
96
|
-
return self._download_url
|
97
|
-
|
98
|
-
@download_url.setter
|
99
|
-
def download_url(self, download_url):
|
100
|
-
"""Sets the download_url of this LogDetail.
|
101
|
-
|
102
|
-
download link for logs. # noqa: E501
|
103
|
-
|
104
|
-
:param download_url: The download_url of this LogDetail. # noqa: E501
|
105
|
-
:type: str
|
106
|
-
"""
|
107
|
-
if self.local_vars_configuration.client_side_validation and download_url is None: # noqa: E501
|
108
|
-
raise ValueError("Invalid value for `download_url`, must not be `None`") # noqa: E501
|
109
|
-
if (self.local_vars_configuration.client_side_validation and
|
110
|
-
download_url is not None and len(download_url) > 2083):
|
111
|
-
raise ValueError("Invalid value for `download_url`, length must be less than or equal to `2083`") # noqa: E501
|
112
|
-
if (self.local_vars_configuration.client_side_validation and
|
113
|
-
download_url is not None and len(download_url) < 1):
|
114
|
-
raise ValueError("Invalid value for `download_url`, length must be greater than or equal to `1`") # noqa: E501
|
115
|
-
|
116
|
-
self._download_url = download_url
|
117
|
-
|
118
|
-
@property
|
119
|
-
def size(self):
|
120
|
-
"""Gets the size of this LogDetail. # noqa: E501
|
121
|
-
|
122
|
-
size of the log file. # noqa: E501
|
123
|
-
|
124
|
-
:return: The size of this LogDetail. # noqa: E501
|
125
|
-
:rtype: int
|
126
|
-
"""
|
127
|
-
return self._size
|
128
|
-
|
129
|
-
@size.setter
|
130
|
-
def size(self, size):
|
131
|
-
"""Sets the size of this LogDetail.
|
132
|
-
|
133
|
-
size of the log file. # noqa: E501
|
134
|
-
|
135
|
-
:param size: The size of this LogDetail. # noqa: E501
|
136
|
-
:type: int
|
137
|
-
"""
|
138
|
-
if self.local_vars_configuration.client_side_validation and size is None: # noqa: E501
|
139
|
-
raise ValueError("Invalid value for `size`, must not be `None`") # noqa: E501
|
140
|
-
|
141
|
-
self._size = size
|
142
|
-
|
143
|
-
def to_dict(self):
|
144
|
-
"""Returns the model properties as a dict"""
|
145
|
-
result = {}
|
146
|
-
|
147
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
148
|
-
value = getattr(self, attr)
|
149
|
-
if isinstance(value, list):
|
150
|
-
result[attr] = list(map(
|
151
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
152
|
-
value
|
153
|
-
))
|
154
|
-
elif hasattr(value, "to_dict"):
|
155
|
-
result[attr] = value.to_dict()
|
156
|
-
elif isinstance(value, dict):
|
157
|
-
result[attr] = dict(map(
|
158
|
-
lambda item: (item[0], item[1].to_dict())
|
159
|
-
if hasattr(item[1], "to_dict") else item,
|
160
|
-
value.items()
|
161
|
-
))
|
162
|
-
else:
|
163
|
-
result[attr] = value
|
164
|
-
|
165
|
-
return result
|
166
|
-
|
167
|
-
def to_str(self):
|
168
|
-
"""Returns the string representation of the model"""
|
169
|
-
return pprint.pformat(self.to_dict())
|
170
|
-
|
171
|
-
def __repr__(self):
|
172
|
-
"""For `print` and `pprint`"""
|
173
|
-
return self.to_str()
|
174
|
-
|
175
|
-
def __eq__(self, other):
|
176
|
-
"""Returns true if both objects are equal"""
|
177
|
-
if not isinstance(other, LogDetail):
|
178
|
-
return False
|
179
|
-
|
180
|
-
return self.to_dict() == other.to_dict()
|
181
|
-
|
182
|
-
def __ne__(self, other):
|
183
|
-
"""Returns true if both objects are not equal"""
|
184
|
-
if not isinstance(other, LogDetail):
|
185
|
-
return True
|
186
|
-
|
187
|
-
return self.to_dict() != other.to_dict()
|
@@ -1,151 +0,0 @@
|
|
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 LogDetails(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
|
-
'log_files': 'list[LogDetail]',
|
37
|
-
'next_page_token': 'str'
|
38
|
-
}
|
39
|
-
|
40
|
-
attribute_map = {
|
41
|
-
'log_files': 'log_files',
|
42
|
-
'next_page_token': 'next_page_token'
|
43
|
-
}
|
44
|
-
|
45
|
-
def __init__(self, log_files=None, next_page_token=None, local_vars_configuration=None): # noqa: E501
|
46
|
-
"""LogDetails - a model defined in OpenAPI""" # noqa: E501
|
47
|
-
if local_vars_configuration is None:
|
48
|
-
local_vars_configuration = Configuration()
|
49
|
-
self.local_vars_configuration = local_vars_configuration
|
50
|
-
|
51
|
-
self._log_files = None
|
52
|
-
self._next_page_token = None
|
53
|
-
self.discriminator = None
|
54
|
-
|
55
|
-
self.log_files = log_files
|
56
|
-
if next_page_token is not None:
|
57
|
-
self.next_page_token = next_page_token
|
58
|
-
|
59
|
-
@property
|
60
|
-
def log_files(self):
|
61
|
-
"""Gets the log_files of this LogDetails. # noqa: E501
|
62
|
-
|
63
|
-
collection of LogDetail. # noqa: E501
|
64
|
-
|
65
|
-
:return: The log_files of this LogDetails. # noqa: E501
|
66
|
-
:rtype: list[LogDetail]
|
67
|
-
"""
|
68
|
-
return self._log_files
|
69
|
-
|
70
|
-
@log_files.setter
|
71
|
-
def log_files(self, log_files):
|
72
|
-
"""Sets the log_files of this LogDetails.
|
73
|
-
|
74
|
-
collection of LogDetail. # noqa: E501
|
75
|
-
|
76
|
-
:param log_files: The log_files of this LogDetails. # noqa: E501
|
77
|
-
:type: list[LogDetail]
|
78
|
-
"""
|
79
|
-
if self.local_vars_configuration.client_side_validation and log_files is None: # noqa: E501
|
80
|
-
raise ValueError("Invalid value for `log_files`, must not be `None`") # noqa: E501
|
81
|
-
|
82
|
-
self._log_files = log_files
|
83
|
-
|
84
|
-
@property
|
85
|
-
def next_page_token(self):
|
86
|
-
"""Gets the next_page_token of this LogDetails. # noqa: E501
|
87
|
-
|
88
|
-
next page token, default None. # noqa: E501
|
89
|
-
|
90
|
-
:return: The next_page_token of this LogDetails. # noqa: E501
|
91
|
-
:rtype: str
|
92
|
-
"""
|
93
|
-
return self._next_page_token
|
94
|
-
|
95
|
-
@next_page_token.setter
|
96
|
-
def next_page_token(self, next_page_token):
|
97
|
-
"""Sets the next_page_token of this LogDetails.
|
98
|
-
|
99
|
-
next page token, default None. # noqa: E501
|
100
|
-
|
101
|
-
:param next_page_token: The next_page_token of this LogDetails. # noqa: E501
|
102
|
-
:type: str
|
103
|
-
"""
|
104
|
-
|
105
|
-
self._next_page_token = next_page_token
|
106
|
-
|
107
|
-
def to_dict(self):
|
108
|
-
"""Returns the model properties as a dict"""
|
109
|
-
result = {}
|
110
|
-
|
111
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
112
|
-
value = getattr(self, attr)
|
113
|
-
if isinstance(value, list):
|
114
|
-
result[attr] = list(map(
|
115
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
116
|
-
value
|
117
|
-
))
|
118
|
-
elif hasattr(value, "to_dict"):
|
119
|
-
result[attr] = value.to_dict()
|
120
|
-
elif isinstance(value, dict):
|
121
|
-
result[attr] = dict(map(
|
122
|
-
lambda item: (item[0], item[1].to_dict())
|
123
|
-
if hasattr(item[1], "to_dict") else item,
|
124
|
-
value.items()
|
125
|
-
))
|
126
|
-
else:
|
127
|
-
result[attr] = value
|
128
|
-
|
129
|
-
return result
|
130
|
-
|
131
|
-
def to_str(self):
|
132
|
-
"""Returns the string representation of the model"""
|
133
|
-
return pprint.pformat(self.to_dict())
|
134
|
-
|
135
|
-
def __repr__(self):
|
136
|
-
"""For `print` and `pprint`"""
|
137
|
-
return self.to_str()
|
138
|
-
|
139
|
-
def __eq__(self, other):
|
140
|
-
"""Returns true if both objects are equal"""
|
141
|
-
if not isinstance(other, LogDetails):
|
142
|
-
return False
|
143
|
-
|
144
|
-
return self.to_dict() == other.to_dict()
|
145
|
-
|
146
|
-
def __ne__(self, other):
|
147
|
-
"""Returns true if both objects are not equal"""
|
148
|
-
if not isinstance(other, LogDetails):
|
149
|
-
return True
|
150
|
-
|
151
|
-
return self.to_dict() != other.to_dict()
|
@@ -1,121 +0,0 @@
|
|
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 LogdetailsResponse(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
|
-
'result': 'LogDetails'
|
37
|
-
}
|
38
|
-
|
39
|
-
attribute_map = {
|
40
|
-
'result': 'result'
|
41
|
-
}
|
42
|
-
|
43
|
-
def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
|
44
|
-
"""LogdetailsResponse - 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._result = None
|
50
|
-
self.discriminator = None
|
51
|
-
|
52
|
-
self.result = result
|
53
|
-
|
54
|
-
@property
|
55
|
-
def result(self):
|
56
|
-
"""Gets the result of this LogdetailsResponse. # noqa: E501
|
57
|
-
|
58
|
-
|
59
|
-
:return: The result of this LogdetailsResponse. # noqa: E501
|
60
|
-
:rtype: LogDetails
|
61
|
-
"""
|
62
|
-
return self._result
|
63
|
-
|
64
|
-
@result.setter
|
65
|
-
def result(self, result):
|
66
|
-
"""Sets the result of this LogdetailsResponse.
|
67
|
-
|
68
|
-
|
69
|
-
:param result: The result of this LogdetailsResponse. # noqa: E501
|
70
|
-
:type: LogDetails
|
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
|
-
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, LogdetailsResponse):
|
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, LogdetailsResponse):
|
119
|
-
return True
|
120
|
-
|
121
|
-
return self.to_dict() != other.to_dict()
|