anyscale 0.26.11__py3-none-any.whl → 0.26.13__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 +6 -7
- anyscale/client/openapi_client/__init__.py +4 -5
- anyscale/client/openapi_client/api/default_api.py +236 -233
- anyscale/client/openapi_client/models/__init__.py +4 -5
- anyscale/client/openapi_client/models/baseimagesenum.py +22 -1
- anyscale/client/openapi_client/models/dataset_dag.py +229 -0
- anyscale/client/openapi_client/models/{decoratedruntimeenv_response.py → dataset_dag_response.py} +22 -22
- anyscale/client/openapi_client/models/{operator_metric_id.py → operator_branch.py} +26 -26
- anyscale/client/openapi_client/models/{cluster_size.py → operator_id.py} +34 -16
- 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 +13 -13
- 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 +22 -1
- anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +13 -13
- anyscale/version.py +1 -1
- {anyscale-0.26.11.dist-info → anyscale-0.26.13.dist-info}/METADATA +1 -1
- {anyscale-0.26.11.dist-info → anyscale-0.26.13.dist-info}/RECORD +28 -32
- anyscale/client/openapi_client/models/decorated_runtime_env.py +0 -488
- anyscale/client/openapi_client/models/decoratedruntimeenv_list_response.py +0 -147
- anyscale/sdk/anyscale_client/models/create_session.py +0 -432
- anyscale/sdk/anyscale_client/models/runtime_environment.py +0 -406
- anyscale/sdk/anyscale_client/models/runtimeenvironment_response.py +0 -121
- {anyscale-0.26.11.dist-info → anyscale-0.26.13.dist-info}/LICENSE +0 -0
- {anyscale-0.26.11.dist-info → anyscale-0.26.13.dist-info}/NOTICE +0 -0
- {anyscale-0.26.11.dist-info → anyscale-0.26.13.dist-info}/WHEEL +0 -0
- {anyscale-0.26.11.dist-info → anyscale-0.26.13.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.11.dist-info → anyscale-0.26.13.dist-info}/top_level.txt +0 -0
@@ -1,488 +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 DecoratedRuntimeEnv(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
|
-
'ray_env_hash': 'str',
|
38
|
-
'name': 'str',
|
39
|
-
'working_dir': 'str',
|
40
|
-
'py_modules': 'list[str]',
|
41
|
-
'pip_packages': 'str',
|
42
|
-
'conda_env_name': 'str',
|
43
|
-
'conda_values': 'object',
|
44
|
-
'env_variables': 'dict(str, str)',
|
45
|
-
'created_at': 'datetime',
|
46
|
-
'creator_id': 'str',
|
47
|
-
'creator': 'MiniUser',
|
48
|
-
'num_jobs': 'int',
|
49
|
-
'num_named_actors': 'int'
|
50
|
-
}
|
51
|
-
|
52
|
-
attribute_map = {
|
53
|
-
'id': 'id',
|
54
|
-
'ray_env_hash': 'ray_env_hash',
|
55
|
-
'name': 'name',
|
56
|
-
'working_dir': 'working_dir',
|
57
|
-
'py_modules': 'py_modules',
|
58
|
-
'pip_packages': 'pip_packages',
|
59
|
-
'conda_env_name': 'conda_env_name',
|
60
|
-
'conda_values': 'conda_values',
|
61
|
-
'env_variables': 'env_variables',
|
62
|
-
'created_at': 'created_at',
|
63
|
-
'creator_id': 'creator_id',
|
64
|
-
'creator': 'creator',
|
65
|
-
'num_jobs': 'num_jobs',
|
66
|
-
'num_named_actors': 'num_named_actors'
|
67
|
-
}
|
68
|
-
|
69
|
-
def __init__(self, id=None, ray_env_hash=None, name=None, working_dir=None, py_modules=None, pip_packages=None, conda_env_name=None, conda_values=None, env_variables=None, created_at=None, creator_id=None, creator=None, num_jobs=None, num_named_actors=0, local_vars_configuration=None): # noqa: E501
|
70
|
-
"""DecoratedRuntimeEnv - a model defined in OpenAPI""" # noqa: E501
|
71
|
-
if local_vars_configuration is None:
|
72
|
-
local_vars_configuration = Configuration()
|
73
|
-
self.local_vars_configuration = local_vars_configuration
|
74
|
-
|
75
|
-
self._id = None
|
76
|
-
self._ray_env_hash = None
|
77
|
-
self._name = None
|
78
|
-
self._working_dir = None
|
79
|
-
self._py_modules = None
|
80
|
-
self._pip_packages = None
|
81
|
-
self._conda_env_name = None
|
82
|
-
self._conda_values = None
|
83
|
-
self._env_variables = None
|
84
|
-
self._created_at = None
|
85
|
-
self._creator_id = None
|
86
|
-
self._creator = None
|
87
|
-
self._num_jobs = None
|
88
|
-
self._num_named_actors = None
|
89
|
-
self.discriminator = None
|
90
|
-
|
91
|
-
self.id = id
|
92
|
-
self.ray_env_hash = ray_env_hash
|
93
|
-
if name is not None:
|
94
|
-
self.name = name
|
95
|
-
if working_dir is not None:
|
96
|
-
self.working_dir = working_dir
|
97
|
-
if py_modules is not None:
|
98
|
-
self.py_modules = py_modules
|
99
|
-
if pip_packages is not None:
|
100
|
-
self.pip_packages = pip_packages
|
101
|
-
if conda_env_name is not None:
|
102
|
-
self.conda_env_name = conda_env_name
|
103
|
-
if conda_values is not None:
|
104
|
-
self.conda_values = conda_values
|
105
|
-
if env_variables is not None:
|
106
|
-
self.env_variables = env_variables
|
107
|
-
self.created_at = created_at
|
108
|
-
self.creator_id = creator_id
|
109
|
-
self.creator = creator
|
110
|
-
self.num_jobs = num_jobs
|
111
|
-
if num_named_actors is not None:
|
112
|
-
self.num_named_actors = num_named_actors
|
113
|
-
|
114
|
-
@property
|
115
|
-
def id(self):
|
116
|
-
"""Gets the id of this DecoratedRuntimeEnv. # noqa: E501
|
117
|
-
|
118
|
-
Server assigned unique Identifier # noqa: E501
|
119
|
-
|
120
|
-
:return: The id of this DecoratedRuntimeEnv. # noqa: E501
|
121
|
-
:rtype: str
|
122
|
-
"""
|
123
|
-
return self._id
|
124
|
-
|
125
|
-
@id.setter
|
126
|
-
def id(self, id):
|
127
|
-
"""Sets the id of this DecoratedRuntimeEnv.
|
128
|
-
|
129
|
-
Server assigned unique Identifier # noqa: E501
|
130
|
-
|
131
|
-
:param id: The id of this DecoratedRuntimeEnv. # noqa: E501
|
132
|
-
:type: str
|
133
|
-
"""
|
134
|
-
if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
|
135
|
-
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
|
136
|
-
|
137
|
-
self._id = id
|
138
|
-
|
139
|
-
@property
|
140
|
-
def ray_env_hash(self):
|
141
|
-
"""Gets the ray_env_hash of this DecoratedRuntimeEnv. # noqa: E501
|
142
|
-
|
143
|
-
A hash of this Runtime Environment as provided by Ray # noqa: E501
|
144
|
-
|
145
|
-
:return: The ray_env_hash of this DecoratedRuntimeEnv. # noqa: E501
|
146
|
-
:rtype: str
|
147
|
-
"""
|
148
|
-
return self._ray_env_hash
|
149
|
-
|
150
|
-
@ray_env_hash.setter
|
151
|
-
def ray_env_hash(self, ray_env_hash):
|
152
|
-
"""Sets the ray_env_hash of this DecoratedRuntimeEnv.
|
153
|
-
|
154
|
-
A hash of this Runtime Environment as provided by Ray # noqa: E501
|
155
|
-
|
156
|
-
:param ray_env_hash: The ray_env_hash of this DecoratedRuntimeEnv. # noqa: E501
|
157
|
-
:type: str
|
158
|
-
"""
|
159
|
-
if self.local_vars_configuration.client_side_validation and ray_env_hash is None: # noqa: E501
|
160
|
-
raise ValueError("Invalid value for `ray_env_hash`, must not be `None`") # noqa: E501
|
161
|
-
|
162
|
-
self._ray_env_hash = ray_env_hash
|
163
|
-
|
164
|
-
@property
|
165
|
-
def name(self):
|
166
|
-
"""Gets the name of this DecoratedRuntimeEnv. # noqa: E501
|
167
|
-
|
168
|
-
Name for this Runtime Environment. # noqa: E501
|
169
|
-
|
170
|
-
:return: The name of this DecoratedRuntimeEnv. # noqa: E501
|
171
|
-
:rtype: str
|
172
|
-
"""
|
173
|
-
return self._name
|
174
|
-
|
175
|
-
@name.setter
|
176
|
-
def name(self, name):
|
177
|
-
"""Sets the name of this DecoratedRuntimeEnv.
|
178
|
-
|
179
|
-
Name for this Runtime Environment. # noqa: E501
|
180
|
-
|
181
|
-
:param name: The name of this DecoratedRuntimeEnv. # noqa: E501
|
182
|
-
:type: str
|
183
|
-
"""
|
184
|
-
|
185
|
-
self._name = name
|
186
|
-
|
187
|
-
@property
|
188
|
-
def working_dir(self):
|
189
|
-
"""Gets the working_dir of this DecoratedRuntimeEnv. # noqa: E501
|
190
|
-
|
191
|
-
The working directory for this Runtime Environment. # noqa: E501
|
192
|
-
|
193
|
-
:return: The working_dir of this DecoratedRuntimeEnv. # noqa: E501
|
194
|
-
:rtype: str
|
195
|
-
"""
|
196
|
-
return self._working_dir
|
197
|
-
|
198
|
-
@working_dir.setter
|
199
|
-
def working_dir(self, working_dir):
|
200
|
-
"""Sets the working_dir of this DecoratedRuntimeEnv.
|
201
|
-
|
202
|
-
The working directory for this Runtime Environment. # noqa: E501
|
203
|
-
|
204
|
-
:param working_dir: The working_dir of this DecoratedRuntimeEnv. # noqa: E501
|
205
|
-
:type: str
|
206
|
-
"""
|
207
|
-
|
208
|
-
self._working_dir = working_dir
|
209
|
-
|
210
|
-
@property
|
211
|
-
def py_modules(self):
|
212
|
-
"""Gets the py_modules of this DecoratedRuntimeEnv. # noqa: E501
|
213
|
-
|
214
|
-
Python modules included in this Runtime Environment. # noqa: E501
|
215
|
-
|
216
|
-
:return: The py_modules of this DecoratedRuntimeEnv. # noqa: E501
|
217
|
-
:rtype: list[str]
|
218
|
-
"""
|
219
|
-
return self._py_modules
|
220
|
-
|
221
|
-
@py_modules.setter
|
222
|
-
def py_modules(self, py_modules):
|
223
|
-
"""Sets the py_modules of this DecoratedRuntimeEnv.
|
224
|
-
|
225
|
-
Python modules included in this Runtime Environment. # noqa: E501
|
226
|
-
|
227
|
-
:param py_modules: The py_modules of this DecoratedRuntimeEnv. # noqa: E501
|
228
|
-
:type: list[str]
|
229
|
-
"""
|
230
|
-
|
231
|
-
self._py_modules = py_modules
|
232
|
-
|
233
|
-
@property
|
234
|
-
def pip_packages(self):
|
235
|
-
"""Gets the pip_packages of this DecoratedRuntimeEnv. # noqa: E501
|
236
|
-
|
237
|
-
Pip dependencies installed in this Runtime Environment. # noqa: E501
|
238
|
-
|
239
|
-
:return: The pip_packages of this DecoratedRuntimeEnv. # noqa: E501
|
240
|
-
:rtype: str
|
241
|
-
"""
|
242
|
-
return self._pip_packages
|
243
|
-
|
244
|
-
@pip_packages.setter
|
245
|
-
def pip_packages(self, pip_packages):
|
246
|
-
"""Sets the pip_packages of this DecoratedRuntimeEnv.
|
247
|
-
|
248
|
-
Pip dependencies installed in this Runtime Environment. # noqa: E501
|
249
|
-
|
250
|
-
:param pip_packages: The pip_packages of this DecoratedRuntimeEnv. # noqa: E501
|
251
|
-
:type: str
|
252
|
-
"""
|
253
|
-
|
254
|
-
self._pip_packages = pip_packages
|
255
|
-
|
256
|
-
@property
|
257
|
-
def conda_env_name(self):
|
258
|
-
"""Gets the conda_env_name of this DecoratedRuntimeEnv. # noqa: E501
|
259
|
-
|
260
|
-
Name of the Conda environment this Runtime Environment is using. # noqa: E501
|
261
|
-
|
262
|
-
:return: The conda_env_name of this DecoratedRuntimeEnv. # noqa: E501
|
263
|
-
:rtype: str
|
264
|
-
"""
|
265
|
-
return self._conda_env_name
|
266
|
-
|
267
|
-
@conda_env_name.setter
|
268
|
-
def conda_env_name(self, conda_env_name):
|
269
|
-
"""Sets the conda_env_name of this DecoratedRuntimeEnv.
|
270
|
-
|
271
|
-
Name of the Conda environment this Runtime Environment is using. # noqa: E501
|
272
|
-
|
273
|
-
:param conda_env_name: The conda_env_name of this DecoratedRuntimeEnv. # noqa: E501
|
274
|
-
:type: str
|
275
|
-
"""
|
276
|
-
|
277
|
-
self._conda_env_name = conda_env_name
|
278
|
-
|
279
|
-
@property
|
280
|
-
def conda_values(self):
|
281
|
-
"""Gets the conda_values of this DecoratedRuntimeEnv. # noqa: E501
|
282
|
-
|
283
|
-
Conda values for this Runtime Environment. # noqa: E501
|
284
|
-
|
285
|
-
:return: The conda_values of this DecoratedRuntimeEnv. # noqa: E501
|
286
|
-
:rtype: object
|
287
|
-
"""
|
288
|
-
return self._conda_values
|
289
|
-
|
290
|
-
@conda_values.setter
|
291
|
-
def conda_values(self, conda_values):
|
292
|
-
"""Sets the conda_values of this DecoratedRuntimeEnv.
|
293
|
-
|
294
|
-
Conda values for this Runtime Environment. # noqa: E501
|
295
|
-
|
296
|
-
:param conda_values: The conda_values of this DecoratedRuntimeEnv. # noqa: E501
|
297
|
-
:type: object
|
298
|
-
"""
|
299
|
-
|
300
|
-
self._conda_values = conda_values
|
301
|
-
|
302
|
-
@property
|
303
|
-
def env_variables(self):
|
304
|
-
"""Gets the env_variables of this DecoratedRuntimeEnv. # noqa: E501
|
305
|
-
|
306
|
-
Environment variables set for this Runtime Environment. # noqa: E501
|
307
|
-
|
308
|
-
:return: The env_variables of this DecoratedRuntimeEnv. # noqa: E501
|
309
|
-
:rtype: dict(str, str)
|
310
|
-
"""
|
311
|
-
return self._env_variables
|
312
|
-
|
313
|
-
@env_variables.setter
|
314
|
-
def env_variables(self, env_variables):
|
315
|
-
"""Sets the env_variables of this DecoratedRuntimeEnv.
|
316
|
-
|
317
|
-
Environment variables set for this Runtime Environment. # noqa: E501
|
318
|
-
|
319
|
-
:param env_variables: The env_variables of this DecoratedRuntimeEnv. # noqa: E501
|
320
|
-
:type: dict(str, str)
|
321
|
-
"""
|
322
|
-
|
323
|
-
self._env_variables = env_variables
|
324
|
-
|
325
|
-
@property
|
326
|
-
def created_at(self):
|
327
|
-
"""Gets the created_at of this DecoratedRuntimeEnv. # noqa: E501
|
328
|
-
|
329
|
-
Time at which this Runtime Environment was created. # noqa: E501
|
330
|
-
|
331
|
-
:return: The created_at of this DecoratedRuntimeEnv. # noqa: E501
|
332
|
-
:rtype: datetime
|
333
|
-
"""
|
334
|
-
return self._created_at
|
335
|
-
|
336
|
-
@created_at.setter
|
337
|
-
def created_at(self, created_at):
|
338
|
-
"""Sets the created_at of this DecoratedRuntimeEnv.
|
339
|
-
|
340
|
-
Time at which this Runtime Environment was created. # noqa: E501
|
341
|
-
|
342
|
-
:param created_at: The created_at of this DecoratedRuntimeEnv. # noqa: E501
|
343
|
-
:type: datetime
|
344
|
-
"""
|
345
|
-
if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501
|
346
|
-
raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501
|
347
|
-
|
348
|
-
self._created_at = created_at
|
349
|
-
|
350
|
-
@property
|
351
|
-
def creator_id(self):
|
352
|
-
"""Gets the creator_id of this DecoratedRuntimeEnv. # noqa: E501
|
353
|
-
|
354
|
-
ID of the User who created this Runtime Environment. # noqa: E501
|
355
|
-
|
356
|
-
:return: The creator_id of this DecoratedRuntimeEnv. # noqa: E501
|
357
|
-
:rtype: str
|
358
|
-
"""
|
359
|
-
return self._creator_id
|
360
|
-
|
361
|
-
@creator_id.setter
|
362
|
-
def creator_id(self, creator_id):
|
363
|
-
"""Sets the creator_id of this DecoratedRuntimeEnv.
|
364
|
-
|
365
|
-
ID of the User who created this Runtime Environment. # noqa: E501
|
366
|
-
|
367
|
-
:param creator_id: The creator_id of this DecoratedRuntimeEnv. # noqa: E501
|
368
|
-
:type: str
|
369
|
-
"""
|
370
|
-
if self.local_vars_configuration.client_side_validation and creator_id is None: # noqa: E501
|
371
|
-
raise ValueError("Invalid value for `creator_id`, must not be `None`") # noqa: E501
|
372
|
-
|
373
|
-
self._creator_id = creator_id
|
374
|
-
|
375
|
-
@property
|
376
|
-
def creator(self):
|
377
|
-
"""Gets the creator of this DecoratedRuntimeEnv. # noqa: E501
|
378
|
-
|
379
|
-
|
380
|
-
:return: The creator of this DecoratedRuntimeEnv. # noqa: E501
|
381
|
-
:rtype: MiniUser
|
382
|
-
"""
|
383
|
-
return self._creator
|
384
|
-
|
385
|
-
@creator.setter
|
386
|
-
def creator(self, creator):
|
387
|
-
"""Sets the creator of this DecoratedRuntimeEnv.
|
388
|
-
|
389
|
-
|
390
|
-
:param creator: The creator of this DecoratedRuntimeEnv. # noqa: E501
|
391
|
-
:type: MiniUser
|
392
|
-
"""
|
393
|
-
if self.local_vars_configuration.client_side_validation and creator is None: # noqa: E501
|
394
|
-
raise ValueError("Invalid value for `creator`, must not be `None`") # noqa: E501
|
395
|
-
|
396
|
-
self._creator = creator
|
397
|
-
|
398
|
-
@property
|
399
|
-
def num_jobs(self):
|
400
|
-
"""Gets the num_jobs of this DecoratedRuntimeEnv. # noqa: E501
|
401
|
-
|
402
|
-
|
403
|
-
:return: The num_jobs of this DecoratedRuntimeEnv. # noqa: E501
|
404
|
-
:rtype: int
|
405
|
-
"""
|
406
|
-
return self._num_jobs
|
407
|
-
|
408
|
-
@num_jobs.setter
|
409
|
-
def num_jobs(self, num_jobs):
|
410
|
-
"""Sets the num_jobs of this DecoratedRuntimeEnv.
|
411
|
-
|
412
|
-
|
413
|
-
:param num_jobs: The num_jobs of this DecoratedRuntimeEnv. # noqa: E501
|
414
|
-
:type: int
|
415
|
-
"""
|
416
|
-
if self.local_vars_configuration.client_side_validation and num_jobs is None: # noqa: E501
|
417
|
-
raise ValueError("Invalid value for `num_jobs`, must not be `None`") # noqa: E501
|
418
|
-
|
419
|
-
self._num_jobs = num_jobs
|
420
|
-
|
421
|
-
@property
|
422
|
-
def num_named_actors(self):
|
423
|
-
"""Gets the num_named_actors of this DecoratedRuntimeEnv. # noqa: E501
|
424
|
-
|
425
|
-
This field is deprecated # noqa: E501
|
426
|
-
|
427
|
-
:return: The num_named_actors of this DecoratedRuntimeEnv. # noqa: E501
|
428
|
-
:rtype: int
|
429
|
-
"""
|
430
|
-
return self._num_named_actors
|
431
|
-
|
432
|
-
@num_named_actors.setter
|
433
|
-
def num_named_actors(self, num_named_actors):
|
434
|
-
"""Sets the num_named_actors of this DecoratedRuntimeEnv.
|
435
|
-
|
436
|
-
This field is deprecated # noqa: E501
|
437
|
-
|
438
|
-
:param num_named_actors: The num_named_actors of this DecoratedRuntimeEnv. # noqa: E501
|
439
|
-
:type: int
|
440
|
-
"""
|
441
|
-
|
442
|
-
self._num_named_actors = num_named_actors
|
443
|
-
|
444
|
-
def to_dict(self):
|
445
|
-
"""Returns the model properties as a dict"""
|
446
|
-
result = {}
|
447
|
-
|
448
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
449
|
-
value = getattr(self, attr)
|
450
|
-
if isinstance(value, list):
|
451
|
-
result[attr] = list(map(
|
452
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
453
|
-
value
|
454
|
-
))
|
455
|
-
elif hasattr(value, "to_dict"):
|
456
|
-
result[attr] = value.to_dict()
|
457
|
-
elif isinstance(value, dict):
|
458
|
-
result[attr] = dict(map(
|
459
|
-
lambda item: (item[0], item[1].to_dict())
|
460
|
-
if hasattr(item[1], "to_dict") else item,
|
461
|
-
value.items()
|
462
|
-
))
|
463
|
-
else:
|
464
|
-
result[attr] = value
|
465
|
-
|
466
|
-
return result
|
467
|
-
|
468
|
-
def to_str(self):
|
469
|
-
"""Returns the string representation of the model"""
|
470
|
-
return pprint.pformat(self.to_dict())
|
471
|
-
|
472
|
-
def __repr__(self):
|
473
|
-
"""For `print` and `pprint`"""
|
474
|
-
return self.to_str()
|
475
|
-
|
476
|
-
def __eq__(self, other):
|
477
|
-
"""Returns true if both objects are equal"""
|
478
|
-
if not isinstance(other, DecoratedRuntimeEnv):
|
479
|
-
return False
|
480
|
-
|
481
|
-
return self.to_dict() == other.to_dict()
|
482
|
-
|
483
|
-
def __ne__(self, other):
|
484
|
-
"""Returns true if both objects are not equal"""
|
485
|
-
if not isinstance(other, DecoratedRuntimeEnv):
|
486
|
-
return True
|
487
|
-
|
488
|
-
return self.to_dict() != other.to_dict()
|
@@ -1,147 +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 DecoratedruntimeenvListResponse(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[DecoratedRuntimeEnv]',
|
37
|
-
'metadata': 'ListResponseMetadata'
|
38
|
-
}
|
39
|
-
|
40
|
-
attribute_map = {
|
41
|
-
'results': 'results',
|
42
|
-
'metadata': 'metadata'
|
43
|
-
}
|
44
|
-
|
45
|
-
def __init__(self, results=None, metadata=None, local_vars_configuration=None): # noqa: E501
|
46
|
-
"""DecoratedruntimeenvListResponse - 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._results = None
|
52
|
-
self._metadata = None
|
53
|
-
self.discriminator = None
|
54
|
-
|
55
|
-
self.results = results
|
56
|
-
if metadata is not None:
|
57
|
-
self.metadata = metadata
|
58
|
-
|
59
|
-
@property
|
60
|
-
def results(self):
|
61
|
-
"""Gets the results of this DecoratedruntimeenvListResponse. # noqa: E501
|
62
|
-
|
63
|
-
|
64
|
-
:return: The results of this DecoratedruntimeenvListResponse. # noqa: E501
|
65
|
-
:rtype: list[DecoratedRuntimeEnv]
|
66
|
-
"""
|
67
|
-
return self._results
|
68
|
-
|
69
|
-
@results.setter
|
70
|
-
def results(self, results):
|
71
|
-
"""Sets the results of this DecoratedruntimeenvListResponse.
|
72
|
-
|
73
|
-
|
74
|
-
:param results: The results of this DecoratedruntimeenvListResponse. # noqa: E501
|
75
|
-
:type: list[DecoratedRuntimeEnv]
|
76
|
-
"""
|
77
|
-
if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501
|
78
|
-
raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501
|
79
|
-
|
80
|
-
self._results = results
|
81
|
-
|
82
|
-
@property
|
83
|
-
def metadata(self):
|
84
|
-
"""Gets the metadata of this DecoratedruntimeenvListResponse. # noqa: E501
|
85
|
-
|
86
|
-
|
87
|
-
:return: The metadata of this DecoratedruntimeenvListResponse. # noqa: E501
|
88
|
-
:rtype: ListResponseMetadata
|
89
|
-
"""
|
90
|
-
return self._metadata
|
91
|
-
|
92
|
-
@metadata.setter
|
93
|
-
def metadata(self, metadata):
|
94
|
-
"""Sets the metadata of this DecoratedruntimeenvListResponse.
|
95
|
-
|
96
|
-
|
97
|
-
:param metadata: The metadata of this DecoratedruntimeenvListResponse. # noqa: E501
|
98
|
-
:type: ListResponseMetadata
|
99
|
-
"""
|
100
|
-
|
101
|
-
self._metadata = metadata
|
102
|
-
|
103
|
-
def to_dict(self):
|
104
|
-
"""Returns the model properties as a dict"""
|
105
|
-
result = {}
|
106
|
-
|
107
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
108
|
-
value = getattr(self, attr)
|
109
|
-
if isinstance(value, list):
|
110
|
-
result[attr] = list(map(
|
111
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
112
|
-
value
|
113
|
-
))
|
114
|
-
elif hasattr(value, "to_dict"):
|
115
|
-
result[attr] = value.to_dict()
|
116
|
-
elif isinstance(value, dict):
|
117
|
-
result[attr] = dict(map(
|
118
|
-
lambda item: (item[0], item[1].to_dict())
|
119
|
-
if hasattr(item[1], "to_dict") else item,
|
120
|
-
value.items()
|
121
|
-
))
|
122
|
-
else:
|
123
|
-
result[attr] = value
|
124
|
-
|
125
|
-
return result
|
126
|
-
|
127
|
-
def to_str(self):
|
128
|
-
"""Returns the string representation of the model"""
|
129
|
-
return pprint.pformat(self.to_dict())
|
130
|
-
|
131
|
-
def __repr__(self):
|
132
|
-
"""For `print` and `pprint`"""
|
133
|
-
return self.to_str()
|
134
|
-
|
135
|
-
def __eq__(self, other):
|
136
|
-
"""Returns true if both objects are equal"""
|
137
|
-
if not isinstance(other, DecoratedruntimeenvListResponse):
|
138
|
-
return False
|
139
|
-
|
140
|
-
return self.to_dict() == other.to_dict()
|
141
|
-
|
142
|
-
def __ne__(self, other):
|
143
|
-
"""Returns true if both objects are not equal"""
|
144
|
-
if not isinstance(other, DecoratedruntimeenvListResponse):
|
145
|
-
return True
|
146
|
-
|
147
|
-
return self.to_dict() != other.to_dict()
|