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.
Files changed (50) hide show
  1. anyscale/_private/anyscale_client/anyscale_client.py +17 -1
  2. anyscale/_private/anyscale_client/common.py +12 -2
  3. anyscale/_private/anyscale_client/fake_anyscale_client.py +20 -3
  4. anyscale/_private/docgen/__main__.py +4 -0
  5. anyscale/_private/docgen/models.md +11 -2
  6. anyscale/client/README.md +7 -23
  7. anyscale/client/openapi_client/__init__.py +5 -15
  8. anyscale/client/openapi_client/api/default_api.py +410 -1091
  9. anyscale/client/openapi_client/models/__init__.py +5 -15
  10. anyscale/client/openapi_client/models/baseimagesenum.py +135 -1
  11. anyscale/client/openapi_client/models/{jobslogs_response.py → cluster_state.py} +21 -34
  12. anyscale/client/openapi_client/models/describe_system_workload_response.py +226 -0
  13. anyscale/client/openapi_client/models/{interactivesessionlogs_response.py → describesystemworkloadresponse_response.py} +11 -11
  14. anyscale/client/openapi_client/models/job_details.py +27 -1
  15. anyscale/client/openapi_client/models/metric.py +29 -3
  16. anyscale/client/openapi_client/models/{timestampedlogsoutput_response.py → operator_metric_id.py} +49 -22
  17. anyscale/client/openapi_client/models/operator_metrics.py +83 -3
  18. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +135 -1
  19. anyscale/client/openapi_client/models/{job_submissions_sort_field.py → system_workload_name.py} +6 -8
  20. anyscale/commands/command_examples.py +4 -0
  21. anyscale/commands/service_commands.py +62 -27
  22. anyscale/job/_private/job_sdk.py +1 -3
  23. anyscale/sdk/anyscale_client/__init__.py +1 -0
  24. anyscale/sdk/anyscale_client/models/__init__.py +1 -0
  25. anyscale/sdk/anyscale_client/models/baseimagesenum.py +135 -1
  26. anyscale/sdk/anyscale_client/models/cluster.py +60 -3
  27. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +135 -1
  28. anyscale/{client/openapi_client/models/job_status.py → sdk/anyscale_client/models/system_workload_name.py} +8 -14
  29. anyscale/service/__init__.py +19 -0
  30. anyscale/service/_private/service_sdk.py +26 -2
  31. anyscale/service/commands.py +48 -9
  32. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  33. anyscale/version.py +1 -1
  34. {anyscale-0.26.7.dist-info → anyscale-0.26.9.dist-info}/METADATA +1 -1
  35. {anyscale-0.26.7.dist-info → anyscale-0.26.9.dist-info}/RECORD +40 -49
  36. anyscale/client/openapi_client/models/decorated_job_submission.py +0 -547
  37. anyscale/client/openapi_client/models/decoratedjobsubmission_list_response.py +0 -147
  38. anyscale/client/openapi_client/models/decoratedjobsubmission_response.py +0 -121
  39. anyscale/client/openapi_client/models/interactive_session_logs.py +0 -152
  40. anyscale/client/openapi_client/models/jobs_logs.py +0 -152
  41. anyscale/client/openapi_client/models/jobs_logs_query_info.py +0 -181
  42. anyscale/client/openapi_client/models/jobslogsqueryinfo_response.py +0 -121
  43. anyscale/client/openapi_client/models/serve_deployment_logs.py +0 -152
  44. anyscale/client/openapi_client/models/servedeploymentlogs_response.py +0 -121
  45. anyscale/client/openapi_client/models/timestamped_logs_output.py +0 -148
  46. {anyscale-0.26.7.dist-info → anyscale-0.26.9.dist-info}/LICENSE +0 -0
  47. {anyscale-0.26.7.dist-info → anyscale-0.26.9.dist-info}/NOTICE +0 -0
  48. {anyscale-0.26.7.dist-info → anyscale-0.26.9.dist-info}/WHEEL +0 -0
  49. {anyscale-0.26.7.dist-info → anyscale-0.26.9.dist-info}/entry_points.txt +0 -0
  50. {anyscale-0.26.7.dist-info → anyscale-0.26.9.dist-info}/top_level.txt +0 -0
@@ -1,547 +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 DecoratedJobSubmission(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
- 'status': 'JobStatus',
38
- 'created_at': 'datetime',
39
- 'finished_at': 'datetime',
40
- 'ha_job_id': 'str',
41
- 'ray_job_submission_id': 'str',
42
- 'ray_session_name': 'str',
43
- 'cluster_id': 'str',
44
- 'environment_id': 'str',
45
- 'creator_id': 'str',
46
- 'name': 'str',
47
- 'cluster': 'MiniCluster',
48
- 'creator': 'MiniUser',
49
- 'runtime_environment': 'MiniRuntimeEnvironment',
50
- 'project': 'MiniProject',
51
- 'access': 'JobAccess'
52
- }
53
-
54
- attribute_map = {
55
- 'id': 'id',
56
- 'status': 'status',
57
- 'created_at': 'created_at',
58
- 'finished_at': 'finished_at',
59
- 'ha_job_id': 'ha_job_id',
60
- 'ray_job_submission_id': 'ray_job_submission_id',
61
- 'ray_session_name': 'ray_session_name',
62
- 'cluster_id': 'cluster_id',
63
- 'environment_id': 'environment_id',
64
- 'creator_id': 'creator_id',
65
- 'name': 'name',
66
- 'cluster': 'cluster',
67
- 'creator': 'creator',
68
- 'runtime_environment': 'runtime_environment',
69
- 'project': 'project',
70
- 'access': 'access'
71
- }
72
-
73
- def __init__(self, id=None, status=None, created_at=None, finished_at=None, ha_job_id=None, ray_job_submission_id=None, ray_session_name=None, cluster_id=None, environment_id=None, creator_id=None, name=None, cluster=None, creator=None, runtime_environment=None, project=None, access=None, local_vars_configuration=None): # noqa: E501
74
- """DecoratedJobSubmission - 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._id = None
80
- self._status = None
81
- self._created_at = None
82
- self._finished_at = None
83
- self._ha_job_id = None
84
- self._ray_job_submission_id = None
85
- self._ray_session_name = None
86
- self._cluster_id = None
87
- self._environment_id = None
88
- self._creator_id = None
89
- self._name = None
90
- self._cluster = None
91
- self._creator = None
92
- self._runtime_environment = None
93
- self._project = None
94
- self._access = None
95
- self.discriminator = None
96
-
97
- self.id = id
98
- self.status = status
99
- self.created_at = created_at
100
- if finished_at is not None:
101
- self.finished_at = finished_at
102
- if ha_job_id is not None:
103
- self.ha_job_id = ha_job_id
104
- if ray_job_submission_id is not None:
105
- self.ray_job_submission_id = ray_job_submission_id
106
- self.ray_session_name = ray_session_name
107
- self.cluster_id = cluster_id
108
- if environment_id is not None:
109
- self.environment_id = environment_id
110
- if creator_id is not None:
111
- self.creator_id = creator_id
112
- if name is not None:
113
- self.name = name
114
- if cluster is not None:
115
- self.cluster = cluster
116
- if creator is not None:
117
- self.creator = creator
118
- if runtime_environment is not None:
119
- self.runtime_environment = runtime_environment
120
- if project is not None:
121
- self.project = project
122
- if access is not None:
123
- self.access = access
124
-
125
- @property
126
- def id(self):
127
- """Gets the id of this DecoratedJobSubmission. # noqa: E501
128
-
129
- The id of this job submission # noqa: E501
130
-
131
- :return: The id of this DecoratedJobSubmission. # noqa: E501
132
- :rtype: str
133
- """
134
- return self._id
135
-
136
- @id.setter
137
- def id(self, id):
138
- """Sets the id of this DecoratedJobSubmission.
139
-
140
- The id of this job submission # noqa: E501
141
-
142
- :param id: The id of this DecoratedJobSubmission. # noqa: E501
143
- :type: str
144
- """
145
- if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
146
- raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
147
-
148
- self._id = id
149
-
150
- @property
151
- def status(self):
152
- """Gets the status of this DecoratedJobSubmission. # noqa: E501
153
-
154
- The current status of this job submission # noqa: E501
155
-
156
- :return: The status of this DecoratedJobSubmission. # noqa: E501
157
- :rtype: JobStatus
158
- """
159
- return self._status
160
-
161
- @status.setter
162
- def status(self, status):
163
- """Sets the status of this DecoratedJobSubmission.
164
-
165
- The current status of this job submission # noqa: E501
166
-
167
- :param status: The status of this DecoratedJobSubmission. # noqa: E501
168
- :type: JobStatus
169
- """
170
- if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501
171
- raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501
172
-
173
- self._status = status
174
-
175
- @property
176
- def created_at(self):
177
- """Gets the created_at of this DecoratedJobSubmission. # noqa: E501
178
-
179
- The time this job submission was created # noqa: E501
180
-
181
- :return: The created_at of this DecoratedJobSubmission. # noqa: E501
182
- :rtype: datetime
183
- """
184
- return self._created_at
185
-
186
- @created_at.setter
187
- def created_at(self, created_at):
188
- """Sets the created_at of this DecoratedJobSubmission.
189
-
190
- The time this job submission was created # noqa: E501
191
-
192
- :param created_at: The created_at of this DecoratedJobSubmission. # noqa: E501
193
- :type: datetime
194
- """
195
- if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501
196
- raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501
197
-
198
- self._created_at = created_at
199
-
200
- @property
201
- def finished_at(self):
202
- """Gets the finished_at of this DecoratedJobSubmission. # noqa: E501
203
-
204
- The time this job submission was finished # noqa: E501
205
-
206
- :return: The finished_at of this DecoratedJobSubmission. # noqa: E501
207
- :rtype: datetime
208
- """
209
- return self._finished_at
210
-
211
- @finished_at.setter
212
- def finished_at(self, finished_at):
213
- """Sets the finished_at of this DecoratedJobSubmission.
214
-
215
- The time this job submission was finished # noqa: E501
216
-
217
- :param finished_at: The finished_at of this DecoratedJobSubmission. # noqa: E501
218
- :type: datetime
219
- """
220
-
221
- self._finished_at = finished_at
222
-
223
- @property
224
- def ha_job_id(self):
225
- """Gets the ha_job_id of this DecoratedJobSubmission. # noqa: E501
226
-
227
- The anyscale job id of this job submission # noqa: E501
228
-
229
- :return: The ha_job_id of this DecoratedJobSubmission. # noqa: E501
230
- :rtype: str
231
- """
232
- return self._ha_job_id
233
-
234
- @ha_job_id.setter
235
- def ha_job_id(self, ha_job_id):
236
- """Sets the ha_job_id of this DecoratedJobSubmission.
237
-
238
- The anyscale job id of this job submission # noqa: E501
239
-
240
- :param ha_job_id: The ha_job_id of this DecoratedJobSubmission. # noqa: E501
241
- :type: str
242
- """
243
-
244
- self._ha_job_id = ha_job_id
245
-
246
- @property
247
- def ray_job_submission_id(self):
248
- """Gets the ray_job_submission_id of this DecoratedJobSubmission. # noqa: E501
249
-
250
- The ray job submission id of this job submission # noqa: E501
251
-
252
- :return: The ray_job_submission_id of this DecoratedJobSubmission. # noqa: E501
253
- :rtype: str
254
- """
255
- return self._ray_job_submission_id
256
-
257
- @ray_job_submission_id.setter
258
- def ray_job_submission_id(self, ray_job_submission_id):
259
- """Sets the ray_job_submission_id of this DecoratedJobSubmission.
260
-
261
- The ray job submission id of this job submission # noqa: E501
262
-
263
- :param ray_job_submission_id: The ray_job_submission_id of this DecoratedJobSubmission. # noqa: E501
264
- :type: str
265
- """
266
-
267
- self._ray_job_submission_id = ray_job_submission_id
268
-
269
- @property
270
- def ray_session_name(self):
271
- """Gets the ray_session_name of this DecoratedJobSubmission. # noqa: E501
272
-
273
- The ray session name of this job submission # noqa: E501
274
-
275
- :return: The ray_session_name of this DecoratedJobSubmission. # noqa: E501
276
- :rtype: str
277
- """
278
- return self._ray_session_name
279
-
280
- @ray_session_name.setter
281
- def ray_session_name(self, ray_session_name):
282
- """Sets the ray_session_name of this DecoratedJobSubmission.
283
-
284
- The ray session name of this job submission # noqa: E501
285
-
286
- :param ray_session_name: The ray_session_name of this DecoratedJobSubmission. # noqa: E501
287
- :type: str
288
- """
289
- if self.local_vars_configuration.client_side_validation and ray_session_name is None: # noqa: E501
290
- raise ValueError("Invalid value for `ray_session_name`, must not be `None`") # noqa: E501
291
-
292
- self._ray_session_name = ray_session_name
293
-
294
- @property
295
- def cluster_id(self):
296
- """Gets the cluster_id of this DecoratedJobSubmission. # noqa: E501
297
-
298
- The id of the cluster associated with this job submission # noqa: E501
299
-
300
- :return: The cluster_id of this DecoratedJobSubmission. # noqa: E501
301
- :rtype: str
302
- """
303
- return self._cluster_id
304
-
305
- @cluster_id.setter
306
- def cluster_id(self, cluster_id):
307
- """Sets the cluster_id of this DecoratedJobSubmission.
308
-
309
- The id of the cluster associated with this job submission # noqa: E501
310
-
311
- :param cluster_id: The cluster_id of this DecoratedJobSubmission. # noqa: E501
312
- :type: str
313
- """
314
- if self.local_vars_configuration.client_side_validation and cluster_id is None: # noqa: E501
315
- raise ValueError("Invalid value for `cluster_id`, must not be `None`") # noqa: E501
316
-
317
- self._cluster_id = cluster_id
318
-
319
- @property
320
- def environment_id(self):
321
- """Gets the environment_id of this DecoratedJobSubmission. # noqa: E501
322
-
323
- The id of the environment associated with this job submission # noqa: E501
324
-
325
- :return: The environment_id of this DecoratedJobSubmission. # noqa: E501
326
- :rtype: str
327
- """
328
- return self._environment_id
329
-
330
- @environment_id.setter
331
- def environment_id(self, environment_id):
332
- """Sets the environment_id of this DecoratedJobSubmission.
333
-
334
- The id of the environment associated with this job submission # noqa: E501
335
-
336
- :param environment_id: The environment_id of this DecoratedJobSubmission. # noqa: E501
337
- :type: str
338
- """
339
-
340
- self._environment_id = environment_id
341
-
342
- @property
343
- def creator_id(self):
344
- """Gets the creator_id of this DecoratedJobSubmission. # noqa: E501
345
-
346
- The id of the user who created this job submission # noqa: E501
347
-
348
- :return: The creator_id of this DecoratedJobSubmission. # noqa: E501
349
- :rtype: str
350
- """
351
- return self._creator_id
352
-
353
- @creator_id.setter
354
- def creator_id(self, creator_id):
355
- """Sets the creator_id of this DecoratedJobSubmission.
356
-
357
- The id of the user who created this job submission # noqa: E501
358
-
359
- :param creator_id: The creator_id of this DecoratedJobSubmission. # noqa: E501
360
- :type: str
361
- """
362
-
363
- self._creator_id = creator_id
364
-
365
- @property
366
- def name(self):
367
- """Gets the name of this DecoratedJobSubmission. # noqa: E501
368
-
369
- Name of this Job Submission. # noqa: E501
370
-
371
- :return: The name of this DecoratedJobSubmission. # noqa: E501
372
- :rtype: str
373
- """
374
- return self._name
375
-
376
- @name.setter
377
- def name(self, name):
378
- """Sets the name of this DecoratedJobSubmission.
379
-
380
- Name of this Job Submission. # noqa: E501
381
-
382
- :param name: The name of this DecoratedJobSubmission. # noqa: E501
383
- :type: str
384
- """
385
-
386
- self._name = name
387
-
388
- @property
389
- def cluster(self):
390
- """Gets the cluster of this DecoratedJobSubmission. # noqa: E501
391
-
392
- Cluster/Session of this Job Submission. # noqa: E501
393
-
394
- :return: The cluster of this DecoratedJobSubmission. # noqa: E501
395
- :rtype: MiniCluster
396
- """
397
- return self._cluster
398
-
399
- @cluster.setter
400
- def cluster(self, cluster):
401
- """Sets the cluster of this DecoratedJobSubmission.
402
-
403
- Cluster/Session of this Job Submission. # noqa: E501
404
-
405
- :param cluster: The cluster of this DecoratedJobSubmission. # noqa: E501
406
- :type: MiniCluster
407
- """
408
-
409
- self._cluster = cluster
410
-
411
- @property
412
- def creator(self):
413
- """Gets the creator of this DecoratedJobSubmission. # noqa: E501
414
-
415
- Creator (User) of this Job Submission. # noqa: E501
416
-
417
- :return: The creator of this DecoratedJobSubmission. # noqa: E501
418
- :rtype: MiniUser
419
- """
420
- return self._creator
421
-
422
- @creator.setter
423
- def creator(self, creator):
424
- """Sets the creator of this DecoratedJobSubmission.
425
-
426
- Creator (User) of this Job Submission. # noqa: E501
427
-
428
- :param creator: The creator of this DecoratedJobSubmission. # noqa: E501
429
- :type: MiniUser
430
- """
431
-
432
- self._creator = creator
433
-
434
- @property
435
- def runtime_environment(self):
436
- """Gets the runtime_environment of this DecoratedJobSubmission. # noqa: E501
437
-
438
- Runtime Environment of this Job Submission. # noqa: E501
439
-
440
- :return: The runtime_environment of this DecoratedJobSubmission. # noqa: E501
441
- :rtype: MiniRuntimeEnvironment
442
- """
443
- return self._runtime_environment
444
-
445
- @runtime_environment.setter
446
- def runtime_environment(self, runtime_environment):
447
- """Sets the runtime_environment of this DecoratedJobSubmission.
448
-
449
- Runtime Environment of this Job Submission. # noqa: E501
450
-
451
- :param runtime_environment: The runtime_environment of this DecoratedJobSubmission. # noqa: E501
452
- :type: MiniRuntimeEnvironment
453
- """
454
-
455
- self._runtime_environment = runtime_environment
456
-
457
- @property
458
- def project(self):
459
- """Gets the project of this DecoratedJobSubmission. # noqa: E501
460
-
461
- The project in which this job submission lives # noqa: E501
462
-
463
- :return: The project of this DecoratedJobSubmission. # noqa: E501
464
- :rtype: MiniProject
465
- """
466
- return self._project
467
-
468
- @project.setter
469
- def project(self, project):
470
- """Sets the project of this DecoratedJobSubmission.
471
-
472
- The project in which this job submission lives # noqa: E501
473
-
474
- :param project: The project of this DecoratedJobSubmission. # noqa: E501
475
- :type: MiniProject
476
- """
477
-
478
- self._project = project
479
-
480
- @property
481
- def access(self):
482
- """Gets the access of this DecoratedJobSubmission. # noqa: E501
483
-
484
- The variety of users with access to this job. # noqa: E501
485
-
486
- :return: The access of this DecoratedJobSubmission. # noqa: E501
487
- :rtype: JobAccess
488
- """
489
- return self._access
490
-
491
- @access.setter
492
- def access(self, access):
493
- """Sets the access of this DecoratedJobSubmission.
494
-
495
- The variety of users with access to this job. # noqa: E501
496
-
497
- :param access: The access of this DecoratedJobSubmission. # noqa: E501
498
- :type: JobAccess
499
- """
500
-
501
- self._access = access
502
-
503
- def to_dict(self):
504
- """Returns the model properties as a dict"""
505
- result = {}
506
-
507
- for attr, _ in six.iteritems(self.openapi_types):
508
- value = getattr(self, attr)
509
- if isinstance(value, list):
510
- result[attr] = list(map(
511
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
512
- value
513
- ))
514
- elif hasattr(value, "to_dict"):
515
- result[attr] = value.to_dict()
516
- elif isinstance(value, dict):
517
- result[attr] = dict(map(
518
- lambda item: (item[0], item[1].to_dict())
519
- if hasattr(item[1], "to_dict") else item,
520
- value.items()
521
- ))
522
- else:
523
- result[attr] = value
524
-
525
- return result
526
-
527
- def to_str(self):
528
- """Returns the string representation of the model"""
529
- return pprint.pformat(self.to_dict())
530
-
531
- def __repr__(self):
532
- """For `print` and `pprint`"""
533
- return self.to_str()
534
-
535
- def __eq__(self, other):
536
- """Returns true if both objects are equal"""
537
- if not isinstance(other, DecoratedJobSubmission):
538
- return False
539
-
540
- return self.to_dict() == other.to_dict()
541
-
542
- def __ne__(self, other):
543
- """Returns true if both objects are not equal"""
544
- if not isinstance(other, DecoratedJobSubmission):
545
- return True
546
-
547
- 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 DecoratedjobsubmissionListResponse(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[DecoratedJobSubmission]',
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
- """DecoratedjobsubmissionListResponse - 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 DecoratedjobsubmissionListResponse. # noqa: E501
62
-
63
-
64
- :return: The results of this DecoratedjobsubmissionListResponse. # noqa: E501
65
- :rtype: list[DecoratedJobSubmission]
66
- """
67
- return self._results
68
-
69
- @results.setter
70
- def results(self, results):
71
- """Sets the results of this DecoratedjobsubmissionListResponse.
72
-
73
-
74
- :param results: The results of this DecoratedjobsubmissionListResponse. # noqa: E501
75
- :type: list[DecoratedJobSubmission]
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 DecoratedjobsubmissionListResponse. # noqa: E501
85
-
86
-
87
- :return: The metadata of this DecoratedjobsubmissionListResponse. # 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 DecoratedjobsubmissionListResponse.
95
-
96
-
97
- :param metadata: The metadata of this DecoratedjobsubmissionListResponse. # 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, DecoratedjobsubmissionListResponse):
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, DecoratedjobsubmissionListResponse):
145
- return True
146
-
147
- return self.to_dict() != other.to_dict()