baiducloud-python-sdk-as 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_as/__init__.py +5 -0
- baiducloud_python_sdk_as/api/__init__.py +0 -0
- baiducloud_python_sdk_as/api/as_client.py +626 -0
- baiducloud_python_sdk_as/models/__init__.py +78 -0
- baiducloud_python_sdk_as/models/action_type.py +20 -0
- baiducloud_python_sdk_as/models/adjust_num_v2_request.py +72 -0
- baiducloud_python_sdk_as/models/adjust_num_v2_response.py +80 -0
- baiducloud_python_sdk_as/models/alarm_rule.py +135 -0
- baiducloud_python_sdk_as/models/as_alarm_rule.py +189 -0
- baiducloud_python_sdk_as/models/as_eip.py +90 -0
- baiducloud_python_sdk_as/models/as_group.py +186 -0
- baiducloud_python_sdk_as/models/as_record.py +202 -0
- baiducloud_python_sdk_as/models/assign_tag_info.py +76 -0
- baiducloud_python_sdk_as/models/attach_node_v2_request.py +72 -0
- baiducloud_python_sdk_as/models/attach_node_v2_response.py +78 -0
- baiducloud_python_sdk_as/models/bcc_name_config.py +82 -0
- baiducloud_python_sdk_as/models/billing_info.py +68 -0
- baiducloud_python_sdk_as/models/blb_info.py +82 -0
- baiducloud_python_sdk_as/models/cds_info.py +82 -0
- baiducloud_python_sdk_as/models/check_detail.py +74 -0
- baiducloud_python_sdk_as/models/check_entity.py +76 -0
- baiducloud_python_sdk_as/models/cmd_config.py +142 -0
- baiducloud_python_sdk_as/models/create_as_group_v2_request.py +245 -0
- baiducloud_python_sdk_as/models/create_as_group_v2_response.py +69 -0
- baiducloud_python_sdk_as/models/create_rule_v2_request.py +172 -0
- baiducloud_python_sdk_as/models/create_rule_v2_response.py +61 -0
- baiducloud_python_sdk_as/models/dag_model.py +58 -0
- baiducloud_python_sdk_as/models/delete_as_group_v2_request.py +60 -0
- baiducloud_python_sdk_as/models/delete_rule_v2_request.py +58 -0
- baiducloud_python_sdk_as/models/detach_node_v2_request.py +72 -0
- baiducloud_python_sdk_as/models/detach_node_v2_response.py +78 -0
- baiducloud_python_sdk_as/models/dimension.py +66 -0
- baiducloud_python_sdk_as/models/eip_config.py +112 -0
- baiducloud_python_sdk_as/models/eip_group_bandwidth.py +74 -0
- baiducloud_python_sdk_as/models/eip_group_decrease.py +58 -0
- baiducloud_python_sdk_as/models/eip_group_increase.py +66 -0
- baiducloud_python_sdk_as/models/eip_info.py +82 -0
- baiducloud_python_sdk_as/models/ephemeral_disk.py +66 -0
- baiducloud_python_sdk_as/models/exec_cmd_strategy_type.py +19 -0
- baiducloud_python_sdk_as/models/exec_rule_v2_request.py +72 -0
- baiducloud_python_sdk_as/models/exec_rule_v2_response.py +80 -0
- baiducloud_python_sdk_as/models/expect_action.py +74 -0
- baiducloud_python_sdk_as/models/get_as_group_v2_request.py +58 -0
- baiducloud_python_sdk_as/models/get_as_group_v2_response.py +279 -0
- baiducloud_python_sdk_as/models/get_rule_v2_request.py +58 -0
- baiducloud_python_sdk_as/models/get_rule_v2_response.py +218 -0
- baiducloud_python_sdk_as/models/group_config.py +90 -0
- baiducloud_python_sdk_as/models/health_check_config.py +66 -0
- baiducloud_python_sdk_as/models/health_check_state.py +102 -0
- baiducloud_python_sdk_as/models/list_as_group_v2_request.py +96 -0
- baiducloud_python_sdk_as/models/list_as_group_v2_response.py +102 -0
- baiducloud_python_sdk_as/models/list_as_node_v2_request.py +94 -0
- baiducloud_python_sdk_as/models/list_as_node_v2_response.py +102 -0
- baiducloud_python_sdk_as/models/list_rule_v2_request.py +94 -0
- baiducloud_python_sdk_as/models/list_rule_v2_response.py +102 -0
- baiducloud_python_sdk_as/models/list_task_v2_request.py +94 -0
- baiducloud_python_sdk_as/models/list_task_v2_response.py +102 -0
- baiducloud_python_sdk_as/models/monitor_object.py +84 -0
- baiducloud_python_sdk_as/models/node.py +245 -0
- baiducloud_python_sdk_as/models/node_info.py +373 -0
- baiducloud_python_sdk_as/models/period_type.py +21 -0
- baiducloud_python_sdk_as/models/policy_resource.py +70 -0
- baiducloud_python_sdk_as/models/reservation.py +58 -0
- baiducloud_python_sdk_as/models/resource.py +66 -0
- baiducloud_python_sdk_as/models/rule.py +216 -0
- baiducloud_python_sdk_as/models/scale_condition.py +160 -0
- baiducloud_python_sdk_as/models/scaling_down_v2_request.py +72 -0
- baiducloud_python_sdk_as/models/scaling_down_v2_response.py +78 -0
- baiducloud_python_sdk_as/models/scaling_up_v2_request.py +88 -0
- baiducloud_python_sdk_as/models/scaling_up_v2_response.py +80 -0
- baiducloud_python_sdk_as/models/state.py +19 -0
- baiducloud_python_sdk_as/models/status.py +41 -0
- baiducloud_python_sdk_as/models/tag_info.py +66 -0
- baiducloud_python_sdk_as/models/type.py +20 -0
- baiducloud_python_sdk_as/models/update_is_managed_v2_request.py +80 -0
- baiducloud_python_sdk_as/models/update_protect_v2_request.py +80 -0
- baiducloud_python_sdk_as/models/vpc_info.py +74 -0
- baiducloud_python_sdk_as/models/zone_info.py +100 -0
- baiducloud_python_sdk_as-0.0.1.dist-info/LICENSE +177 -0
- baiducloud_python_sdk_as-0.0.1.dist-info/METADATA +76 -0
- baiducloud_python_sdk_as-0.0.1.dist-info/RECORD +83 -0
- baiducloud_python_sdk_as-0.0.1.dist-info/WHEEL +5 -0
- baiducloud_python_sdk_as-0.0.1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for DeleteRuleV2Request information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DeleteRuleV2Request(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for DeleteRuleV2Request operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, rule_id):
|
|
16
|
+
"""
|
|
17
|
+
Initialize DeleteRuleV2Request request entity.
|
|
18
|
+
|
|
19
|
+
:param rule_id: rule_id parameter
|
|
20
|
+
:type rule_id: str (required)
|
|
21
|
+
"""
|
|
22
|
+
super().__init__()
|
|
23
|
+
self.rule_id = rule_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: DeleteRuleV2Request
|
|
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('ruleId') is not None:
|
|
57
|
+
self.rule_id = m.get('ruleId')
|
|
58
|
+
return self
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for DetachNodeV2Request information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DetachNodeV2Request(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for DetachNodeV2Request operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, group_id, detach_node, nodes):
|
|
16
|
+
"""
|
|
17
|
+
Initialize DetachNodeV2Request request entity.
|
|
18
|
+
|
|
19
|
+
:param group_id: group_id parameter
|
|
20
|
+
:type group_id: str (required)
|
|
21
|
+
|
|
22
|
+
:param detach_node: detach_node parameter
|
|
23
|
+
:type detach_node: str (required)
|
|
24
|
+
|
|
25
|
+
:param nodes: 待移出实例短id列表
|
|
26
|
+
:type nodes: List[str] (required)
|
|
27
|
+
"""
|
|
28
|
+
super().__init__()
|
|
29
|
+
self.group_id = group_id
|
|
30
|
+
self.detach_node = detach_node
|
|
31
|
+
self.nodes = nodes
|
|
32
|
+
|
|
33
|
+
def to_dict(self):
|
|
34
|
+
"""
|
|
35
|
+
Convert the request entity to a dictionary representation.
|
|
36
|
+
|
|
37
|
+
Nested model objects are recursively converted to dictionaries.
|
|
38
|
+
|
|
39
|
+
:return: Dictionary representation of the request
|
|
40
|
+
:rtype: dict
|
|
41
|
+
"""
|
|
42
|
+
_map = super().to_dict()
|
|
43
|
+
if _map is not None:
|
|
44
|
+
return _map
|
|
45
|
+
result = dict()
|
|
46
|
+
if self.nodes is not None:
|
|
47
|
+
result['nodes'] = self.nodes
|
|
48
|
+
return result
|
|
49
|
+
|
|
50
|
+
def from_dict(self, m):
|
|
51
|
+
"""
|
|
52
|
+
Populate the request entity from a dictionary.
|
|
53
|
+
|
|
54
|
+
Nested dictionaries are recursively converted to model objects.
|
|
55
|
+
|
|
56
|
+
:param m: Dictionary containing request data
|
|
57
|
+
:type m: dict
|
|
58
|
+
|
|
59
|
+
:return: Self reference for method chaining
|
|
60
|
+
:rtype: DetachNodeV2Request
|
|
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('groupId') is not None:
|
|
67
|
+
self.group_id = m.get('groupId')
|
|
68
|
+
if m.get('detachNode') is not None:
|
|
69
|
+
self.detach_node = m.get('detachNode')
|
|
70
|
+
if m.get('nodes') is not None:
|
|
71
|
+
self.nodes = m.get('nodes')
|
|
72
|
+
return self
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for DetachNodeV2Response information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.bce_response import BceResponse
|
|
6
|
+
from baiducloud_python_sdk_as.models.dag_model import DagModel
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class DetachNodeV2Response(BceResponse):
|
|
10
|
+
"""
|
|
11
|
+
DetachNodeV2Response
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
def __init__(self, success=None, msg=None, result=None):
|
|
15
|
+
"""
|
|
16
|
+
Initialize DetachNodeV2Response response.
|
|
17
|
+
|
|
18
|
+
:param success: 请求是否成功
|
|
19
|
+
:type success: bool (optional)
|
|
20
|
+
|
|
21
|
+
:param msg: 响应消息
|
|
22
|
+
:type msg: str (optional)
|
|
23
|
+
|
|
24
|
+
:param result: result field
|
|
25
|
+
:type result: DagModel (optional)
|
|
26
|
+
"""
|
|
27
|
+
super().__init__()
|
|
28
|
+
self.success = success
|
|
29
|
+
self.msg = msg
|
|
30
|
+
self.result = result
|
|
31
|
+
|
|
32
|
+
def to_dict(self):
|
|
33
|
+
"""
|
|
34
|
+
Convert the response instance to a dictionary representation.
|
|
35
|
+
|
|
36
|
+
Includes metadata from the parent BceResponse class.
|
|
37
|
+
Nested model objects are recursively converted to dictionaries.
|
|
38
|
+
|
|
39
|
+
:return: Dictionary representation of the response
|
|
40
|
+
:rtype: dict
|
|
41
|
+
"""
|
|
42
|
+
_map = super().to_dict()
|
|
43
|
+
if _map is not None:
|
|
44
|
+
return _map
|
|
45
|
+
result = dict()
|
|
46
|
+
if self.metadata is not None:
|
|
47
|
+
result['metadata'] = dict(self.metadata)
|
|
48
|
+
if self.success is not None:
|
|
49
|
+
result['success'] = self.success
|
|
50
|
+
if self.msg is not None:
|
|
51
|
+
result['msg'] = self.msg
|
|
52
|
+
if self.result is not None:
|
|
53
|
+
result['result'] = self.result.to_dict()
|
|
54
|
+
return result
|
|
55
|
+
|
|
56
|
+
def from_dict(self, m):
|
|
57
|
+
"""
|
|
58
|
+
Populate the response instance from a dictionary.
|
|
59
|
+
|
|
60
|
+
Nested dictionaries are recursively converted to model objects.
|
|
61
|
+
|
|
62
|
+
:param m: Dictionary containing response data
|
|
63
|
+
:type m: dict
|
|
64
|
+
|
|
65
|
+
:return: Self reference for method chaining
|
|
66
|
+
:rtype: DetachNodeV2Response
|
|
67
|
+
|
|
68
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
69
|
+
:raises ValueError: If nested model conversion fails
|
|
70
|
+
"""
|
|
71
|
+
m = m or dict()
|
|
72
|
+
if m.get('success') is not None:
|
|
73
|
+
self.success = m.get('success')
|
|
74
|
+
if m.get('msg') is not None:
|
|
75
|
+
self.msg = m.get('msg')
|
|
76
|
+
if m.get('result') is not None:
|
|
77
|
+
self.result = DagModel().from_dict(m.get('result'))
|
|
78
|
+
return self
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Dimension information
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class Dimension(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Dimension
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(self, name=None, value=None):
|
|
14
|
+
"""
|
|
15
|
+
Initialize Dimension instance.
|
|
16
|
+
|
|
17
|
+
:param name: 名称
|
|
18
|
+
:type name: str (optional)
|
|
19
|
+
|
|
20
|
+
:param value: 值
|
|
21
|
+
:type value: str (optional)
|
|
22
|
+
"""
|
|
23
|
+
super().__init__()
|
|
24
|
+
self.name = name
|
|
25
|
+
self.value = value
|
|
26
|
+
|
|
27
|
+
def to_dict(self):
|
|
28
|
+
"""
|
|
29
|
+
Convert the model instance to a dictionary representation.
|
|
30
|
+
|
|
31
|
+
Nested model objects are recursively converted to dictionaries.
|
|
32
|
+
|
|
33
|
+
:return: Dictionary representation of the model
|
|
34
|
+
:rtype: dict
|
|
35
|
+
"""
|
|
36
|
+
_map = super().to_dict()
|
|
37
|
+
if _map is not None:
|
|
38
|
+
return _map
|
|
39
|
+
result = dict()
|
|
40
|
+
if self.name is not None:
|
|
41
|
+
result['name'] = self.name
|
|
42
|
+
if self.value is not None:
|
|
43
|
+
result['value'] = self.value
|
|
44
|
+
return result
|
|
45
|
+
|
|
46
|
+
def from_dict(self, m):
|
|
47
|
+
"""
|
|
48
|
+
Populate the model instance from a dictionary.
|
|
49
|
+
|
|
50
|
+
Nested dictionaries are recursively converted to model objects.
|
|
51
|
+
|
|
52
|
+
:param m: Dictionary containing model data
|
|
53
|
+
:type m: dict
|
|
54
|
+
|
|
55
|
+
:return: Self reference for method chaining
|
|
56
|
+
:rtype: Dimension
|
|
57
|
+
|
|
58
|
+
:raises TypeError: If input is not a dictionary type
|
|
59
|
+
:raises ValueError: If nested model conversion fails
|
|
60
|
+
"""
|
|
61
|
+
m = m or dict()
|
|
62
|
+
if m.get('name') is not None:
|
|
63
|
+
self.name = m.get('name')
|
|
64
|
+
if m.get('value') is not None:
|
|
65
|
+
self.value = m.get('value')
|
|
66
|
+
return self
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"""
|
|
2
|
+
EipConfig information
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
from baiducloud_python_sdk_as.models.eip_group_increase import EipGroupIncrease
|
|
8
|
+
|
|
9
|
+
from baiducloud_python_sdk_as.models.eip_group_decrease import EipGroupDecrease
|
|
10
|
+
|
|
11
|
+
from baiducloud_python_sdk_as.models.eip_group_bandwidth import EipGroupBandwidth
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class EipConfig(AbstractModel):
|
|
15
|
+
"""
|
|
16
|
+
EipConfig
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
def __init__(
|
|
20
|
+
self,
|
|
21
|
+
eip_group_bind_strategy=None,
|
|
22
|
+
eip_group_unbind_strategy=None,
|
|
23
|
+
eip_group_id_list=None,
|
|
24
|
+
increase=None,
|
|
25
|
+
decrease=None,
|
|
26
|
+
bandwidth=None,
|
|
27
|
+
):
|
|
28
|
+
"""
|
|
29
|
+
Initialize EipConfig instance.
|
|
30
|
+
|
|
31
|
+
:param eip_group_bind_strategy: 共享带宽扩容时与BCC绑定策略
|
|
32
|
+
:type eip_group_bind_strategy: str (optional)
|
|
33
|
+
|
|
34
|
+
:param eip_group_unbind_strategy: 共享带宽缩容时策略
|
|
35
|
+
:type eip_group_unbind_strategy: str (optional)
|
|
36
|
+
|
|
37
|
+
:param eip_group_id_list: 共享带宽组id列表
|
|
38
|
+
:type eip_group_id_list: List[str] (optional)
|
|
39
|
+
|
|
40
|
+
:param increase: increase attribute
|
|
41
|
+
:type increase: EipGroupIncrease (optional)
|
|
42
|
+
|
|
43
|
+
:param decrease: decrease attribute
|
|
44
|
+
:type decrease: EipGroupDecrease (optional)
|
|
45
|
+
|
|
46
|
+
:param bandwidth: bandwidth attribute
|
|
47
|
+
:type bandwidth: EipGroupBandwidth (optional)
|
|
48
|
+
"""
|
|
49
|
+
super().__init__()
|
|
50
|
+
self.eip_group_bind_strategy = eip_group_bind_strategy
|
|
51
|
+
self.eip_group_unbind_strategy = eip_group_unbind_strategy
|
|
52
|
+
self.eip_group_id_list = eip_group_id_list
|
|
53
|
+
self.increase = increase
|
|
54
|
+
self.decrease = decrease
|
|
55
|
+
self.bandwidth = bandwidth
|
|
56
|
+
|
|
57
|
+
def to_dict(self):
|
|
58
|
+
"""
|
|
59
|
+
Convert the model instance to a dictionary representation.
|
|
60
|
+
|
|
61
|
+
Nested model objects are recursively converted to dictionaries.
|
|
62
|
+
|
|
63
|
+
:return: Dictionary representation of the model
|
|
64
|
+
:rtype: dict
|
|
65
|
+
"""
|
|
66
|
+
_map = super().to_dict()
|
|
67
|
+
if _map is not None:
|
|
68
|
+
return _map
|
|
69
|
+
result = dict()
|
|
70
|
+
if self.eip_group_bind_strategy is not None:
|
|
71
|
+
result['eipGroupBindStrategy'] = self.eip_group_bind_strategy
|
|
72
|
+
if self.eip_group_unbind_strategy is not None:
|
|
73
|
+
result['eipGroupUnbindStrategy'] = self.eip_group_unbind_strategy
|
|
74
|
+
if self.eip_group_id_list is not None:
|
|
75
|
+
result['eipGroupIdList'] = self.eip_group_id_list
|
|
76
|
+
if self.increase is not None:
|
|
77
|
+
result['increase'] = self.increase.to_dict()
|
|
78
|
+
if self.decrease is not None:
|
|
79
|
+
result['decrease'] = self.decrease.to_dict()
|
|
80
|
+
if self.bandwidth is not None:
|
|
81
|
+
result['bandwidth'] = self.bandwidth.to_dict()
|
|
82
|
+
return result
|
|
83
|
+
|
|
84
|
+
def from_dict(self, m):
|
|
85
|
+
"""
|
|
86
|
+
Populate the model instance from a dictionary.
|
|
87
|
+
|
|
88
|
+
Nested dictionaries are recursively converted to model objects.
|
|
89
|
+
|
|
90
|
+
:param m: Dictionary containing model data
|
|
91
|
+
:type m: dict
|
|
92
|
+
|
|
93
|
+
:return: Self reference for method chaining
|
|
94
|
+
:rtype: EipConfig
|
|
95
|
+
|
|
96
|
+
:raises TypeError: If input is not a dictionary type
|
|
97
|
+
:raises ValueError: If nested model conversion fails
|
|
98
|
+
"""
|
|
99
|
+
m = m or dict()
|
|
100
|
+
if m.get('eipGroupBindStrategy') is not None:
|
|
101
|
+
self.eip_group_bind_strategy = m.get('eipGroupBindStrategy')
|
|
102
|
+
if m.get('eipGroupUnbindStrategy') is not None:
|
|
103
|
+
self.eip_group_unbind_strategy = m.get('eipGroupUnbindStrategy')
|
|
104
|
+
if m.get('eipGroupIdList') is not None:
|
|
105
|
+
self.eip_group_id_list = m.get('eipGroupIdList')
|
|
106
|
+
if m.get('increase') is not None:
|
|
107
|
+
self.increase = EipGroupIncrease().from_dict(m.get('increase'))
|
|
108
|
+
if m.get('decrease') is not None:
|
|
109
|
+
self.decrease = EipGroupDecrease().from_dict(m.get('decrease'))
|
|
110
|
+
if m.get('bandwidth') is not None:
|
|
111
|
+
self.bandwidth = EipGroupBandwidth().from_dict(m.get('bandwidth'))
|
|
112
|
+
return self
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"""
|
|
2
|
+
EipGroupBandwidth information
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class EipGroupBandwidth(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
EipGroupBandwidth
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(self, max=None, min=None, standard=None):
|
|
14
|
+
"""
|
|
15
|
+
Initialize EipGroupBandwidth instance.
|
|
16
|
+
|
|
17
|
+
:param max: 最大限制
|
|
18
|
+
:type max: int (optional)
|
|
19
|
+
|
|
20
|
+
:param min: 最小限制
|
|
21
|
+
:type min: int (optional)
|
|
22
|
+
|
|
23
|
+
:param standard: 标准值
|
|
24
|
+
:type standard: int (optional)
|
|
25
|
+
"""
|
|
26
|
+
super().__init__()
|
|
27
|
+
self.max = max
|
|
28
|
+
self.min = min
|
|
29
|
+
self.standard = standard
|
|
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.max is not None:
|
|
45
|
+
result['max'] = self.max
|
|
46
|
+
if self.min is not None:
|
|
47
|
+
result['min'] = self.min
|
|
48
|
+
if self.standard is not None:
|
|
49
|
+
result['standard'] = self.standard
|
|
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: EipGroupBandwidth
|
|
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('max') is not None:
|
|
69
|
+
self.max = m.get('max')
|
|
70
|
+
if m.get('min') is not None:
|
|
71
|
+
self.min = m.get('min')
|
|
72
|
+
if m.get('standard') is not None:
|
|
73
|
+
self.standard = m.get('standard')
|
|
74
|
+
return self
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"""
|
|
2
|
+
EipGroupDecrease information
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class EipGroupDecrease(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
EipGroupDecrease
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(self, enabled=None):
|
|
14
|
+
"""
|
|
15
|
+
Initialize EipGroupDecrease instance.
|
|
16
|
+
|
|
17
|
+
:param enabled: 是否开启
|
|
18
|
+
:type enabled: bool (optional)
|
|
19
|
+
"""
|
|
20
|
+
super().__init__()
|
|
21
|
+
self.enabled = enabled
|
|
22
|
+
|
|
23
|
+
def to_dict(self):
|
|
24
|
+
"""
|
|
25
|
+
Convert the model instance to a dictionary representation.
|
|
26
|
+
|
|
27
|
+
Nested model objects are recursively converted to dictionaries.
|
|
28
|
+
|
|
29
|
+
:return: Dictionary representation of the model
|
|
30
|
+
:rtype: dict
|
|
31
|
+
"""
|
|
32
|
+
_map = super().to_dict()
|
|
33
|
+
if _map is not None:
|
|
34
|
+
return _map
|
|
35
|
+
result = dict()
|
|
36
|
+
if self.enabled is not None:
|
|
37
|
+
result['enabled'] = self.enabled
|
|
38
|
+
return result
|
|
39
|
+
|
|
40
|
+
def from_dict(self, m):
|
|
41
|
+
"""
|
|
42
|
+
Populate the model instance from a dictionary.
|
|
43
|
+
|
|
44
|
+
Nested dictionaries are recursively converted to model objects.
|
|
45
|
+
|
|
46
|
+
:param m: Dictionary containing model data
|
|
47
|
+
:type m: dict
|
|
48
|
+
|
|
49
|
+
:return: Self reference for method chaining
|
|
50
|
+
:rtype: EipGroupDecrease
|
|
51
|
+
|
|
52
|
+
:raises TypeError: If input is not a dictionary type
|
|
53
|
+
:raises ValueError: If nested model conversion fails
|
|
54
|
+
"""
|
|
55
|
+
m = m or dict()
|
|
56
|
+
if m.get('enabled') is not None:
|
|
57
|
+
self.enabled = m.get('enabled')
|
|
58
|
+
return self
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"""
|
|
2
|
+
EipGroupIncrease information
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class EipGroupIncrease(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
EipGroupIncrease
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(self, enabled=None, strategy=None):
|
|
14
|
+
"""
|
|
15
|
+
Initialize EipGroupIncrease instance.
|
|
16
|
+
|
|
17
|
+
:param enabled: 是否开启
|
|
18
|
+
:type enabled: bool (optional)
|
|
19
|
+
|
|
20
|
+
:param strategy: 扩容策略
|
|
21
|
+
:type strategy: str (optional)
|
|
22
|
+
"""
|
|
23
|
+
super().__init__()
|
|
24
|
+
self.enabled = enabled
|
|
25
|
+
self.strategy = strategy
|
|
26
|
+
|
|
27
|
+
def to_dict(self):
|
|
28
|
+
"""
|
|
29
|
+
Convert the model instance to a dictionary representation.
|
|
30
|
+
|
|
31
|
+
Nested model objects are recursively converted to dictionaries.
|
|
32
|
+
|
|
33
|
+
:return: Dictionary representation of the model
|
|
34
|
+
:rtype: dict
|
|
35
|
+
"""
|
|
36
|
+
_map = super().to_dict()
|
|
37
|
+
if _map is not None:
|
|
38
|
+
return _map
|
|
39
|
+
result = dict()
|
|
40
|
+
if self.enabled is not None:
|
|
41
|
+
result['enabled'] = self.enabled
|
|
42
|
+
if self.strategy is not None:
|
|
43
|
+
result['strategy'] = self.strategy
|
|
44
|
+
return result
|
|
45
|
+
|
|
46
|
+
def from_dict(self, m):
|
|
47
|
+
"""
|
|
48
|
+
Populate the model instance from a dictionary.
|
|
49
|
+
|
|
50
|
+
Nested dictionaries are recursively converted to model objects.
|
|
51
|
+
|
|
52
|
+
:param m: Dictionary containing model data
|
|
53
|
+
:type m: dict
|
|
54
|
+
|
|
55
|
+
:return: Self reference for method chaining
|
|
56
|
+
:rtype: EipGroupIncrease
|
|
57
|
+
|
|
58
|
+
:raises TypeError: If input is not a dictionary type
|
|
59
|
+
:raises ValueError: If nested model conversion fails
|
|
60
|
+
"""
|
|
61
|
+
m = m or dict()
|
|
62
|
+
if m.get('enabled') is not None:
|
|
63
|
+
self.enabled = m.get('enabled')
|
|
64
|
+
if m.get('strategy') is not None:
|
|
65
|
+
self.strategy = m.get('strategy')
|
|
66
|
+
return self
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"""
|
|
2
|
+
EipInfo information
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class EipInfo(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
EipInfo
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(self, if_bind_eip=None, bandwidth_in_mbps=None, eip_product_type=None, purchase_type=None):
|
|
14
|
+
"""
|
|
15
|
+
Initialize EipInfo instance.
|
|
16
|
+
|
|
17
|
+
:param if_bind_eip: 是否绑定EIP
|
|
18
|
+
:type if_bind_eip: bool (optional)
|
|
19
|
+
|
|
20
|
+
:param bandwidth_in_mbps: EIP带宽
|
|
21
|
+
:type bandwidth_in_mbps: int (optional)
|
|
22
|
+
|
|
23
|
+
:param eip_product_type: EIP公网带宽计费类型,按带宽计费:bandwidth,按流量计费:netraffic
|
|
24
|
+
:type eip_product_type: str (optional)
|
|
25
|
+
|
|
26
|
+
:param purchase_type: 购买线路类型,标准型:BGP,增强型:BGP_S
|
|
27
|
+
:type purchase_type: str (optional)
|
|
28
|
+
"""
|
|
29
|
+
super().__init__()
|
|
30
|
+
self.if_bind_eip = if_bind_eip
|
|
31
|
+
self.bandwidth_in_mbps = bandwidth_in_mbps
|
|
32
|
+
self.eip_product_type = eip_product_type
|
|
33
|
+
self.purchase_type = purchase_type
|
|
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.if_bind_eip is not None:
|
|
49
|
+
result['ifBindEip'] = self.if_bind_eip
|
|
50
|
+
if self.bandwidth_in_mbps is not None:
|
|
51
|
+
result['bandwidthInMbps'] = self.bandwidth_in_mbps
|
|
52
|
+
if self.eip_product_type is not None:
|
|
53
|
+
result['eipProductType'] = self.eip_product_type
|
|
54
|
+
if self.purchase_type is not None:
|
|
55
|
+
result['purchaseType'] = self.purchase_type
|
|
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: EipInfo
|
|
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('ifBindEip') is not None:
|
|
75
|
+
self.if_bind_eip = m.get('ifBindEip')
|
|
76
|
+
if m.get('bandwidthInMbps') is not None:
|
|
77
|
+
self.bandwidth_in_mbps = m.get('bandwidthInMbps')
|
|
78
|
+
if m.get('eipProductType') is not None:
|
|
79
|
+
self.eip_product_type = m.get('eipProductType')
|
|
80
|
+
if m.get('purchaseType') is not None:
|
|
81
|
+
self.purchase_type = m.get('purchaseType')
|
|
82
|
+
return self
|