anyscale 0.26.47__py3-none-any.whl → 0.26.49__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 (79) hide show
  1. anyscale/__init__.py +0 -7
  2. anyscale/_private/anyscale_client/README.md +115 -0
  3. anyscale/_private/anyscale_client/anyscale_client.py +12 -213
  4. anyscale/_private/anyscale_client/common.py +0 -55
  5. anyscale/_private/anyscale_client/fake_anyscale_client.py +19 -46
  6. anyscale/_private/docgen/__main__.py +32 -47
  7. anyscale/_private/docgen/generator.py +32 -16
  8. anyscale/_private/docgen/generator_legacy.py +58 -6
  9. anyscale/_private/docgen/models.md +3 -2
  10. anyscale/_private/workload/workload_config.py +16 -8
  11. anyscale/_private/workload/workload_sdk.py +24 -7
  12. anyscale/client/README.md +10 -2
  13. anyscale/client/openapi_client/__init__.py +6 -2
  14. anyscale/client/openapi_client/api/default_api.py +558 -8
  15. anyscale/client/openapi_client/models/__init__.py +6 -2
  16. anyscale/client/openapi_client/models/{alert_type.py → alert_issue_type.py} +8 -20
  17. anyscale/client/openapi_client/models/baseimagesenum.py +1 -2
  18. anyscale/client/openapi_client/models/cloud.py +31 -3
  19. anyscale/client/openapi_client/models/cloud_deployment.py +30 -3
  20. anyscale/client/openapi_client/models/cloud_with_cloud_resource.py +29 -1
  21. anyscale/client/openapi_client/models/cloud_with_cloud_resource_gcp.py +29 -1
  22. anyscale/client/openapi_client/models/dataset_metrics.py +6 -6
  23. anyscale/client/openapi_client/models/dataset_state.py +2 -1
  24. anyscale/client/openapi_client/models/decorated_cloud_deployment.py +481 -0
  25. anyscale/client/openapi_client/models/decoratedclouddeployment_response.py +121 -0
  26. anyscale/client/openapi_client/models/describe_system_workload_response.py +32 -6
  27. anyscale/client/openapi_client/models/experimental_workspace.py +29 -1
  28. anyscale/client/openapi_client/models/experimental_workspaces_sort_field.py +2 -1
  29. anyscale/client/openapi_client/models/metrics_query_response.py +121 -0
  30. anyscale/client/openapi_client/models/{clouddeployment_response.py → metricsqueryresponse_response.py} +11 -11
  31. anyscale/client/openapi_client/models/operator_metrics.py +8 -9
  32. anyscale/client/openapi_client/models/operator_status.py +102 -0
  33. anyscale/client/openapi_client/models/organization_usage_alert.py +20 -20
  34. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +1 -2
  35. anyscale/cloud/models.py +330 -0
  36. anyscale/commands/cloud_commands.py +136 -44
  37. anyscale/commands/command_examples.py +54 -134
  38. anyscale/commands/compute_config_commands.py +7 -11
  39. anyscale/compute_config/__init__.py +2 -16
  40. anyscale/compute_config/_private/compute_config_sdk.py +27 -17
  41. anyscale/compute_config/commands.py +14 -44
  42. anyscale/compute_config/models.py +49 -26
  43. anyscale/controllers/cloud_controller.py +289 -171
  44. anyscale/controllers/cloud_file_storage_utils.py +204 -0
  45. anyscale/controllers/kubernetes_verifier.py +1570 -0
  46. anyscale/job/_private/job_sdk.py +17 -8
  47. anyscale/job/models.py +1 -1
  48. anyscale/scripts.py +0 -2
  49. anyscale/sdk/anyscale_client/models/baseimagesenum.py +1 -2
  50. anyscale/sdk/anyscale_client/models/cloud.py +31 -3
  51. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +1 -2
  52. anyscale/shared_anyscale_utils/headers.py +3 -0
  53. anyscale/shared_anyscale_utils/utils/id_gen.py +1 -0
  54. anyscale/version.py +1 -1
  55. anyscale/workspace/models.py +14 -7
  56. {anyscale-0.26.47.dist-info → anyscale-0.26.49.dist-info}/METADATA +1 -1
  57. {anyscale-0.26.47.dist-info → anyscale-0.26.49.dist-info}/RECORD +62 -73
  58. anyscale/commands/llm/dataset_commands.py +0 -269
  59. anyscale/commands/llm/group.py +0 -15
  60. anyscale/commands/llm/models_commands.py +0 -123
  61. anyscale/controllers/llm/__init__.py +0 -0
  62. anyscale/controllers/llm/models_controller.py +0 -144
  63. anyscale/llm/__init__.py +0 -2
  64. anyscale/llm/dataset/__init__.py +0 -2
  65. anyscale/llm/dataset/_private/__init__.py +0 -0
  66. anyscale/llm/dataset/_private/docs.py +0 -63
  67. anyscale/llm/dataset/_private/models.py +0 -71
  68. anyscale/llm/dataset/_private/sdk.py +0 -147
  69. anyscale/llm/model/__init__.py +0 -2
  70. anyscale/llm/model/_private/models_sdk.py +0 -62
  71. anyscale/llm/model/commands.py +0 -93
  72. anyscale/llm/model/models.py +0 -171
  73. anyscale/llm/model/sdk.py +0 -62
  74. anyscale/llm/sdk.py +0 -27
  75. {anyscale-0.26.47.dist-info → anyscale-0.26.49.dist-info}/WHEEL +0 -0
  76. {anyscale-0.26.47.dist-info → anyscale-0.26.49.dist-info}/entry_points.txt +0 -0
  77. {anyscale-0.26.47.dist-info → anyscale-0.26.49.dist-info}/licenses/LICENSE +0 -0
  78. {anyscale-0.26.47.dist-info → anyscale-0.26.49.dist-info}/licenses/NOTICE +0 -0
  79. {anyscale-0.26.47.dist-info → anyscale-0.26.49.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,481 @@
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 DecoratedCloudDeployment(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
+ 'cloud_deployment_id': 'str',
37
+ 'name': 'str',
38
+ 'provider': 'CloudProviders',
39
+ 'compute_stack': 'ComputeStack',
40
+ 'region': 'str',
41
+ 'networking_mode': 'NetworkingMode',
42
+ 'object_storage': 'ObjectStorage',
43
+ 'file_storage': 'FileStorage',
44
+ 'aws_config': 'AWSConfig',
45
+ 'gcp_config': 'GCPConfig',
46
+ 'kubernetes_config': 'KubernetesConfig',
47
+ 'operator_status': 'OperatorStatus',
48
+ 'created_at': 'datetime',
49
+ 'is_default': 'bool'
50
+ }
51
+
52
+ attribute_map = {
53
+ 'cloud_deployment_id': 'cloud_deployment_id',
54
+ 'name': 'name',
55
+ 'provider': 'provider',
56
+ 'compute_stack': 'compute_stack',
57
+ 'region': 'region',
58
+ 'networking_mode': 'networking_mode',
59
+ 'object_storage': 'object_storage',
60
+ 'file_storage': 'file_storage',
61
+ 'aws_config': 'aws_config',
62
+ 'gcp_config': 'gcp_config',
63
+ 'kubernetes_config': 'kubernetes_config',
64
+ 'operator_status': 'operator_status',
65
+ 'created_at': 'created_at',
66
+ 'is_default': 'is_default'
67
+ }
68
+
69
+ def __init__(self, cloud_deployment_id=None, name=None, provider=None, compute_stack=None, region=None, networking_mode=None, object_storage=None, file_storage=None, aws_config=None, gcp_config=None, kubernetes_config=None, operator_status=None, created_at=None, is_default=False, local_vars_configuration=None): # noqa: E501
70
+ """DecoratedCloudDeployment - 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._cloud_deployment_id = None
76
+ self._name = None
77
+ self._provider = None
78
+ self._compute_stack = None
79
+ self._region = None
80
+ self._networking_mode = None
81
+ self._object_storage = None
82
+ self._file_storage = None
83
+ self._aws_config = None
84
+ self._gcp_config = None
85
+ self._kubernetes_config = None
86
+ self._operator_status = None
87
+ self._created_at = None
88
+ self._is_default = None
89
+ self.discriminator = None
90
+
91
+ if cloud_deployment_id is not None:
92
+ self.cloud_deployment_id = cloud_deployment_id
93
+ if name is not None:
94
+ self.name = name
95
+ self.provider = provider
96
+ if compute_stack is not None:
97
+ self.compute_stack = compute_stack
98
+ if region is not None:
99
+ self.region = region
100
+ if networking_mode is not None:
101
+ self.networking_mode = networking_mode
102
+ self.object_storage = object_storage
103
+ self.file_storage = file_storage
104
+ self.aws_config = aws_config
105
+ self.gcp_config = gcp_config
106
+ self.kubernetes_config = kubernetes_config
107
+ self.operator_status = operator_status
108
+ if created_at is not None:
109
+ self.created_at = created_at
110
+ if is_default is not None:
111
+ self.is_default = is_default
112
+
113
+ @property
114
+ def cloud_deployment_id(self):
115
+ """Gets the cloud_deployment_id of this DecoratedCloudDeployment. # noqa: E501
116
+
117
+ Unique identifier for this deployment. # noqa: E501
118
+
119
+ :return: The cloud_deployment_id of this DecoratedCloudDeployment. # noqa: E501
120
+ :rtype: str
121
+ """
122
+ return self._cloud_deployment_id
123
+
124
+ @cloud_deployment_id.setter
125
+ def cloud_deployment_id(self, cloud_deployment_id):
126
+ """Sets the cloud_deployment_id of this DecoratedCloudDeployment.
127
+
128
+ Unique identifier for this deployment. # noqa: E501
129
+
130
+ :param cloud_deployment_id: The cloud_deployment_id of this DecoratedCloudDeployment. # noqa: E501
131
+ :type: str
132
+ """
133
+
134
+ self._cloud_deployment_id = cloud_deployment_id
135
+
136
+ @property
137
+ def name(self):
138
+ """Gets the name of this DecoratedCloudDeployment. # noqa: E501
139
+
140
+ The name of this deployment. # noqa: E501
141
+
142
+ :return: The name of this DecoratedCloudDeployment. # noqa: E501
143
+ :rtype: str
144
+ """
145
+ return self._name
146
+
147
+ @name.setter
148
+ def name(self, name):
149
+ """Sets the name of this DecoratedCloudDeployment.
150
+
151
+ The name of this deployment. # noqa: E501
152
+
153
+ :param name: The name of this DecoratedCloudDeployment. # noqa: E501
154
+ :type: str
155
+ """
156
+
157
+ self._name = name
158
+
159
+ @property
160
+ def provider(self):
161
+ """Gets the provider of this DecoratedCloudDeployment. # noqa: E501
162
+
163
+ The cloud provider type (AWS, GCP, AZURE, or GENERIC). # noqa: E501
164
+
165
+ :return: The provider of this DecoratedCloudDeployment. # noqa: E501
166
+ :rtype: CloudProviders
167
+ """
168
+ return self._provider
169
+
170
+ @provider.setter
171
+ def provider(self, provider):
172
+ """Sets the provider of this DecoratedCloudDeployment.
173
+
174
+ The cloud provider type (AWS, GCP, AZURE, or GENERIC). # noqa: E501
175
+
176
+ :param provider: The provider of this DecoratedCloudDeployment. # noqa: E501
177
+ :type: CloudProviders
178
+ """
179
+ if self.local_vars_configuration.client_side_validation and provider is None: # noqa: E501
180
+ raise ValueError("Invalid value for `provider`, must not be `None`") # noqa: E501
181
+
182
+ self._provider = provider
183
+
184
+ @property
185
+ def compute_stack(self):
186
+ """Gets the compute_stack of this DecoratedCloudDeployment. # noqa: E501
187
+
188
+ The compute stack (VM or K8S). # noqa: E501
189
+
190
+ :return: The compute_stack of this DecoratedCloudDeployment. # noqa: E501
191
+ :rtype: ComputeStack
192
+ """
193
+ return self._compute_stack
194
+
195
+ @compute_stack.setter
196
+ def compute_stack(self, compute_stack):
197
+ """Sets the compute_stack of this DecoratedCloudDeployment.
198
+
199
+ The compute stack (VM or K8S). # noqa: E501
200
+
201
+ :param compute_stack: The compute_stack of this DecoratedCloudDeployment. # noqa: E501
202
+ :type: ComputeStack
203
+ """
204
+
205
+ self._compute_stack = compute_stack
206
+
207
+ @property
208
+ def region(self):
209
+ """Gets the region of this DecoratedCloudDeployment. # noqa: E501
210
+
211
+ The region for the deployment (e.g., us-west-2). # noqa: E501
212
+
213
+ :return: The region of this DecoratedCloudDeployment. # noqa: E501
214
+ :rtype: str
215
+ """
216
+ return self._region
217
+
218
+ @region.setter
219
+ def region(self, region):
220
+ """Sets the region of this DecoratedCloudDeployment.
221
+
222
+ The region for the deployment (e.g., us-west-2). # noqa: E501
223
+
224
+ :param region: The region of this DecoratedCloudDeployment. # noqa: E501
225
+ :type: str
226
+ """
227
+
228
+ self._region = region
229
+
230
+ @property
231
+ def networking_mode(self):
232
+ """Gets the networking_mode of this DecoratedCloudDeployment. # noqa: E501
233
+
234
+ Whether to use public or private networking. # noqa: E501
235
+
236
+ :return: The networking_mode of this DecoratedCloudDeployment. # noqa: E501
237
+ :rtype: NetworkingMode
238
+ """
239
+ return self._networking_mode
240
+
241
+ @networking_mode.setter
242
+ def networking_mode(self, networking_mode):
243
+ """Sets the networking_mode of this DecoratedCloudDeployment.
244
+
245
+ Whether to use public or private networking. # noqa: E501
246
+
247
+ :param networking_mode: The networking_mode of this DecoratedCloudDeployment. # noqa: E501
248
+ :type: NetworkingMode
249
+ """
250
+
251
+ self._networking_mode = networking_mode
252
+
253
+ @property
254
+ def object_storage(self):
255
+ """Gets the object_storage of this DecoratedCloudDeployment. # noqa: E501
256
+
257
+ Object storage configuration. # noqa: E501
258
+
259
+ :return: The object_storage of this DecoratedCloudDeployment. # noqa: E501
260
+ :rtype: ObjectStorage
261
+ """
262
+ return self._object_storage
263
+
264
+ @object_storage.setter
265
+ def object_storage(self, object_storage):
266
+ """Sets the object_storage of this DecoratedCloudDeployment.
267
+
268
+ Object storage configuration. # noqa: E501
269
+
270
+ :param object_storage: The object_storage of this DecoratedCloudDeployment. # noqa: E501
271
+ :type: ObjectStorage
272
+ """
273
+
274
+ self._object_storage = object_storage
275
+
276
+ @property
277
+ def file_storage(self):
278
+ """Gets the file_storage of this DecoratedCloudDeployment. # noqa: E501
279
+
280
+ File storage configuration. # noqa: E501
281
+
282
+ :return: The file_storage of this DecoratedCloudDeployment. # noqa: E501
283
+ :rtype: FileStorage
284
+ """
285
+ return self._file_storage
286
+
287
+ @file_storage.setter
288
+ def file_storage(self, file_storage):
289
+ """Sets the file_storage of this DecoratedCloudDeployment.
290
+
291
+ File storage configuration. # noqa: E501
292
+
293
+ :param file_storage: The file_storage of this DecoratedCloudDeployment. # noqa: E501
294
+ :type: FileStorage
295
+ """
296
+
297
+ self._file_storage = file_storage
298
+
299
+ @property
300
+ def aws_config(self):
301
+ """Gets the aws_config of this DecoratedCloudDeployment. # noqa: E501
302
+
303
+ AWS provider-specific configurations. # noqa: E501
304
+
305
+ :return: The aws_config of this DecoratedCloudDeployment. # noqa: E501
306
+ :rtype: AWSConfig
307
+ """
308
+ return self._aws_config
309
+
310
+ @aws_config.setter
311
+ def aws_config(self, aws_config):
312
+ """Sets the aws_config of this DecoratedCloudDeployment.
313
+
314
+ AWS provider-specific configurations. # noqa: E501
315
+
316
+ :param aws_config: The aws_config of this DecoratedCloudDeployment. # noqa: E501
317
+ :type: AWSConfig
318
+ """
319
+
320
+ self._aws_config = aws_config
321
+
322
+ @property
323
+ def gcp_config(self):
324
+ """Gets the gcp_config of this DecoratedCloudDeployment. # noqa: E501
325
+
326
+ GCP provider-specific configurations. # noqa: E501
327
+
328
+ :return: The gcp_config of this DecoratedCloudDeployment. # noqa: E501
329
+ :rtype: GCPConfig
330
+ """
331
+ return self._gcp_config
332
+
333
+ @gcp_config.setter
334
+ def gcp_config(self, gcp_config):
335
+ """Sets the gcp_config of this DecoratedCloudDeployment.
336
+
337
+ GCP provider-specific configurations. # noqa: E501
338
+
339
+ :param gcp_config: The gcp_config of this DecoratedCloudDeployment. # noqa: E501
340
+ :type: GCPConfig
341
+ """
342
+
343
+ self._gcp_config = gcp_config
344
+
345
+ @property
346
+ def kubernetes_config(self):
347
+ """Gets the kubernetes_config of this DecoratedCloudDeployment. # noqa: E501
348
+
349
+ Kubernetes stack configurations. # noqa: E501
350
+
351
+ :return: The kubernetes_config of this DecoratedCloudDeployment. # noqa: E501
352
+ :rtype: KubernetesConfig
353
+ """
354
+ return self._kubernetes_config
355
+
356
+ @kubernetes_config.setter
357
+ def kubernetes_config(self, kubernetes_config):
358
+ """Sets the kubernetes_config of this DecoratedCloudDeployment.
359
+
360
+ Kubernetes stack configurations. # noqa: E501
361
+
362
+ :param kubernetes_config: The kubernetes_config of this DecoratedCloudDeployment. # noqa: E501
363
+ :type: KubernetesConfig
364
+ """
365
+
366
+ self._kubernetes_config = kubernetes_config
367
+
368
+ @property
369
+ def operator_status(self):
370
+ """Gets the operator_status of this DecoratedCloudDeployment. # noqa: E501
371
+
372
+ Status of the Anyscale operator (only for K8s deployments). # noqa: E501
373
+
374
+ :return: The operator_status of this DecoratedCloudDeployment. # noqa: E501
375
+ :rtype: OperatorStatus
376
+ """
377
+ return self._operator_status
378
+
379
+ @operator_status.setter
380
+ def operator_status(self, operator_status):
381
+ """Sets the operator_status of this DecoratedCloudDeployment.
382
+
383
+ Status of the Anyscale operator (only for K8s deployments). # noqa: E501
384
+
385
+ :param operator_status: The operator_status of this DecoratedCloudDeployment. # noqa: E501
386
+ :type: OperatorStatus
387
+ """
388
+
389
+ self._operator_status = operator_status
390
+
391
+ @property
392
+ def created_at(self):
393
+ """Gets the created_at of this DecoratedCloudDeployment. # noqa: E501
394
+
395
+ The timestamp when the cloud deployment was created. # noqa: E501
396
+
397
+ :return: The created_at of this DecoratedCloudDeployment. # noqa: E501
398
+ :rtype: datetime
399
+ """
400
+ return self._created_at
401
+
402
+ @created_at.setter
403
+ def created_at(self, created_at):
404
+ """Sets the created_at of this DecoratedCloudDeployment.
405
+
406
+ The timestamp when the cloud deployment was created. # noqa: E501
407
+
408
+ :param created_at: The created_at of this DecoratedCloudDeployment. # noqa: E501
409
+ :type: datetime
410
+ """
411
+
412
+ self._created_at = created_at
413
+
414
+ @property
415
+ def is_default(self):
416
+ """Gets the is_default of this DecoratedCloudDeployment. # noqa: E501
417
+
418
+ Whether this cloud deployment is the default cloud deployment for the cloud. # noqa: E501
419
+
420
+ :return: The is_default of this DecoratedCloudDeployment. # noqa: E501
421
+ :rtype: bool
422
+ """
423
+ return self._is_default
424
+
425
+ @is_default.setter
426
+ def is_default(self, is_default):
427
+ """Sets the is_default of this DecoratedCloudDeployment.
428
+
429
+ Whether this cloud deployment is the default cloud deployment for the cloud. # noqa: E501
430
+
431
+ :param is_default: The is_default of this DecoratedCloudDeployment. # noqa: E501
432
+ :type: bool
433
+ """
434
+
435
+ self._is_default = is_default
436
+
437
+ def to_dict(self):
438
+ """Returns the model properties as a dict"""
439
+ result = {}
440
+
441
+ for attr, _ in six.iteritems(self.openapi_types):
442
+ value = getattr(self, attr)
443
+ if isinstance(value, list):
444
+ result[attr] = list(map(
445
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
446
+ value
447
+ ))
448
+ elif hasattr(value, "to_dict"):
449
+ result[attr] = value.to_dict()
450
+ elif isinstance(value, dict):
451
+ result[attr] = dict(map(
452
+ lambda item: (item[0], item[1].to_dict())
453
+ if hasattr(item[1], "to_dict") else item,
454
+ value.items()
455
+ ))
456
+ else:
457
+ result[attr] = value
458
+
459
+ return result
460
+
461
+ def to_str(self):
462
+ """Returns the string representation of the model"""
463
+ return pprint.pformat(self.to_dict())
464
+
465
+ def __repr__(self):
466
+ """For `print` and `pprint`"""
467
+ return self.to_str()
468
+
469
+ def __eq__(self, other):
470
+ """Returns true if both objects are equal"""
471
+ if not isinstance(other, DecoratedCloudDeployment):
472
+ return False
473
+
474
+ return self.to_dict() == other.to_dict()
475
+
476
+ def __ne__(self, other):
477
+ """Returns true if both objects are not equal"""
478
+ if not isinstance(other, DecoratedCloudDeployment):
479
+ return True
480
+
481
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,121 @@
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 DecoratedclouddeploymentResponse(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': 'DecoratedCloudDeployment'
37
+ }
38
+
39
+ attribute_map = {
40
+ 'result': 'result'
41
+ }
42
+
43
+ def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
44
+ """DecoratedclouddeploymentResponse - 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 DecoratedclouddeploymentResponse. # noqa: E501
57
+
58
+
59
+ :return: The result of this DecoratedclouddeploymentResponse. # noqa: E501
60
+ :rtype: DecoratedCloudDeployment
61
+ """
62
+ return self._result
63
+
64
+ @result.setter
65
+ def result(self, result):
66
+ """Sets the result of this DecoratedclouddeploymentResponse.
67
+
68
+
69
+ :param result: The result of this DecoratedclouddeploymentResponse. # noqa: E501
70
+ :type: DecoratedCloudDeployment
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, DecoratedclouddeploymentResponse):
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, DecoratedclouddeploymentResponse):
119
+ return True
120
+
121
+ return self.to_dict() != other.to_dict()
@@ -37,7 +37,8 @@ class DescribeSystemWorkloadResponse(object):
37
37
  'workload_names': 'list[SystemWorkloadName]',
38
38
  'workload_service_url': 'str',
39
39
  'workload_service_url_auth': 'str',
40
- 'status': 'ClusterState'
40
+ 'status': 'ClusterState',
41
+ 'is_enabled': 'bool'
41
42
  }
42
43
 
43
44
  attribute_map = {
@@ -45,10 +46,11 @@ class DescribeSystemWorkloadResponse(object):
45
46
  'workload_names': 'workload_names',
46
47
  'workload_service_url': 'workload_service_url',
47
48
  'workload_service_url_auth': 'workload_service_url_auth',
48
- 'status': 'status'
49
+ 'status': 'status',
50
+ 'is_enabled': 'is_enabled'
49
51
  }
50
52
 
51
- def __init__(self, cluster_id=None, workload_names=None, workload_service_url=None, workload_service_url_auth=None, status=None, local_vars_configuration=None): # noqa: E501
53
+ def __init__(self, cluster_id=None, workload_names=None, workload_service_url=None, workload_service_url_auth=None, status=None, is_enabled=None, local_vars_configuration=None): # noqa: E501
52
54
  """DescribeSystemWorkloadResponse - a model defined in OpenAPI""" # noqa: E501
53
55
  if local_vars_configuration is None:
54
56
  local_vars_configuration = Configuration()
@@ -59,9 +61,11 @@ class DescribeSystemWorkloadResponse(object):
59
61
  self._workload_service_url = None
60
62
  self._workload_service_url_auth = None
61
63
  self._status = None
64
+ self._is_enabled = None
62
65
  self.discriminator = None
63
66
 
64
- self.cluster_id = cluster_id
67
+ if cluster_id is not None:
68
+ self.cluster_id = cluster_id
65
69
  self.workload_names = workload_names
66
70
  if workload_service_url is not None:
67
71
  self.workload_service_url = workload_service_url
@@ -69,6 +73,7 @@ class DescribeSystemWorkloadResponse(object):
69
73
  self.workload_service_url_auth = workload_service_url_auth
70
74
  if status is not None:
71
75
  self.status = status
76
+ self.is_enabled = is_enabled
72
77
 
73
78
  @property
74
79
  def cluster_id(self):
@@ -88,8 +93,6 @@ class DescribeSystemWorkloadResponse(object):
88
93
  :param cluster_id: The cluster_id of this DescribeSystemWorkloadResponse. # noqa: E501
89
94
  :type: str
90
95
  """
91
- if self.local_vars_configuration.client_side_validation and cluster_id is None: # noqa: E501
92
- raise ValueError("Invalid value for `cluster_id`, must not be `None`") # noqa: E501
93
96
 
94
97
  self._cluster_id = cluster_id
95
98
 
@@ -179,6 +182,29 @@ class DescribeSystemWorkloadResponse(object):
179
182
 
180
183
  self._status = status
181
184
 
185
+ @property
186
+ def is_enabled(self):
187
+ """Gets the is_enabled of this DescribeSystemWorkloadResponse. # noqa: E501
188
+
189
+
190
+ :return: The is_enabled of this DescribeSystemWorkloadResponse. # noqa: E501
191
+ :rtype: bool
192
+ """
193
+ return self._is_enabled
194
+
195
+ @is_enabled.setter
196
+ def is_enabled(self, is_enabled):
197
+ """Sets the is_enabled of this DescribeSystemWorkloadResponse.
198
+
199
+
200
+ :param is_enabled: The is_enabled of this DescribeSystemWorkloadResponse. # noqa: E501
201
+ :type: bool
202
+ """
203
+ if self.local_vars_configuration.client_side_validation and is_enabled is None: # noqa: E501
204
+ raise ValueError("Invalid value for `is_enabled`, must not be `None`") # noqa: E501
205
+
206
+ self._is_enabled = is_enabled
207
+
182
208
  def to_dict(self):
183
209
  """Returns the model properties as a dict"""
184
210
  result = {}