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,110 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for GetTaskListV2Request information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class GetTaskListV2Request(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for GetTaskListV2Request operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(
|
|
16
|
+
self,
|
|
17
|
+
task_type,
|
|
18
|
+
target_id,
|
|
19
|
+
operation_type=None,
|
|
20
|
+
phase=None,
|
|
21
|
+
order=None,
|
|
22
|
+
order_by=None,
|
|
23
|
+
page_no=None,
|
|
24
|
+
page_size=None,
|
|
25
|
+
):
|
|
26
|
+
"""
|
|
27
|
+
Initialize GetTaskListV2Request request entity.
|
|
28
|
+
|
|
29
|
+
:param task_type: task_type parameter
|
|
30
|
+
:type task_type: str (required)
|
|
31
|
+
|
|
32
|
+
:param target_id: target_id parameter
|
|
33
|
+
:type target_id: str (required)
|
|
34
|
+
|
|
35
|
+
:param operation_type: operation_type parameter
|
|
36
|
+
:type operation_type: str (optional)
|
|
37
|
+
|
|
38
|
+
:param phase: phase parameter
|
|
39
|
+
:type phase: str (optional)
|
|
40
|
+
|
|
41
|
+
:param order: order parameter
|
|
42
|
+
:type order: str (optional)
|
|
43
|
+
|
|
44
|
+
:param order_by: order_by parameter
|
|
45
|
+
:type order_by: str (optional)
|
|
46
|
+
|
|
47
|
+
:param page_no: page_no parameter
|
|
48
|
+
:type page_no: int (optional)
|
|
49
|
+
|
|
50
|
+
:param page_size: page_size parameter
|
|
51
|
+
:type page_size: int (optional)
|
|
52
|
+
"""
|
|
53
|
+
super().__init__()
|
|
54
|
+
self.task_type = task_type
|
|
55
|
+
self.target_id = target_id
|
|
56
|
+
self.operation_type = operation_type
|
|
57
|
+
self.phase = phase
|
|
58
|
+
self.order = order
|
|
59
|
+
self.order_by = order_by
|
|
60
|
+
self.page_no = page_no
|
|
61
|
+
self.page_size = page_size
|
|
62
|
+
|
|
63
|
+
def to_dict(self):
|
|
64
|
+
"""
|
|
65
|
+
Convert the request entity to a dictionary representation.
|
|
66
|
+
|
|
67
|
+
Nested model objects are recursively converted to dictionaries.
|
|
68
|
+
|
|
69
|
+
:return: Dictionary representation of the request
|
|
70
|
+
:rtype: dict
|
|
71
|
+
"""
|
|
72
|
+
_map = super().to_dict()
|
|
73
|
+
if _map is not None:
|
|
74
|
+
return _map
|
|
75
|
+
result = dict()
|
|
76
|
+
return result
|
|
77
|
+
|
|
78
|
+
def from_dict(self, m):
|
|
79
|
+
"""
|
|
80
|
+
Populate the request entity from a dictionary.
|
|
81
|
+
|
|
82
|
+
Nested dictionaries are recursively converted to model objects.
|
|
83
|
+
|
|
84
|
+
:param m: Dictionary containing request data
|
|
85
|
+
:type m: dict
|
|
86
|
+
|
|
87
|
+
:return: Self reference for method chaining
|
|
88
|
+
:rtype: GetTaskListV2Request
|
|
89
|
+
|
|
90
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
91
|
+
:raises ValueError: If nested model conversion fails
|
|
92
|
+
"""
|
|
93
|
+
m = m or dict()
|
|
94
|
+
if m.get('taskType') is not None:
|
|
95
|
+
self.task_type = m.get('taskType')
|
|
96
|
+
if m.get('targetID') is not None:
|
|
97
|
+
self.target_id = m.get('targetID')
|
|
98
|
+
if m.get('operationType') is not None:
|
|
99
|
+
self.operation_type = m.get('operationType')
|
|
100
|
+
if m.get('phase') is not None:
|
|
101
|
+
self.phase = m.get('phase')
|
|
102
|
+
if m.get('order') is not None:
|
|
103
|
+
self.order = m.get('order')
|
|
104
|
+
if m.get('orderBy') is not None:
|
|
105
|
+
self.order_by = m.get('orderBy')
|
|
106
|
+
if m.get('pageNo') is not None:
|
|
107
|
+
self.page_no = m.get('pageNo')
|
|
108
|
+
if m.get('pageSize') is not None:
|
|
109
|
+
self.page_size = m.get('pageSize')
|
|
110
|
+
return self
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for GetTaskListV2Response information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.bce_response import BceResponse
|
|
6
|
+
from baiducloud_python_sdk_cce.models.list_task_page import ListTaskPage
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class GetTaskListV2Response(BceResponse):
|
|
10
|
+
"""
|
|
11
|
+
GetTaskListV2Response
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
def __init__(self, page=None, request_id=None):
|
|
15
|
+
"""
|
|
16
|
+
Initialize GetTaskListV2Response response.
|
|
17
|
+
|
|
18
|
+
:param page: page field
|
|
19
|
+
:type page: ListTaskPage (optional)
|
|
20
|
+
|
|
21
|
+
:param request_id: 请求 ID, 问题定位提供该 ID
|
|
22
|
+
:type request_id: str (optional)
|
|
23
|
+
"""
|
|
24
|
+
super().__init__()
|
|
25
|
+
self.page = page
|
|
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.page is not None:
|
|
45
|
+
result['page'] = self.page.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: GetTaskListV2Response
|
|
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('page') is not None:
|
|
67
|
+
self.page = ListTaskPage().from_dict(m.get('page'))
|
|
68
|
+
if m.get('requestID') is not None:
|
|
69
|
+
self.request_id = m.get('requestID')
|
|
70
|
+
return self
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for GetTheListOfClusterNodeGroupsV2Request information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class GetTheListOfClusterNodeGroupsV2Request(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for GetTheListOfClusterNodeGroupsV2Request operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(
|
|
16
|
+
self,
|
|
17
|
+
cluster_id,
|
|
18
|
+
page_no=None,
|
|
19
|
+
page_size=None,
|
|
20
|
+
keyword_type=None,
|
|
21
|
+
keyword=None,
|
|
22
|
+
autoscaler_enabled=None,
|
|
23
|
+
charging_type=None,
|
|
24
|
+
):
|
|
25
|
+
"""
|
|
26
|
+
Initialize GetTheListOfClusterNodeGroupsV2Request request entity.
|
|
27
|
+
|
|
28
|
+
:param cluster_id: cluster_id parameter
|
|
29
|
+
:type cluster_id: str (required)
|
|
30
|
+
|
|
31
|
+
:param page_no: page_no parameter
|
|
32
|
+
:type page_no: int (optional)
|
|
33
|
+
|
|
34
|
+
:param page_size: page_size parameter
|
|
35
|
+
:type page_size: int (optional)
|
|
36
|
+
|
|
37
|
+
:param keyword_type: keyword_type parameter
|
|
38
|
+
:type keyword_type: str (optional)
|
|
39
|
+
|
|
40
|
+
:param keyword: keyword parameter
|
|
41
|
+
:type keyword: str (optional)
|
|
42
|
+
|
|
43
|
+
:param autoscaler_enabled: autoscaler_enabled parameter
|
|
44
|
+
:type autoscaler_enabled: str (optional)
|
|
45
|
+
|
|
46
|
+
:param charging_type: charging_type parameter
|
|
47
|
+
:type charging_type: str (optional)
|
|
48
|
+
"""
|
|
49
|
+
super().__init__()
|
|
50
|
+
self.cluster_id = cluster_id
|
|
51
|
+
self.page_no = page_no
|
|
52
|
+
self.page_size = page_size
|
|
53
|
+
self.keyword_type = keyword_type
|
|
54
|
+
self.keyword = keyword
|
|
55
|
+
self.autoscaler_enabled = autoscaler_enabled
|
|
56
|
+
self.charging_type = charging_type
|
|
57
|
+
|
|
58
|
+
def to_dict(self):
|
|
59
|
+
"""
|
|
60
|
+
Convert the request entity to a dictionary representation.
|
|
61
|
+
|
|
62
|
+
Nested model objects are recursively converted to dictionaries.
|
|
63
|
+
|
|
64
|
+
:return: Dictionary representation of the request
|
|
65
|
+
:rtype: dict
|
|
66
|
+
"""
|
|
67
|
+
_map = super().to_dict()
|
|
68
|
+
if _map is not None:
|
|
69
|
+
return _map
|
|
70
|
+
result = dict()
|
|
71
|
+
return result
|
|
72
|
+
|
|
73
|
+
def from_dict(self, m):
|
|
74
|
+
"""
|
|
75
|
+
Populate the request entity from a dictionary.
|
|
76
|
+
|
|
77
|
+
Nested dictionaries are recursively converted to model objects.
|
|
78
|
+
|
|
79
|
+
:param m: Dictionary containing request data
|
|
80
|
+
:type m: dict
|
|
81
|
+
|
|
82
|
+
:return: Self reference for method chaining
|
|
83
|
+
:rtype: GetTheListOfClusterNodeGroupsV2Request
|
|
84
|
+
|
|
85
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
86
|
+
:raises ValueError: If nested model conversion fails
|
|
87
|
+
"""
|
|
88
|
+
m = m or dict()
|
|
89
|
+
if m.get('clusterID') is not None:
|
|
90
|
+
self.cluster_id = m.get('clusterID')
|
|
91
|
+
if m.get('pageNo') is not None:
|
|
92
|
+
self.page_no = m.get('pageNo')
|
|
93
|
+
if m.get('pageSize') is not None:
|
|
94
|
+
self.page_size = m.get('pageSize')
|
|
95
|
+
if m.get('keywordType') is not None:
|
|
96
|
+
self.keyword_type = m.get('keywordType')
|
|
97
|
+
if m.get('keyword') is not None:
|
|
98
|
+
self.keyword = m.get('keyword')
|
|
99
|
+
if m.get('autoscalerEnabled') is not None:
|
|
100
|
+
self.autoscaler_enabled = m.get('autoscalerEnabled')
|
|
101
|
+
if m.get('chargingType') is not None:
|
|
102
|
+
self.charging_type = m.get('chargingType')
|
|
103
|
+
return self
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for GetTheListOfClusterNodeGroupsV2Response information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.bce_response import BceResponse
|
|
6
|
+
from baiducloud_python_sdk_cce.models.list_instance_group_page import ListInstanceGroupPage
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class GetTheListOfClusterNodeGroupsV2Response(BceResponse):
|
|
10
|
+
"""
|
|
11
|
+
GetTheListOfClusterNodeGroupsV2Response
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
def __init__(self, page=None, request_id=None):
|
|
15
|
+
"""
|
|
16
|
+
Initialize GetTheListOfClusterNodeGroupsV2Response response.
|
|
17
|
+
|
|
18
|
+
:param page: page field
|
|
19
|
+
:type page: ListInstanceGroupPage (optional)
|
|
20
|
+
|
|
21
|
+
:param request_id: 请求 ID, 问题定位提供该 ID
|
|
22
|
+
:type request_id: str (optional)
|
|
23
|
+
"""
|
|
24
|
+
super().__init__()
|
|
25
|
+
self.page = page
|
|
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.page is not None:
|
|
45
|
+
result['page'] = self.page.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: GetTheListOfClusterNodeGroupsV2Response
|
|
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('page') is not None:
|
|
67
|
+
self.page = ListInstanceGroupPage().from_dict(m.get('page'))
|
|
68
|
+
if m.get('requestID') is not None:
|
|
69
|
+
self.request_id = m.get('requestID')
|
|
70
|
+
return self
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for GetTheListOfClusterNodesV2Request information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class GetTheListOfClusterNodesV2Request(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for GetTheListOfClusterNodesV2Request operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(
|
|
16
|
+
self, cluster_id, keyword_type=None, keyword=None, order_by=None, order=None, page_no=None, page_size=None
|
|
17
|
+
):
|
|
18
|
+
"""
|
|
19
|
+
Initialize GetTheListOfClusterNodesV2Request request entity.
|
|
20
|
+
|
|
21
|
+
:param cluster_id: cluster_id parameter
|
|
22
|
+
:type cluster_id: str (required)
|
|
23
|
+
|
|
24
|
+
:param keyword_type: keyword_type parameter
|
|
25
|
+
:type keyword_type: str (optional)
|
|
26
|
+
|
|
27
|
+
:param keyword: keyword parameter
|
|
28
|
+
:type keyword: str (optional)
|
|
29
|
+
|
|
30
|
+
:param order_by: order_by parameter
|
|
31
|
+
:type order_by: str (optional)
|
|
32
|
+
|
|
33
|
+
:param order: order parameter
|
|
34
|
+
:type order: str (optional)
|
|
35
|
+
|
|
36
|
+
:param page_no: page_no parameter
|
|
37
|
+
:type page_no: int (optional)
|
|
38
|
+
|
|
39
|
+
:param page_size: page_size parameter
|
|
40
|
+
:type page_size: int (optional)
|
|
41
|
+
"""
|
|
42
|
+
super().__init__()
|
|
43
|
+
self.cluster_id = cluster_id
|
|
44
|
+
self.keyword_type = keyword_type
|
|
45
|
+
self.keyword = keyword
|
|
46
|
+
self.order_by = order_by
|
|
47
|
+
self.order = order
|
|
48
|
+
self.page_no = page_no
|
|
49
|
+
self.page_size = page_size
|
|
50
|
+
|
|
51
|
+
def to_dict(self):
|
|
52
|
+
"""
|
|
53
|
+
Convert the request entity to a dictionary representation.
|
|
54
|
+
|
|
55
|
+
Nested model objects are recursively converted to dictionaries.
|
|
56
|
+
|
|
57
|
+
:return: Dictionary representation of the request
|
|
58
|
+
:rtype: dict
|
|
59
|
+
"""
|
|
60
|
+
_map = super().to_dict()
|
|
61
|
+
if _map is not None:
|
|
62
|
+
return _map
|
|
63
|
+
result = dict()
|
|
64
|
+
return result
|
|
65
|
+
|
|
66
|
+
def from_dict(self, m):
|
|
67
|
+
"""
|
|
68
|
+
Populate the request entity from a dictionary.
|
|
69
|
+
|
|
70
|
+
Nested dictionaries are recursively converted to model objects.
|
|
71
|
+
|
|
72
|
+
:param m: Dictionary containing request data
|
|
73
|
+
:type m: dict
|
|
74
|
+
|
|
75
|
+
:return: Self reference for method chaining
|
|
76
|
+
:rtype: GetTheListOfClusterNodesV2Request
|
|
77
|
+
|
|
78
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
79
|
+
:raises ValueError: If nested model conversion fails
|
|
80
|
+
"""
|
|
81
|
+
m = m or dict()
|
|
82
|
+
if m.get('clusterID') is not None:
|
|
83
|
+
self.cluster_id = m.get('clusterID')
|
|
84
|
+
if m.get('keywordType') is not None:
|
|
85
|
+
self.keyword_type = m.get('keywordType')
|
|
86
|
+
if m.get('keyword') is not None:
|
|
87
|
+
self.keyword = m.get('keyword')
|
|
88
|
+
if m.get('orderBy') is not None:
|
|
89
|
+
self.order_by = m.get('orderBy')
|
|
90
|
+
if m.get('order') is not None:
|
|
91
|
+
self.order = m.get('order')
|
|
92
|
+
if m.get('pageNo') is not None:
|
|
93
|
+
self.page_no = m.get('pageNo')
|
|
94
|
+
if m.get('pageSize') is not None:
|
|
95
|
+
self.page_size = m.get('pageSize')
|
|
96
|
+
return self
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for GetTheListOfClusterNodesV2Response information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.bce_response import BceResponse
|
|
6
|
+
from baiducloud_python_sdk_cce.models.instance_page import InstancePage
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class GetTheListOfClusterNodesV2Response(BceResponse):
|
|
10
|
+
"""
|
|
11
|
+
GetTheListOfClusterNodesV2Response
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
def __init__(self, instance_page=None, request_id=None):
|
|
15
|
+
"""
|
|
16
|
+
Initialize GetTheListOfClusterNodesV2Response response.
|
|
17
|
+
|
|
18
|
+
:param instance_page: instance_page field
|
|
19
|
+
:type instance_page: InstancePage (optional)
|
|
20
|
+
|
|
21
|
+
:param request_id: 响应的请求的ID
|
|
22
|
+
:type request_id: str (optional)
|
|
23
|
+
"""
|
|
24
|
+
super().__init__()
|
|
25
|
+
self.instance_page = instance_page
|
|
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.instance_page is not None:
|
|
45
|
+
result['instancePage'] = self.instance_page.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: GetTheListOfClusterNodesV2Response
|
|
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('instancePage') is not None:
|
|
67
|
+
self.instance_page = InstancePage().from_dict(m.get('instancePage'))
|
|
68
|
+
if m.get('requestID') is not None:
|
|
69
|
+
self.request_id = m.get('requestID')
|
|
70
|
+
return self
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Instance information
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class Instance(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Instance
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(self, spec=None, status=None, created_at=None, updated_at=None):
|
|
14
|
+
"""
|
|
15
|
+
Initialize Instance instance.
|
|
16
|
+
|
|
17
|
+
:param spec:
|
|
18
|
+
:type spec: object (optional)
|
|
19
|
+
|
|
20
|
+
:param status:
|
|
21
|
+
:type status: object (optional)
|
|
22
|
+
|
|
23
|
+
:param created_at:
|
|
24
|
+
:type created_at: str (optional)
|
|
25
|
+
|
|
26
|
+
:param updated_at:
|
|
27
|
+
:type updated_at: str (optional)
|
|
28
|
+
"""
|
|
29
|
+
super().__init__()
|
|
30
|
+
self.spec = spec
|
|
31
|
+
self.status = status
|
|
32
|
+
self.created_at = created_at
|
|
33
|
+
self.updated_at = updated_at
|
|
34
|
+
|
|
35
|
+
def to_dict(self):
|
|
36
|
+
"""
|
|
37
|
+
Convert the model instance to a dictionary representation.
|
|
38
|
+
|
|
39
|
+
Nested model objects are recursively converted to dictionaries.
|
|
40
|
+
|
|
41
|
+
:return: Dictionary representation of the model
|
|
42
|
+
:rtype: dict
|
|
43
|
+
"""
|
|
44
|
+
_map = super().to_dict()
|
|
45
|
+
if _map is not None:
|
|
46
|
+
return _map
|
|
47
|
+
result = dict()
|
|
48
|
+
if self.spec is not None:
|
|
49
|
+
result['spec'] = self.spec
|
|
50
|
+
if self.status is not None:
|
|
51
|
+
result['status'] = self.status
|
|
52
|
+
if self.created_at is not None:
|
|
53
|
+
result['createdAt'] = self.created_at
|
|
54
|
+
if self.updated_at is not None:
|
|
55
|
+
result['updatedAt'] = self.updated_at
|
|
56
|
+
return result
|
|
57
|
+
|
|
58
|
+
def from_dict(self, m):
|
|
59
|
+
"""
|
|
60
|
+
Populate the model instance from a dictionary.
|
|
61
|
+
|
|
62
|
+
Nested dictionaries are recursively converted to model objects.
|
|
63
|
+
|
|
64
|
+
:param m: Dictionary containing model data
|
|
65
|
+
:type m: dict
|
|
66
|
+
|
|
67
|
+
:return: Self reference for method chaining
|
|
68
|
+
:rtype: Instance
|
|
69
|
+
|
|
70
|
+
:raises TypeError: If input is not a dictionary type
|
|
71
|
+
:raises ValueError: If nested model conversion fails
|
|
72
|
+
"""
|
|
73
|
+
m = m or dict()
|
|
74
|
+
if m.get('spec') is not None:
|
|
75
|
+
self.spec = m.get('spec')
|
|
76
|
+
if m.get('status') is not None:
|
|
77
|
+
self.status = m.get('status')
|
|
78
|
+
if m.get('createdAt') is not None:
|
|
79
|
+
self.created_at = m.get('createdAt')
|
|
80
|
+
if m.get('updatedAt') is not None:
|
|
81
|
+
self.updated_at = m.get('updatedAt')
|
|
82
|
+
return self
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"""
|
|
2
|
+
InstanceGroup information
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class InstanceGroup(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
InstanceGroup
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(self, spec=None, status=None, created_at=None):
|
|
14
|
+
"""
|
|
15
|
+
Initialize InstanceGroup instance.
|
|
16
|
+
|
|
17
|
+
:param spec: 节点组配置
|
|
18
|
+
:type spec: object (optional)
|
|
19
|
+
|
|
20
|
+
:param status: 节点组状态
|
|
21
|
+
:type status: object (optional)
|
|
22
|
+
|
|
23
|
+
:param created_at: 创建时间
|
|
24
|
+
:type created_at: str (optional)
|
|
25
|
+
"""
|
|
26
|
+
super().__init__()
|
|
27
|
+
self.spec = spec
|
|
28
|
+
self.status = status
|
|
29
|
+
self.created_at = created_at
|
|
30
|
+
|
|
31
|
+
def to_dict(self):
|
|
32
|
+
"""
|
|
33
|
+
Convert the model instance to a dictionary representation.
|
|
34
|
+
|
|
35
|
+
Nested model objects are recursively converted to dictionaries.
|
|
36
|
+
|
|
37
|
+
:return: Dictionary representation of the model
|
|
38
|
+
:rtype: dict
|
|
39
|
+
"""
|
|
40
|
+
_map = super().to_dict()
|
|
41
|
+
if _map is not None:
|
|
42
|
+
return _map
|
|
43
|
+
result = dict()
|
|
44
|
+
if self.spec is not None:
|
|
45
|
+
result['spec'] = self.spec
|
|
46
|
+
if self.status is not None:
|
|
47
|
+
result['status'] = self.status
|
|
48
|
+
if self.created_at is not None:
|
|
49
|
+
result['createdAt'] = self.created_at
|
|
50
|
+
return result
|
|
51
|
+
|
|
52
|
+
def from_dict(self, m):
|
|
53
|
+
"""
|
|
54
|
+
Populate the model instance from a dictionary.
|
|
55
|
+
|
|
56
|
+
Nested dictionaries are recursively converted to model objects.
|
|
57
|
+
|
|
58
|
+
:param m: Dictionary containing model data
|
|
59
|
+
:type m: dict
|
|
60
|
+
|
|
61
|
+
:return: Self reference for method chaining
|
|
62
|
+
:rtype: InstanceGroup
|
|
63
|
+
|
|
64
|
+
:raises TypeError: If input is not a dictionary type
|
|
65
|
+
:raises ValueError: If nested model conversion fails
|
|
66
|
+
"""
|
|
67
|
+
m = m or dict()
|
|
68
|
+
if m.get('spec') is not None:
|
|
69
|
+
self.spec = m.get('spec')
|
|
70
|
+
if m.get('status') is not None:
|
|
71
|
+
self.status = m.get('status')
|
|
72
|
+
if m.get('createdAt') is not None:
|
|
73
|
+
self.created_at = m.get('createdAt')
|
|
74
|
+
return self
|