huaweicloudsdkelb 3.1.105__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.105.dist-info → huaweicloudsdkelb-3.1.106.dist-info}/METADATA +2 -2
- {huaweicloudsdkelb-3.1.105.dist-info → huaweicloudsdkelb-3.1.106.dist-info}/RECORD +142 -113
- {huaweicloudsdkelb-3.1.105.dist-info → huaweicloudsdkelb-3.1.106.dist-info}/LICENSE +0 -0
- {huaweicloudsdkelb-3.1.105.dist-info → huaweicloudsdkelb-3.1.106.dist-info}/WHEEL +0 -0
- {huaweicloudsdkelb-3.1.105.dist-info → huaweicloudsdkelb-3.1.106.dist-info}/top_level.txt +0 -0
@@ -43,7 +43,7 @@ class CreateL7PolicyRuleOption:
|
|
43
43
|
|
44
44
|
:param admin_state_up: 转发规则的管理状态;取值范围: true/false,默认为true。 不支持该字段,请勿使用。
|
45
45
|
:type admin_state_up: bool
|
46
|
-
:param type: 转发规则类别。 取值: - HOST_NAME:匹配域名。 - PATH:匹配请求路径。 - METHOD:匹配请求方法。 - HEADER:匹配请求头。 - QUERY_STRING:匹配请求查询参数。 - SOURCE_IP:匹配请求源IP地址。 使用说明: - 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。 HEADER、QUERY_STRING支持重复的rule配置。 [只支持取值为HOST_NAME,PATH。](tag:hcso_dt)
|
46
|
+
:param type: 转发规则类别。 取值: - HOST_NAME:匹配域名。 - PATH:匹配请求路径。 - METHOD:匹配请求方法。 - HEADER:匹配请求头。 - QUERY_STRING:匹配请求查询参数。 - SOURCE_IP:匹配请求源IP地址。 - COOKIE: 匹配cookie信息。 使用说明: - 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。 HEADER、QUERY_STRING支持重复的rule配置。 [只支持取值为HOST_NAME,PATH。](tag:hcso_dt)
|
47
47
|
:type type: str
|
48
48
|
:param compare_type: 转发匹配方式。 取值: - EQUAL_TO 表示精确匹配。 - REGEX 表示正则匹配。 - STARTS_WITH 表示前缀匹配。 使用说明: - type为HOST_NAME时仅支持EQUAL_TO,支持通配符*。 - type为PATH时可以为REGEX,STARTS_WITH,EQUAL_TO。 - type为METHOD、SOURCE_IP时,仅支持EQUAL_TO。 - type为HEADER、QUERY_STRING,仅支持EQUAL_TO,支持通配符*、?。
|
49
49
|
:type compare_type: str
|
@@ -53,7 +53,7 @@ class CreateL7PolicyRuleOption:
|
|
53
53
|
:type key: str
|
54
54
|
:param value: 匹配项的值。比如转发规则匹配类型是域名匹配,则value表示域名的值。仅当conditions空时该字段生效。 当转发规则类别type为HOST_NAME时,字符串只能包含英文字母、数字、-、.或\\*,必须以字母、数字或\\*开头。 若域名中包含\\*,则\\*只能出现在开头且必须以\\*.开始。当\\*开头时表示通配0~任一个字符。 当转发规则类别type为PATH时,当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 当转发规则类别type为METHOD、SOURCE_IP、HEADER,QUERY_STRING时, 该字段无意义,使用conditions来指定key/value。
|
55
55
|
:type value: str
|
56
|
-
:param conditions: 转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 若转发规则配置了conditions,字段key、字段value的值无意义。 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt)
|
56
|
+
:param conditions: 转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 若转发规则配置了conditions,字段key、字段value的值无意义。 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
57
57
|
:type conditions: list[:class:`huaweicloudsdkelb.v3.CreateRuleCondition`]
|
58
58
|
"""
|
59
59
|
|
@@ -106,7 +106,7 @@ class CreateL7PolicyRuleOption:
|
|
106
106
|
def type(self):
|
107
107
|
"""Gets the type of this CreateL7PolicyRuleOption.
|
108
108
|
|
109
|
-
转发规则类别。 取值: - HOST_NAME:匹配域名。 - PATH:匹配请求路径。 - METHOD:匹配请求方法。 - HEADER:匹配请求头。 - QUERY_STRING:匹配请求查询参数。 - SOURCE_IP:匹配请求源IP地址。 使用说明: - 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。 HEADER、QUERY_STRING支持重复的rule配置。 [只支持取值为HOST_NAME,PATH。](tag:hcso_dt)
|
109
|
+
转发规则类别。 取值: - HOST_NAME:匹配域名。 - PATH:匹配请求路径。 - METHOD:匹配请求方法。 - HEADER:匹配请求头。 - QUERY_STRING:匹配请求查询参数。 - SOURCE_IP:匹配请求源IP地址。 - COOKIE: 匹配cookie信息。 使用说明: - 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。 HEADER、QUERY_STRING支持重复的rule配置。 [只支持取值为HOST_NAME,PATH。](tag:hcso_dt)
|
110
110
|
|
111
111
|
:return: The type of this CreateL7PolicyRuleOption.
|
112
112
|
:rtype: str
|
@@ -117,7 +117,7 @@ class CreateL7PolicyRuleOption:
|
|
117
117
|
def type(self, type):
|
118
118
|
"""Sets the type of this CreateL7PolicyRuleOption.
|
119
119
|
|
120
|
-
转发规则类别。 取值: - HOST_NAME:匹配域名。 - PATH:匹配请求路径。 - METHOD:匹配请求方法。 - HEADER:匹配请求头。 - QUERY_STRING:匹配请求查询参数。 - SOURCE_IP:匹配请求源IP地址。 使用说明: - 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。 HEADER、QUERY_STRING支持重复的rule配置。 [只支持取值为HOST_NAME,PATH。](tag:hcso_dt)
|
120
|
+
转发规则类别。 取值: - HOST_NAME:匹配域名。 - PATH:匹配请求路径。 - METHOD:匹配请求方法。 - HEADER:匹配请求头。 - QUERY_STRING:匹配请求查询参数。 - SOURCE_IP:匹配请求源IP地址。 - COOKIE: 匹配cookie信息。 使用说明: - 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。 HEADER、QUERY_STRING支持重复的rule配置。 [只支持取值为HOST_NAME,PATH。](tag:hcso_dt)
|
121
121
|
|
122
122
|
:param type: The type of this CreateL7PolicyRuleOption.
|
123
123
|
:type type: str
|
@@ -216,7 +216,7 @@ class CreateL7PolicyRuleOption:
|
|
216
216
|
def conditions(self):
|
217
217
|
"""Gets the conditions of this CreateL7PolicyRuleOption.
|
218
218
|
|
219
|
-
转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 若转发规则配置了conditions,字段key、字段value的值无意义。 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt)
|
219
|
+
转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 若转发规则配置了conditions,字段key、字段value的值无意义。 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
220
220
|
|
221
221
|
:return: The conditions of this CreateL7PolicyRuleOption.
|
222
222
|
:rtype: list[:class:`huaweicloudsdkelb.v3.CreateRuleCondition`]
|
@@ -227,7 +227,7 @@ class CreateL7PolicyRuleOption:
|
|
227
227
|
def conditions(self, conditions):
|
228
228
|
"""Sets the conditions of this CreateL7PolicyRuleOption.
|
229
229
|
|
230
|
-
转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 若转发规则配置了conditions,字段key、字段value的值无意义。 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt)
|
230
|
+
转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 若转发规则配置了conditions,字段key、字段value的值无意义。 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
231
231
|
|
232
232
|
:param conditions: The conditions of this CreateL7PolicyRuleOption.
|
233
233
|
:type conditions: list[:class:`huaweicloudsdkelb.v3.CreateRuleCondition`]
|
@@ -33,7 +33,7 @@ class CreateListenerIpGroupOption:
|
|
33
33
|
|
34
34
|
The model defined in huaweicloud sdk
|
35
35
|
|
36
|
-
:param ipgroup_id: 监听器关联的访问控制组的id。 当关联的ipgroup中的ip_list为[],且类型为白名单时,表示禁止所有ip的访问。 当关联的ipgroup中的ip_list为[],且类型为黑名单时,表示允许所有ip的访问。
|
36
|
+
:param ipgroup_id: 监听器关联的访问控制组的id。 当关联的ipgroup中的ip_list为[],且类型为白名单时,表示禁止所有ip的访问。 当关联的ipgroup中的ip_list为[],且类型为黑名单时,表示允许所有ip的访问。
|
37
37
|
:type ipgroup_id: str
|
38
38
|
:param enable_ipgroup: 访问控制组的状态。 取值: - true:开启访问控制,默认值。 - flase:关闭访问控制。
|
39
39
|
:type enable_ipgroup: bool
|
@@ -58,7 +58,7 @@ class CreateListenerIpGroupOption:
|
|
58
58
|
def ipgroup_id(self):
|
59
59
|
"""Gets the ipgroup_id of this CreateListenerIpGroupOption.
|
60
60
|
|
61
|
-
监听器关联的访问控制组的id。 当关联的ipgroup中的ip_list为[],且类型为白名单时,表示禁止所有ip的访问。 当关联的ipgroup中的ip_list为[],且类型为黑名单时,表示允许所有ip的访问。
|
61
|
+
监听器关联的访问控制组的id。 当关联的ipgroup中的ip_list为[],且类型为白名单时,表示禁止所有ip的访问。 当关联的ipgroup中的ip_list为[],且类型为黑名单时,表示允许所有ip的访问。
|
62
62
|
|
63
63
|
:return: The ipgroup_id of this CreateListenerIpGroupOption.
|
64
64
|
:rtype: str
|
@@ -69,7 +69,7 @@ class CreateListenerIpGroupOption:
|
|
69
69
|
def ipgroup_id(self, ipgroup_id):
|
70
70
|
"""Sets the ipgroup_id of this CreateListenerIpGroupOption.
|
71
71
|
|
72
|
-
监听器关联的访问控制组的id。 当关联的ipgroup中的ip_list为[],且类型为白名单时,表示禁止所有ip的访问。 当关联的ipgroup中的ip_list为[],且类型为黑名单时,表示允许所有ip的访问。
|
72
|
+
监听器关联的访问控制组的id。 当关联的ipgroup中的ip_list为[],且类型为白名单时,表示禁止所有ip的访问。 当关联的ipgroup中的ip_list为[],且类型为黑名单时,表示允许所有ip的访问。
|
73
73
|
|
74
74
|
:param ipgroup_id: The ipgroup_id of this CreateListenerIpGroupOption.
|
75
75
|
:type ipgroup_id: str
|
@@ -89,13 +89,13 @@ class CreateListenerOption:
|
|
89
89
|
|
90
90
|
The model defined in huaweicloud sdk
|
91
91
|
|
92
|
-
:param admin_state_up:
|
92
|
+
:param admin_state_up: 监听器的管理状态。只支持设置为true。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
|
93
93
|
:type admin_state_up: bool
|
94
94
|
:param default_pool_id: 监听器默认的后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。
|
95
95
|
:type default_pool_id: str
|
96
96
|
:param client_ca_tls_container_ref: 监听器使用的CA证书ID。当且仅当type=client时,才会使用该字段对应的证书。 监听器协议为QUIC时不支持该字段。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test)
|
97
97
|
:type client_ca_tls_container_ref: str
|
98
|
-
:param default_tls_container_ref: 监听器使用的服务器证书ID。 使用说明:当监听器协议为HTTPS时,该字段必传,且对应的证书的type必须是server类型。
|
98
|
+
:param default_tls_container_ref: 监听器使用的服务器证书ID。 使用说明:当监听器协议为HTTPS、TLS或QUIC时,该字段必传,且对应的证书的type必须是server类型。
|
99
99
|
:type default_tls_container_ref: str
|
100
100
|
:param description: 监听器的描述信息。
|
101
101
|
:type description: str
|
@@ -109,7 +109,7 @@ class CreateListenerOption:
|
|
109
109
|
:type name: str
|
110
110
|
:param project_id: 监听器所在的项目ID。
|
111
111
|
:type project_id: str
|
112
|
-
:param protocol: 监听器的监听协议。 [取值:TCP、UDP、HTTP、HTTPS、TERMINATED_HTTPS、QUIC、
|
112
|
+
:param protocol: 监听器的监听协议。 [取值:TCP、UDP、HTTP、HTTPS、TERMINATED_HTTPS、QUIC、TLS。 使用说明: - 共享型LB上的HTTPS监听器只支持设置为TERMINATED_HTTPS。 传入HTTPS将会自动转为TERMINATED_HTTPS。 - 独享型LB上的HTTPS监听器只支持设置为HTTPS,传入TERMINATED_HTTPS将会自动转为HTTPS。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [取值:TCP、UDP、IP、HTTP、HTTPS。IP为网关型LB上的监听器独有的协议。](tag:hws_eu,hcso_dt) [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test)
|
113
113
|
:type protocol: str
|
114
114
|
:param protocol_port: 监听器的监听端口。QUIC监听器端口不能是4789,且不能和UDP监听器端口重复。传0时表示开启监听端口范围的能力,此时port_ranges为必填字段。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test)
|
115
115
|
:type protocol_port: int
|
@@ -119,13 +119,13 @@ class CreateListenerOption:
|
|
119
119
|
:type sni_match_algo: str
|
120
120
|
:param tags: 标签列表
|
121
121
|
:type tags: list[:class:`huaweicloudsdkelb.v3.Tag`]
|
122
|
-
:param tls_ciphers_policy: 监听器使用的安全策略。 [取值:tls-1-0-inherit
|
122
|
+
:param tls_ciphers_policy: 监听器使用的安全策略。 [取值:tls-1-0-inherit、tls-1-0、tls-1-1、 tls-1-2、tls-1-2-strict、tls-1-2-fs、tls-1-0-with-1-3、 tls-1-2-fs-with-1-3、 hybrid-policy-1-0、tls-1-2-strict-no-cbc,默认:tls-1-0。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [取值:tls-1-0、tls-1-1、tls-1-2、 tls-1-2-strict,默认:tls-1-0。](tag:hws_eu,g42,hk_g42,hcso_dt) [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,g42,hk_g42,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) [不支持QUIC。](tag:tm,dt,dt_test)
|
123
123
|
:type tls_ciphers_policy: str
|
124
124
|
:param security_policy_id: 自定义安全策略的ID。 [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件 (即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,g42,hk_g42,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) [不支持QUIC。](tag:tm,dt,dt_test)
|
125
125
|
:type security_policy_id: str
|
126
|
-
:param enable_member_retry: 是否开启后端服务器的重试。 取值:true 开启重试,false 不开启重试。默认:true。 [使用说明: - 若关联是共享型LB,仅在protocol为HTTP、TERMINATED_HTTPS时才能传入该字段。 - 若关联是独享型LB,仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [使用说明: - 仅在protocol为HTTP、HTTPS时才能传入该字段。](tag:hws_eu,hcso_dt) [不支持QUIC。](tag:tm,dt,dt_test)
|
126
|
+
:param enable_member_retry: 是否开启后端服务器的重试。 取值:true 开启重试,false 不开启重试。默认:true。 [使用说明: - 若关联是共享型LB,仅在protocol为HTTP、TERMINATED_HTTPS时才能传入该字段。 - 若关联是独享型LB,仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [使用说明: - 仅在protocol为HTTP、HTTPS时才能传入该字段。](tag:hws_eu,hcso_dt) [不支持QUIC。](tag:tm,dt,dt_test)
|
127
127
|
:type enable_member_retry: bool
|
128
|
-
:param keepalive_timeout: 客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求, 负载均衡会暂时中断当前连接,直到下一次请求时重新建立新的连接。 取值: -
|
128
|
+
:param keepalive_timeout: 客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求, 负载均衡会暂时中断当前连接,直到下一次请求时重新建立新的连接。 取值: - TCP监听器[和IP监听器](tag:hws_eu):10-4000s,默认值为300s。 - 若为HTTP/HTTPS/TERMINATED_HTTPS监听器,取值范围为(0-4000s)默认值为60s。 共享型实例的UDP监听器不支持此字段。
|
129
129
|
:type keepalive_timeout: int
|
130
130
|
:param client_timeout: 等待客户端请求超时时间,包括两种情况: - 读取整个客户端请求头的超时时长:如果客户端未在超时时长内发送完整个请求头,则请求将被中断 - 两个连续body体的数据包到达LB的时间间隔,超出client_timeout将会断开连接。 取值范围为1-300s,默认值为60s。 使用说明:仅协议为HTTP/HTTPS的监听器支持该字段。
|
131
131
|
:type client_timeout: int
|
@@ -133,11 +133,11 @@ class CreateListenerOption:
|
|
133
133
|
:type member_timeout: int
|
134
134
|
:param ipgroup:
|
135
135
|
:type ipgroup: :class:`huaweicloudsdkelb.v3.CreateListenerIpGroupOption`
|
136
|
-
:param transparent_client_ip_enable: 是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。 [仅作用于共享型LB的TCP/UDP监听器。 取值: - 共享型LB的TCP/UDP监听器可设置为true或false,不传默认为false。 - 共享型LB的HTTP/HTTPS监听器只支持设置为true,不传默认为true。 - 独享型负载均衡器所有协议的监听器只支持设置为true,不传默认为true。 使用说明: - 开启特性后,ELB和后端服务器之间直接使用真实的IP访问,需要确保已正确设置服务器的安全组以及访问控制策略。 - 开启特性后,不支持同一台服务器既作为后端服务器又作为客户端的场景。 - 开启特性后,不支持变更后端服务器规格。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [只设支持置为true,不传默认为true。](tag:hws_eu,hcso_dt)
|
136
|
+
:param transparent_client_ip_enable: 是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。 [仅作用于共享型LB的TCP/UDP监听器。 取值: - 共享型LB的TCP/UDP监听器可设置为true或false,不传默认为false。 - 共享型LB的HTTP/HTTPS监听器只支持设置为true,不传默认为true。 - 独享型负载均衡器所有协议的监听器只支持设置为true,不传默认为true。 使用说明: - 开启特性后,ELB和后端服务器之间直接使用真实的IP访问,需要确保已正确设置服务器的安全组以及访问控制策略。 - 开启特性后,不支持同一台服务器既作为后端服务器又作为客户端的场景。 - 开启特性后,不支持变更后端服务器规格。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [只设支持置为true,不传默认为true。](tag:hws_eu,hcso_dt)
|
137
137
|
:type transparent_client_ip_enable: bool
|
138
|
-
:param proxy_protocol_enable: 是否开启proxy_protocol。仅
|
138
|
+
:param proxy_protocol_enable: 是否开启proxy_protocol。仅TLS监听器可指定,其他协议的监听器该字段不生效,proxy_protocol不开启。
|
139
139
|
:type proxy_protocol_enable: bool
|
140
|
-
:param enhance_l7policy_enable: 是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 取值:true开启,false不开启,默认false。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 [荷兰region不支持该字段,请勿使用。](tag:dt) > 开启后不支持关闭
|
140
|
+
:param enhance_l7policy_enable: 是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 取值:true开启,false不开启,默认false。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) > 开启后不支持关闭
|
141
141
|
:type enhance_l7policy_enable: bool
|
142
142
|
:param quic_config:
|
143
143
|
:type quic_config: :class:`huaweicloudsdkelb.v3.CreateListenerQuicConfigOption`
|
@@ -145,9 +145,9 @@ class CreateListenerOption:
|
|
145
145
|
:type protection_status: str
|
146
146
|
:param protection_reason: 设置保护的原因 >仅当protection_status为consoleProtection时有效。
|
147
147
|
:type protection_reason: str
|
148
|
-
:param gzip_enable: ELB是否开启gzip压缩,缺省值:false,非必选 [仅HTTP/HTTPS类型监听器支持配置。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) [仅HTTP/HTTPS/QUIC类型监听器支持配置。](tag:hws,hws_hk,hws_test,hcs,hcs_sm,hcso,fcs,fcs_vm,mix,ocb,ctc,cmcc,sbc,hws_ocb,hk_sbc)
|
148
|
+
:param gzip_enable: ELB是否开启gzip压缩,缺省值:false,非必选 [仅HTTP/HTTPS类型监听器支持配置。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) [仅HTTP/HTTPS/QUIC类型监听器支持配置。](tag:hws,hws_hk,hws_test,hcs,hcs_sm,hcso,hk_vdf,fcs,fcs_vm,mix,ocb,ctc,cmcc,sbc,hws_ocb,hk_sbc)
|
149
149
|
:type gzip_enable: bool
|
150
|
-
:param port_ranges: 端口监听范围(闭区间),最多指定10个端口组,每个组范围不可有重叠部分 >仅当protocol_port为0或未传入protoco_port时可以传入该字段。仅TCP, UDP,
|
150
|
+
:param port_ranges: 端口监听范围(闭区间),最多指定10个端口组,每个组范围不可有重叠部分 >仅当protocol_port为0或未传入protoco_port时可以传入该字段。仅TCP, UDP,TLS监听支持该字段
|
151
151
|
:type port_ranges: list[:class:`huaweicloudsdkelb.v3.PortRange`]
|
152
152
|
:param ssl_early_data_enable: 监听器0-RTT能力开关,缺省值:false,非必选 仅HTTPS类型监听器支持配置,需要依赖TLSv1.3安全策略协议。开启 ssl_early_data 后,有重放攻击的风险,请谨慎开启。
|
153
153
|
:type ssl_early_data_enable: bool
|
@@ -253,7 +253,7 @@ class CreateListenerOption:
|
|
253
253
|
def admin_state_up(self):
|
254
254
|
"""Gets the admin_state_up of this CreateListenerOption.
|
255
255
|
|
256
|
-
|
256
|
+
监听器的管理状态。只支持设置为true。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
|
257
257
|
|
258
258
|
:return: The admin_state_up of this CreateListenerOption.
|
259
259
|
:rtype: bool
|
@@ -264,7 +264,7 @@ class CreateListenerOption:
|
|
264
264
|
def admin_state_up(self, admin_state_up):
|
265
265
|
"""Sets the admin_state_up of this CreateListenerOption.
|
266
266
|
|
267
|
-
|
267
|
+
监听器的管理状态。只支持设置为true。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
|
268
268
|
|
269
269
|
:param admin_state_up: The admin_state_up of this CreateListenerOption.
|
270
270
|
:type admin_state_up: bool
|
@@ -319,7 +319,7 @@ class CreateListenerOption:
|
|
319
319
|
def default_tls_container_ref(self):
|
320
320
|
"""Gets the default_tls_container_ref of this CreateListenerOption.
|
321
321
|
|
322
|
-
监听器使用的服务器证书ID。 使用说明:当监听器协议为HTTPS时,该字段必传,且对应的证书的type必须是server类型。
|
322
|
+
监听器使用的服务器证书ID。 使用说明:当监听器协议为HTTPS、TLS或QUIC时,该字段必传,且对应的证书的type必须是server类型。
|
323
323
|
|
324
324
|
:return: The default_tls_container_ref of this CreateListenerOption.
|
325
325
|
:rtype: str
|
@@ -330,7 +330,7 @@ class CreateListenerOption:
|
|
330
330
|
def default_tls_container_ref(self, default_tls_container_ref):
|
331
331
|
"""Sets the default_tls_container_ref of this CreateListenerOption.
|
332
332
|
|
333
|
-
监听器使用的服务器证书ID。 使用说明:当监听器协议为HTTPS时,该字段必传,且对应的证书的type必须是server类型。
|
333
|
+
监听器使用的服务器证书ID。 使用说明:当监听器协议为HTTPS、TLS或QUIC时,该字段必传,且对应的证书的type必须是server类型。
|
334
334
|
|
335
335
|
:param default_tls_container_ref: The default_tls_container_ref of this CreateListenerOption.
|
336
336
|
:type default_tls_container_ref: str
|
@@ -469,7 +469,7 @@ class CreateListenerOption:
|
|
469
469
|
def protocol(self):
|
470
470
|
"""Gets the protocol of this CreateListenerOption.
|
471
471
|
|
472
|
-
监听器的监听协议。 [取值:TCP、UDP、HTTP、HTTPS、TERMINATED_HTTPS、QUIC、
|
472
|
+
监听器的监听协议。 [取值:TCP、UDP、HTTP、HTTPS、TERMINATED_HTTPS、QUIC、TLS。 使用说明: - 共享型LB上的HTTPS监听器只支持设置为TERMINATED_HTTPS。 传入HTTPS将会自动转为TERMINATED_HTTPS。 - 独享型LB上的HTTPS监听器只支持设置为HTTPS,传入TERMINATED_HTTPS将会自动转为HTTPS。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [取值:TCP、UDP、IP、HTTP、HTTPS。IP为网关型LB上的监听器独有的协议。](tag:hws_eu,hcso_dt) [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test)
|
473
473
|
|
474
474
|
:return: The protocol of this CreateListenerOption.
|
475
475
|
:rtype: str
|
@@ -480,7 +480,7 @@ class CreateListenerOption:
|
|
480
480
|
def protocol(self, protocol):
|
481
481
|
"""Sets the protocol of this CreateListenerOption.
|
482
482
|
|
483
|
-
监听器的监听协议。 [取值:TCP、UDP、HTTP、HTTPS、TERMINATED_HTTPS、QUIC、
|
483
|
+
监听器的监听协议。 [取值:TCP、UDP、HTTP、HTTPS、TERMINATED_HTTPS、QUIC、TLS。 使用说明: - 共享型LB上的HTTPS监听器只支持设置为TERMINATED_HTTPS。 传入HTTPS将会自动转为TERMINATED_HTTPS。 - 独享型LB上的HTTPS监听器只支持设置为HTTPS,传入TERMINATED_HTTPS将会自动转为HTTPS。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [取值:TCP、UDP、IP、HTTP、HTTPS。IP为网关型LB上的监听器独有的协议。](tag:hws_eu,hcso_dt) [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test)
|
484
484
|
|
485
485
|
:param protocol: The protocol of this CreateListenerOption.
|
486
486
|
:type protocol: str
|
@@ -579,7 +579,7 @@ class CreateListenerOption:
|
|
579
579
|
def tls_ciphers_policy(self):
|
580
580
|
"""Gets the tls_ciphers_policy of this CreateListenerOption.
|
581
581
|
|
582
|
-
监听器使用的安全策略。 [取值:tls-1-0-inherit
|
582
|
+
监听器使用的安全策略。 [取值:tls-1-0-inherit、tls-1-0、tls-1-1、 tls-1-2、tls-1-2-strict、tls-1-2-fs、tls-1-0-with-1-3、 tls-1-2-fs-with-1-3、 hybrid-policy-1-0、tls-1-2-strict-no-cbc,默认:tls-1-0。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [取值:tls-1-0、tls-1-1、tls-1-2、 tls-1-2-strict,默认:tls-1-0。](tag:hws_eu,g42,hk_g42,hcso_dt) [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,g42,hk_g42,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) [不支持QUIC。](tag:tm,dt,dt_test)
|
583
583
|
|
584
584
|
:return: The tls_ciphers_policy of this CreateListenerOption.
|
585
585
|
:rtype: str
|
@@ -590,7 +590,7 @@ class CreateListenerOption:
|
|
590
590
|
def tls_ciphers_policy(self, tls_ciphers_policy):
|
591
591
|
"""Sets the tls_ciphers_policy of this CreateListenerOption.
|
592
592
|
|
593
|
-
监听器使用的安全策略。 [取值:tls-1-0-inherit
|
593
|
+
监听器使用的安全策略。 [取值:tls-1-0-inherit、tls-1-0、tls-1-1、 tls-1-2、tls-1-2-strict、tls-1-2-fs、tls-1-0-with-1-3、 tls-1-2-fs-with-1-3、 hybrid-policy-1-0、tls-1-2-strict-no-cbc,默认:tls-1-0。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [取值:tls-1-0、tls-1-1、tls-1-2、 tls-1-2-strict,默认:tls-1-0。](tag:hws_eu,g42,hk_g42,hcso_dt) [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,g42,hk_g42,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) [不支持QUIC。](tag:tm,dt,dt_test)
|
594
594
|
|
595
595
|
:param tls_ciphers_policy: The tls_ciphers_policy of this CreateListenerOption.
|
596
596
|
:type tls_ciphers_policy: str
|
@@ -623,7 +623,7 @@ class CreateListenerOption:
|
|
623
623
|
def enable_member_retry(self):
|
624
624
|
"""Gets the enable_member_retry of this CreateListenerOption.
|
625
625
|
|
626
|
-
是否开启后端服务器的重试。 取值:true 开启重试,false 不开启重试。默认:true。 [使用说明: - 若关联是共享型LB,仅在protocol为HTTP、TERMINATED_HTTPS时才能传入该字段。 - 若关联是独享型LB,仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [使用说明: - 仅在protocol为HTTP、HTTPS时才能传入该字段。](tag:hws_eu,hcso_dt) [不支持QUIC。](tag:tm,dt,dt_test)
|
626
|
+
是否开启后端服务器的重试。 取值:true 开启重试,false 不开启重试。默认:true。 [使用说明: - 若关联是共享型LB,仅在protocol为HTTP、TERMINATED_HTTPS时才能传入该字段。 - 若关联是独享型LB,仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [使用说明: - 仅在protocol为HTTP、HTTPS时才能传入该字段。](tag:hws_eu,hcso_dt) [不支持QUIC。](tag:tm,dt,dt_test)
|
627
627
|
|
628
628
|
:return: The enable_member_retry of this CreateListenerOption.
|
629
629
|
:rtype: bool
|
@@ -634,7 +634,7 @@ class CreateListenerOption:
|
|
634
634
|
def enable_member_retry(self, enable_member_retry):
|
635
635
|
"""Sets the enable_member_retry of this CreateListenerOption.
|
636
636
|
|
637
|
-
是否开启后端服务器的重试。 取值:true 开启重试,false 不开启重试。默认:true。 [使用说明: - 若关联是共享型LB,仅在protocol为HTTP、TERMINATED_HTTPS时才能传入该字段。 - 若关联是独享型LB,仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [使用说明: - 仅在protocol为HTTP、HTTPS时才能传入该字段。](tag:hws_eu,hcso_dt) [不支持QUIC。](tag:tm,dt,dt_test)
|
637
|
+
是否开启后端服务器的重试。 取值:true 开启重试,false 不开启重试。默认:true。 [使用说明: - 若关联是共享型LB,仅在protocol为HTTP、TERMINATED_HTTPS时才能传入该字段。 - 若关联是独享型LB,仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [使用说明: - 仅在protocol为HTTP、HTTPS时才能传入该字段。](tag:hws_eu,hcso_dt) [不支持QUIC。](tag:tm,dt,dt_test)
|
638
638
|
|
639
639
|
:param enable_member_retry: The enable_member_retry of this CreateListenerOption.
|
640
640
|
:type enable_member_retry: bool
|
@@ -645,7 +645,7 @@ class CreateListenerOption:
|
|
645
645
|
def keepalive_timeout(self):
|
646
646
|
"""Gets the keepalive_timeout of this CreateListenerOption.
|
647
647
|
|
648
|
-
客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求, 负载均衡会暂时中断当前连接,直到下一次请求时重新建立新的连接。 取值: -
|
648
|
+
客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求, 负载均衡会暂时中断当前连接,直到下一次请求时重新建立新的连接。 取值: - TCP监听器[和IP监听器](tag:hws_eu):10-4000s,默认值为300s。 - 若为HTTP/HTTPS/TERMINATED_HTTPS监听器,取值范围为(0-4000s)默认值为60s。 共享型实例的UDP监听器不支持此字段。
|
649
649
|
|
650
650
|
:return: The keepalive_timeout of this CreateListenerOption.
|
651
651
|
:rtype: int
|
@@ -656,7 +656,7 @@ class CreateListenerOption:
|
|
656
656
|
def keepalive_timeout(self, keepalive_timeout):
|
657
657
|
"""Sets the keepalive_timeout of this CreateListenerOption.
|
658
658
|
|
659
|
-
客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求, 负载均衡会暂时中断当前连接,直到下一次请求时重新建立新的连接。 取值: -
|
659
|
+
客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求, 负载均衡会暂时中断当前连接,直到下一次请求时重新建立新的连接。 取值: - TCP监听器[和IP监听器](tag:hws_eu):10-4000s,默认值为300s。 - 若为HTTP/HTTPS/TERMINATED_HTTPS监听器,取值范围为(0-4000s)默认值为60s。 共享型实例的UDP监听器不支持此字段。
|
660
660
|
|
661
661
|
:param keepalive_timeout: The keepalive_timeout of this CreateListenerOption.
|
662
662
|
:type keepalive_timeout: int
|
@@ -729,7 +729,7 @@ class CreateListenerOption:
|
|
729
729
|
def transparent_client_ip_enable(self):
|
730
730
|
"""Gets the transparent_client_ip_enable of this CreateListenerOption.
|
731
731
|
|
732
|
-
是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。 [仅作用于共享型LB的TCP/UDP监听器。 取值: - 共享型LB的TCP/UDP监听器可设置为true或false,不传默认为false。 - 共享型LB的HTTP/HTTPS监听器只支持设置为true,不传默认为true。 - 独享型负载均衡器所有协议的监听器只支持设置为true,不传默认为true。 使用说明: - 开启特性后,ELB和后端服务器之间直接使用真实的IP访问,需要确保已正确设置服务器的安全组以及访问控制策略。 - 开启特性后,不支持同一台服务器既作为后端服务器又作为客户端的场景。 - 开启特性后,不支持变更后端服务器规格。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [只设支持置为true,不传默认为true。](tag:hws_eu,hcso_dt)
|
732
|
+
是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。 [仅作用于共享型LB的TCP/UDP监听器。 取值: - 共享型LB的TCP/UDP监听器可设置为true或false,不传默认为false。 - 共享型LB的HTTP/HTTPS监听器只支持设置为true,不传默认为true。 - 独享型负载均衡器所有协议的监听器只支持设置为true,不传默认为true。 使用说明: - 开启特性后,ELB和后端服务器之间直接使用真实的IP访问,需要确保已正确设置服务器的安全组以及访问控制策略。 - 开启特性后,不支持同一台服务器既作为后端服务器又作为客户端的场景。 - 开启特性后,不支持变更后端服务器规格。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [只设支持置为true,不传默认为true。](tag:hws_eu,hcso_dt)
|
733
733
|
|
734
734
|
:return: The transparent_client_ip_enable of this CreateListenerOption.
|
735
735
|
:rtype: bool
|
@@ -740,7 +740,7 @@ class CreateListenerOption:
|
|
740
740
|
def transparent_client_ip_enable(self, transparent_client_ip_enable):
|
741
741
|
"""Sets the transparent_client_ip_enable of this CreateListenerOption.
|
742
742
|
|
743
|
-
是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。 [仅作用于共享型LB的TCP/UDP监听器。 取值: - 共享型LB的TCP/UDP监听器可设置为true或false,不传默认为false。 - 共享型LB的HTTP/HTTPS监听器只支持设置为true,不传默认为true。 - 独享型负载均衡器所有协议的监听器只支持设置为true,不传默认为true。 使用说明: - 开启特性后,ELB和后端服务器之间直接使用真实的IP访问,需要确保已正确设置服务器的安全组以及访问控制策略。 - 开启特性后,不支持同一台服务器既作为后端服务器又作为客户端的场景。 - 开启特性后,不支持变更后端服务器规格。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [只设支持置为true,不传默认为true。](tag:hws_eu,hcso_dt)
|
743
|
+
是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。 [仅作用于共享型LB的TCP/UDP监听器。 取值: - 共享型LB的TCP/UDP监听器可设置为true或false,不传默认为false。 - 共享型LB的HTTP/HTTPS监听器只支持设置为true,不传默认为true。 - 独享型负载均衡器所有协议的监听器只支持设置为true,不传默认为true。 使用说明: - 开启特性后,ELB和后端服务器之间直接使用真实的IP访问,需要确保已正确设置服务器的安全组以及访问控制策略。 - 开启特性后,不支持同一台服务器既作为后端服务器又作为客户端的场景。 - 开启特性后,不支持变更后端服务器规格。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [只设支持置为true,不传默认为true。](tag:hws_eu,hcso_dt)
|
744
744
|
|
745
745
|
:param transparent_client_ip_enable: The transparent_client_ip_enable of this CreateListenerOption.
|
746
746
|
:type transparent_client_ip_enable: bool
|
@@ -751,7 +751,7 @@ class CreateListenerOption:
|
|
751
751
|
def proxy_protocol_enable(self):
|
752
752
|
"""Gets the proxy_protocol_enable of this CreateListenerOption.
|
753
753
|
|
754
|
-
是否开启proxy_protocol。仅
|
754
|
+
是否开启proxy_protocol。仅TLS监听器可指定,其他协议的监听器该字段不生效,proxy_protocol不开启。
|
755
755
|
|
756
756
|
:return: The proxy_protocol_enable of this CreateListenerOption.
|
757
757
|
:rtype: bool
|
@@ -762,7 +762,7 @@ class CreateListenerOption:
|
|
762
762
|
def proxy_protocol_enable(self, proxy_protocol_enable):
|
763
763
|
"""Sets the proxy_protocol_enable of this CreateListenerOption.
|
764
764
|
|
765
|
-
是否开启proxy_protocol。仅
|
765
|
+
是否开启proxy_protocol。仅TLS监听器可指定,其他协议的监听器该字段不生效,proxy_protocol不开启。
|
766
766
|
|
767
767
|
:param proxy_protocol_enable: The proxy_protocol_enable of this CreateListenerOption.
|
768
768
|
:type proxy_protocol_enable: bool
|
@@ -773,7 +773,7 @@ class CreateListenerOption:
|
|
773
773
|
def enhance_l7policy_enable(self):
|
774
774
|
"""Gets the enhance_l7policy_enable of this CreateListenerOption.
|
775
775
|
|
776
|
-
是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 取值:true开启,false不开启,默认false。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 [荷兰region不支持该字段,请勿使用。](tag:dt) > 开启后不支持关闭
|
776
|
+
是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 取值:true开启,false不开启,默认false。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) > 开启后不支持关闭
|
777
777
|
|
778
778
|
:return: The enhance_l7policy_enable of this CreateListenerOption.
|
779
779
|
:rtype: bool
|
@@ -784,7 +784,7 @@ class CreateListenerOption:
|
|
784
784
|
def enhance_l7policy_enable(self, enhance_l7policy_enable):
|
785
785
|
"""Sets the enhance_l7policy_enable of this CreateListenerOption.
|
786
786
|
|
787
|
-
是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 取值:true开启,false不开启,默认false。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 [荷兰region不支持该字段,请勿使用。](tag:dt) > 开启后不支持关闭
|
787
|
+
是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 取值:true开启,false不开启,默认false。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) > 开启后不支持关闭
|
788
788
|
|
789
789
|
:param enhance_l7policy_enable: The enhance_l7policy_enable of this CreateListenerOption.
|
790
790
|
:type enhance_l7policy_enable: bool
|
@@ -857,7 +857,7 @@ class CreateListenerOption:
|
|
857
857
|
def gzip_enable(self):
|
858
858
|
"""Gets the gzip_enable of this CreateListenerOption.
|
859
859
|
|
860
|
-
ELB是否开启gzip压缩,缺省值:false,非必选 [仅HTTP/HTTPS类型监听器支持配置。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) [仅HTTP/HTTPS/QUIC类型监听器支持配置。](tag:hws,hws_hk,hws_test,hcs,hcs_sm,hcso,fcs,fcs_vm,mix,ocb,ctc,cmcc,sbc,hws_ocb,hk_sbc)
|
860
|
+
ELB是否开启gzip压缩,缺省值:false,非必选 [仅HTTP/HTTPS类型监听器支持配置。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) [仅HTTP/HTTPS/QUIC类型监听器支持配置。](tag:hws,hws_hk,hws_test,hcs,hcs_sm,hcso,hk_vdf,fcs,fcs_vm,mix,ocb,ctc,cmcc,sbc,hws_ocb,hk_sbc)
|
861
861
|
|
862
862
|
:return: The gzip_enable of this CreateListenerOption.
|
863
863
|
:rtype: bool
|
@@ -868,7 +868,7 @@ class CreateListenerOption:
|
|
868
868
|
def gzip_enable(self, gzip_enable):
|
869
869
|
"""Sets the gzip_enable of this CreateListenerOption.
|
870
870
|
|
871
|
-
ELB是否开启gzip压缩,缺省值:false,非必选 [仅HTTP/HTTPS类型监听器支持配置。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) [仅HTTP/HTTPS/QUIC类型监听器支持配置。](tag:hws,hws_hk,hws_test,hcs,hcs_sm,hcso,fcs,fcs_vm,mix,ocb,ctc,cmcc,sbc,hws_ocb,hk_sbc)
|
871
|
+
ELB是否开启gzip压缩,缺省值:false,非必选 [仅HTTP/HTTPS类型监听器支持配置。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) [仅HTTP/HTTPS/QUIC类型监听器支持配置。](tag:hws,hws_hk,hws_test,hcs,hcs_sm,hcso,hk_vdf,fcs,fcs_vm,mix,ocb,ctc,cmcc,sbc,hws_ocb,hk_sbc)
|
872
872
|
|
873
873
|
:param gzip_enable: The gzip_enable of this CreateListenerOption.
|
874
874
|
:type gzip_enable: bool
|
@@ -879,7 +879,7 @@ class CreateListenerOption:
|
|
879
879
|
def port_ranges(self):
|
880
880
|
"""Gets the port_ranges of this CreateListenerOption.
|
881
881
|
|
882
|
-
端口监听范围(闭区间),最多指定10个端口组,每个组范围不可有重叠部分 >仅当protocol_port为0或未传入protoco_port时可以传入该字段。仅TCP, UDP,
|
882
|
+
端口监听范围(闭区间),最多指定10个端口组,每个组范围不可有重叠部分 >仅当protocol_port为0或未传入protoco_port时可以传入该字段。仅TCP, UDP,TLS监听支持该字段
|
883
883
|
|
884
884
|
:return: The port_ranges of this CreateListenerOption.
|
885
885
|
:rtype: list[:class:`huaweicloudsdkelb.v3.PortRange`]
|
@@ -890,7 +890,7 @@ class CreateListenerOption:
|
|
890
890
|
def port_ranges(self, port_ranges):
|
891
891
|
"""Sets the port_ranges of this CreateListenerOption.
|
892
892
|
|
893
|
-
端口监听范围(闭区间),最多指定10个端口组,每个组范围不可有重叠部分 >仅当protocol_port为0或未传入protoco_port时可以传入该字段。仅TCP, UDP,
|
893
|
+
端口监听范围(闭区间),最多指定10个端口组,每个组范围不可有重叠部分 >仅当protocol_port为0或未传入protoco_port时可以传入该字段。仅TCP, UDP,TLS监听支持该字段
|
894
894
|
|
895
895
|
:param port_ranges: The port_ranges of this CreateListenerOption.
|
896
896
|
:type port_ranges: list[:class:`huaweicloudsdkelb.v3.PortRange`]
|
@@ -39,17 +39,17 @@ class CreateLoadBalancerBandwidthOption:
|
|
39
39
|
|
40
40
|
The model defined in huaweicloud sdk
|
41
41
|
|
42
|
-
:param name:
|
42
|
+
:param name: 参数解释:带宽名称。 约束限制: - 如果share_type是PER,该字段是必选。 - 如果bandwidth对象的id有值,该字段被忽略。 取值范围:1-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
|
43
43
|
:type name: str
|
44
|
-
:param size:
|
44
|
+
:param size: 参数解释:带宽大小 约束限制:当id字段为null时,size是必须的。 注意,调整带宽时的最小单位会根据带宽范围不同存在差异。 - 小于等于300Mbit/s: 默认最小单位为1Mbit/s。 - 300Mbit/s~1000Mbit/s: 默认最小单位为50Mbit/s。 - 大于1000Mbit/s: 默认最小单位为500Mbit/s。 取值范围:默认1Mbit/s~2000Mbit/s(具体范围以各区域配置为准,请参见控制台对应页面显示)。
|
45
45
|
:type size: int
|
46
|
-
:param charge_mode:
|
46
|
+
:param charge_mode: 参数解释:计费模式。bandwidth 按带宽计费;traffic 按流量计费。 约束限制:当id字段为null时,charge_mode是必须的。 [当前仅支持traffic按流量计费。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt) 取值范围: - bandwidth:按带宽计费。 - traffic: 按流量计费。
|
47
47
|
:type charge_mode: str
|
48
|
-
:param share_type:
|
48
|
+
:param share_type: 参数解释:带宽类型。 取值范围: - PER:独享带宽。 - WHOLE:共享带宽。
|
49
49
|
:type share_type: str
|
50
|
-
:param billing_info:
|
50
|
+
:param billing_info: 参数解释:资源计费信息。 约束限制: [如果billing_info不为空,说明是包周期计费的带宽,否则为按需计费的带宽。](tag:hws,hws_hk,tlf,ctc,hcso,sbc,cmcc) [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hk_vdf,fcs)
|
51
51
|
:type billing_info: str
|
52
|
-
:param id:
|
52
|
+
:param id: 参数解释:共享带宽ID。使用已存在的共享带宽。 约束限制:必须是已存在共享带宽ID。在预付费的情况下,不填该字段。该字段取空字符串时,会被忽略。
|
53
53
|
:type id: str
|
54
54
|
"""
|
55
55
|
|
@@ -80,7 +80,7 @@ class CreateLoadBalancerBandwidthOption:
|
|
80
80
|
def name(self):
|
81
81
|
"""Gets the name of this CreateLoadBalancerBandwidthOption.
|
82
82
|
|
83
|
-
|
83
|
+
参数解释:带宽名称。 约束限制: - 如果share_type是PER,该字段是必选。 - 如果bandwidth对象的id有值,该字段被忽略。 取值范围:1-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
|
84
84
|
|
85
85
|
:return: The name of this CreateLoadBalancerBandwidthOption.
|
86
86
|
:rtype: str
|
@@ -91,7 +91,7 @@ class CreateLoadBalancerBandwidthOption:
|
|
91
91
|
def name(self, name):
|
92
92
|
"""Sets the name of this CreateLoadBalancerBandwidthOption.
|
93
93
|
|
94
|
-
|
94
|
+
参数解释:带宽名称。 约束限制: - 如果share_type是PER,该字段是必选。 - 如果bandwidth对象的id有值,该字段被忽略。 取值范围:1-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
|
95
95
|
|
96
96
|
:param name: The name of this CreateLoadBalancerBandwidthOption.
|
97
97
|
:type name: str
|
@@ -102,7 +102,7 @@ class CreateLoadBalancerBandwidthOption:
|
|
102
102
|
def size(self):
|
103
103
|
"""Gets the size of this CreateLoadBalancerBandwidthOption.
|
104
104
|
|
105
|
-
|
105
|
+
参数解释:带宽大小 约束限制:当id字段为null时,size是必须的。 注意,调整带宽时的最小单位会根据带宽范围不同存在差异。 - 小于等于300Mbit/s: 默认最小单位为1Mbit/s。 - 300Mbit/s~1000Mbit/s: 默认最小单位为50Mbit/s。 - 大于1000Mbit/s: 默认最小单位为500Mbit/s。 取值范围:默认1Mbit/s~2000Mbit/s(具体范围以各区域配置为准,请参见控制台对应页面显示)。
|
106
106
|
|
107
107
|
:return: The size of this CreateLoadBalancerBandwidthOption.
|
108
108
|
:rtype: int
|
@@ -113,7 +113,7 @@ class CreateLoadBalancerBandwidthOption:
|
|
113
113
|
def size(self, size):
|
114
114
|
"""Sets the size of this CreateLoadBalancerBandwidthOption.
|
115
115
|
|
116
|
-
|
116
|
+
参数解释:带宽大小 约束限制:当id字段为null时,size是必须的。 注意,调整带宽时的最小单位会根据带宽范围不同存在差异。 - 小于等于300Mbit/s: 默认最小单位为1Mbit/s。 - 300Mbit/s~1000Mbit/s: 默认最小单位为50Mbit/s。 - 大于1000Mbit/s: 默认最小单位为500Mbit/s。 取值范围:默认1Mbit/s~2000Mbit/s(具体范围以各区域配置为准,请参见控制台对应页面显示)。
|
117
117
|
|
118
118
|
:param size: The size of this CreateLoadBalancerBandwidthOption.
|
119
119
|
:type size: int
|
@@ -124,7 +124,7 @@ class CreateLoadBalancerBandwidthOption:
|
|
124
124
|
def charge_mode(self):
|
125
125
|
"""Gets the charge_mode of this CreateLoadBalancerBandwidthOption.
|
126
126
|
|
127
|
-
|
127
|
+
参数解释:计费模式。bandwidth 按带宽计费;traffic 按流量计费。 约束限制:当id字段为null时,charge_mode是必须的。 [当前仅支持traffic按流量计费。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt) 取值范围: - bandwidth:按带宽计费。 - traffic: 按流量计费。
|
128
128
|
|
129
129
|
:return: The charge_mode of this CreateLoadBalancerBandwidthOption.
|
130
130
|
:rtype: str
|
@@ -135,7 +135,7 @@ class CreateLoadBalancerBandwidthOption:
|
|
135
135
|
def charge_mode(self, charge_mode):
|
136
136
|
"""Sets the charge_mode of this CreateLoadBalancerBandwidthOption.
|
137
137
|
|
138
|
-
|
138
|
+
参数解释:计费模式。bandwidth 按带宽计费;traffic 按流量计费。 约束限制:当id字段为null时,charge_mode是必须的。 [当前仅支持traffic按流量计费。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt) 取值范围: - bandwidth:按带宽计费。 - traffic: 按流量计费。
|
139
139
|
|
140
140
|
:param charge_mode: The charge_mode of this CreateLoadBalancerBandwidthOption.
|
141
141
|
:type charge_mode: str
|
@@ -146,7 +146,7 @@ class CreateLoadBalancerBandwidthOption:
|
|
146
146
|
def share_type(self):
|
147
147
|
"""Gets the share_type of this CreateLoadBalancerBandwidthOption.
|
148
148
|
|
149
|
-
|
149
|
+
参数解释:带宽类型。 取值范围: - PER:独享带宽。 - WHOLE:共享带宽。
|
150
150
|
|
151
151
|
:return: The share_type of this CreateLoadBalancerBandwidthOption.
|
152
152
|
:rtype: str
|
@@ -157,7 +157,7 @@ class CreateLoadBalancerBandwidthOption:
|
|
157
157
|
def share_type(self, share_type):
|
158
158
|
"""Sets the share_type of this CreateLoadBalancerBandwidthOption.
|
159
159
|
|
160
|
-
|
160
|
+
参数解释:带宽类型。 取值范围: - PER:独享带宽。 - WHOLE:共享带宽。
|
161
161
|
|
162
162
|
:param share_type: The share_type of this CreateLoadBalancerBandwidthOption.
|
163
163
|
:type share_type: str
|
@@ -168,7 +168,7 @@ class CreateLoadBalancerBandwidthOption:
|
|
168
168
|
def billing_info(self):
|
169
169
|
"""Gets the billing_info of this CreateLoadBalancerBandwidthOption.
|
170
170
|
|
171
|
-
|
171
|
+
参数解释:资源计费信息。 约束限制: [如果billing_info不为空,说明是包周期计费的带宽,否则为按需计费的带宽。](tag:hws,hws_hk,tlf,ctc,hcso,sbc,cmcc) [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hk_vdf,fcs)
|
172
172
|
|
173
173
|
:return: The billing_info of this CreateLoadBalancerBandwidthOption.
|
174
174
|
:rtype: str
|
@@ -179,7 +179,7 @@ class CreateLoadBalancerBandwidthOption:
|
|
179
179
|
def billing_info(self, billing_info):
|
180
180
|
"""Sets the billing_info of this CreateLoadBalancerBandwidthOption.
|
181
181
|
|
182
|
-
|
182
|
+
参数解释:资源计费信息。 约束限制: [如果billing_info不为空,说明是包周期计费的带宽,否则为按需计费的带宽。](tag:hws,hws_hk,tlf,ctc,hcso,sbc,cmcc) [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hk_vdf,fcs)
|
183
183
|
|
184
184
|
:param billing_info: The billing_info of this CreateLoadBalancerBandwidthOption.
|
185
185
|
:type billing_info: str
|
@@ -190,7 +190,7 @@ class CreateLoadBalancerBandwidthOption:
|
|
190
190
|
def id(self):
|
191
191
|
"""Gets the id of this CreateLoadBalancerBandwidthOption.
|
192
192
|
|
193
|
-
|
193
|
+
参数解释:共享带宽ID。使用已存在的共享带宽。 约束限制:必须是已存在共享带宽ID。在预付费的情况下,不填该字段。该字段取空字符串时,会被忽略。
|
194
194
|
|
195
195
|
:return: The id of this CreateLoadBalancerBandwidthOption.
|
196
196
|
:rtype: str
|
@@ -201,7 +201,7 @@ class CreateLoadBalancerBandwidthOption:
|
|
201
201
|
def id(self, id):
|
202
202
|
"""Sets the id of this CreateLoadBalancerBandwidthOption.
|
203
203
|
|
204
|
-
|
204
|
+
参数解释:共享带宽ID。使用已存在的共享带宽。 约束限制:必须是已存在共享带宽ID。在预付费的情况下,不填该字段。该字段取空字符串时,会被忽略。
|
205
205
|
|
206
206
|
:param id: The id of this CreateLoadBalancerBandwidthOption.
|
207
207
|
:type id: str
|