baiducloud-python-sdk-cce 0.0.1__tar.gz → 0.0.2__tar.gz
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.
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/ChangeLog.md +3 -0
- {baiducloud-python-sdk-cce-0.0.1/baiducloud_python_sdk_cce.egg-info → baiducloud-python-sdk-cce-0.0.2}/PKG-INFO +1 -1
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/__init__.py +1 -1
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/api/cce_client.py +0 -31
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/__init__.py +0 -2
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/instance_set.py +2 -10
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2/baiducloud_python_sdk_cce.egg-info}/PKG-INFO +1 -1
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce.egg-info/SOURCES.txt +0 -2
- baiducloud-python-sdk-cce-0.0.1/baiducloud_python_sdk_cce/models/create_nodes_cluster_expansion_v2_request.py +0 -67
- baiducloud-python-sdk-cce-0.0.1/baiducloud_python_sdk_cce/models/create_nodes_cluster_expansion_v2_response.py +0 -69
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/LICENSE +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/MANIFEST.in +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/README-CN.md +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/README.md +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/api/__init__.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/autoscaler.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/ca_config.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/cluster_autoscaler_spec.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/create_a_shrinking_node_group_task_v2_request.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/create_a_shrinking_node_group_task_v2_response.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/create_an_autoscaler_v2_request.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/create_an_autoscaler_v2_response.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/create_expansion_node_group_task_v2_request.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/create_expansion_node_group_task_v2_response.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/create_node_group_v2_request.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/create_node_group_v2_response.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/delete_node_group_v2_request.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/delete_node_group_v2_response.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/delete_nodes_cluster_scaling_v2_request.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/delete_nodes_cluster_scaling_v2_response.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/delete_option.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/existed_instance_in_cluster.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/get_node_details_v2_request.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/get_node_details_v2_response.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/get_node_group_details_v2_request.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/get_node_group_details_v2_response.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/get_package_list_v2_request.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/get_package_list_v2_response.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/get_task_list_v2_request.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/get_task_list_v2_response.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/get_the_list_of_cluster_node_groups_v2_request.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/get_the_list_of_cluster_node_groups_v2_response.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/get_the_list_of_cluster_nodes_v2_request.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/get_the_list_of_cluster_nodes_v2_response.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/instance.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/instance_group.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/instance_page.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/instance_template.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/list_instance_group_page.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/list_instances_by_instance_group_id_page.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/list_task_page.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/machine_spec_status.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/modify_ig_auto_scaler_request.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/modify_ig_auto_scaler_response.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/modify_node_group_node_shrink_protection_status_v2_request.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/modify_node_group_node_shrink_protection_status_v2_response.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/modify_the_number_of_node_replicas_in_a_node_group_v2_request.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/modify_the_number_of_node_replicas_in_a_node_group_v2_response.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/move_into_an_existing_node_v2_request.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/move_into_an_existing_node_v2_response.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/query_the_configuration_of_autoscaler_v2_request.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/query_the_configuration_of_autoscaler_v2_response.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/retrieve_the_node_group_node_list_v2_request.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/retrieve_the_node_group_node_list_v2_response.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/step.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/steps_to_obtain_node_events_v2_request.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/steps_to_obtain_node_events_v2_response.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/synchronize_node_metadata_v2_request.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/synchronize_node_metadata_v2_response.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/taint.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/task.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/update_autoscaler_configuration_v2_request.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/update_autoscaler_configuration_v2_response.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/update_node_attributes_v2_request.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/update_node_attributes_v2_response.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/view_task_details_v2_request.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce/models/view_task_details_v2_response.py +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce.egg-info/dependency_links.txt +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce.egg-info/requires.txt +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/baiducloud_python_sdk_cce.egg-info/top_level.txt +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/setup.cfg +0 -0
- {baiducloud-python-sdk-cce-0.0.1 → baiducloud-python-sdk-cce-0.0.2}/setup.py +0 -0
|
@@ -19,9 +19,6 @@ from baiducloud_python_sdk_cce.models.create_expansion_node_group_task_v2_respon
|
|
|
19
19
|
CreateExpansionNodeGroupTaskV2Response,
|
|
20
20
|
)
|
|
21
21
|
from baiducloud_python_sdk_cce.models.create_node_group_v2_response import CreateNodeGroupV2Response
|
|
22
|
-
from baiducloud_python_sdk_cce.models.create_nodes_cluster_expansion_v2_response import (
|
|
23
|
-
CreateNodesClusterExpansionV2Response,
|
|
24
|
-
)
|
|
25
22
|
from baiducloud_python_sdk_cce.models.delete_node_group_v2_response import DeleteNodeGroupV2Response
|
|
26
23
|
from baiducloud_python_sdk_cce.models.delete_nodes_cluster_scaling_v2_response import (
|
|
27
24
|
DeleteNodesClusterScalingV2Response,
|
|
@@ -248,34 +245,6 @@ class CceClient(BceBaseClient):
|
|
|
248
245
|
model=CreateNodeGroupV2Response,
|
|
249
246
|
)
|
|
250
247
|
|
|
251
|
-
def create_nodes_cluster_expansion_v2(self, request, config=None):
|
|
252
|
-
"""
|
|
253
|
-
create_nodes_cluster_expansion_v2
|
|
254
|
-
|
|
255
|
-
:param request: Request entity containing all parameters
|
|
256
|
-
:type request: CceClientRequest
|
|
257
|
-
:param config: Optional request configuration override
|
|
258
|
-
:type config: baiducloud_python_sdk_core.BceClientConfiguration
|
|
259
|
-
|
|
260
|
-
:return: API response containing CreateNodesClusterExpansionV2Response data
|
|
261
|
-
:rtype: CreateNodesClusterExpansionV2Response
|
|
262
|
-
|
|
263
|
-
:raises BceClientError: Client error (network failure, invalid parameters, etc.)
|
|
264
|
-
:raises BceServerError: Server error (4xx/5xx HTTP status codes)
|
|
265
|
-
"""
|
|
266
|
-
path = utils.append_uri(
|
|
267
|
-
b'/', CceClient.CONSTANT_V2, CceClient.CONSTANT_CLUSTER, request.cluster_id, CceClient.CONSTANT_INSTANCES
|
|
268
|
-
)
|
|
269
|
-
headers = None
|
|
270
|
-
merged_config = self._create_request_with_host(request, config)
|
|
271
|
-
return self._send_request(
|
|
272
|
-
http_methods.POST,
|
|
273
|
-
path=path,
|
|
274
|
-
body=request.to_json_string(),
|
|
275
|
-
config=merged_config,
|
|
276
|
-
model=CreateNodesClusterExpansionV2Response,
|
|
277
|
-
)
|
|
278
|
-
|
|
279
248
|
def delete_node_group_v2(self, request, config=None):
|
|
280
249
|
"""
|
|
281
250
|
delete_node_group_v2
|
|
@@ -11,8 +11,6 @@ from .create_an_autoscaler_v2_response import CreateAnAutoscalerV2Response
|
|
|
11
11
|
from .create_expansion_node_group_task_v2_response import CreateExpansionNodeGroupTaskV2Response
|
|
12
12
|
from .create_node_group_v2_request import CreateNodeGroupV2Request
|
|
13
13
|
from .create_node_group_v2_response import CreateNodeGroupV2Response
|
|
14
|
-
from .create_nodes_cluster_expansion_v2_request import CreateNodesClusterExpansionV2Request
|
|
15
|
-
from .create_nodes_cluster_expansion_v2_response import CreateNodesClusterExpansionV2Response
|
|
16
14
|
from .delete_node_group_v2_response import DeleteNodeGroupV2Response
|
|
17
15
|
from .delete_nodes_cluster_scaling_v2_request import DeleteNodesClusterScalingV2Request
|
|
18
16
|
from .delete_nodes_cluster_scaling_v2_response import DeleteNodesClusterScalingV2Response
|
|
@@ -10,19 +10,15 @@ class InstanceSet(AbstractModel):
|
|
|
10
10
|
InstanceSet
|
|
11
11
|
"""
|
|
12
12
|
|
|
13
|
-
def __init__(self, instance_spec=None
|
|
13
|
+
def __init__(self, instance_spec=None):
|
|
14
14
|
"""
|
|
15
15
|
Initialize InstanceSet instance.
|
|
16
16
|
|
|
17
|
-
:param instance_spec:
|
|
17
|
+
:param instance_spec:
|
|
18
18
|
:type instance_spec: object (optional)
|
|
19
|
-
|
|
20
|
-
:param count: 节点数量
|
|
21
|
-
:type count: int (optional)
|
|
22
19
|
"""
|
|
23
20
|
super().__init__()
|
|
24
21
|
self.instance_spec = instance_spec
|
|
25
|
-
self.count = count
|
|
26
22
|
|
|
27
23
|
def to_dict(self):
|
|
28
24
|
"""
|
|
@@ -39,8 +35,6 @@ class InstanceSet(AbstractModel):
|
|
|
39
35
|
result = dict()
|
|
40
36
|
if self.instance_spec is not None:
|
|
41
37
|
result['instanceSpec'] = self.instance_spec
|
|
42
|
-
if self.count is not None:
|
|
43
|
-
result['count'] = self.count
|
|
44
38
|
return result
|
|
45
39
|
|
|
46
40
|
def from_dict(self, m):
|
|
@@ -61,6 +55,4 @@ class InstanceSet(AbstractModel):
|
|
|
61
55
|
m = m or dict()
|
|
62
56
|
if m.get('instanceSpec') is not None:
|
|
63
57
|
self.instance_spec = m.get('instanceSpec')
|
|
64
|
-
if m.get('count') is not None:
|
|
65
|
-
self.count = m.get('count')
|
|
66
58
|
return self
|
|
@@ -25,8 +25,6 @@ baiducloud_python_sdk_cce/models/create_expansion_node_group_task_v2_request.py
|
|
|
25
25
|
baiducloud_python_sdk_cce/models/create_expansion_node_group_task_v2_response.py
|
|
26
26
|
baiducloud_python_sdk_cce/models/create_node_group_v2_request.py
|
|
27
27
|
baiducloud_python_sdk_cce/models/create_node_group_v2_response.py
|
|
28
|
-
baiducloud_python_sdk_cce/models/create_nodes_cluster_expansion_v2_request.py
|
|
29
|
-
baiducloud_python_sdk_cce/models/create_nodes_cluster_expansion_v2_response.py
|
|
30
28
|
baiducloud_python_sdk_cce/models/delete_node_group_v2_request.py
|
|
31
29
|
baiducloud_python_sdk_cce/models/delete_node_group_v2_response.py
|
|
32
30
|
baiducloud_python_sdk_cce/models/delete_nodes_cluster_scaling_v2_request.py
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Request entity for CreateNodesClusterExpansionV2Request information.
|
|
3
|
-
"""
|
|
4
|
-
|
|
5
|
-
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
-
from baiducloud_python_sdk_cce.models.instance_set import InstanceSet
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
class CreateNodesClusterExpansionV2Request(AbstractModel):
|
|
10
|
-
"""
|
|
11
|
-
Request entity for CreateNodesClusterExpansionV2Request operation.
|
|
12
|
-
|
|
13
|
-
This class encapsulates all parameters for the API request.
|
|
14
|
-
"""
|
|
15
|
-
|
|
16
|
-
def __init__(self, cluster_id, request_body_):
|
|
17
|
-
"""
|
|
18
|
-
Initialize CreateNodesClusterExpansionV2Request request entity.
|
|
19
|
-
|
|
20
|
-
:param cluster_id: cluster_id parameter
|
|
21
|
-
:type cluster_id: str (required)
|
|
22
|
-
|
|
23
|
-
:param request_body_: 为集群增加的节点列表
|
|
24
|
-
:type request_body_: List[InstanceSet] (required)
|
|
25
|
-
"""
|
|
26
|
-
super().__init__()
|
|
27
|
-
self.cluster_id = cluster_id
|
|
28
|
-
self.request_body_ = request_body_
|
|
29
|
-
|
|
30
|
-
def to_dict(self):
|
|
31
|
-
"""
|
|
32
|
-
Convert the request entity to a dictionary representation.
|
|
33
|
-
|
|
34
|
-
Nested model objects are recursively converted to dictionaries.
|
|
35
|
-
|
|
36
|
-
:return: Dictionary representation of the request
|
|
37
|
-
:rtype: dict
|
|
38
|
-
"""
|
|
39
|
-
_map = super().to_dict()
|
|
40
|
-
if _map is not None:
|
|
41
|
-
return _map
|
|
42
|
-
result = dict()
|
|
43
|
-
if self.request_body_ is not None:
|
|
44
|
-
result['无(RequestBody 为数组)'] = [i.to_dict() for i in self.request_body_]
|
|
45
|
-
return result
|
|
46
|
-
|
|
47
|
-
def from_dict(self, m):
|
|
48
|
-
"""
|
|
49
|
-
Populate the request entity from a dictionary.
|
|
50
|
-
|
|
51
|
-
Nested dictionaries are recursively converted to model objects.
|
|
52
|
-
|
|
53
|
-
:param m: Dictionary containing request data
|
|
54
|
-
:type m: dict
|
|
55
|
-
|
|
56
|
-
:return: Self reference for method chaining
|
|
57
|
-
:rtype: CreateNodesClusterExpansionV2Request
|
|
58
|
-
|
|
59
|
-
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
60
|
-
:raises ValueError: If nested model conversion fails
|
|
61
|
-
"""
|
|
62
|
-
m = m or dict()
|
|
63
|
-
if m.get('clusterID') is not None:
|
|
64
|
-
self.cluster_id = m.get('clusterID')
|
|
65
|
-
if m.get('无(RequestBody 为数组)') is not None:
|
|
66
|
-
self.request_body_ = [InstanceSet().from_dict(i) for i in m.get('无(RequestBody 为数组)')]
|
|
67
|
-
return self
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Request entity for CreateNodesClusterExpansionV2Response information.
|
|
3
|
-
"""
|
|
4
|
-
|
|
5
|
-
from baiducloud_python_sdk_core.bce_response import BceResponse
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class CreateNodesClusterExpansionV2Response(BceResponse):
|
|
9
|
-
"""
|
|
10
|
-
CreateNodesClusterExpansionV2Response
|
|
11
|
-
"""
|
|
12
|
-
|
|
13
|
-
def __init__(self, cce_instance_ids=None, request_id=None):
|
|
14
|
-
"""
|
|
15
|
-
Initialize CreateNodesClusterExpansionV2Response response.
|
|
16
|
-
|
|
17
|
-
:param cce_instance_ids: 新增节点的 ID 列表
|
|
18
|
-
:type cce_instance_ids: List[str] (optional)
|
|
19
|
-
|
|
20
|
-
:param request_id: 请求 ID, 问题定位提供该 ID
|
|
21
|
-
:type request_id: str (optional)
|
|
22
|
-
"""
|
|
23
|
-
super().__init__()
|
|
24
|
-
self.cce_instance_ids = cce_instance_ids
|
|
25
|
-
self.request_id = request_id
|
|
26
|
-
|
|
27
|
-
def to_dict(self):
|
|
28
|
-
"""
|
|
29
|
-
Convert the response instance to a dictionary representation.
|
|
30
|
-
|
|
31
|
-
Includes metadata from the parent BceResponse class.
|
|
32
|
-
Nested model objects are recursively converted to dictionaries.
|
|
33
|
-
|
|
34
|
-
:return: Dictionary representation of the response
|
|
35
|
-
:rtype: dict
|
|
36
|
-
"""
|
|
37
|
-
_map = super().to_dict()
|
|
38
|
-
if _map is not None:
|
|
39
|
-
return _map
|
|
40
|
-
result = dict()
|
|
41
|
-
if self.metadata is not None:
|
|
42
|
-
result['metadata'] = dict(self.metadata)
|
|
43
|
-
if self.cce_instance_ids is not None:
|
|
44
|
-
result['cceInstanceIDs'] = self.cce_instance_ids
|
|
45
|
-
if self.request_id is not None:
|
|
46
|
-
result['requestID'] = self.request_id
|
|
47
|
-
return result
|
|
48
|
-
|
|
49
|
-
def from_dict(self, m):
|
|
50
|
-
"""
|
|
51
|
-
Populate the response instance from a dictionary.
|
|
52
|
-
|
|
53
|
-
Nested dictionaries are recursively converted to model objects.
|
|
54
|
-
|
|
55
|
-
:param m: Dictionary containing response data
|
|
56
|
-
:type m: dict
|
|
57
|
-
|
|
58
|
-
:return: Self reference for method chaining
|
|
59
|
-
:rtype: CreateNodesClusterExpansionV2Response
|
|
60
|
-
|
|
61
|
-
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
62
|
-
:raises ValueError: If nested model conversion fails
|
|
63
|
-
"""
|
|
64
|
-
m = m or dict()
|
|
65
|
-
if m.get('cceInstanceIDs') is not None:
|
|
66
|
-
self.cce_instance_ids = m.get('cceInstanceIDs')
|
|
67
|
-
if m.get('requestID') is not None:
|
|
68
|
-
self.request_id = m.get('requestID')
|
|
69
|
-
return self
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|