anyscale 0.26.14__py3-none-any.whl → 0.26.16__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/anyscale_client/anyscale_client.py +4 -2
- anyscale/_private/anyscale_client/common.py +6 -4
- anyscale/_private/anyscale_client/fake_anyscale_client.py +16 -7
- anyscale/_private/docgen/__main__.py +4 -4
- anyscale/_private/docgen/generator.py +2 -2
- anyscale/_private/models/model_base.py +5 -2
- anyscale/_private/sdk/__init__.py +2 -2
- anyscale/_private/utils/progress_util.py +2 -2
- anyscale/_private/workload/workload_sdk.py +10 -7
- anyscale/aggregated_instance_usage/commands.py +6 -2
- anyscale/anyscale-cloud-setup.yaml +4 -0
- anyscale/client/README.md +8 -11
- anyscale/client/openapi_client/__init__.py +6 -8
- anyscale/client/openapi_client/api/default_api.py +292 -377
- anyscale/client/openapi_client/models/__init__.py +6 -8
- anyscale/client/openapi_client/models/alert_type.py +11 -2
- anyscale/client/openapi_client/models/create_job_queue_requests.py +3 -32
- anyscale/client/openapi_client/models/{product_autoscaler_flag.py → list_ray_sessions_response.py} +22 -23
- anyscale/client/openapi_client/models/{productautoscalerflag_response.py → listraysessionsresponse_response.py} +11 -11
- anyscale/client/openapi_client/models/metric.py +133 -3
- anyscale/client/openapi_client/models/ray_session.py +121 -0
- anyscale/client/openapi_client/models/task_exception_group_aggregate.py +28 -1
- anyscale/client/openapi_client/models/{taskexceptiongroupaggregate_list_response.py → task_exception_group_aggregate_response.py} +52 -25
- anyscale/client/openapi_client/models/task_function_name_group_aggregate.py +28 -1
- anyscale/client/openapi_client/models/{taskfunctionnamegroupaggregate_list_response.py → task_function_name_group_aggregate_response.py} +52 -25
- anyscale/client/openapi_client/models/task_job_group_aggregate.py +28 -1
- anyscale/client/openapi_client/models/{taskjobgroupaggregate_list_response.py → task_job_group_aggregate_response.py} +52 -25
- anyscale/client/openapi_client/models/task_table_row.py +19 -19
- anyscale/cloud/__init__.py +2 -2
- anyscale/cloud/_private/cloud_sdk.py +2 -2
- anyscale/cloud/commands.py +9 -6
- anyscale/cloud_resource.py +1 -1
- anyscale/cloud_utils.py +11 -6
- anyscale/cluster_compute.py +6 -5
- anyscale/cluster_env.py +10 -5
- anyscale/commands/login_commands.py +24 -3
- anyscale/commands/schedule_commands.py +2 -1
- anyscale/compute_config/_private/compute_config_sdk.py +1 -1
- anyscale/compute_config/commands.py +15 -7
- anyscale/connect_utils/prepare_cluster.py +14 -4
- anyscale/controllers/cloud_controller.py +9 -9
- anyscale/controllers/cloud_functional_verification_controller.py +4 -2
- anyscale/controllers/cluster_controller.py +1 -0
- anyscale/controllers/job_controller.py +1 -1
- anyscale/controllers/service_controller.py +2 -1
- anyscale/image/commands.py +6 -6
- anyscale/job/commands.py +12 -12
- anyscale/organization_invitation/commands.py +11 -7
- anyscale/project/__init__.py +2 -2
- anyscale/project/_private/project_sdk.py +2 -2
- anyscale/project/commands.py +3 -3
- anyscale/project_utils.py +5 -4
- anyscale/resource_quota/commands.py +18 -10
- anyscale/schedule/commands.py +12 -8
- anyscale/sdk/anyscale_client/sdk.py +5 -4
- anyscale/service/commands.py +17 -17
- anyscale/service_account/commands.py +12 -10
- anyscale/user/commands.py +5 -3
- anyscale/utils/connect_helpers.py +16 -3
- anyscale/utils/gcp_utils.py +25 -9
- anyscale/utils/runtime_env.py +3 -1
- anyscale/version.py +1 -1
- anyscale/workspace/__init__.py +10 -5
- anyscale/workspace/_private/workspace_sdk.py +9 -7
- anyscale/workspace/commands.py +25 -23
- {anyscale-0.26.14.dist-info → anyscale-0.26.16.dist-info}/METADATA +1 -1
- {anyscale-0.26.14.dist-info → anyscale-0.26.16.dist-info}/RECORD +72 -74
- anyscale/client/openapi_client/models/aviary_model_config_v2.py +0 -358
- anyscale/client/openapi_client/models/buffer_registration.py +0 -285
- anyscale/client/openapi_client/models/finish_ft_job_request_v2.py +0 -183
- {anyscale-0.26.14.dist-info → anyscale-0.26.16.dist-info}/LICENSE +0 -0
- {anyscale-0.26.14.dist-info → anyscale-0.26.16.dist-info}/NOTICE +0 -0
- {anyscale-0.26.14.dist-info → anyscale-0.26.16.dist-info}/WHEEL +0 -0
- {anyscale-0.26.14.dist-info → anyscale-0.26.16.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.14.dist-info → anyscale-0.26.16.dist-info}/top_level.txt +0 -0
@@ -1,358 +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 AviaryModelConfigV2(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
|
-
'base_model_id': 'str',
|
37
|
-
'model_id': 'str',
|
38
|
-
'generation': 'object',
|
39
|
-
'cloud_id': 'str',
|
40
|
-
'project_id': 'str',
|
41
|
-
'ha_job_id': 'str',
|
42
|
-
'workspace_id': 'str',
|
43
|
-
'model_metadata': 'object',
|
44
|
-
'lora_mirror_config': 'object',
|
45
|
-
'full_param_mirror_config': 'object'
|
46
|
-
}
|
47
|
-
|
48
|
-
attribute_map = {
|
49
|
-
'base_model_id': 'base_model_id',
|
50
|
-
'model_id': 'model_id',
|
51
|
-
'generation': 'generation',
|
52
|
-
'cloud_id': 'cloud_id',
|
53
|
-
'project_id': 'project_id',
|
54
|
-
'ha_job_id': 'ha_job_id',
|
55
|
-
'workspace_id': 'workspace_id',
|
56
|
-
'model_metadata': 'model_metadata',
|
57
|
-
'lora_mirror_config': 'lora_mirror_config',
|
58
|
-
'full_param_mirror_config': 'full_param_mirror_config'
|
59
|
-
}
|
60
|
-
|
61
|
-
def __init__(self, base_model_id=None, model_id=None, generation=None, cloud_id=None, project_id=None, ha_job_id=None, workspace_id=None, model_metadata=None, lora_mirror_config=None, full_param_mirror_config=None, local_vars_configuration=None): # noqa: E501
|
62
|
-
"""AviaryModelConfigV2 - a model defined in OpenAPI""" # noqa: E501
|
63
|
-
if local_vars_configuration is None:
|
64
|
-
local_vars_configuration = Configuration()
|
65
|
-
self.local_vars_configuration = local_vars_configuration
|
66
|
-
|
67
|
-
self._base_model_id = None
|
68
|
-
self._model_id = None
|
69
|
-
self._generation = None
|
70
|
-
self._cloud_id = None
|
71
|
-
self._project_id = None
|
72
|
-
self._ha_job_id = None
|
73
|
-
self._workspace_id = None
|
74
|
-
self._model_metadata = None
|
75
|
-
self._lora_mirror_config = None
|
76
|
-
self._full_param_mirror_config = None
|
77
|
-
self.discriminator = None
|
78
|
-
|
79
|
-
self.base_model_id = base_model_id
|
80
|
-
self.model_id = model_id
|
81
|
-
self.generation = generation
|
82
|
-
self.cloud_id = cloud_id
|
83
|
-
if project_id is not None:
|
84
|
-
self.project_id = project_id
|
85
|
-
if ha_job_id is not None:
|
86
|
-
self.ha_job_id = ha_job_id
|
87
|
-
if workspace_id is not None:
|
88
|
-
self.workspace_id = workspace_id
|
89
|
-
if model_metadata is not None:
|
90
|
-
self.model_metadata = model_metadata
|
91
|
-
if lora_mirror_config is not None:
|
92
|
-
self.lora_mirror_config = lora_mirror_config
|
93
|
-
if full_param_mirror_config is not None:
|
94
|
-
self.full_param_mirror_config = full_param_mirror_config
|
95
|
-
|
96
|
-
@property
|
97
|
-
def base_model_id(self):
|
98
|
-
"""Gets the base_model_id of this AviaryModelConfigV2. # noqa: E501
|
99
|
-
|
100
|
-
|
101
|
-
:return: The base_model_id of this AviaryModelConfigV2. # noqa: E501
|
102
|
-
:rtype: str
|
103
|
-
"""
|
104
|
-
return self._base_model_id
|
105
|
-
|
106
|
-
@base_model_id.setter
|
107
|
-
def base_model_id(self, base_model_id):
|
108
|
-
"""Sets the base_model_id of this AviaryModelConfigV2.
|
109
|
-
|
110
|
-
|
111
|
-
:param base_model_id: The base_model_id of this AviaryModelConfigV2. # noqa: E501
|
112
|
-
:type: str
|
113
|
-
"""
|
114
|
-
if self.local_vars_configuration.client_side_validation and base_model_id is None: # noqa: E501
|
115
|
-
raise ValueError("Invalid value for `base_model_id`, must not be `None`") # noqa: E501
|
116
|
-
|
117
|
-
self._base_model_id = base_model_id
|
118
|
-
|
119
|
-
@property
|
120
|
-
def model_id(self):
|
121
|
-
"""Gets the model_id of this AviaryModelConfigV2. # noqa: E501
|
122
|
-
|
123
|
-
|
124
|
-
:return: The model_id of this AviaryModelConfigV2. # noqa: E501
|
125
|
-
:rtype: str
|
126
|
-
"""
|
127
|
-
return self._model_id
|
128
|
-
|
129
|
-
@model_id.setter
|
130
|
-
def model_id(self, model_id):
|
131
|
-
"""Sets the model_id of this AviaryModelConfigV2.
|
132
|
-
|
133
|
-
|
134
|
-
:param model_id: The model_id of this AviaryModelConfigV2. # noqa: E501
|
135
|
-
:type: str
|
136
|
-
"""
|
137
|
-
if self.local_vars_configuration.client_side_validation and model_id is None: # noqa: E501
|
138
|
-
raise ValueError("Invalid value for `model_id`, must not be `None`") # noqa: E501
|
139
|
-
|
140
|
-
self._model_id = model_id
|
141
|
-
|
142
|
-
@property
|
143
|
-
def generation(self):
|
144
|
-
"""Gets the generation of this AviaryModelConfigV2. # noqa: E501
|
145
|
-
|
146
|
-
|
147
|
-
:return: The generation of this AviaryModelConfigV2. # noqa: E501
|
148
|
-
:rtype: object
|
149
|
-
"""
|
150
|
-
return self._generation
|
151
|
-
|
152
|
-
@generation.setter
|
153
|
-
def generation(self, generation):
|
154
|
-
"""Sets the generation of this AviaryModelConfigV2.
|
155
|
-
|
156
|
-
|
157
|
-
:param generation: The generation of this AviaryModelConfigV2. # noqa: E501
|
158
|
-
:type: object
|
159
|
-
"""
|
160
|
-
if self.local_vars_configuration.client_side_validation and generation is None: # noqa: E501
|
161
|
-
raise ValueError("Invalid value for `generation`, must not be `None`") # noqa: E501
|
162
|
-
|
163
|
-
self._generation = generation
|
164
|
-
|
165
|
-
@property
|
166
|
-
def cloud_id(self):
|
167
|
-
"""Gets the cloud_id of this AviaryModelConfigV2. # noqa: E501
|
168
|
-
|
169
|
-
|
170
|
-
:return: The cloud_id of this AviaryModelConfigV2. # noqa: E501
|
171
|
-
:rtype: str
|
172
|
-
"""
|
173
|
-
return self._cloud_id
|
174
|
-
|
175
|
-
@cloud_id.setter
|
176
|
-
def cloud_id(self, cloud_id):
|
177
|
-
"""Sets the cloud_id of this AviaryModelConfigV2.
|
178
|
-
|
179
|
-
|
180
|
-
:param cloud_id: The cloud_id of this AviaryModelConfigV2. # noqa: E501
|
181
|
-
:type: str
|
182
|
-
"""
|
183
|
-
if self.local_vars_configuration.client_side_validation and cloud_id is None: # noqa: E501
|
184
|
-
raise ValueError("Invalid value for `cloud_id`, must not be `None`") # noqa: E501
|
185
|
-
|
186
|
-
self._cloud_id = cloud_id
|
187
|
-
|
188
|
-
@property
|
189
|
-
def project_id(self):
|
190
|
-
"""Gets the project_id of this AviaryModelConfigV2. # noqa: E501
|
191
|
-
|
192
|
-
|
193
|
-
:return: The project_id of this AviaryModelConfigV2. # noqa: E501
|
194
|
-
:rtype: str
|
195
|
-
"""
|
196
|
-
return self._project_id
|
197
|
-
|
198
|
-
@project_id.setter
|
199
|
-
def project_id(self, project_id):
|
200
|
-
"""Sets the project_id of this AviaryModelConfigV2.
|
201
|
-
|
202
|
-
|
203
|
-
:param project_id: The project_id of this AviaryModelConfigV2. # noqa: E501
|
204
|
-
:type: str
|
205
|
-
"""
|
206
|
-
|
207
|
-
self._project_id = project_id
|
208
|
-
|
209
|
-
@property
|
210
|
-
def ha_job_id(self):
|
211
|
-
"""Gets the ha_job_id of this AviaryModelConfigV2. # noqa: E501
|
212
|
-
|
213
|
-
|
214
|
-
:return: The ha_job_id of this AviaryModelConfigV2. # noqa: E501
|
215
|
-
:rtype: str
|
216
|
-
"""
|
217
|
-
return self._ha_job_id
|
218
|
-
|
219
|
-
@ha_job_id.setter
|
220
|
-
def ha_job_id(self, ha_job_id):
|
221
|
-
"""Sets the ha_job_id of this AviaryModelConfigV2.
|
222
|
-
|
223
|
-
|
224
|
-
:param ha_job_id: The ha_job_id of this AviaryModelConfigV2. # noqa: E501
|
225
|
-
:type: str
|
226
|
-
"""
|
227
|
-
|
228
|
-
self._ha_job_id = ha_job_id
|
229
|
-
|
230
|
-
@property
|
231
|
-
def workspace_id(self):
|
232
|
-
"""Gets the workspace_id of this AviaryModelConfigV2. # noqa: E501
|
233
|
-
|
234
|
-
|
235
|
-
:return: The workspace_id of this AviaryModelConfigV2. # noqa: E501
|
236
|
-
:rtype: str
|
237
|
-
"""
|
238
|
-
return self._workspace_id
|
239
|
-
|
240
|
-
@workspace_id.setter
|
241
|
-
def workspace_id(self, workspace_id):
|
242
|
-
"""Sets the workspace_id of this AviaryModelConfigV2.
|
243
|
-
|
244
|
-
|
245
|
-
:param workspace_id: The workspace_id of this AviaryModelConfigV2. # noqa: E501
|
246
|
-
:type: str
|
247
|
-
"""
|
248
|
-
|
249
|
-
self._workspace_id = workspace_id
|
250
|
-
|
251
|
-
@property
|
252
|
-
def model_metadata(self):
|
253
|
-
"""Gets the model_metadata of this AviaryModelConfigV2. # noqa: E501
|
254
|
-
|
255
|
-
|
256
|
-
:return: The model_metadata of this AviaryModelConfigV2. # noqa: E501
|
257
|
-
:rtype: object
|
258
|
-
"""
|
259
|
-
return self._model_metadata
|
260
|
-
|
261
|
-
@model_metadata.setter
|
262
|
-
def model_metadata(self, model_metadata):
|
263
|
-
"""Sets the model_metadata of this AviaryModelConfigV2.
|
264
|
-
|
265
|
-
|
266
|
-
:param model_metadata: The model_metadata of this AviaryModelConfigV2. # noqa: E501
|
267
|
-
:type: object
|
268
|
-
"""
|
269
|
-
|
270
|
-
self._model_metadata = model_metadata
|
271
|
-
|
272
|
-
@property
|
273
|
-
def lora_mirror_config(self):
|
274
|
-
"""Gets the lora_mirror_config of this AviaryModelConfigV2. # noqa: E501
|
275
|
-
|
276
|
-
|
277
|
-
:return: The lora_mirror_config of this AviaryModelConfigV2. # noqa: E501
|
278
|
-
:rtype: object
|
279
|
-
"""
|
280
|
-
return self._lora_mirror_config
|
281
|
-
|
282
|
-
@lora_mirror_config.setter
|
283
|
-
def lora_mirror_config(self, lora_mirror_config):
|
284
|
-
"""Sets the lora_mirror_config of this AviaryModelConfigV2.
|
285
|
-
|
286
|
-
|
287
|
-
:param lora_mirror_config: The lora_mirror_config of this AviaryModelConfigV2. # noqa: E501
|
288
|
-
:type: object
|
289
|
-
"""
|
290
|
-
|
291
|
-
self._lora_mirror_config = lora_mirror_config
|
292
|
-
|
293
|
-
@property
|
294
|
-
def full_param_mirror_config(self):
|
295
|
-
"""Gets the full_param_mirror_config of this AviaryModelConfigV2. # noqa: E501
|
296
|
-
|
297
|
-
|
298
|
-
:return: The full_param_mirror_config of this AviaryModelConfigV2. # noqa: E501
|
299
|
-
:rtype: object
|
300
|
-
"""
|
301
|
-
return self._full_param_mirror_config
|
302
|
-
|
303
|
-
@full_param_mirror_config.setter
|
304
|
-
def full_param_mirror_config(self, full_param_mirror_config):
|
305
|
-
"""Sets the full_param_mirror_config of this AviaryModelConfigV2.
|
306
|
-
|
307
|
-
|
308
|
-
:param full_param_mirror_config: The full_param_mirror_config of this AviaryModelConfigV2. # noqa: E501
|
309
|
-
:type: object
|
310
|
-
"""
|
311
|
-
|
312
|
-
self._full_param_mirror_config = full_param_mirror_config
|
313
|
-
|
314
|
-
def to_dict(self):
|
315
|
-
"""Returns the model properties as a dict"""
|
316
|
-
result = {}
|
317
|
-
|
318
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
319
|
-
value = getattr(self, attr)
|
320
|
-
if isinstance(value, list):
|
321
|
-
result[attr] = list(map(
|
322
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
323
|
-
value
|
324
|
-
))
|
325
|
-
elif hasattr(value, "to_dict"):
|
326
|
-
result[attr] = value.to_dict()
|
327
|
-
elif isinstance(value, dict):
|
328
|
-
result[attr] = dict(map(
|
329
|
-
lambda item: (item[0], item[1].to_dict())
|
330
|
-
if hasattr(item[1], "to_dict") else item,
|
331
|
-
value.items()
|
332
|
-
))
|
333
|
-
else:
|
334
|
-
result[attr] = value
|
335
|
-
|
336
|
-
return result
|
337
|
-
|
338
|
-
def to_str(self):
|
339
|
-
"""Returns the string representation of the model"""
|
340
|
-
return pprint.pformat(self.to_dict())
|
341
|
-
|
342
|
-
def __repr__(self):
|
343
|
-
"""For `print` and `pprint`"""
|
344
|
-
return self.to_str()
|
345
|
-
|
346
|
-
def __eq__(self, other):
|
347
|
-
"""Returns true if both objects are equal"""
|
348
|
-
if not isinstance(other, AviaryModelConfigV2):
|
349
|
-
return False
|
350
|
-
|
351
|
-
return self.to_dict() == other.to_dict()
|
352
|
-
|
353
|
-
def __ne__(self, other):
|
354
|
-
"""Returns true if both objects are not equal"""
|
355
|
-
if not isinstance(other, AviaryModelConfigV2):
|
356
|
-
return True
|
357
|
-
|
358
|
-
return self.to_dict() != other.to_dict()
|
@@ -1,285 +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 BufferRegistration(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
|
-
'aws': 'NodeRegistrationAWS',
|
37
|
-
'gcp': 'NodeRegistrationGCP',
|
38
|
-
'provisioned': 'NodeRegistrationProvisioned',
|
39
|
-
'k8s': 'NodeRegistrationK8S',
|
40
|
-
'provider': 'CloudProvider',
|
41
|
-
'cloud_id': 'str',
|
42
|
-
'buffer_id': 'str'
|
43
|
-
}
|
44
|
-
|
45
|
-
attribute_map = {
|
46
|
-
'aws': 'aws',
|
47
|
-
'gcp': 'gcp',
|
48
|
-
'provisioned': 'provisioned',
|
49
|
-
'k8s': 'k8s',
|
50
|
-
'provider': 'provider',
|
51
|
-
'cloud_id': 'cloud_id',
|
52
|
-
'buffer_id': 'buffer_id'
|
53
|
-
}
|
54
|
-
|
55
|
-
def __init__(self, aws=None, gcp=None, provisioned=None, k8s=None, provider=None, cloud_id=None, buffer_id=None, local_vars_configuration=None): # noqa: E501
|
56
|
-
"""BufferRegistration - a model defined in OpenAPI""" # noqa: E501
|
57
|
-
if local_vars_configuration is None:
|
58
|
-
local_vars_configuration = Configuration()
|
59
|
-
self.local_vars_configuration = local_vars_configuration
|
60
|
-
|
61
|
-
self._aws = None
|
62
|
-
self._gcp = None
|
63
|
-
self._provisioned = None
|
64
|
-
self._k8s = None
|
65
|
-
self._provider = None
|
66
|
-
self._cloud_id = None
|
67
|
-
self._buffer_id = None
|
68
|
-
self.discriminator = None
|
69
|
-
|
70
|
-
if aws is not None:
|
71
|
-
self.aws = aws
|
72
|
-
if gcp is not None:
|
73
|
-
self.gcp = gcp
|
74
|
-
if provisioned is not None:
|
75
|
-
self.provisioned = provisioned
|
76
|
-
if k8s is not None:
|
77
|
-
self.k8s = k8s
|
78
|
-
self.provider = provider
|
79
|
-
self.cloud_id = cloud_id
|
80
|
-
self.buffer_id = buffer_id
|
81
|
-
|
82
|
-
@property
|
83
|
-
def aws(self):
|
84
|
-
"""Gets the aws of this BufferRegistration. # noqa: E501
|
85
|
-
|
86
|
-
|
87
|
-
:return: The aws of this BufferRegistration. # noqa: E501
|
88
|
-
:rtype: NodeRegistrationAWS
|
89
|
-
"""
|
90
|
-
return self._aws
|
91
|
-
|
92
|
-
@aws.setter
|
93
|
-
def aws(self, aws):
|
94
|
-
"""Sets the aws of this BufferRegistration.
|
95
|
-
|
96
|
-
|
97
|
-
:param aws: The aws of this BufferRegistration. # noqa: E501
|
98
|
-
:type: NodeRegistrationAWS
|
99
|
-
"""
|
100
|
-
|
101
|
-
self._aws = aws
|
102
|
-
|
103
|
-
@property
|
104
|
-
def gcp(self):
|
105
|
-
"""Gets the gcp of this BufferRegistration. # noqa: E501
|
106
|
-
|
107
|
-
|
108
|
-
:return: The gcp of this BufferRegistration. # noqa: E501
|
109
|
-
:rtype: NodeRegistrationGCP
|
110
|
-
"""
|
111
|
-
return self._gcp
|
112
|
-
|
113
|
-
@gcp.setter
|
114
|
-
def gcp(self, gcp):
|
115
|
-
"""Sets the gcp of this BufferRegistration.
|
116
|
-
|
117
|
-
|
118
|
-
:param gcp: The gcp of this BufferRegistration. # noqa: E501
|
119
|
-
:type: NodeRegistrationGCP
|
120
|
-
"""
|
121
|
-
|
122
|
-
self._gcp = gcp
|
123
|
-
|
124
|
-
@property
|
125
|
-
def provisioned(self):
|
126
|
-
"""Gets the provisioned of this BufferRegistration. # noqa: E501
|
127
|
-
|
128
|
-
|
129
|
-
:return: The provisioned of this BufferRegistration. # noqa: E501
|
130
|
-
:rtype: NodeRegistrationProvisioned
|
131
|
-
"""
|
132
|
-
return self._provisioned
|
133
|
-
|
134
|
-
@provisioned.setter
|
135
|
-
def provisioned(self, provisioned):
|
136
|
-
"""Sets the provisioned of this BufferRegistration.
|
137
|
-
|
138
|
-
|
139
|
-
:param provisioned: The provisioned of this BufferRegistration. # noqa: E501
|
140
|
-
:type: NodeRegistrationProvisioned
|
141
|
-
"""
|
142
|
-
|
143
|
-
self._provisioned = provisioned
|
144
|
-
|
145
|
-
@property
|
146
|
-
def k8s(self):
|
147
|
-
"""Gets the k8s of this BufferRegistration. # noqa: E501
|
148
|
-
|
149
|
-
|
150
|
-
:return: The k8s of this BufferRegistration. # noqa: E501
|
151
|
-
:rtype: NodeRegistrationK8S
|
152
|
-
"""
|
153
|
-
return self._k8s
|
154
|
-
|
155
|
-
@k8s.setter
|
156
|
-
def k8s(self, k8s):
|
157
|
-
"""Sets the k8s of this BufferRegistration.
|
158
|
-
|
159
|
-
|
160
|
-
:param k8s: The k8s of this BufferRegistration. # noqa: E501
|
161
|
-
:type: NodeRegistrationK8S
|
162
|
-
"""
|
163
|
-
|
164
|
-
self._k8s = k8s
|
165
|
-
|
166
|
-
@property
|
167
|
-
def provider(self):
|
168
|
-
"""Gets the provider of this BufferRegistration. # noqa: E501
|
169
|
-
|
170
|
-
Which provider this registration is for. # noqa: E501
|
171
|
-
|
172
|
-
:return: The provider of this BufferRegistration. # noqa: E501
|
173
|
-
:rtype: CloudProvider
|
174
|
-
"""
|
175
|
-
return self._provider
|
176
|
-
|
177
|
-
@provider.setter
|
178
|
-
def provider(self, provider):
|
179
|
-
"""Sets the provider of this BufferRegistration.
|
180
|
-
|
181
|
-
Which provider this registration is for. # noqa: E501
|
182
|
-
|
183
|
-
:param provider: The provider of this BufferRegistration. # noqa: E501
|
184
|
-
:type: CloudProvider
|
185
|
-
"""
|
186
|
-
if self.local_vars_configuration.client_side_validation and provider is None: # noqa: E501
|
187
|
-
raise ValueError("Invalid value for `provider`, must not be `None`") # noqa: E501
|
188
|
-
|
189
|
-
self._provider = provider
|
190
|
-
|
191
|
-
@property
|
192
|
-
def cloud_id(self):
|
193
|
-
"""Gets the cloud_id of this BufferRegistration. # noqa: E501
|
194
|
-
|
195
|
-
Cloud ID of the buffer node. # noqa: E501
|
196
|
-
|
197
|
-
:return: The cloud_id of this BufferRegistration. # noqa: E501
|
198
|
-
:rtype: str
|
199
|
-
"""
|
200
|
-
return self._cloud_id
|
201
|
-
|
202
|
-
@cloud_id.setter
|
203
|
-
def cloud_id(self, cloud_id):
|
204
|
-
"""Sets the cloud_id of this BufferRegistration.
|
205
|
-
|
206
|
-
Cloud ID of the buffer node. # noqa: E501
|
207
|
-
|
208
|
-
:param cloud_id: The cloud_id of this BufferRegistration. # noqa: E501
|
209
|
-
:type: str
|
210
|
-
"""
|
211
|
-
if self.local_vars_configuration.client_side_validation and cloud_id is None: # noqa: E501
|
212
|
-
raise ValueError("Invalid value for `cloud_id`, must not be `None`") # noqa: E501
|
213
|
-
|
214
|
-
self._cloud_id = cloud_id
|
215
|
-
|
216
|
-
@property
|
217
|
-
def buffer_id(self):
|
218
|
-
"""Gets the buffer_id of this BufferRegistration. # noqa: E501
|
219
|
-
|
220
|
-
Buffer ID of the buffer node. # noqa: E501
|
221
|
-
|
222
|
-
:return: The buffer_id of this BufferRegistration. # noqa: E501
|
223
|
-
:rtype: str
|
224
|
-
"""
|
225
|
-
return self._buffer_id
|
226
|
-
|
227
|
-
@buffer_id.setter
|
228
|
-
def buffer_id(self, buffer_id):
|
229
|
-
"""Sets the buffer_id of this BufferRegistration.
|
230
|
-
|
231
|
-
Buffer ID of the buffer node. # noqa: E501
|
232
|
-
|
233
|
-
:param buffer_id: The buffer_id of this BufferRegistration. # noqa: E501
|
234
|
-
:type: str
|
235
|
-
"""
|
236
|
-
if self.local_vars_configuration.client_side_validation and buffer_id is None: # noqa: E501
|
237
|
-
raise ValueError("Invalid value for `buffer_id`, must not be `None`") # noqa: E501
|
238
|
-
|
239
|
-
self._buffer_id = buffer_id
|
240
|
-
|
241
|
-
def to_dict(self):
|
242
|
-
"""Returns the model properties as a dict"""
|
243
|
-
result = {}
|
244
|
-
|
245
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
246
|
-
value = getattr(self, attr)
|
247
|
-
if isinstance(value, list):
|
248
|
-
result[attr] = list(map(
|
249
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
250
|
-
value
|
251
|
-
))
|
252
|
-
elif hasattr(value, "to_dict"):
|
253
|
-
result[attr] = value.to_dict()
|
254
|
-
elif isinstance(value, dict):
|
255
|
-
result[attr] = dict(map(
|
256
|
-
lambda item: (item[0], item[1].to_dict())
|
257
|
-
if hasattr(item[1], "to_dict") else item,
|
258
|
-
value.items()
|
259
|
-
))
|
260
|
-
else:
|
261
|
-
result[attr] = value
|
262
|
-
|
263
|
-
return result
|
264
|
-
|
265
|
-
def to_str(self):
|
266
|
-
"""Returns the string representation of the model"""
|
267
|
-
return pprint.pformat(self.to_dict())
|
268
|
-
|
269
|
-
def __repr__(self):
|
270
|
-
"""For `print` and `pprint`"""
|
271
|
-
return self.to_str()
|
272
|
-
|
273
|
-
def __eq__(self, other):
|
274
|
-
"""Returns true if both objects are equal"""
|
275
|
-
if not isinstance(other, BufferRegistration):
|
276
|
-
return False
|
277
|
-
|
278
|
-
return self.to_dict() == other.to_dict()
|
279
|
-
|
280
|
-
def __ne__(self, other):
|
281
|
-
"""Returns true if both objects are not equal"""
|
282
|
-
if not isinstance(other, BufferRegistration):
|
283
|
-
return True
|
284
|
-
|
285
|
-
return self.to_dict() != other.to_dict()
|