baiducloud-python-sdk-cce 0.0.1__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.
- baiducloud_python_sdk_cce/__init__.py +5 -0
- baiducloud_python_sdk_cce/api/__init__.py +0 -0
- baiducloud_python_sdk_cce/api/cce_client.py +931 -0
- baiducloud_python_sdk_cce/models/__init__.py +77 -0
- baiducloud_python_sdk_cce/models/autoscaler.py +76 -0
- baiducloud_python_sdk_cce/models/ca_config.py +151 -0
- baiducloud_python_sdk_cce/models/cluster_autoscaler_spec.py +82 -0
- baiducloud_python_sdk_cce/models/create_a_shrinking_node_group_task_v2_request.py +105 -0
- baiducloud_python_sdk_cce/models/create_a_shrinking_node_group_task_v2_response.py +70 -0
- baiducloud_python_sdk_cce/models/create_an_autoscaler_v2_request.py +58 -0
- baiducloud_python_sdk_cce/models/create_an_autoscaler_v2_response.py +62 -0
- baiducloud_python_sdk_cce/models/create_expansion_node_group_task_v2_request.py +76 -0
- baiducloud_python_sdk_cce/models/create_expansion_node_group_task_v2_response.py +69 -0
- baiducloud_python_sdk_cce/models/create_node_group_v2_request.py +135 -0
- baiducloud_python_sdk_cce/models/create_node_group_v2_response.py +69 -0
- baiducloud_python_sdk_cce/models/create_nodes_cluster_expansion_v2_request.py +67 -0
- baiducloud_python_sdk_cce/models/create_nodes_cluster_expansion_v2_response.py +69 -0
- baiducloud_python_sdk_cce/models/delete_node_group_v2_request.py +76 -0
- baiducloud_python_sdk_cce/models/delete_node_group_v2_response.py +62 -0
- baiducloud_python_sdk_cce/models/delete_nodes_cluster_scaling_v2_request.py +83 -0
- baiducloud_python_sdk_cce/models/delete_nodes_cluster_scaling_v2_response.py +61 -0
- baiducloud_python_sdk_cce/models/delete_option.py +74 -0
- baiducloud_python_sdk_cce/models/existed_instance_in_cluster.py +58 -0
- baiducloud_python_sdk_cce/models/get_node_details_v2_request.py +64 -0
- baiducloud_python_sdk_cce/models/get_node_details_v2_response.py +70 -0
- baiducloud_python_sdk_cce/models/get_node_group_details_v2_request.py +64 -0
- baiducloud_python_sdk_cce/models/get_node_group_details_v2_response.py +70 -0
- baiducloud_python_sdk_cce/models/get_package_list_v2_request.py +66 -0
- baiducloud_python_sdk_cce/models/get_package_list_v2_response.py +62 -0
- baiducloud_python_sdk_cce/models/get_task_list_v2_request.py +110 -0
- baiducloud_python_sdk_cce/models/get_task_list_v2_response.py +70 -0
- baiducloud_python_sdk_cce/models/get_the_list_of_cluster_node_groups_v2_request.py +103 -0
- baiducloud_python_sdk_cce/models/get_the_list_of_cluster_node_groups_v2_response.py +70 -0
- baiducloud_python_sdk_cce/models/get_the_list_of_cluster_nodes_v2_request.py +96 -0
- baiducloud_python_sdk_cce/models/get_the_list_of_cluster_nodes_v2_response.py +70 -0
- baiducloud_python_sdk_cce/models/instance.py +82 -0
- baiducloud_python_sdk_cce/models/instance_group.py +74 -0
- baiducloud_python_sdk_cce/models/instance_page.py +133 -0
- baiducloud_python_sdk_cce/models/instance_set.py +66 -0
- baiducloud_python_sdk_cce/models/instance_template.py +268 -0
- baiducloud_python_sdk_cce/models/list_instance_group_page.py +82 -0
- baiducloud_python_sdk_cce/models/list_instances_by_instance_group_id_page.py +82 -0
- baiducloud_python_sdk_cce/models/list_task_page.py +82 -0
- baiducloud_python_sdk_cce/models/machine_spec_status.py +66 -0
- baiducloud_python_sdk_cce/models/modify_ig_auto_scaler_request.py +98 -0
- baiducloud_python_sdk_cce/models/modify_ig_auto_scaler_response.py +61 -0
- baiducloud_python_sdk_cce/models/modify_node_group_node_shrink_protection_status_v2_request.py +74 -0
- baiducloud_python_sdk_cce/models/modify_node_group_node_shrink_protection_status_v2_response.py +69 -0
- baiducloud_python_sdk_cce/models/modify_the_number_of_node_replicas_in_a_node_group_v2_request.py +99 -0
- baiducloud_python_sdk_cce/models/modify_the_number_of_node_replicas_in_a_node_group_v2_response.py +62 -0
- baiducloud_python_sdk_cce/models/move_into_an_existing_node_v2_request.py +126 -0
- baiducloud_python_sdk_cce/models/move_into_an_existing_node_v2_response.py +69 -0
- baiducloud_python_sdk_cce/models/query_the_configuration_of_autoscaler_v2_request.py +58 -0
- baiducloud_python_sdk_cce/models/query_the_configuration_of_autoscaler_v2_response.py +70 -0
- baiducloud_python_sdk_cce/models/retrieve_the_node_group_node_list_v2_request.py +76 -0
- baiducloud_python_sdk_cce/models/retrieve_the_node_group_node_list_v2_response.py +72 -0
- baiducloud_python_sdk_cce/models/step.py +124 -0
- baiducloud_python_sdk_cce/models/steps_to_obtain_node_events_v2_request.py +58 -0
- baiducloud_python_sdk_cce/models/steps_to_obtain_node_events_v2_response.py +78 -0
- baiducloud_python_sdk_cce/models/synchronize_node_metadata_v2_request.py +58 -0
- baiducloud_python_sdk_cce/models/synchronize_node_metadata_v2_response.py +69 -0
- baiducloud_python_sdk_cce/models/taint.py +74 -0
- baiducloud_python_sdk_cce/models/task.py +108 -0
- baiducloud_python_sdk_cce/models/update_autoscaler_configuration_v2_request.py +169 -0
- baiducloud_python_sdk_cce/models/update_autoscaler_configuration_v2_response.py +61 -0
- baiducloud_python_sdk_cce/models/update_node_attributes_v2_request.py +97 -0
- baiducloud_python_sdk_cce/models/update_node_attributes_v2_response.py +72 -0
- baiducloud_python_sdk_cce/models/view_task_details_v2_request.py +64 -0
- baiducloud_python_sdk_cce/models/view_task_details_v2_response.py +70 -0
- baiducloud_python_sdk_cce-0.0.1.dist-info/LICENSE +177 -0
- baiducloud_python_sdk_cce-0.0.1.dist-info/METADATA +76 -0
- baiducloud_python_sdk_cce-0.0.1.dist-info/RECORD +74 -0
- baiducloud_python_sdk_cce-0.0.1.dist-info/WHEEL +5 -0
- baiducloud_python_sdk_cce-0.0.1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for MoveIntoAnExistingNodeV2Request 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
|
+
from baiducloud_python_sdk_cce.models.existed_instance_in_cluster import ExistedInstanceInCluster
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class MoveIntoAnExistingNodeV2Request(AbstractModel):
|
|
11
|
+
"""
|
|
12
|
+
Request entity for MoveIntoAnExistingNodeV2Request operation.
|
|
13
|
+
|
|
14
|
+
This class encapsulates all parameters for the API request.
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
def __init__(
|
|
18
|
+
self,
|
|
19
|
+
cluster_id,
|
|
20
|
+
instance_group_id,
|
|
21
|
+
in_cluster,
|
|
22
|
+
use_instance_group_config,
|
|
23
|
+
use_instance_group_config_with_disk_info=None,
|
|
24
|
+
install_gpu_driver=None,
|
|
25
|
+
existed_instances=None,
|
|
26
|
+
existed_instances_in_cluster=None,
|
|
27
|
+
):
|
|
28
|
+
"""
|
|
29
|
+
Initialize MoveIntoAnExistingNodeV2Request request entity.
|
|
30
|
+
|
|
31
|
+
:param cluster_id: cluster_id parameter
|
|
32
|
+
:type cluster_id: str (required)
|
|
33
|
+
|
|
34
|
+
:param instance_group_id: instance_group_id parameter
|
|
35
|
+
:type instance_group_id: str (required)
|
|
36
|
+
|
|
37
|
+
:param in_cluster: 是否是集群内节点。
|
|
38
|
+
:type in_cluster: bool (required)
|
|
39
|
+
|
|
40
|
+
:param use_instance_group_config: 针对集群外节点生效,设置为 true 将使用节点组配置。
|
|
41
|
+
:type use_instance_group_config: bool (required)
|
|
42
|
+
|
|
43
|
+
:param use_instance_group_config_with_disk_info: 针对集群外节点生效,设置为 true 将使用节点组配置(含磁盘信息)。
|
|
44
|
+
:type use_instance_group_config_with_disk_info: bool (optional)
|
|
45
|
+
|
|
46
|
+
:param install_gpu_driver: 是否安装 GPU 驱动
|
|
47
|
+
:type install_gpu_driver: bool (optional)
|
|
48
|
+
|
|
49
|
+
:param existed_instances: 配置集群外节点的详细信息。
|
|
50
|
+
:type existed_instances: List[InstanceSet] (optional)
|
|
51
|
+
|
|
52
|
+
:param existed_instances_in_cluster: 配置集群内节点的详细信息。
|
|
53
|
+
:type existed_instances_in_cluster: List[ExistedInstanceInCluster] (optional)
|
|
54
|
+
"""
|
|
55
|
+
super().__init__()
|
|
56
|
+
self.cluster_id = cluster_id
|
|
57
|
+
self.instance_group_id = instance_group_id
|
|
58
|
+
self.in_cluster = in_cluster
|
|
59
|
+
self.use_instance_group_config = use_instance_group_config
|
|
60
|
+
self.use_instance_group_config_with_disk_info = use_instance_group_config_with_disk_info
|
|
61
|
+
self.install_gpu_driver = install_gpu_driver
|
|
62
|
+
self.existed_instances = existed_instances
|
|
63
|
+
self.existed_instances_in_cluster = existed_instances_in_cluster
|
|
64
|
+
|
|
65
|
+
def to_dict(self):
|
|
66
|
+
"""
|
|
67
|
+
Convert the request entity to a dictionary representation.
|
|
68
|
+
|
|
69
|
+
Nested model objects are recursively converted to dictionaries.
|
|
70
|
+
|
|
71
|
+
:return: Dictionary representation of the request
|
|
72
|
+
:rtype: dict
|
|
73
|
+
"""
|
|
74
|
+
_map = super().to_dict()
|
|
75
|
+
if _map is not None:
|
|
76
|
+
return _map
|
|
77
|
+
result = dict()
|
|
78
|
+
if self.in_cluster is not None:
|
|
79
|
+
result['inCluster'] = self.in_cluster
|
|
80
|
+
if self.use_instance_group_config is not None:
|
|
81
|
+
result['useInstanceGroupConfig'] = self.use_instance_group_config
|
|
82
|
+
if self.use_instance_group_config_with_disk_info is not None:
|
|
83
|
+
result['useInstanceGroupConfigWithDiskInfo'] = self.use_instance_group_config_with_disk_info
|
|
84
|
+
if self.install_gpu_driver is not None:
|
|
85
|
+
result['installGpuDriver'] = self.install_gpu_driver
|
|
86
|
+
if self.existed_instances is not None:
|
|
87
|
+
result['existedInstances'] = [i.to_dict() for i in self.existed_instances]
|
|
88
|
+
if self.existed_instances_in_cluster is not None:
|
|
89
|
+
result['existedInstancesInCluster'] = [i.to_dict() for i in self.existed_instances_in_cluster]
|
|
90
|
+
return result
|
|
91
|
+
|
|
92
|
+
def from_dict(self, m):
|
|
93
|
+
"""
|
|
94
|
+
Populate the request entity from a dictionary.
|
|
95
|
+
|
|
96
|
+
Nested dictionaries are recursively converted to model objects.
|
|
97
|
+
|
|
98
|
+
:param m: Dictionary containing request data
|
|
99
|
+
:type m: dict
|
|
100
|
+
|
|
101
|
+
:return: Self reference for method chaining
|
|
102
|
+
:rtype: MoveIntoAnExistingNodeV2Request
|
|
103
|
+
|
|
104
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
105
|
+
:raises ValueError: If nested model conversion fails
|
|
106
|
+
"""
|
|
107
|
+
m = m or dict()
|
|
108
|
+
if m.get('clusterID') is not None:
|
|
109
|
+
self.cluster_id = m.get('clusterID')
|
|
110
|
+
if m.get('instanceGroupID') is not None:
|
|
111
|
+
self.instance_group_id = m.get('instanceGroupID')
|
|
112
|
+
if m.get('inCluster') is not None:
|
|
113
|
+
self.in_cluster = m.get('inCluster')
|
|
114
|
+
if m.get('useInstanceGroupConfig') is not None:
|
|
115
|
+
self.use_instance_group_config = m.get('useInstanceGroupConfig')
|
|
116
|
+
if m.get('useInstanceGroupConfigWithDiskInfo') is not None:
|
|
117
|
+
self.use_instance_group_config_with_disk_info = m.get('useInstanceGroupConfigWithDiskInfo')
|
|
118
|
+
if m.get('installGpuDriver') is not None:
|
|
119
|
+
self.install_gpu_driver = m.get('installGpuDriver')
|
|
120
|
+
if m.get('existedInstances') is not None:
|
|
121
|
+
self.existed_instances = [InstanceSet().from_dict(i) for i in m.get('existedInstances')]
|
|
122
|
+
if m.get('existedInstancesInCluster') is not None:
|
|
123
|
+
self.existed_instances_in_cluster = [
|
|
124
|
+
ExistedInstanceInCluster().from_dict(i) for i in m.get('existedInstancesInCluster')
|
|
125
|
+
]
|
|
126
|
+
return self
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for MoveIntoAnExistingNodeV2Response information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.bce_response import BceResponse
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class MoveIntoAnExistingNodeV2Response(BceResponse):
|
|
9
|
+
"""
|
|
10
|
+
MoveIntoAnExistingNodeV2Response
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(self, task_id=None, request_id=None):
|
|
14
|
+
"""
|
|
15
|
+
Initialize MoveIntoAnExistingNodeV2Response response.
|
|
16
|
+
|
|
17
|
+
:param task_id: 节点移入任务 ID
|
|
18
|
+
:type task_id: str (optional)
|
|
19
|
+
|
|
20
|
+
:param request_id: 请求 ID, 问题定位提供该 ID
|
|
21
|
+
:type request_id: str (optional)
|
|
22
|
+
"""
|
|
23
|
+
super().__init__()
|
|
24
|
+
self.task_id = task_id
|
|
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.task_id is not None:
|
|
44
|
+
result['taskID'] = self.task_id
|
|
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: MoveIntoAnExistingNodeV2Response
|
|
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('taskID') is not None:
|
|
66
|
+
self.task_id = m.get('taskID')
|
|
67
|
+
if m.get('requestID') is not None:
|
|
68
|
+
self.request_id = m.get('requestID')
|
|
69
|
+
return self
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for QueryTheConfigurationOfAutoscalerV2Request information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class QueryTheConfigurationOfAutoscalerV2Request(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for QueryTheConfigurationOfAutoscalerV2Request operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, cluster_id):
|
|
16
|
+
"""
|
|
17
|
+
Initialize QueryTheConfigurationOfAutoscalerV2Request request entity.
|
|
18
|
+
|
|
19
|
+
:param cluster_id: cluster_id parameter
|
|
20
|
+
:type cluster_id: str (required)
|
|
21
|
+
"""
|
|
22
|
+
super().__init__()
|
|
23
|
+
self.cluster_id = cluster_id
|
|
24
|
+
|
|
25
|
+
def to_dict(self):
|
|
26
|
+
"""
|
|
27
|
+
Convert the request entity to a dictionary representation.
|
|
28
|
+
|
|
29
|
+
Nested model objects are recursively converted to dictionaries.
|
|
30
|
+
|
|
31
|
+
:return: Dictionary representation of the request
|
|
32
|
+
:rtype: dict
|
|
33
|
+
"""
|
|
34
|
+
_map = super().to_dict()
|
|
35
|
+
if _map is not None:
|
|
36
|
+
return _map
|
|
37
|
+
result = dict()
|
|
38
|
+
return result
|
|
39
|
+
|
|
40
|
+
def from_dict(self, m):
|
|
41
|
+
"""
|
|
42
|
+
Populate the request entity from a dictionary.
|
|
43
|
+
|
|
44
|
+
Nested dictionaries are recursively converted to model objects.
|
|
45
|
+
|
|
46
|
+
:param m: Dictionary containing request data
|
|
47
|
+
:type m: dict
|
|
48
|
+
|
|
49
|
+
:return: Self reference for method chaining
|
|
50
|
+
:rtype: QueryTheConfigurationOfAutoscalerV2Request
|
|
51
|
+
|
|
52
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
53
|
+
:raises ValueError: If nested model conversion fails
|
|
54
|
+
"""
|
|
55
|
+
m = m or dict()
|
|
56
|
+
if m.get('clusterID') is not None:
|
|
57
|
+
self.cluster_id = m.get('clusterID')
|
|
58
|
+
return self
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for QueryTheConfigurationOfAutoscalerV2Response information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.bce_response import BceResponse
|
|
6
|
+
from baiducloud_python_sdk_cce.models.autoscaler import Autoscaler
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class QueryTheConfigurationOfAutoscalerV2Response(BceResponse):
|
|
10
|
+
"""
|
|
11
|
+
QueryTheConfigurationOfAutoscalerV2Response
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
def __init__(self, autoscaler=None, request_id=None):
|
|
15
|
+
"""
|
|
16
|
+
Initialize QueryTheConfigurationOfAutoscalerV2Response response.
|
|
17
|
+
|
|
18
|
+
:param autoscaler: autoscaler field
|
|
19
|
+
:type autoscaler: Autoscaler (optional)
|
|
20
|
+
|
|
21
|
+
:param request_id: 请求 ID,问题定位时请提供该 ID
|
|
22
|
+
:type request_id: str (optional)
|
|
23
|
+
"""
|
|
24
|
+
super().__init__()
|
|
25
|
+
self.autoscaler = autoscaler
|
|
26
|
+
self.request_id = request_id
|
|
27
|
+
|
|
28
|
+
def to_dict(self):
|
|
29
|
+
"""
|
|
30
|
+
Convert the response instance to a dictionary representation.
|
|
31
|
+
|
|
32
|
+
Includes metadata from the parent BceResponse class.
|
|
33
|
+
Nested model objects are recursively converted to dictionaries.
|
|
34
|
+
|
|
35
|
+
:return: Dictionary representation of the response
|
|
36
|
+
:rtype: dict
|
|
37
|
+
"""
|
|
38
|
+
_map = super().to_dict()
|
|
39
|
+
if _map is not None:
|
|
40
|
+
return _map
|
|
41
|
+
result = dict()
|
|
42
|
+
if self.metadata is not None:
|
|
43
|
+
result['metadata'] = dict(self.metadata)
|
|
44
|
+
if self.autoscaler is not None:
|
|
45
|
+
result['autoscaler'] = self.autoscaler.to_dict()
|
|
46
|
+
if self.request_id is not None:
|
|
47
|
+
result['requestID'] = self.request_id
|
|
48
|
+
return result
|
|
49
|
+
|
|
50
|
+
def from_dict(self, m):
|
|
51
|
+
"""
|
|
52
|
+
Populate the response instance from a dictionary.
|
|
53
|
+
|
|
54
|
+
Nested dictionaries are recursively converted to model objects.
|
|
55
|
+
|
|
56
|
+
:param m: Dictionary containing response data
|
|
57
|
+
:type m: dict
|
|
58
|
+
|
|
59
|
+
:return: Self reference for method chaining
|
|
60
|
+
:rtype: QueryTheConfigurationOfAutoscalerV2Response
|
|
61
|
+
|
|
62
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
63
|
+
:raises ValueError: If nested model conversion fails
|
|
64
|
+
"""
|
|
65
|
+
m = m or dict()
|
|
66
|
+
if m.get('autoscaler') is not None:
|
|
67
|
+
self.autoscaler = Autoscaler().from_dict(m.get('autoscaler'))
|
|
68
|
+
if m.get('requestID') is not None:
|
|
69
|
+
self.request_id = m.get('requestID')
|
|
70
|
+
return self
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for RetrieveTheNodeGroupNodeListV2Request information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class RetrieveTheNodeGroupNodeListV2Request(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for RetrieveTheNodeGroupNodeListV2Request operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, cluster_id, instance_group_id, page_no=None, page_size=None):
|
|
16
|
+
"""
|
|
17
|
+
Initialize RetrieveTheNodeGroupNodeListV2Request request entity.
|
|
18
|
+
|
|
19
|
+
:param cluster_id: cluster_id parameter
|
|
20
|
+
:type cluster_id: str (required)
|
|
21
|
+
|
|
22
|
+
:param instance_group_id: instance_group_id parameter
|
|
23
|
+
:type instance_group_id: str (required)
|
|
24
|
+
|
|
25
|
+
:param page_no: page_no parameter
|
|
26
|
+
:type page_no: int (optional)
|
|
27
|
+
|
|
28
|
+
:param page_size: page_size parameter
|
|
29
|
+
:type page_size: int (optional)
|
|
30
|
+
"""
|
|
31
|
+
super().__init__()
|
|
32
|
+
self.cluster_id = cluster_id
|
|
33
|
+
self.instance_group_id = instance_group_id
|
|
34
|
+
self.page_no = page_no
|
|
35
|
+
self.page_size = page_size
|
|
36
|
+
|
|
37
|
+
def to_dict(self):
|
|
38
|
+
"""
|
|
39
|
+
Convert the request entity to a dictionary representation.
|
|
40
|
+
|
|
41
|
+
Nested model objects are recursively converted to dictionaries.
|
|
42
|
+
|
|
43
|
+
:return: Dictionary representation of the request
|
|
44
|
+
:rtype: dict
|
|
45
|
+
"""
|
|
46
|
+
_map = super().to_dict()
|
|
47
|
+
if _map is not None:
|
|
48
|
+
return _map
|
|
49
|
+
result = dict()
|
|
50
|
+
return result
|
|
51
|
+
|
|
52
|
+
def from_dict(self, m):
|
|
53
|
+
"""
|
|
54
|
+
Populate the request entity from a dictionary.
|
|
55
|
+
|
|
56
|
+
Nested dictionaries are recursively converted to model objects.
|
|
57
|
+
|
|
58
|
+
:param m: Dictionary containing request data
|
|
59
|
+
:type m: dict
|
|
60
|
+
|
|
61
|
+
:return: Self reference for method chaining
|
|
62
|
+
:rtype: RetrieveTheNodeGroupNodeListV2Request
|
|
63
|
+
|
|
64
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
65
|
+
:raises ValueError: If nested model conversion fails
|
|
66
|
+
"""
|
|
67
|
+
m = m or dict()
|
|
68
|
+
if m.get('clusterID') is not None:
|
|
69
|
+
self.cluster_id = m.get('clusterID')
|
|
70
|
+
if m.get('instanceGroupID') is not None:
|
|
71
|
+
self.instance_group_id = m.get('instanceGroupID')
|
|
72
|
+
if m.get('pageNo') is not None:
|
|
73
|
+
self.page_no = m.get('pageNo')
|
|
74
|
+
if m.get('pageSize') is not None:
|
|
75
|
+
self.page_size = m.get('pageSize')
|
|
76
|
+
return self
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for RetrieveTheNodeGroupNodeListV2Response information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.bce_response import BceResponse
|
|
6
|
+
from baiducloud_python_sdk_cce.models.list_instances_by_instance_group_id_page import (
|
|
7
|
+
ListInstancesByInstanceGroupIDPage,
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class RetrieveTheNodeGroupNodeListV2Response(BceResponse):
|
|
12
|
+
"""
|
|
13
|
+
RetrieveTheNodeGroupNodeListV2Response
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
def __init__(self, page=None, request_id=None):
|
|
17
|
+
"""
|
|
18
|
+
Initialize RetrieveTheNodeGroupNodeListV2Response response.
|
|
19
|
+
|
|
20
|
+
:param page: page field
|
|
21
|
+
:type page: ListInstancesByInstanceGroupIDPage (optional)
|
|
22
|
+
|
|
23
|
+
:param request_id: 响应的请求的 ID
|
|
24
|
+
:type request_id: str (optional)
|
|
25
|
+
"""
|
|
26
|
+
super().__init__()
|
|
27
|
+
self.page = page
|
|
28
|
+
self.request_id = request_id
|
|
29
|
+
|
|
30
|
+
def to_dict(self):
|
|
31
|
+
"""
|
|
32
|
+
Convert the response instance to a dictionary representation.
|
|
33
|
+
|
|
34
|
+
Includes metadata from the parent BceResponse class.
|
|
35
|
+
Nested model objects are recursively converted to dictionaries.
|
|
36
|
+
|
|
37
|
+
:return: Dictionary representation of the response
|
|
38
|
+
:rtype: dict
|
|
39
|
+
"""
|
|
40
|
+
_map = super().to_dict()
|
|
41
|
+
if _map is not None:
|
|
42
|
+
return _map
|
|
43
|
+
result = dict()
|
|
44
|
+
if self.metadata is not None:
|
|
45
|
+
result['metadata'] = dict(self.metadata)
|
|
46
|
+
if self.page is not None:
|
|
47
|
+
result['page'] = self.page.to_dict()
|
|
48
|
+
if self.request_id is not None:
|
|
49
|
+
result['requestID'] = self.request_id
|
|
50
|
+
return result
|
|
51
|
+
|
|
52
|
+
def from_dict(self, m):
|
|
53
|
+
"""
|
|
54
|
+
Populate the response instance from a dictionary.
|
|
55
|
+
|
|
56
|
+
Nested dictionaries are recursively converted to model objects.
|
|
57
|
+
|
|
58
|
+
:param m: Dictionary containing response data
|
|
59
|
+
:type m: dict
|
|
60
|
+
|
|
61
|
+
:return: Self reference for method chaining
|
|
62
|
+
:rtype: RetrieveTheNodeGroupNodeListV2Response
|
|
63
|
+
|
|
64
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
65
|
+
:raises ValueError: If nested model conversion fails
|
|
66
|
+
"""
|
|
67
|
+
m = m or dict()
|
|
68
|
+
if m.get('page') is not None:
|
|
69
|
+
self.page = ListInstancesByInstanceGroupIDPage().from_dict(m.get('page'))
|
|
70
|
+
if m.get('requestID') is not None:
|
|
71
|
+
self.request_id = m.get('requestID')
|
|
72
|
+
return self
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Step information
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class Step(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Step
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(
|
|
14
|
+
self,
|
|
15
|
+
step_name=None,
|
|
16
|
+
step_status=None,
|
|
17
|
+
ready=None,
|
|
18
|
+
start_time=None,
|
|
19
|
+
finished_time=None,
|
|
20
|
+
cost_seconds=None,
|
|
21
|
+
retry_count=None,
|
|
22
|
+
err_info=None,
|
|
23
|
+
):
|
|
24
|
+
"""
|
|
25
|
+
Initialize Step instance.
|
|
26
|
+
|
|
27
|
+
:param step_name:
|
|
28
|
+
:type step_name: str (optional)
|
|
29
|
+
|
|
30
|
+
:param step_status:
|
|
31
|
+
:type step_status: str (optional)
|
|
32
|
+
|
|
33
|
+
:param ready:
|
|
34
|
+
:type ready: bool (optional)
|
|
35
|
+
|
|
36
|
+
:param start_time:
|
|
37
|
+
:type start_time: str (optional)
|
|
38
|
+
|
|
39
|
+
:param finished_time:
|
|
40
|
+
:type finished_time: str (optional)
|
|
41
|
+
|
|
42
|
+
:param cost_seconds:
|
|
43
|
+
:type cost_seconds: int (optional)
|
|
44
|
+
|
|
45
|
+
:param retry_count:
|
|
46
|
+
:type retry_count: int (optional)
|
|
47
|
+
|
|
48
|
+
:param err_info:
|
|
49
|
+
:type err_info: object (optional)
|
|
50
|
+
"""
|
|
51
|
+
super().__init__()
|
|
52
|
+
self.step_name = step_name
|
|
53
|
+
self.step_status = step_status
|
|
54
|
+
self.ready = ready
|
|
55
|
+
self.start_time = start_time
|
|
56
|
+
self.finished_time = finished_time
|
|
57
|
+
self.cost_seconds = cost_seconds
|
|
58
|
+
self.retry_count = retry_count
|
|
59
|
+
self.err_info = err_info
|
|
60
|
+
|
|
61
|
+
def to_dict(self):
|
|
62
|
+
"""
|
|
63
|
+
Convert the model instance to a dictionary representation.
|
|
64
|
+
|
|
65
|
+
Nested model objects are recursively converted to dictionaries.
|
|
66
|
+
|
|
67
|
+
:return: Dictionary representation of the model
|
|
68
|
+
:rtype: dict
|
|
69
|
+
"""
|
|
70
|
+
_map = super().to_dict()
|
|
71
|
+
if _map is not None:
|
|
72
|
+
return _map
|
|
73
|
+
result = dict()
|
|
74
|
+
if self.step_name is not None:
|
|
75
|
+
result['stepName'] = self.step_name
|
|
76
|
+
if self.step_status is not None:
|
|
77
|
+
result['stepStatus'] = self.step_status
|
|
78
|
+
if self.ready is not None:
|
|
79
|
+
result['ready'] = self.ready
|
|
80
|
+
if self.start_time is not None:
|
|
81
|
+
result['startTime'] = self.start_time
|
|
82
|
+
if self.finished_time is not None:
|
|
83
|
+
result['finishedTime'] = self.finished_time
|
|
84
|
+
if self.cost_seconds is not None:
|
|
85
|
+
result['costSeconds'] = self.cost_seconds
|
|
86
|
+
if self.retry_count is not None:
|
|
87
|
+
result['retryCount'] = self.retry_count
|
|
88
|
+
if self.err_info is not None:
|
|
89
|
+
result['errInfo'] = self.err_info
|
|
90
|
+
return result
|
|
91
|
+
|
|
92
|
+
def from_dict(self, m):
|
|
93
|
+
"""
|
|
94
|
+
Populate the model instance from a dictionary.
|
|
95
|
+
|
|
96
|
+
Nested dictionaries are recursively converted to model objects.
|
|
97
|
+
|
|
98
|
+
:param m: Dictionary containing model data
|
|
99
|
+
:type m: dict
|
|
100
|
+
|
|
101
|
+
:return: Self reference for method chaining
|
|
102
|
+
:rtype: Step
|
|
103
|
+
|
|
104
|
+
:raises TypeError: If input is not a dictionary type
|
|
105
|
+
:raises ValueError: If nested model conversion fails
|
|
106
|
+
"""
|
|
107
|
+
m = m or dict()
|
|
108
|
+
if m.get('stepName') is not None:
|
|
109
|
+
self.step_name = m.get('stepName')
|
|
110
|
+
if m.get('stepStatus') is not None:
|
|
111
|
+
self.step_status = m.get('stepStatus')
|
|
112
|
+
if m.get('ready') is not None:
|
|
113
|
+
self.ready = m.get('ready')
|
|
114
|
+
if m.get('startTime') is not None:
|
|
115
|
+
self.start_time = m.get('startTime')
|
|
116
|
+
if m.get('finishedTime') is not None:
|
|
117
|
+
self.finished_time = m.get('finishedTime')
|
|
118
|
+
if m.get('costSeconds') is not None:
|
|
119
|
+
self.cost_seconds = m.get('costSeconds')
|
|
120
|
+
if m.get('retryCount') is not None:
|
|
121
|
+
self.retry_count = m.get('retryCount')
|
|
122
|
+
if m.get('errInfo') is not None:
|
|
123
|
+
self.err_info = m.get('errInfo')
|
|
124
|
+
return self
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for StepsToObtainNodeEventsV2Request information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class StepsToObtainNodeEventsV2Request(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for StepsToObtainNodeEventsV2Request operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, instance_id):
|
|
16
|
+
"""
|
|
17
|
+
Initialize StepsToObtainNodeEventsV2Request request entity.
|
|
18
|
+
|
|
19
|
+
:param instance_id: instance_id parameter
|
|
20
|
+
:type instance_id: str (required)
|
|
21
|
+
"""
|
|
22
|
+
super().__init__()
|
|
23
|
+
self.instance_id = instance_id
|
|
24
|
+
|
|
25
|
+
def to_dict(self):
|
|
26
|
+
"""
|
|
27
|
+
Convert the request entity to a dictionary representation.
|
|
28
|
+
|
|
29
|
+
Nested model objects are recursively converted to dictionaries.
|
|
30
|
+
|
|
31
|
+
:return: Dictionary representation of the request
|
|
32
|
+
:rtype: dict
|
|
33
|
+
"""
|
|
34
|
+
_map = super().to_dict()
|
|
35
|
+
if _map is not None:
|
|
36
|
+
return _map
|
|
37
|
+
result = dict()
|
|
38
|
+
return result
|
|
39
|
+
|
|
40
|
+
def from_dict(self, m):
|
|
41
|
+
"""
|
|
42
|
+
Populate the request entity from a dictionary.
|
|
43
|
+
|
|
44
|
+
Nested dictionaries are recursively converted to model objects.
|
|
45
|
+
|
|
46
|
+
:param m: Dictionary containing request data
|
|
47
|
+
:type m: dict
|
|
48
|
+
|
|
49
|
+
:return: Self reference for method chaining
|
|
50
|
+
:rtype: StepsToObtainNodeEventsV2Request
|
|
51
|
+
|
|
52
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
53
|
+
:raises ValueError: If nested model conversion fails
|
|
54
|
+
"""
|
|
55
|
+
m = m or dict()
|
|
56
|
+
if m.get('instanceID') is not None:
|
|
57
|
+
self.instance_id = m.get('instanceID')
|
|
58
|
+
return self
|