anyscale 0.26.3__py3-none-any.whl → 0.26.5__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.
Files changed (56) hide show
  1. anyscale/_private/anyscale_client/anyscale_client.py +1 -5
  2. anyscale/_private/docgen/__main__.py +0 -3
  3. anyscale/_private/docgen/api.md +0 -40
  4. anyscale/_private/docgen/models.md +2 -50
  5. anyscale/_private/workload/workload_config.py +11 -0
  6. anyscale/_private/workload/workload_sdk.py +4 -0
  7. anyscale/anyscale-cloud-setup-gcp-oa.yaml +2 -1
  8. anyscale/anyscale-cloud-setup-gcp.yaml +4 -2
  9. anyscale/client/README.md +11 -18
  10. anyscale/client/openapi_client/__init__.py +7 -11
  11. anyscale/client/openapi_client/api/default_api.py +537 -951
  12. anyscale/client/openapi_client/models/__init__.py +7 -11
  13. anyscale/client/openapi_client/models/{anyscale_version_response.py → backend_server_api_product_models_dataset_runs_dataset_response.py} +22 -22
  14. anyscale/client/openapi_client/models/{dataset_response.py → backend_server_api_product_routers_datasets_router_dataset_response.py} +8 -8
  15. anyscale/client/openapi_client/models/{logdetails_response.py → dataset_jobs.py} +22 -22
  16. anyscale/client/openapi_client/models/dataset_metrics.py +390 -0
  17. anyscale/{sdk/anyscale_client/models/session_command_types.py → client/openapi_client/models/dataset_state.py} +11 -9
  18. anyscale/client/openapi_client/models/{log_details.py → metric.py} +64 -42
  19. anyscale/client/openapi_client/models/node_type.py +2 -1
  20. anyscale/client/openapi_client/models/operator_metrics.py +256 -0
  21. anyscale/client/openapi_client/models/ray_runtime_env_config.py +29 -1
  22. anyscale/client/openapi_client/models/train_run.py +56 -3
  23. anyscale/client/openapi_client/models/train_worker.py +29 -3
  24. anyscale/cluster.py +5 -2
  25. anyscale/commands/anyscale_api/api_commands.py +0 -2
  26. anyscale/connect_utils/start_interactive_session.py +4 -1
  27. anyscale/controllers/cluster_controller.py +15 -26
  28. anyscale/controllers/project_controller.py +1 -6
  29. anyscale/job/_private/job_sdk.py +10 -1
  30. anyscale/job/models.py +8 -0
  31. anyscale/project_utils.py +9 -20
  32. anyscale/sdk/anyscale_client/__init__.py +0 -5
  33. anyscale/sdk/anyscale_client/api/default_api.py +0 -474
  34. anyscale/sdk/anyscale_client/models/__init__.py +0 -5
  35. anyscale/sdk/anyscale_client/models/node_type.py +2 -1
  36. anyscale/sdk/anyscale_client/models/ray_runtime_env_config.py +29 -1
  37. anyscale/version.py +1 -1
  38. {anyscale-0.26.3.dist-info → anyscale-0.26.5.dist-info}/METADATA +1 -1
  39. {anyscale-0.26.3.dist-info → anyscale-0.26.5.dist-info}/RECORD +44 -54
  40. anyscale/client/openapi_client/models/anyscaleversionresponse_response.py +0 -121
  41. anyscale/client/openapi_client/models/create_cloud_with_cloud_resource.py +0 -546
  42. anyscale/client/openapi_client/models/decoratedjob_list_response.py +0 -147
  43. anyscale/client/openapi_client/models/log_detail.py +0 -187
  44. anyscale/client/openapi_client/models/provider_metadata.py +0 -205
  45. anyscale/client/openapi_client/models/providermetadata_response.py +0 -121
  46. anyscale/client/openapi_client/models/setup_initialize_session_options.py +0 -225
  47. anyscale/commands/anyscale_api/session_commands_commands.py +0 -80
  48. anyscale/sdk/anyscale_client/models/create_session_command.py +0 -152
  49. anyscale/sdk/anyscale_client/models/session_command.py +0 -350
  50. anyscale/sdk/anyscale_client/models/sessioncommand_list_response.py +0 -147
  51. anyscale/sdk/anyscale_client/models/sessioncommand_response.py +0 -121
  52. {anyscale-0.26.3.dist-info → anyscale-0.26.5.dist-info}/LICENSE +0 -0
  53. {anyscale-0.26.3.dist-info → anyscale-0.26.5.dist-info}/NOTICE +0 -0
  54. {anyscale-0.26.3.dist-info → anyscale-0.26.5.dist-info}/WHEEL +0 -0
  55. {anyscale-0.26.3.dist-info → anyscale-0.26.5.dist-info}/entry_points.txt +0 -0
  56. {anyscale-0.26.3.dist-info → anyscale-0.26.5.dist-info}/top_level.txt +0 -0
@@ -1,546 +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 CreateCloudWithCloudResource(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
- 'provider': 'CloudProviders',
38
- 'compute_stack': 'ComputeStack',
39
- 'region': 'str',
40
- 'credentials': 'str',
41
- 'config': 'CloudConfig',
42
- 'is_k8s': 'bool',
43
- 'is_aioa': 'bool',
44
- 'availability_zones': 'list[str]',
45
- 'is_bring_your_own_resource': 'bool',
46
- 'is_private_cloud': 'bool',
47
- 'cluster_management_stack_version': 'ClusterManagementStackVersions',
48
- 'is_private_service_cloud': 'bool',
49
- 'auto_add_user': 'bool',
50
- 'external_id': 'str',
51
- 'cloud_resource_to_create': 'CreateCloudResource'
52
- }
53
-
54
- attribute_map = {
55
- 'name': 'name',
56
- 'provider': 'provider',
57
- 'compute_stack': 'compute_stack',
58
- 'region': 'region',
59
- 'credentials': 'credentials',
60
- 'config': 'config',
61
- 'is_k8s': 'is_k8s',
62
- 'is_aioa': 'is_aioa',
63
- 'availability_zones': 'availability_zones',
64
- 'is_bring_your_own_resource': 'is_bring_your_own_resource',
65
- 'is_private_cloud': 'is_private_cloud',
66
- 'cluster_management_stack_version': 'cluster_management_stack_version',
67
- 'is_private_service_cloud': 'is_private_service_cloud',
68
- 'auto_add_user': 'auto_add_user',
69
- 'external_id': 'external_id',
70
- 'cloud_resource_to_create': 'cloud_resource_to_create'
71
- }
72
-
73
- def __init__(self, name=None, provider=None, compute_stack=None, region=None, credentials=None, config=None, is_k8s=False, is_aioa=False, availability_zones=None, is_bring_your_own_resource=None, is_private_cloud=False, cluster_management_stack_version=None, is_private_service_cloud=None, auto_add_user=False, external_id=None, cloud_resource_to_create=None, local_vars_configuration=None): # noqa: E501
74
- """CreateCloudWithCloudResource - a model defined in OpenAPI""" # noqa: E501
75
- if local_vars_configuration is None:
76
- local_vars_configuration = Configuration()
77
- self.local_vars_configuration = local_vars_configuration
78
-
79
- self._name = None
80
- self._provider = None
81
- self._compute_stack = None
82
- self._region = None
83
- self._credentials = None
84
- self._config = None
85
- self._is_k8s = None
86
- self._is_aioa = None
87
- self._availability_zones = None
88
- self._is_bring_your_own_resource = None
89
- self._is_private_cloud = None
90
- self._cluster_management_stack_version = None
91
- self._is_private_service_cloud = None
92
- self._auto_add_user = None
93
- self._external_id = None
94
- self._cloud_resource_to_create = None
95
- self.discriminator = None
96
-
97
- self.name = name
98
- self.provider = provider
99
- if compute_stack is not None:
100
- self.compute_stack = compute_stack
101
- self.region = region
102
- self.credentials = credentials
103
- if config is not None:
104
- self.config = config
105
- if is_k8s is not None:
106
- self.is_k8s = is_k8s
107
- if is_aioa is not None:
108
- self.is_aioa = is_aioa
109
- if availability_zones is not None:
110
- self.availability_zones = availability_zones
111
- if is_bring_your_own_resource is not None:
112
- self.is_bring_your_own_resource = is_bring_your_own_resource
113
- if is_private_cloud is not None:
114
- self.is_private_cloud = is_private_cloud
115
- if cluster_management_stack_version is not None:
116
- self.cluster_management_stack_version = cluster_management_stack_version
117
- if is_private_service_cloud is not None:
118
- self.is_private_service_cloud = is_private_service_cloud
119
- if auto_add_user is not None:
120
- self.auto_add_user = auto_add_user
121
- if external_id is not None:
122
- self.external_id = external_id
123
- if cloud_resource_to_create is not None:
124
- self.cloud_resource_to_create = cloud_resource_to_create
125
-
126
- @property
127
- def name(self):
128
- """Gets the name of this CreateCloudWithCloudResource. # noqa: E501
129
-
130
- Name of this Cloud. # noqa: E501
131
-
132
- :return: The name of this CreateCloudWithCloudResource. # noqa: E501
133
- :rtype: str
134
- """
135
- return self._name
136
-
137
- @name.setter
138
- def name(self, name):
139
- """Sets the name of this CreateCloudWithCloudResource.
140
-
141
- Name of this Cloud. # noqa: E501
142
-
143
- :param name: The name of this CreateCloudWithCloudResource. # noqa: E501
144
- :type: str
145
- """
146
- if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
147
- raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
148
-
149
- self._name = name
150
-
151
- @property
152
- def provider(self):
153
- """Gets the provider of this CreateCloudWithCloudResource. # noqa: E501
154
-
155
- Provider of this Cloud (e.g. AWS). # noqa: E501
156
-
157
- :return: The provider of this CreateCloudWithCloudResource. # noqa: E501
158
- :rtype: CloudProviders
159
- """
160
- return self._provider
161
-
162
- @provider.setter
163
- def provider(self, provider):
164
- """Sets the provider of this CreateCloudWithCloudResource.
165
-
166
- Provider of this Cloud (e.g. AWS). # noqa: E501
167
-
168
- :param provider: The provider of this CreateCloudWithCloudResource. # noqa: E501
169
- :type: CloudProviders
170
- """
171
- if self.local_vars_configuration.client_side_validation and provider is None: # noqa: E501
172
- raise ValueError("Invalid value for `provider`, must not be `None`") # noqa: E501
173
-
174
- self._provider = provider
175
-
176
- @property
177
- def compute_stack(self):
178
- """Gets the compute_stack of this CreateCloudWithCloudResource. # noqa: E501
179
-
180
- The compute stack associated with this cloud's primary cloud resource. # noqa: E501
181
-
182
- :return: The compute_stack of this CreateCloudWithCloudResource. # noqa: E501
183
- :rtype: ComputeStack
184
- """
185
- return self._compute_stack
186
-
187
- @compute_stack.setter
188
- def compute_stack(self, compute_stack):
189
- """Sets the compute_stack of this CreateCloudWithCloudResource.
190
-
191
- The compute stack associated with this cloud's primary cloud resource. # noqa: E501
192
-
193
- :param compute_stack: The compute_stack of this CreateCloudWithCloudResource. # noqa: E501
194
- :type: ComputeStack
195
- """
196
-
197
- self._compute_stack = compute_stack
198
-
199
- @property
200
- def region(self):
201
- """Gets the region of this CreateCloudWithCloudResource. # noqa: E501
202
-
203
- Region this Cloud is operating in. This value needs to be supported by this Cloud's provider. (e.g. us-west-2) # noqa: E501
204
-
205
- :return: The region of this CreateCloudWithCloudResource. # noqa: E501
206
- :rtype: str
207
- """
208
- return self._region
209
-
210
- @region.setter
211
- def region(self, region):
212
- """Sets the region of this CreateCloudWithCloudResource.
213
-
214
- Region this Cloud is operating in. This value needs to be supported by this Cloud's provider. (e.g. us-west-2) # noqa: E501
215
-
216
- :param region: The region of this CreateCloudWithCloudResource. # noqa: E501
217
- :type: str
218
- """
219
- if self.local_vars_configuration.client_side_validation and region is None: # noqa: E501
220
- raise ValueError("Invalid value for `region`, must not be `None`") # noqa: E501
221
-
222
- self._region = region
223
-
224
- @property
225
- def credentials(self):
226
- """Gets the credentials of this CreateCloudWithCloudResource. # noqa: E501
227
-
228
- Credentials needed to interact with this Cloud. # noqa: E501
229
-
230
- :return: The credentials of this CreateCloudWithCloudResource. # noqa: E501
231
- :rtype: str
232
- """
233
- return self._credentials
234
-
235
- @credentials.setter
236
- def credentials(self, credentials):
237
- """Sets the credentials of this CreateCloudWithCloudResource.
238
-
239
- Credentials needed to interact with this Cloud. # noqa: E501
240
-
241
- :param credentials: The credentials of this CreateCloudWithCloudResource. # noqa: E501
242
- :type: str
243
- """
244
- if self.local_vars_configuration.client_side_validation and credentials is None: # noqa: E501
245
- raise ValueError("Invalid value for `credentials`, must not be `None`") # noqa: E501
246
-
247
- self._credentials = credentials
248
-
249
- @property
250
- def config(self):
251
- """Gets the config of this CreateCloudWithCloudResource. # noqa: E501
252
-
253
- Additional configurable properties of this Cloud. # noqa: E501
254
-
255
- :return: The config of this CreateCloudWithCloudResource. # noqa: E501
256
- :rtype: CloudConfig
257
- """
258
- return self._config
259
-
260
- @config.setter
261
- def config(self, config):
262
- """Sets the config of this CreateCloudWithCloudResource.
263
-
264
- Additional configurable properties of this Cloud. # noqa: E501
265
-
266
- :param config: The config of this CreateCloudWithCloudResource. # noqa: E501
267
- :type: CloudConfig
268
- """
269
-
270
- self._config = config
271
-
272
- @property
273
- def is_k8s(self):
274
- """Gets the is_k8s of this CreateCloudWithCloudResource. # noqa: E501
275
-
276
- Whether this cloud is managed via Kubernetes. # noqa: E501
277
-
278
- :return: The is_k8s of this CreateCloudWithCloudResource. # noqa: E501
279
- :rtype: bool
280
- """
281
- return self._is_k8s
282
-
283
- @is_k8s.setter
284
- def is_k8s(self, is_k8s):
285
- """Sets the is_k8s of this CreateCloudWithCloudResource.
286
-
287
- Whether this cloud is managed via Kubernetes. # noqa: E501
288
-
289
- :param is_k8s: The is_k8s of this CreateCloudWithCloudResource. # noqa: E501
290
- :type: bool
291
- """
292
-
293
- self._is_k8s = is_k8s
294
-
295
- @property
296
- def is_aioa(self):
297
- """Gets the is_aioa of this CreateCloudWithCloudResource. # noqa: E501
298
-
299
- Whether this cloud is an AIOA cloud. # noqa: E501
300
-
301
- :return: The is_aioa of this CreateCloudWithCloudResource. # noqa: E501
302
- :rtype: bool
303
- """
304
- return self._is_aioa
305
-
306
- @is_aioa.setter
307
- def is_aioa(self, is_aioa):
308
- """Sets the is_aioa of this CreateCloudWithCloudResource.
309
-
310
- Whether this cloud is an AIOA cloud. # noqa: E501
311
-
312
- :param is_aioa: The is_aioa of this CreateCloudWithCloudResource. # noqa: E501
313
- :type: bool
314
- """
315
-
316
- self._is_aioa = is_aioa
317
-
318
- @property
319
- def availability_zones(self):
320
- """Gets the availability_zones of this CreateCloudWithCloudResource. # noqa: E501
321
-
322
- The availability zones that instances of this cloud are allowed to be launched in. # noqa: E501
323
-
324
- :return: The availability_zones of this CreateCloudWithCloudResource. # noqa: E501
325
- :rtype: list[str]
326
- """
327
- return self._availability_zones
328
-
329
- @availability_zones.setter
330
- def availability_zones(self, availability_zones):
331
- """Sets the availability_zones of this CreateCloudWithCloudResource.
332
-
333
- The availability zones that instances of this cloud are allowed to be launched in. # noqa: E501
334
-
335
- :param availability_zones: The availability_zones of this CreateCloudWithCloudResource. # noqa: E501
336
- :type: list[str]
337
- """
338
-
339
- self._availability_zones = availability_zones
340
-
341
- @property
342
- def is_bring_your_own_resource(self):
343
- """Gets the is_bring_your_own_resource of this CreateCloudWithCloudResource. # noqa: E501
344
-
345
- Whether the resources of this cloud are provided by the customer. # noqa: E501
346
-
347
- :return: The is_bring_your_own_resource of this CreateCloudWithCloudResource. # noqa: E501
348
- :rtype: bool
349
- """
350
- return self._is_bring_your_own_resource
351
-
352
- @is_bring_your_own_resource.setter
353
- def is_bring_your_own_resource(self, is_bring_your_own_resource):
354
- """Sets the is_bring_your_own_resource of this CreateCloudWithCloudResource.
355
-
356
- Whether the resources of this cloud are provided by the customer. # noqa: E501
357
-
358
- :param is_bring_your_own_resource: The is_bring_your_own_resource of this CreateCloudWithCloudResource. # noqa: E501
359
- :type: bool
360
- """
361
-
362
- self._is_bring_your_own_resource = is_bring_your_own_resource
363
-
364
- @property
365
- def is_private_cloud(self):
366
- """Gets the is_private_cloud of this CreateCloudWithCloudResource. # noqa: E501
367
-
368
- Whether this cloud is a private cloud. # noqa: E501
369
-
370
- :return: The is_private_cloud of this CreateCloudWithCloudResource. # noqa: E501
371
- :rtype: bool
372
- """
373
- return self._is_private_cloud
374
-
375
- @is_private_cloud.setter
376
- def is_private_cloud(self, is_private_cloud):
377
- """Sets the is_private_cloud of this CreateCloudWithCloudResource.
378
-
379
- Whether this cloud is a private cloud. # noqa: E501
380
-
381
- :param is_private_cloud: The is_private_cloud of this CreateCloudWithCloudResource. # noqa: E501
382
- :type: bool
383
- """
384
-
385
- self._is_private_cloud = is_private_cloud
386
-
387
- @property
388
- def cluster_management_stack_version(self):
389
- """Gets the cluster_management_stack_version of this CreateCloudWithCloudResource. # noqa: E501
390
-
391
- The cluster management stack version of the cloud. # noqa: E501
392
-
393
- :return: The cluster_management_stack_version of this CreateCloudWithCloudResource. # noqa: E501
394
- :rtype: ClusterManagementStackVersions
395
- """
396
- return self._cluster_management_stack_version
397
-
398
- @cluster_management_stack_version.setter
399
- def cluster_management_stack_version(self, cluster_management_stack_version):
400
- """Sets the cluster_management_stack_version of this CreateCloudWithCloudResource.
401
-
402
- The cluster management stack version of the cloud. # noqa: E501
403
-
404
- :param cluster_management_stack_version: The cluster_management_stack_version of this CreateCloudWithCloudResource. # noqa: E501
405
- :type: ClusterManagementStackVersions
406
- """
407
-
408
- self._cluster_management_stack_version = cluster_management_stack_version
409
-
410
- @property
411
- def is_private_service_cloud(self):
412
- """Gets the is_private_service_cloud of this CreateCloudWithCloudResource. # noqa: E501
413
-
414
- Whether services created in this cloud should be private. # noqa: E501
415
-
416
- :return: The is_private_service_cloud of this CreateCloudWithCloudResource. # noqa: E501
417
- :rtype: bool
418
- """
419
- return self._is_private_service_cloud
420
-
421
- @is_private_service_cloud.setter
422
- def is_private_service_cloud(self, is_private_service_cloud):
423
- """Sets the is_private_service_cloud of this CreateCloudWithCloudResource.
424
-
425
- Whether services created in this cloud should be private. # noqa: E501
426
-
427
- :param is_private_service_cloud: The is_private_service_cloud of this CreateCloudWithCloudResource. # noqa: E501
428
- :type: bool
429
- """
430
-
431
- self._is_private_service_cloud = is_private_service_cloud
432
-
433
- @property
434
- def auto_add_user(self):
435
- """Gets the auto_add_user of this CreateCloudWithCloudResource. # noqa: E501
436
-
437
- Whether all users in the organization should be automatically added to this cloud. This field is only relevant for organizations with cloud isolation enabled, because all users in the organization automatically have access to all clouds if cloud isolation is not enabled. # noqa: E501
438
-
439
- :return: The auto_add_user of this CreateCloudWithCloudResource. # noqa: E501
440
- :rtype: bool
441
- """
442
- return self._auto_add_user
443
-
444
- @auto_add_user.setter
445
- def auto_add_user(self, auto_add_user):
446
- """Sets the auto_add_user of this CreateCloudWithCloudResource.
447
-
448
- Whether all users in the organization should be automatically added to this cloud. This field is only relevant for organizations with cloud isolation enabled, because all users in the organization automatically have access to all clouds if cloud isolation is not enabled. # noqa: E501
449
-
450
- :param auto_add_user: The auto_add_user of this CreateCloudWithCloudResource. # noqa: E501
451
- :type: bool
452
- """
453
-
454
- self._auto_add_user = auto_add_user
455
-
456
- @property
457
- def external_id(self):
458
- """Gets the external_id of this CreateCloudWithCloudResource. # noqa: E501
459
-
460
- The trust policy external ID specified by the user for the cloud control plane role. It must start with the organization ID. # noqa: E501
461
-
462
- :return: The external_id of this CreateCloudWithCloudResource. # noqa: E501
463
- :rtype: str
464
- """
465
- return self._external_id
466
-
467
- @external_id.setter
468
- def external_id(self, external_id):
469
- """Sets the external_id of this CreateCloudWithCloudResource.
470
-
471
- The trust policy external ID specified by the user for the cloud control plane role. It must start with the organization ID. # noqa: E501
472
-
473
- :param external_id: The external_id of this CreateCloudWithCloudResource. # noqa: E501
474
- :type: str
475
- """
476
-
477
- self._external_id = external_id
478
-
479
- @property
480
- def cloud_resource_to_create(self):
481
- """Gets the cloud_resource_to_create of this CreateCloudWithCloudResource. # noqa: E501
482
-
483
- The cloud resource of this cloud. # noqa: E501
484
-
485
- :return: The cloud_resource_to_create of this CreateCloudWithCloudResource. # noqa: E501
486
- :rtype: CreateCloudResource
487
- """
488
- return self._cloud_resource_to_create
489
-
490
- @cloud_resource_to_create.setter
491
- def cloud_resource_to_create(self, cloud_resource_to_create):
492
- """Sets the cloud_resource_to_create of this CreateCloudWithCloudResource.
493
-
494
- The cloud resource of this cloud. # noqa: E501
495
-
496
- :param cloud_resource_to_create: The cloud_resource_to_create of this CreateCloudWithCloudResource. # noqa: E501
497
- :type: CreateCloudResource
498
- """
499
-
500
- self._cloud_resource_to_create = cloud_resource_to_create
501
-
502
- def to_dict(self):
503
- """Returns the model properties as a dict"""
504
- result = {}
505
-
506
- for attr, _ in six.iteritems(self.openapi_types):
507
- value = getattr(self, attr)
508
- if isinstance(value, list):
509
- result[attr] = list(map(
510
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
511
- value
512
- ))
513
- elif hasattr(value, "to_dict"):
514
- result[attr] = value.to_dict()
515
- elif isinstance(value, dict):
516
- result[attr] = dict(map(
517
- lambda item: (item[0], item[1].to_dict())
518
- if hasattr(item[1], "to_dict") else item,
519
- value.items()
520
- ))
521
- else:
522
- result[attr] = value
523
-
524
- return result
525
-
526
- def to_str(self):
527
- """Returns the string representation of the model"""
528
- return pprint.pformat(self.to_dict())
529
-
530
- def __repr__(self):
531
- """For `print` and `pprint`"""
532
- return self.to_str()
533
-
534
- def __eq__(self, other):
535
- """Returns true if both objects are equal"""
536
- if not isinstance(other, CreateCloudWithCloudResource):
537
- return False
538
-
539
- return self.to_dict() == other.to_dict()
540
-
541
- def __ne__(self, other):
542
- """Returns true if both objects are not equal"""
543
- if not isinstance(other, CreateCloudWithCloudResource):
544
- return True
545
-
546
- 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 DecoratedjobListResponse(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[DecoratedJob]',
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
- """DecoratedjobListResponse - 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 DecoratedjobListResponse. # noqa: E501
62
-
63
-
64
- :return: The results of this DecoratedjobListResponse. # noqa: E501
65
- :rtype: list[DecoratedJob]
66
- """
67
- return self._results
68
-
69
- @results.setter
70
- def results(self, results):
71
- """Sets the results of this DecoratedjobListResponse.
72
-
73
-
74
- :param results: The results of this DecoratedjobListResponse. # noqa: E501
75
- :type: list[DecoratedJob]
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 DecoratedjobListResponse. # noqa: E501
85
-
86
-
87
- :return: The metadata of this DecoratedjobListResponse. # 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 DecoratedjobListResponse.
95
-
96
-
97
- :param metadata: The metadata of this DecoratedjobListResponse. # 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, DecoratedjobListResponse):
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, DecoratedjobListResponse):
145
- return True
146
-
147
- return self.to_dict() != other.to_dict()