huaweicloudsdkelb 3.1.104__py2.py3-none-any.whl → 3.1.106__py2.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.
- huaweicloudsdkelb/v3/__init__.py +29 -0
- huaweicloudsdkelb/v3/elb_async_client.py +171 -34
- huaweicloudsdkelb/v3/elb_client.py +171 -34
- huaweicloudsdkelb/v3/model/__init__.py +29 -0
- huaweicloudsdkelb/v3/model/availability_zone.py +3 -3
- huaweicloudsdkelb/v3/model/batch_add_available_zones_response.py +6 -6
- huaweicloudsdkelb/v3/model/batch_create_members_option.py +3 -3
- huaweicloudsdkelb/v3/model/batch_delete_ip_list_option.py +3 -3
- huaweicloudsdkelb/v3/model/batch_delete_ip_list_request.py +3 -3
- huaweicloudsdkelb/v3/model/batch_delete_ip_list_response.py +3 -3
- huaweicloudsdkelb/v3/model/batch_member.py +67 -9
- huaweicloudsdkelb/v3/model/batch_update_member.py +67 -9
- huaweicloudsdkelb/v3/model/batch_update_priority_request_body.py +3 -3
- huaweicloudsdkelb/v3/model/certificate_info.py +93 -6
- huaweicloudsdkelb/v3/model/change_loadbalancer_charge_mode_request_body.py +3 -3
- huaweicloudsdkelb/v3/model/connection_drain.py +3 -3
- huaweicloudsdkelb/v3/model/count_preoccupy_ip_num_request.py +6 -6
- huaweicloudsdkelb/v3/model/create_certificate_option.py +5 -4
- huaweicloudsdkelb/v3/model/create_certificate_private_key_echo_request.py +111 -0
- huaweicloudsdkelb/v3/model/create_certificate_private_key_echo_request_body.py +114 -0
- huaweicloudsdkelb/v3/model/create_certificate_private_key_echo_response.py +145 -0
- huaweicloudsdkelb/v3/model/create_fixted_response_config.py +78 -3
- huaweicloudsdkelb/v3/model/create_health_monitor_option.py +9 -9
- huaweicloudsdkelb/v3/model/create_insert_header_config.py +170 -0
- huaweicloudsdkelb/v3/model/create_insert_headers_config.py +114 -0
- huaweicloudsdkelb/v3/model/create_ip_group_ip_option.py +6 -6
- huaweicloudsdkelb/v3/model/create_ip_group_option.py +15 -15
- huaweicloudsdkelb/v3/model/create_ip_group_response.py +3 -3
- huaweicloudsdkelb/v3/model/create_l7_policy_option.py +61 -7
- huaweicloudsdkelb/v3/model/create_l7_policy_rule_option.py +6 -6
- huaweicloudsdkelb/v3/model/create_listener_ip_group_option.py +3 -3
- huaweicloudsdkelb/v3/model/create_listener_option.py +33 -33
- huaweicloudsdkelb/v3/model/create_load_balancer_bandwidth_option.py +18 -18
- huaweicloudsdkelb/v3/model/create_load_balancer_option.py +76 -105
- huaweicloudsdkelb/v3/model/create_load_balancer_public_ip_option.py +12 -12
- huaweicloudsdkelb/v3/model/create_load_balancer_response.py +6 -6
- huaweicloudsdkelb/v3/model/create_loadbalancer_autoscaling_option.py +6 -6
- huaweicloudsdkelb/v3/model/create_master_slave_health_monitor_option.py +6 -6
- huaweicloudsdkelb/v3/model/create_master_slave_member_option.py +3 -3
- huaweicloudsdkelb/v3/model/create_master_slave_pool_option.py +6 -6
- huaweicloudsdkelb/v3/model/create_member_option.py +6 -6
- huaweicloudsdkelb/v3/model/create_pool_option.py +84 -30
- huaweicloudsdkelb/v3/model/create_redirect_pools_config.py +143 -0
- huaweicloudsdkelb/v3/model/create_redirect_pools_extend_config.py +81 -6
- huaweicloudsdkelb/v3/model/create_redirect_pools_sticky_session_config.py +144 -0
- huaweicloudsdkelb/v3/model/create_redirect_url_config.py +53 -3
- huaweicloudsdkelb/v3/model/create_remove_header_config.py +114 -0
- huaweicloudsdkelb/v3/model/create_remove_headers_config.py +114 -0
- huaweicloudsdkelb/v3/model/create_rewrite_url_config.py +9 -9
- huaweicloudsdkelb/v3/model/create_rule_option.py +6 -6
- huaweicloudsdkelb/v3/model/create_traffic_limit_config.py +173 -0
- huaweicloudsdkelb/v3/model/delete_ip_group_request.py +3 -3
- huaweicloudsdkelb/v3/model/fixted_response_config.py +78 -3
- huaweicloudsdkelb/v3/model/flavor.py +79 -21
- huaweicloudsdkelb/v3/model/health_monitor.py +9 -9
- huaweicloudsdkelb/v3/model/insert_header_config.py +170 -0
- huaweicloudsdkelb/v3/model/insert_headers_config.py +114 -0
- huaweicloudsdkelb/v3/model/ip_group.py +119 -90
- huaweicloudsdkelb/v3/model/ip_group_ip.py +3 -3
- huaweicloudsdkelb/v3/model/ip_info.py +6 -6
- huaweicloudsdkelb/v3/model/l7_policy.py +67 -13
- huaweicloudsdkelb/v3/model/l7_rule.py +15 -15
- huaweicloudsdkelb/v3/model/list_all_members_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_all_members_response.py +4 -4
- huaweicloudsdkelb/v3/model/list_certificates_request.py +64 -6
- huaweicloudsdkelb/v3/model/list_flavors_request.py +21 -21
- huaweicloudsdkelb/v3/model/list_flavors_response.py +6 -6
- huaweicloudsdkelb/v3/model/list_health_monitors_request.py +12 -12
- huaweicloudsdkelb/v3/model/list_ip_groups_request.py +53 -24
- huaweicloudsdkelb/v3/model/list_ip_groups_response.py +6 -6
- huaweicloudsdkelb/v3/model/list_l7_policies_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_l7_rules_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_listeners_request.py +24 -24
- huaweicloudsdkelb/v3/model/list_load_balancers_request.py +30 -30
- huaweicloudsdkelb/v3/model/list_logtanks_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_master_slave_pools_request.py +6 -6
- huaweicloudsdkelb/v3/model/list_members_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_pools_request.py +105 -18
- huaweicloudsdkelb/v3/model/list_security_policies_request.py +3 -3
- huaweicloudsdkelb/v3/model/listener.py +27 -27
- huaweicloudsdkelb/v3/model/listener_ref.py +3 -3
- huaweicloudsdkelb/v3/model/load_balancer.py +27 -27
- huaweicloudsdkelb/v3/model/load_balancer_status_policy.py +3 -3
- huaweicloudsdkelb/v3/model/master_slave_health_monitor.py +6 -6
- huaweicloudsdkelb/v3/model/master_slave_member.py +3 -3
- huaweicloudsdkelb/v3/model/master_slave_pool.py +15 -15
- huaweicloudsdkelb/v3/model/member.py +13 -158
- huaweicloudsdkelb/v3/model/member_info.py +656 -0
- huaweicloudsdkelb/v3/model/page_info.py +9 -9
- huaweicloudsdkelb/v3/model/pool.py +110 -27
- huaweicloudsdkelb/v3/model/pool_health.py +115 -0
- huaweicloudsdkelb/v3/model/prepaid_create_option.py +12 -12
- huaweicloudsdkelb/v3/model/quota.py +12 -12
- huaweicloudsdkelb/v3/model/quota_info.py +3 -3
- huaweicloudsdkelb/v3/model/redirect_pools_config.py +144 -0
- huaweicloudsdkelb/v3/model/redirect_pools_extend_config.py +81 -6
- huaweicloudsdkelb/v3/model/redirect_pools_sticky_session_config.py +144 -0
- huaweicloudsdkelb/v3/model/redirect_url_config.py +65 -9
- huaweicloudsdkelb/v3/model/remove_header_config.py +114 -0
- huaweicloudsdkelb/v3/model/remove_headers_config.py +114 -0
- huaweicloudsdkelb/v3/model/rewrite_url_config.py +9 -9
- huaweicloudsdkelb/v3/model/session_persistence.py +6 -6
- huaweicloudsdkelb/v3/model/show_certificate_private_key_echo_request.py +84 -0
- huaweicloudsdkelb/v3/model/show_certificate_private_key_echo_response.py +145 -0
- huaweicloudsdkelb/v3/model/show_flavor_request.py +3 -3
- huaweicloudsdkelb/v3/model/show_flavor_response.py +3 -3
- huaweicloudsdkelb/v3/model/show_ip_group_request.py +3 -3
- huaweicloudsdkelb/v3/model/show_ip_group_response.py +3 -3
- huaweicloudsdkelb/v3/model/traffic_limit_config.py +173 -0
- huaweicloudsdkelb/v3/model/upadate_ip_group_ip_option.py +6 -6
- huaweicloudsdkelb/v3/model/update_certificate_option.py +3 -3
- huaweicloudsdkelb/v3/model/update_fixted_response_config.py +78 -3
- huaweicloudsdkelb/v3/model/update_health_monitor_option.py +9 -9
- huaweicloudsdkelb/v3/model/update_insert_header_config.py +170 -0
- huaweicloudsdkelb/v3/model/update_insert_headers_config.py +114 -0
- huaweicloudsdkelb/v3/model/update_ip_group_option.py +9 -9
- huaweicloudsdkelb/v3/model/update_ip_group_request.py +3 -3
- huaweicloudsdkelb/v3/model/update_ip_group_response.py +3 -3
- huaweicloudsdkelb/v3/model/update_ip_list_option.py +9 -9
- huaweicloudsdkelb/v3/model/update_ip_list_request.py +3 -3
- huaweicloudsdkelb/v3/model/update_ip_list_response.py +3 -3
- huaweicloudsdkelb/v3/model/update_l7_policy_option.py +58 -4
- huaweicloudsdkelb/v3/model/update_l7_rule_option.py +3 -3
- huaweicloudsdkelb/v3/model/update_listener_ip_group_option.py +6 -6
- huaweicloudsdkelb/v3/model/update_listener_option.py +24 -24
- huaweicloudsdkelb/v3/model/update_load_balancer_option.py +24 -24
- huaweicloudsdkelb/v3/model/update_load_balancer_response.py +6 -6
- huaweicloudsdkelb/v3/model/update_pool_option.py +37 -12
- huaweicloudsdkelb/v3/model/update_pool_session_persistence_option.py +6 -6
- huaweicloudsdkelb/v3/model/update_redirect_pools_config.py +143 -0
- huaweicloudsdkelb/v3/model/update_redirect_pools_extend_config.py +81 -6
- huaweicloudsdkelb/v3/model/update_redirect_pools_sticky_session_config.py +144 -0
- huaweicloudsdkelb/v3/model/update_redirect_url_config.py +53 -3
- huaweicloudsdkelb/v3/model/update_remove_header_config.py +114 -0
- huaweicloudsdkelb/v3/model/update_remove_headers_config.py +114 -0
- huaweicloudsdkelb/v3/model/update_rewrite_url_config.py +173 -0
- huaweicloudsdkelb/v3/model/update_traffic_limit_config.py +173 -0
- {huaweicloudsdkelb-3.1.104.dist-info → huaweicloudsdkelb-3.1.106.dist-info}/METADATA +2 -2
- {huaweicloudsdkelb-3.1.104.dist-info → huaweicloudsdkelb-3.1.106.dist-info}/RECORD +142 -113
- {huaweicloudsdkelb-3.1.104.dist-info → huaweicloudsdkelb-3.1.106.dist-info}/LICENSE +0 -0
- {huaweicloudsdkelb-3.1.104.dist-info → huaweicloudsdkelb-3.1.106.dist-info}/WHEEL +0 -0
- {huaweicloudsdkelb-3.1.104.dist-info → huaweicloudsdkelb-3.1.106.dist-info}/top_level.txt +0 -0
@@ -33,11 +33,11 @@ class PageInfo:
|
|
33
33
|
|
34
34
|
The model defined in huaweicloud sdk
|
35
35
|
|
36
|
-
:param previous_marker:
|
36
|
+
:param previous_marker: 参数解释:分页查询结果中第一条记录的ID。通常用于配合page_reverse=true查询上一页。
|
37
37
|
:type previous_marker: str
|
38
|
-
:param next_marker:
|
38
|
+
:param next_marker: 参数解释:分页查询结果中最后一条记录的ID。通常用于查询下一页。
|
39
39
|
:type next_marker: str
|
40
|
-
:param current_count:
|
40
|
+
:param current_count: 参数解释:当前的记录数。
|
41
41
|
:type current_count: int
|
42
42
|
"""
|
43
43
|
|
@@ -57,7 +57,7 @@ class PageInfo:
|
|
57
57
|
def previous_marker(self):
|
58
58
|
"""Gets the previous_marker of this PageInfo.
|
59
59
|
|
60
|
-
|
60
|
+
参数解释:分页查询结果中第一条记录的ID。通常用于配合page_reverse=true查询上一页。
|
61
61
|
|
62
62
|
:return: The previous_marker of this PageInfo.
|
63
63
|
:rtype: str
|
@@ -68,7 +68,7 @@ class PageInfo:
|
|
68
68
|
def previous_marker(self, previous_marker):
|
69
69
|
"""Sets the previous_marker of this PageInfo.
|
70
70
|
|
71
|
-
|
71
|
+
参数解释:分页查询结果中第一条记录的ID。通常用于配合page_reverse=true查询上一页。
|
72
72
|
|
73
73
|
:param previous_marker: The previous_marker of this PageInfo.
|
74
74
|
:type previous_marker: str
|
@@ -79,7 +79,7 @@ class PageInfo:
|
|
79
79
|
def next_marker(self):
|
80
80
|
"""Gets the next_marker of this PageInfo.
|
81
81
|
|
82
|
-
|
82
|
+
参数解释:分页查询结果中最后一条记录的ID。通常用于查询下一页。
|
83
83
|
|
84
84
|
:return: The next_marker of this PageInfo.
|
85
85
|
:rtype: str
|
@@ -90,7 +90,7 @@ class PageInfo:
|
|
90
90
|
def next_marker(self, next_marker):
|
91
91
|
"""Sets the next_marker of this PageInfo.
|
92
92
|
|
93
|
-
|
93
|
+
参数解释:分页查询结果中最后一条记录的ID。通常用于查询下一页。
|
94
94
|
|
95
95
|
:param next_marker: The next_marker of this PageInfo.
|
96
96
|
:type next_marker: str
|
@@ -101,7 +101,7 @@ class PageInfo:
|
|
101
101
|
def current_count(self):
|
102
102
|
"""Gets the current_count of this PageInfo.
|
103
103
|
|
104
|
-
|
104
|
+
参数解释:当前的记录数。
|
105
105
|
|
106
106
|
:return: The current_count of this PageInfo.
|
107
107
|
:rtype: int
|
@@ -112,7 +112,7 @@ class PageInfo:
|
|
112
112
|
def current_count(self, current_count):
|
113
113
|
"""Sets the current_count of this PageInfo.
|
114
114
|
|
115
|
-
|
115
|
+
参数解释:当前的记录数。
|
116
116
|
|
117
117
|
:param current_count: The current_count of this PageInfo.
|
118
118
|
:type current_count: int
|
@@ -39,7 +39,10 @@ class Pool:
|
|
39
39
|
'protection_status': 'str',
|
40
40
|
'protection_reason': 'str',
|
41
41
|
'any_port_enable': 'bool',
|
42
|
-
'connection_drain': 'ConnectionDrain'
|
42
|
+
'connection_drain': 'ConnectionDrain',
|
43
|
+
'enterprise_project_id': 'str',
|
44
|
+
'pool_health': 'PoolHealth',
|
45
|
+
'public_border_group': 'str'
|
43
46
|
}
|
44
47
|
|
45
48
|
attribute_map = {
|
@@ -65,15 +68,18 @@ class Pool:
|
|
65
68
|
'protection_status': 'protection_status',
|
66
69
|
'protection_reason': 'protection_reason',
|
67
70
|
'any_port_enable': 'any_port_enable',
|
68
|
-
'connection_drain': 'connection_drain'
|
71
|
+
'connection_drain': 'connection_drain',
|
72
|
+
'enterprise_project_id': 'enterprise_project_id',
|
73
|
+
'pool_health': 'pool_health',
|
74
|
+
'public_border_group': 'public_border_group'
|
69
75
|
}
|
70
76
|
|
71
|
-
def __init__(self, admin_state_up=None, description=None, healthmonitor_id=None, id=None, lb_algorithm=None, listeners=None, loadbalancers=None, members=None, name=None, project_id=None, protocol=None, session_persistence=None, ip_version=None, slow_start=None, member_deletion_protection_enable=None, created_at=None, updated_at=None, vpc_id=None, type=None, protection_status=None, protection_reason=None, any_port_enable=None, connection_drain=None):
|
77
|
+
def __init__(self, admin_state_up=None, description=None, healthmonitor_id=None, id=None, lb_algorithm=None, listeners=None, loadbalancers=None, members=None, name=None, project_id=None, protocol=None, session_persistence=None, ip_version=None, slow_start=None, member_deletion_protection_enable=None, created_at=None, updated_at=None, vpc_id=None, type=None, protection_status=None, protection_reason=None, any_port_enable=None, connection_drain=None, enterprise_project_id=None, pool_health=None, public_border_group=None):
|
72
78
|
"""Pool
|
73
79
|
|
74
80
|
The model defined in huaweicloud sdk
|
75
81
|
|
76
|
-
:param admin_state_up:
|
82
|
+
:param admin_state_up: 后端云服务器组的管理状态。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
|
77
83
|
:type admin_state_up: bool
|
78
84
|
:param description: 后端云服务器组的描述信息。
|
79
85
|
:type description: str
|
@@ -81,7 +87,7 @@ class Pool:
|
|
81
87
|
:type healthmonitor_id: str
|
82
88
|
:param id: 后端云服务器组的ID。
|
83
89
|
:type id: str
|
84
|
-
:param lb_algorithm: 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。
|
90
|
+
:param lb_algorithm: 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 4_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。](tag:hws_eu) 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID算法。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test)
|
85
91
|
:type lb_algorithm: str
|
86
92
|
:param listeners: 后端云服务器组关联的监听器ID列表。
|
87
93
|
:type listeners: list[:class:`huaweicloudsdkelb.v3.ListenerRef`]
|
@@ -93,19 +99,19 @@ class Pool:
|
|
93
99
|
:type name: str
|
94
100
|
:param project_id: 后端云服务器组所在的项目ID。
|
95
101
|
:type project_id: str
|
96
|
-
:param protocol: 后端云服务器组的后端协议。 取值:TCP、UDP、HTTP、HTTPS
|
102
|
+
:param protocol: 后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、GRPC、HTTP、HTTPS和QUIC。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时pool的protocol必须为TCP。 [- listener的protocol为IP时,pool的protocol必须为IP。](tag:hws_eu) - listener的protocol为HTTP时,pool的protocol必须为HTTP。 - listener的protocol为HTTPS时,pool的protocol必须为HTTP、HTTPS或GRPC。 - listener的protocol为TERMINATED_HTTPS时,pool的protocol必须为HTTP。 - listener的protocol为QUIC时,pool的protocol必须为HTTP、HTTPS或GRPC。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 - 若pool的protocol为GRPC,关联监听器必须开启HTTP2。 - 若pool的protocol为TCP,则pool的ip_version字段取值必须是4。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test)
|
97
103
|
:type protocol: str
|
98
104
|
:param session_persistence:
|
99
105
|
:type session_persistence: :class:`huaweicloudsdkelb.v3.SessionPersistence`
|
100
|
-
:param ip_version: 后端云服务器组支持的IP版本。 [取值: - 共享型:固定为v4; - 独享型:取值dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs) [取值:dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。](tag:hcso_dt) [不支持IPv6,只会返回v4。](tag:dt,dt_test)
|
106
|
+
:param ip_version: 后端云服务器组支持的IP版本。 [取值: - 共享型:固定为v4; - 独享型:取值dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs) [取值:dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。](tag:hcso_dt) [不支持IPv6,只会返回v4。](tag:dt,dt_test)
|
101
107
|
:type ip_version: str
|
102
108
|
:param slow_start:
|
103
109
|
:type slow_start: :class:`huaweicloudsdkelb.v3.SlowStart`
|
104
|
-
:param member_deletion_protection_enable: 是否开启误删保护。 取值:false不开启,true开启。 > 退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt)
|
110
|
+
:param member_deletion_protection_enable: 是否开启误删保护。 取值:false不开启,true开启。 > 退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
105
111
|
:type member_deletion_protection_enable: bool
|
106
|
-
:param created_at: 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)
|
112
|
+
:param created_at: 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm)
|
107
113
|
:type created_at: str
|
108
|
-
:param updated_at: 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)
|
114
|
+
:param updated_at: 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm)
|
109
115
|
:type updated_at: str
|
110
116
|
:param vpc_id: 后端云服务器组关联的虚拟私有云的ID。
|
111
117
|
:type vpc_id: str
|
@@ -115,10 +121,16 @@ class Pool:
|
|
115
121
|
:type protection_status: str
|
116
122
|
:param protection_reason: 设置保护的原因 >仅当protection_status为consoleProtection时有效。
|
117
123
|
:type protection_reason: str
|
118
|
-
:param any_port_enable:
|
124
|
+
:param any_port_enable: 后端是否开启端口透传。开启后,后端服务器端口与前端监听器端口保持一致。关闭后,请求会转发给后端服务器protocol_port字段指定端口。取值:false不开启,true开启。 使用说明: - 仅QUIC,TCP,UDP的pool支持。
|
119
125
|
:type any_port_enable: bool
|
120
126
|
:param connection_drain:
|
121
127
|
:type connection_drain: :class:`huaweicloudsdkelb.v3.ConnectionDrain`
|
128
|
+
:param enterprise_project_id: IP地址组所在的企业项目ID。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
|
129
|
+
:type enterprise_project_id: str
|
130
|
+
:param pool_health:
|
131
|
+
:type pool_health: :class:`huaweicloudsdkelb.v3.PoolHealth`
|
132
|
+
:param public_border_group: 可用区组,如:center
|
133
|
+
:type public_border_group: str
|
122
134
|
"""
|
123
135
|
|
124
136
|
|
@@ -146,6 +158,9 @@ class Pool:
|
|
146
158
|
self._protection_reason = None
|
147
159
|
self._any_port_enable = None
|
148
160
|
self._connection_drain = None
|
161
|
+
self._enterprise_project_id = None
|
162
|
+
self._pool_health = None
|
163
|
+
self._public_border_group = None
|
149
164
|
self.discriminator = None
|
150
165
|
|
151
166
|
self.admin_state_up = admin_state_up
|
@@ -177,12 +192,18 @@ class Pool:
|
|
177
192
|
self.any_port_enable = any_port_enable
|
178
193
|
if connection_drain is not None:
|
179
194
|
self.connection_drain = connection_drain
|
195
|
+
if enterprise_project_id is not None:
|
196
|
+
self.enterprise_project_id = enterprise_project_id
|
197
|
+
if pool_health is not None:
|
198
|
+
self.pool_health = pool_health
|
199
|
+
if public_border_group is not None:
|
200
|
+
self.public_border_group = public_border_group
|
180
201
|
|
181
202
|
@property
|
182
203
|
def admin_state_up(self):
|
183
204
|
"""Gets the admin_state_up of this Pool.
|
184
205
|
|
185
|
-
|
206
|
+
后端云服务器组的管理状态。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
|
186
207
|
|
187
208
|
:return: The admin_state_up of this Pool.
|
188
209
|
:rtype: bool
|
@@ -193,7 +214,7 @@ class Pool:
|
|
193
214
|
def admin_state_up(self, admin_state_up):
|
194
215
|
"""Sets the admin_state_up of this Pool.
|
195
216
|
|
196
|
-
|
217
|
+
后端云服务器组的管理状态。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
|
197
218
|
|
198
219
|
:param admin_state_up: The admin_state_up of this Pool.
|
199
220
|
:type admin_state_up: bool
|
@@ -270,7 +291,7 @@ class Pool:
|
|
270
291
|
def lb_algorithm(self):
|
271
292
|
"""Gets the lb_algorithm of this Pool.
|
272
293
|
|
273
|
-
后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。
|
294
|
+
后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 4_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。](tag:hws_eu) 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID算法。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test)
|
274
295
|
|
275
296
|
:return: The lb_algorithm of this Pool.
|
276
297
|
:rtype: str
|
@@ -281,7 +302,7 @@ class Pool:
|
|
281
302
|
def lb_algorithm(self, lb_algorithm):
|
282
303
|
"""Sets the lb_algorithm of this Pool.
|
283
304
|
|
284
|
-
后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。
|
305
|
+
后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 4_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。](tag:hws_eu) 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID算法。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test)
|
285
306
|
|
286
307
|
:param lb_algorithm: The lb_algorithm of this Pool.
|
287
308
|
:type lb_algorithm: str
|
@@ -402,7 +423,7 @@ class Pool:
|
|
402
423
|
def protocol(self):
|
403
424
|
"""Gets the protocol of this Pool.
|
404
425
|
|
405
|
-
后端云服务器组的后端协议。 取值:TCP、UDP、HTTP、HTTPS
|
426
|
+
后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、GRPC、HTTP、HTTPS和QUIC。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时pool的protocol必须为TCP。 [- listener的protocol为IP时,pool的protocol必须为IP。](tag:hws_eu) - listener的protocol为HTTP时,pool的protocol必须为HTTP。 - listener的protocol为HTTPS时,pool的protocol必须为HTTP、HTTPS或GRPC。 - listener的protocol为TERMINATED_HTTPS时,pool的protocol必须为HTTP。 - listener的protocol为QUIC时,pool的protocol必须为HTTP、HTTPS或GRPC。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 - 若pool的protocol为GRPC,关联监听器必须开启HTTP2。 - 若pool的protocol为TCP,则pool的ip_version字段取值必须是4。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test)
|
406
427
|
|
407
428
|
:return: The protocol of this Pool.
|
408
429
|
:rtype: str
|
@@ -413,7 +434,7 @@ class Pool:
|
|
413
434
|
def protocol(self, protocol):
|
414
435
|
"""Sets the protocol of this Pool.
|
415
436
|
|
416
|
-
后端云服务器组的后端协议。 取值:TCP、UDP、HTTP、HTTPS
|
437
|
+
后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、GRPC、HTTP、HTTPS和QUIC。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时pool的protocol必须为TCP。 [- listener的protocol为IP时,pool的protocol必须为IP。](tag:hws_eu) - listener的protocol为HTTP时,pool的protocol必须为HTTP。 - listener的protocol为HTTPS时,pool的protocol必须为HTTP、HTTPS或GRPC。 - listener的protocol为TERMINATED_HTTPS时,pool的protocol必须为HTTP。 - listener的protocol为QUIC时,pool的protocol必须为HTTP、HTTPS或GRPC。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 - 若pool的protocol为GRPC,关联监听器必须开启HTTP2。 - 若pool的protocol为TCP,则pool的ip_version字段取值必须是4。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test)
|
417
438
|
|
418
439
|
:param protocol: The protocol of this Pool.
|
419
440
|
:type protocol: str
|
@@ -442,7 +463,7 @@ class Pool:
|
|
442
463
|
def ip_version(self):
|
443
464
|
"""Gets the ip_version of this Pool.
|
444
465
|
|
445
|
-
后端云服务器组支持的IP版本。 [取值: - 共享型:固定为v4; - 独享型:取值dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs) [取值:dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。](tag:hcso_dt) [不支持IPv6,只会返回v4。](tag:dt,dt_test)
|
466
|
+
后端云服务器组支持的IP版本。 [取值: - 共享型:固定为v4; - 独享型:取值dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs) [取值:dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。](tag:hcso_dt) [不支持IPv6,只会返回v4。](tag:dt,dt_test)
|
446
467
|
|
447
468
|
:return: The ip_version of this Pool.
|
448
469
|
:rtype: str
|
@@ -453,7 +474,7 @@ class Pool:
|
|
453
474
|
def ip_version(self, ip_version):
|
454
475
|
"""Sets the ip_version of this Pool.
|
455
476
|
|
456
|
-
后端云服务器组支持的IP版本。 [取值: - 共享型:固定为v4; - 独享型:取值dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs) [取值:dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。](tag:hcso_dt) [不支持IPv6,只会返回v4。](tag:dt,dt_test)
|
477
|
+
后端云服务器组支持的IP版本。 [取值: - 共享型:固定为v4; - 独享型:取值dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs) [取值:dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。](tag:hcso_dt) [不支持IPv6,只会返回v4。](tag:dt,dt_test)
|
457
478
|
|
458
479
|
:param ip_version: The ip_version of this Pool.
|
459
480
|
:type ip_version: str
|
@@ -482,7 +503,7 @@ class Pool:
|
|
482
503
|
def member_deletion_protection_enable(self):
|
483
504
|
"""Gets the member_deletion_protection_enable of this Pool.
|
484
505
|
|
485
|
-
是否开启误删保护。 取值:false不开启,true开启。 > 退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt)
|
506
|
+
是否开启误删保护。 取值:false不开启,true开启。 > 退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
486
507
|
|
487
508
|
:return: The member_deletion_protection_enable of this Pool.
|
488
509
|
:rtype: bool
|
@@ -493,7 +514,7 @@ class Pool:
|
|
493
514
|
def member_deletion_protection_enable(self, member_deletion_protection_enable):
|
494
515
|
"""Sets the member_deletion_protection_enable of this Pool.
|
495
516
|
|
496
|
-
是否开启误删保护。 取值:false不开启,true开启。 > 退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt)
|
517
|
+
是否开启误删保护。 取值:false不开启,true开启。 > 退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
497
518
|
|
498
519
|
:param member_deletion_protection_enable: The member_deletion_protection_enable of this Pool.
|
499
520
|
:type member_deletion_protection_enable: bool
|
@@ -504,7 +525,7 @@ class Pool:
|
|
504
525
|
def created_at(self):
|
505
526
|
"""Gets the created_at of this Pool.
|
506
527
|
|
507
|
-
创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)
|
528
|
+
创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm)
|
508
529
|
|
509
530
|
:return: The created_at of this Pool.
|
510
531
|
:rtype: str
|
@@ -515,7 +536,7 @@ class Pool:
|
|
515
536
|
def created_at(self, created_at):
|
516
537
|
"""Sets the created_at of this Pool.
|
517
538
|
|
518
|
-
创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)
|
539
|
+
创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm)
|
519
540
|
|
520
541
|
:param created_at: The created_at of this Pool.
|
521
542
|
:type created_at: str
|
@@ -526,7 +547,7 @@ class Pool:
|
|
526
547
|
def updated_at(self):
|
527
548
|
"""Gets the updated_at of this Pool.
|
528
549
|
|
529
|
-
更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)
|
550
|
+
更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm)
|
530
551
|
|
531
552
|
:return: The updated_at of this Pool.
|
532
553
|
:rtype: str
|
@@ -537,7 +558,7 @@ class Pool:
|
|
537
558
|
def updated_at(self, updated_at):
|
538
559
|
"""Sets the updated_at of this Pool.
|
539
560
|
|
540
|
-
更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)
|
561
|
+
更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm)
|
541
562
|
|
542
563
|
:param updated_at: The updated_at of this Pool.
|
543
564
|
:type updated_at: str
|
@@ -636,7 +657,7 @@ class Pool:
|
|
636
657
|
def any_port_enable(self):
|
637
658
|
"""Gets the any_port_enable of this Pool.
|
638
659
|
|
639
|
-
|
660
|
+
后端是否开启端口透传。开启后,后端服务器端口与前端监听器端口保持一致。关闭后,请求会转发给后端服务器protocol_port字段指定端口。取值:false不开启,true开启。 使用说明: - 仅QUIC,TCP,UDP的pool支持。
|
640
661
|
|
641
662
|
:return: The any_port_enable of this Pool.
|
642
663
|
:rtype: bool
|
@@ -647,7 +668,7 @@ class Pool:
|
|
647
668
|
def any_port_enable(self, any_port_enable):
|
648
669
|
"""Sets the any_port_enable of this Pool.
|
649
670
|
|
650
|
-
|
671
|
+
后端是否开启端口透传。开启后,后端服务器端口与前端监听器端口保持一致。关闭后,请求会转发给后端服务器protocol_port字段指定端口。取值:false不开启,true开启。 使用说明: - 仅QUIC,TCP,UDP的pool支持。
|
651
672
|
|
652
673
|
:param any_port_enable: The any_port_enable of this Pool.
|
653
674
|
:type any_port_enable: bool
|
@@ -672,6 +693,68 @@ class Pool:
|
|
672
693
|
"""
|
673
694
|
self._connection_drain = connection_drain
|
674
695
|
|
696
|
+
@property
|
697
|
+
def enterprise_project_id(self):
|
698
|
+
"""Gets the enterprise_project_id of this Pool.
|
699
|
+
|
700
|
+
IP地址组所在的企业项目ID。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
|
701
|
+
|
702
|
+
:return: The enterprise_project_id of this Pool.
|
703
|
+
:rtype: str
|
704
|
+
"""
|
705
|
+
return self._enterprise_project_id
|
706
|
+
|
707
|
+
@enterprise_project_id.setter
|
708
|
+
def enterprise_project_id(self, enterprise_project_id):
|
709
|
+
"""Sets the enterprise_project_id of this Pool.
|
710
|
+
|
711
|
+
IP地址组所在的企业项目ID。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
|
712
|
+
|
713
|
+
:param enterprise_project_id: The enterprise_project_id of this Pool.
|
714
|
+
:type enterprise_project_id: str
|
715
|
+
"""
|
716
|
+
self._enterprise_project_id = enterprise_project_id
|
717
|
+
|
718
|
+
@property
|
719
|
+
def pool_health(self):
|
720
|
+
"""Gets the pool_health of this Pool.
|
721
|
+
|
722
|
+
:return: The pool_health of this Pool.
|
723
|
+
:rtype: :class:`huaweicloudsdkelb.v3.PoolHealth`
|
724
|
+
"""
|
725
|
+
return self._pool_health
|
726
|
+
|
727
|
+
@pool_health.setter
|
728
|
+
def pool_health(self, pool_health):
|
729
|
+
"""Sets the pool_health of this Pool.
|
730
|
+
|
731
|
+
:param pool_health: The pool_health of this Pool.
|
732
|
+
:type pool_health: :class:`huaweicloudsdkelb.v3.PoolHealth`
|
733
|
+
"""
|
734
|
+
self._pool_health = pool_health
|
735
|
+
|
736
|
+
@property
|
737
|
+
def public_border_group(self):
|
738
|
+
"""Gets the public_border_group of this Pool.
|
739
|
+
|
740
|
+
可用区组,如:center
|
741
|
+
|
742
|
+
:return: The public_border_group of this Pool.
|
743
|
+
:rtype: str
|
744
|
+
"""
|
745
|
+
return self._public_border_group
|
746
|
+
|
747
|
+
@public_border_group.setter
|
748
|
+
def public_border_group(self, public_border_group):
|
749
|
+
"""Sets the public_border_group of this Pool.
|
750
|
+
|
751
|
+
可用区组,如:center
|
752
|
+
|
753
|
+
:param public_border_group: The public_border_group of this Pool.
|
754
|
+
:type public_border_group: str
|
755
|
+
"""
|
756
|
+
self._public_border_group = public_border_group
|
757
|
+
|
675
758
|
def to_dict(self):
|
676
759
|
"""Returns the model properties as a dict"""
|
677
760
|
result = {}
|
@@ -0,0 +1,115 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class PoolHealth:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'minimum_healthy_member_count': 'int'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'minimum_healthy_member_count': 'minimum_healthy_member_count'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, minimum_healthy_member_count=None):
|
28
|
+
"""PoolHealth
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param minimum_healthy_member_count: 当健康检查在线的member个数小于该个数,判定pool的state为不健康; 取值范围:0或者1; 0:默认值,不生效; 1:全下线转发生效;
|
33
|
+
:type minimum_healthy_member_count: int
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._minimum_healthy_member_count = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
if minimum_healthy_member_count is not None:
|
42
|
+
self.minimum_healthy_member_count = minimum_healthy_member_count
|
43
|
+
|
44
|
+
@property
|
45
|
+
def minimum_healthy_member_count(self):
|
46
|
+
"""Gets the minimum_healthy_member_count of this PoolHealth.
|
47
|
+
|
48
|
+
当健康检查在线的member个数小于该个数,判定pool的state为不健康; 取值范围:0或者1; 0:默认值,不生效; 1:全下线转发生效;
|
49
|
+
|
50
|
+
:return: The minimum_healthy_member_count of this PoolHealth.
|
51
|
+
:rtype: int
|
52
|
+
"""
|
53
|
+
return self._minimum_healthy_member_count
|
54
|
+
|
55
|
+
@minimum_healthy_member_count.setter
|
56
|
+
def minimum_healthy_member_count(self, minimum_healthy_member_count):
|
57
|
+
"""Sets the minimum_healthy_member_count of this PoolHealth.
|
58
|
+
|
59
|
+
当健康检查在线的member个数小于该个数,判定pool的state为不健康; 取值范围:0或者1; 0:默认值,不生效; 1:全下线转发生效;
|
60
|
+
|
61
|
+
:param minimum_healthy_member_count: The minimum_healthy_member_count of this PoolHealth.
|
62
|
+
:type minimum_healthy_member_count: int
|
63
|
+
"""
|
64
|
+
self._minimum_healthy_member_count = minimum_healthy_member_count
|
65
|
+
|
66
|
+
def to_dict(self):
|
67
|
+
"""Returns the model properties as a dict"""
|
68
|
+
result = {}
|
69
|
+
|
70
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
71
|
+
value = getattr(self, attr)
|
72
|
+
if isinstance(value, list):
|
73
|
+
result[attr] = list(map(
|
74
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
75
|
+
value
|
76
|
+
))
|
77
|
+
elif hasattr(value, "to_dict"):
|
78
|
+
result[attr] = value.to_dict()
|
79
|
+
elif isinstance(value, dict):
|
80
|
+
result[attr] = dict(map(
|
81
|
+
lambda item: (item[0], item[1].to_dict())
|
82
|
+
if hasattr(item[1], "to_dict") else item,
|
83
|
+
value.items()
|
84
|
+
))
|
85
|
+
else:
|
86
|
+
if attr in self.sensitive_list:
|
87
|
+
result[attr] = "****"
|
88
|
+
else:
|
89
|
+
result[attr] = value
|
90
|
+
|
91
|
+
return result
|
92
|
+
|
93
|
+
def to_str(self):
|
94
|
+
"""Returns the string representation of the model"""
|
95
|
+
import simplejson as json
|
96
|
+
if six.PY2:
|
97
|
+
import sys
|
98
|
+
reload(sys)
|
99
|
+
sys.setdefaultencoding("utf-8")
|
100
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
101
|
+
|
102
|
+
def __repr__(self):
|
103
|
+
"""For `print`"""
|
104
|
+
return self.to_str()
|
105
|
+
|
106
|
+
def __eq__(self, other):
|
107
|
+
"""Returns true if both objects are equal"""
|
108
|
+
if not isinstance(other, PoolHealth):
|
109
|
+
return False
|
110
|
+
|
111
|
+
return self.__dict__ == other.__dict__
|
112
|
+
|
113
|
+
def __ne__(self, other):
|
114
|
+
"""Returns true if both objects are not equal"""
|
115
|
+
return not self == other
|
@@ -35,13 +35,13 @@ class PrepaidCreateOption:
|
|
35
35
|
|
36
36
|
The model defined in huaweicloud sdk
|
37
37
|
|
38
|
-
:param period_type:
|
38
|
+
:param period_type: 参数解释:预付费实例的订购周期类型,当前支持月和年。 取值范围: - month:月。 - year:年。
|
39
39
|
:type period_type: str
|
40
|
-
:param period_num:
|
40
|
+
:param period_num: 参数解释:预付费实例的订购周期数,取值会随运营策略变化。 约束限制: - period_type为month时,为[1,9]。 - period_type为year时,为[1,3]。
|
41
41
|
:type period_num: int
|
42
|
-
:param auto_renew:
|
42
|
+
:param auto_renew: 参数解释:自动续订开关。 取值范围: - true:开启自动续订。 - false:关闭自动续订。
|
43
43
|
:type auto_renew: bool
|
44
|
-
:param auto_pay:
|
44
|
+
:param auto_pay: 参数解释:自动支付开关。下单订购后,是否自动从客户的账户中支付。 约束限制:开启自动支付时,只能使用账户的现金支付;如果要使用代金券,请选择关闭自动支付,然后在用户费用中心,选择代金券支付。 取值范围: - true:开启自动支付。 - false:关闭自动支付。
|
45
45
|
:type auto_pay: bool
|
46
46
|
"""
|
47
47
|
|
@@ -65,7 +65,7 @@ class PrepaidCreateOption:
|
|
65
65
|
def period_type(self):
|
66
66
|
"""Gets the period_type of this PrepaidCreateOption.
|
67
67
|
|
68
|
-
|
68
|
+
参数解释:预付费实例的订购周期类型,当前支持月和年。 取值范围: - month:月。 - year:年。
|
69
69
|
|
70
70
|
:return: The period_type of this PrepaidCreateOption.
|
71
71
|
:rtype: str
|
@@ -76,7 +76,7 @@ class PrepaidCreateOption:
|
|
76
76
|
def period_type(self, period_type):
|
77
77
|
"""Sets the period_type of this PrepaidCreateOption.
|
78
78
|
|
79
|
-
|
79
|
+
参数解释:预付费实例的订购周期类型,当前支持月和年。 取值范围: - month:月。 - year:年。
|
80
80
|
|
81
81
|
:param period_type: The period_type of this PrepaidCreateOption.
|
82
82
|
:type period_type: str
|
@@ -87,7 +87,7 @@ class PrepaidCreateOption:
|
|
87
87
|
def period_num(self):
|
88
88
|
"""Gets the period_num of this PrepaidCreateOption.
|
89
89
|
|
90
|
-
|
90
|
+
参数解释:预付费实例的订购周期数,取值会随运营策略变化。 约束限制: - period_type为month时,为[1,9]。 - period_type为year时,为[1,3]。
|
91
91
|
|
92
92
|
:return: The period_num of this PrepaidCreateOption.
|
93
93
|
:rtype: int
|
@@ -98,7 +98,7 @@ class PrepaidCreateOption:
|
|
98
98
|
def period_num(self, period_num):
|
99
99
|
"""Sets the period_num of this PrepaidCreateOption.
|
100
100
|
|
101
|
-
|
101
|
+
参数解释:预付费实例的订购周期数,取值会随运营策略变化。 约束限制: - period_type为month时,为[1,9]。 - period_type为year时,为[1,3]。
|
102
102
|
|
103
103
|
:param period_num: The period_num of this PrepaidCreateOption.
|
104
104
|
:type period_num: int
|
@@ -109,7 +109,7 @@ class PrepaidCreateOption:
|
|
109
109
|
def auto_renew(self):
|
110
110
|
"""Gets the auto_renew of this PrepaidCreateOption.
|
111
111
|
|
112
|
-
|
112
|
+
参数解释:自动续订开关。 取值范围: - true:开启自动续订。 - false:关闭自动续订。
|
113
113
|
|
114
114
|
:return: The auto_renew of this PrepaidCreateOption.
|
115
115
|
:rtype: bool
|
@@ -120,7 +120,7 @@ class PrepaidCreateOption:
|
|
120
120
|
def auto_renew(self, auto_renew):
|
121
121
|
"""Sets the auto_renew of this PrepaidCreateOption.
|
122
122
|
|
123
|
-
|
123
|
+
参数解释:自动续订开关。 取值范围: - true:开启自动续订。 - false:关闭自动续订。
|
124
124
|
|
125
125
|
:param auto_renew: The auto_renew of this PrepaidCreateOption.
|
126
126
|
:type auto_renew: bool
|
@@ -131,7 +131,7 @@ class PrepaidCreateOption:
|
|
131
131
|
def auto_pay(self):
|
132
132
|
"""Gets the auto_pay of this PrepaidCreateOption.
|
133
133
|
|
134
|
-
|
134
|
+
参数解释:自动支付开关。下单订购后,是否自动从客户的账户中支付。 约束限制:开启自动支付时,只能使用账户的现金支付;如果要使用代金券,请选择关闭自动支付,然后在用户费用中心,选择代金券支付。 取值范围: - true:开启自动支付。 - false:关闭自动支付。
|
135
135
|
|
136
136
|
:return: The auto_pay of this PrepaidCreateOption.
|
137
137
|
:rtype: bool
|
@@ -142,7 +142,7 @@ class PrepaidCreateOption:
|
|
142
142
|
def auto_pay(self, auto_pay):
|
143
143
|
"""Sets the auto_pay of this PrepaidCreateOption.
|
144
144
|
|
145
|
-
|
145
|
+
参数解释:自动支付开关。下单订购后,是否自动从客户的账户中支付。 约束限制:开启自动支付时,只能使用账户的现金支付;如果要使用代金券,请选择关闭自动支付,然后在用户费用中心,选择代金券支付。 取值范围: - true:开启自动支付。 - false:关闭自动支付。
|
146
146
|
|
147
147
|
:param auto_pay: The auto_pay of this PrepaidCreateOption.
|
148
148
|
:type auto_pay: bool
|