huaweicloudsdkelb 3.1.85__py2.py3-none-any.whl → 3.1.132__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/v2/elb_async_client.py +2 -0
- huaweicloudsdkelb/v2/elb_client.py +2 -0
- huaweicloudsdkelb/v2/model/list_members_request.py +32 -3
- huaweicloudsdkelb/v2/region/elb_region.py +19 -1
- huaweicloudsdkelb/v3/__init__.py +29 -0
- huaweicloudsdkelb/v3/elb_async_client.py +175 -34
- huaweicloudsdkelb/v3/elb_client.py +175 -34
- huaweicloudsdkelb/v3/model/__init__.py +29 -0
- huaweicloudsdkelb/v3/model/autoscaling_ref.py +6 -6
- huaweicloudsdkelb/v3/model/availability_zone.py +15 -15
- huaweicloudsdkelb/v3/model/bandwidth_ref.py +3 -3
- huaweicloudsdkelb/v3/model/batch_add_available_zones_request.py +3 -3
- huaweicloudsdkelb/v3/model/batch_add_available_zones_response.py +6 -6
- huaweicloudsdkelb/v3/model/batch_create_members_option.py +12 -12
- huaweicloudsdkelb/v3/model/batch_create_members_request.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_delete_members_request.py +3 -3
- huaweicloudsdkelb/v3/model/batch_member.py +85 -27
- huaweicloudsdkelb/v3/model/batch_update_member.py +85 -27
- huaweicloudsdkelb/v3/model/batch_update_members_option.py +9 -9
- huaweicloudsdkelb/v3/model/batch_update_members_request.py +3 -3
- huaweicloudsdkelb/v3/model/batch_update_policies_priority_request_body.py +3 -3
- huaweicloudsdkelb/v3/model/batch_update_priority_request_body.py +6 -6
- 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 +6 -6
- 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 +87 -12
- huaweicloudsdkelb/v3/model/create_health_monitor_option.py +18 -18
- 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 +91 -37
- huaweicloudsdkelb/v3/model/create_l7_policy_response.py +3 -3
- huaweicloudsdkelb/v3/model/create_l7_policy_rule_option.py +21 -21
- huaweicloudsdkelb/v3/model/create_l7_rule_request.py +3 -3
- huaweicloudsdkelb/v3/model/create_l7_rule_response.py +3 -3
- huaweicloudsdkelb/v3/model/create_listener_ip_group_option.py +9 -9
- huaweicloudsdkelb/v3/model/create_listener_option.py +84 -84
- huaweicloudsdkelb/v3/model/create_listener_quic_config_option.py +6 -6
- huaweicloudsdkelb/v3/model/create_listener_response.py +3 -3
- 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 +9 -9
- huaweicloudsdkelb/v3/model/create_loadbalancer_autoscaling_option.py +6 -6
- huaweicloudsdkelb/v3/model/create_master_slave_health_monitor_option.py +9 -9
- huaweicloudsdkelb/v3/model/create_master_slave_member_option.py +12 -12
- huaweicloudsdkelb/v3/model/create_master_slave_pool_option.py +33 -33
- huaweicloudsdkelb/v3/model/create_member_option.py +21 -21
- huaweicloudsdkelb/v3/model/create_member_request.py +3 -3
- huaweicloudsdkelb/v3/model/create_member_response.py +3 -3
- huaweicloudsdkelb/v3/model/create_pool_option.py +102 -48
- huaweicloudsdkelb/v3/model/create_pool_response.py +3 -3
- huaweicloudsdkelb/v3/model/create_pool_session_persistence_option.py +9 -9
- huaweicloudsdkelb/v3/model/create_pool_slow_start_option.py +6 -6
- 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 +71 -21
- 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_condition.py +6 -6
- huaweicloudsdkelb/v3/model/create_rule_option.py +24 -24
- huaweicloudsdkelb/v3/model/create_traffic_limit_config.py +173 -0
- huaweicloudsdkelb/v3/model/delete_ip_group_request.py +3 -3
- huaweicloudsdkelb/v3/model/delete_l7_policy_request.py +3 -3
- huaweicloudsdkelb/v3/model/delete_master_slave_pool_request.py +3 -3
- huaweicloudsdkelb/v3/model/delete_member_request.py +6 -6
- huaweicloudsdkelb/v3/model/delete_pool_request.py +3 -3
- huaweicloudsdkelb/v3/model/eip_info.py +9 -9
- huaweicloudsdkelb/v3/model/fixted_response_config.py +87 -12
- huaweicloudsdkelb/v3/model/flavor.py +79 -21
- huaweicloudsdkelb/v3/model/flavor_info.py +18 -18
- huaweicloudsdkelb/v3/model/global_eip_info.py +9 -9
- huaweicloudsdkelb/v3/model/health_monitor.py +18 -18
- 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 +103 -49
- huaweicloudsdkelb/v3/model/l7_rule.py +36 -36
- huaweicloudsdkelb/v3/model/list_all_members_request.py +24 -24
- huaweicloudsdkelb/v3/model/list_all_members_response.py +4 -4
- huaweicloudsdkelb/v3/model/list_availability_zones_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_availability_zones_response.py +38 -9
- 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 +15 -15
- 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 +51 -51
- huaweicloudsdkelb/v3/model/list_l7_policies_response.py +6 -6
- huaweicloudsdkelb/v3/model/list_l7_rules_request.py +6 -6
- huaweicloudsdkelb/v3/model/list_l7_rules_response.py +6 -6
- huaweicloudsdkelb/v3/model/list_listeners_request.py +42 -42
- huaweicloudsdkelb/v3/model/list_listeners_response.py +6 -6
- huaweicloudsdkelb/v3/model/list_load_balancers_request.py +36 -36
- huaweicloudsdkelb/v3/model/list_logtanks_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_master_slave_pools_request.py +39 -39
- huaweicloudsdkelb/v3/model/list_members_request.py +27 -27
- huaweicloudsdkelb/v3/model/list_pools_request.py +135 -48
- huaweicloudsdkelb/v3/model/list_security_policies_request.py +3 -3
- huaweicloudsdkelb/v3/model/listener.py +96 -96
- huaweicloudsdkelb/v3/model/listener_insert_headers.py +30 -30
- huaweicloudsdkelb/v3/model/listener_ip_group.py +9 -9
- huaweicloudsdkelb/v3/model/listener_member_info.py +3 -3
- huaweicloudsdkelb/v3/model/listener_quic_config.py +6 -6
- huaweicloudsdkelb/v3/model/listener_ref.py +3 -3
- huaweicloudsdkelb/v3/model/load_balancer.py +129 -129
- huaweicloudsdkelb/v3/model/load_balancer_ref.py +3 -3
- huaweicloudsdkelb/v3/model/load_balancer_status.py +3 -3
- huaweicloudsdkelb/v3/model/load_balancer_status_policy.py +3 -3
- huaweicloudsdkelb/v3/model/load_balancer_status_pool.py +3 -3
- huaweicloudsdkelb/v3/model/logtank.py +3 -3
- huaweicloudsdkelb/v3/model/master_slave_health_monitor.py +12 -12
- huaweicloudsdkelb/v3/model/master_slave_member.py +18 -18
- huaweicloudsdkelb/v3/model/master_slave_pool.py +42 -42
- huaweicloudsdkelb/v3/model/member.py +46 -191
- huaweicloudsdkelb/v3/model/member_info.py +656 -0
- huaweicloudsdkelb/v3/model/member_ref.py +3 -3
- huaweicloudsdkelb/v3/model/member_status.py +6 -6
- huaweicloudsdkelb/v3/model/page_info.py +9 -9
- huaweicloudsdkelb/v3/model/pool.py +146 -63
- huaweicloudsdkelb/v3/model/pool_health.py +115 -0
- huaweicloudsdkelb/v3/model/pool_ref.py +3 -3
- huaweicloudsdkelb/v3/model/prepaid_create_option.py +12 -12
- huaweicloudsdkelb/v3/model/public_ip_info.py +9 -9
- huaweicloudsdkelb/v3/model/quota.py +21 -21
- 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 +83 -27
- 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/rule_condition.py +6 -6
- huaweicloudsdkelb/v3/model/rule_ref.py +3 -3
- huaweicloudsdkelb/v3/model/session_persistence.py +9 -9
- 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/show_l7_policy_request.py +3 -3
- huaweicloudsdkelb/v3/model/show_l7_policy_response.py +3 -3
- huaweicloudsdkelb/v3/model/show_l7_rule_response.py +3 -3
- huaweicloudsdkelb/v3/model/show_listener_response.py +3 -3
- huaweicloudsdkelb/v3/model/show_load_balancer_response.py +3 -3
- huaweicloudsdkelb/v3/model/show_load_balancer_status_response.py +3 -3
- huaweicloudsdkelb/v3/model/show_master_slave_pool_request.py +3 -3
- huaweicloudsdkelb/v3/model/show_member_request.py +3 -3
- huaweicloudsdkelb/v3/model/show_pool_request.py +3 -3
- huaweicloudsdkelb/v3/model/slow_start.py +6 -6
- huaweicloudsdkelb/v3/model/tag.py +6 -6
- 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 +87 -12
- huaweicloudsdkelb/v3/model/update_health_monitor_option.py +15 -15
- 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 +76 -22
- huaweicloudsdkelb/v3/model/update_l7_policy_request.py +3 -3
- huaweicloudsdkelb/v3/model/update_l7_policy_response.py +3 -3
- huaweicloudsdkelb/v3/model/update_l7_rule_option.py +18 -18
- huaweicloudsdkelb/v3/model/update_l7_rule_response.py +3 -3
- huaweicloudsdkelb/v3/model/update_listener_ip_group_option.py +9 -9
- huaweicloudsdkelb/v3/model/update_listener_option.py +66 -66
- huaweicloudsdkelb/v3/model/update_listener_quic_config_option.py +6 -6
- huaweicloudsdkelb/v3/model/update_listener_response.py +3 -3
- huaweicloudsdkelb/v3/model/update_load_balancer_option.py +48 -48
- huaweicloudsdkelb/v3/model/update_load_balancer_response.py +9 -9
- huaweicloudsdkelb/v3/model/update_loadbalancer_autoscaling_option.py +6 -6
- huaweicloudsdkelb/v3/model/update_member_option.py +12 -12
- huaweicloudsdkelb/v3/model/update_member_request.py +3 -3
- huaweicloudsdkelb/v3/model/update_pool_option.py +52 -27
- huaweicloudsdkelb/v3/model/update_pool_request.py +3 -3
- 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 +84 -9
- huaweicloudsdkelb/v3/model/update_redirect_pools_sticky_session_config.py +144 -0
- huaweicloudsdkelb/v3/model/update_redirect_url_config.py +71 -21
- 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_rule_condition.py +6 -6
- huaweicloudsdkelb/v3/model/update_traffic_limit_config.py +173 -0
- huaweicloudsdkelb/v3/region/elb_region.py +19 -1
- {huaweicloudsdkelb-3.1.85.dist-info → huaweicloudsdkelb-3.1.132.dist-info}/METADATA +2 -2
- {huaweicloudsdkelb-3.1.85.dist-info → huaweicloudsdkelb-3.1.132.dist-info}/RECORD +213 -184
- {huaweicloudsdkelb-3.1.85.dist-info → huaweicloudsdkelb-3.1.132.dist-info}/WHEEL +1 -1
- {huaweicloudsdkelb-3.1.85.dist-info → huaweicloudsdkelb-3.1.132.dist-info}/LICENSE +0 -0
- {huaweicloudsdkelb-3.1.85.dist-info → huaweicloudsdkelb-3.1.132.dist-info}/top_level.txt +0 -0
@@ -23,7 +23,9 @@ class Flavor:
|
|
23
23
|
'shared': 'bool',
|
24
24
|
'project_id': 'str',
|
25
25
|
'type': 'str',
|
26
|
-
'flavor_sold_out': 'bool'
|
26
|
+
'flavor_sold_out': 'bool',
|
27
|
+
'public_border_group': 'str',
|
28
|
+
'category': 'int'
|
27
29
|
}
|
28
30
|
|
29
31
|
attribute_map = {
|
@@ -33,28 +35,34 @@ class Flavor:
|
|
33
35
|
'shared': 'shared',
|
34
36
|
'project_id': 'project_id',
|
35
37
|
'type': 'type',
|
36
|
-
'flavor_sold_out': 'flavor_sold_out'
|
38
|
+
'flavor_sold_out': 'flavor_sold_out',
|
39
|
+
'public_border_group': 'public_border_group',
|
40
|
+
'category': 'category'
|
37
41
|
}
|
38
42
|
|
39
|
-
def __init__(self, id=None, info=None, name=None, shared=None, project_id=None, type=None, flavor_sold_out=None):
|
43
|
+
def __init__(self, id=None, info=None, name=None, shared=None, project_id=None, type=None, flavor_sold_out=None, public_border_group=None, category=None):
|
40
44
|
"""Flavor
|
41
45
|
|
42
46
|
The model defined in huaweicloud sdk
|
43
47
|
|
44
|
-
:param id:
|
48
|
+
:param id: 参数解释:规格ID。
|
45
49
|
:type id: str
|
46
50
|
:param info:
|
47
51
|
:type info: :class:`huaweicloudsdkelb.v3.FlavorInfo`
|
48
|
-
:param name:
|
52
|
+
:param name: 参数解释:规格名称。 取值范围: 网络型有如下规格: - L4_flavor.elb.s1.small: 小型 I - L4_flavor.elb.s2.small: 小型 II - L4_flavor.elb.s1.medium: 中型 I - L4_flavor.elb.s2.medium: 中型 II - L4_flavor.elb.s1.large: 大型 I - L4_flavor.elb.s2.large: 大型 II - L4_flavor.elb.pro.max: 四层弹性规格 应用型有如下规格: - L7_flavor.elb.s1.small: 小型 I - L7_flavor.elb.s2.small: 小型 II - L7_flavor.elb.s1.medium: 中型 I - L7_flavor.elb.s2.medium: 中型 II - L7_flavor.elb.s1.large: 大型 I - L7_flavor.elb.s2.large: 大型 II - L7_flavor.elb.s1.extra-large: 超大型 I - L7_flavor.elb.s2.extra-large: 超大型 II - L7_flavor.elb.pro.max: 七层弹性规格
|
49
53
|
:type name: str
|
50
|
-
:param shared:
|
54
|
+
:param shared: 参数解释:是否公共规格。 取值范围: - true表示公共规格,所有租户可见。 - false表示私有规格,为当前租户所有。
|
51
55
|
:type shared: bool
|
52
|
-
:param project_id:
|
56
|
+
:param project_id: 参数解释:项目ID。
|
53
57
|
:type project_id: str
|
54
|
-
:param type:
|
58
|
+
:param type: 参数解释:规格类别。 取值范围: - L4和L7 表示四层网络型和七层应用型flavor。 [- gateway 表示网关型LB的flavor,目前只支持弹性计费类型。当前仅支持欧洲局点。](tag:hws_eu) - L4_elastic和L7_elastic 表示弹性扩缩容实例的下限规格。已废弃,请勿使用。 - L4_elastic_max、L7_elastic_max[和gateway_elastic_max](tag:hws_eu) 表示弹性扩缩容实例的上限规格。
|
55
59
|
:type type: str
|
56
|
-
:param flavor_sold_out: [是否售罄。](tag:hws,hk,hws_eu,otc,tlf,
|
60
|
+
:param flavor_sold_out: 参数解释:[是否售罄。](tag:hws,hk,hws_eu,otc,tlf,sbc,g42,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt) [是否无法购买该规格的LB](tag:ctc,cmcc,ocb,tm,fcs,fcs_dt,hcso,hcso_dt,hk_vdf) 取值范围: - true:[已售罄,将](tag:hws,hk,hws_eu,otc,tlf,sbc,g42,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt)无法购买该规格的LB。 - false:[未售罄,](tag:hws,hk,hws_eu,otc,tlf,sbc,g42,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt)可购买该规格的LB。
|
57
61
|
:type flavor_sold_out: bool
|
62
|
+
:param public_border_group: 参数解释:可用区组,如:center
|
63
|
+
:type public_border_group: str
|
64
|
+
:param category: 参数解释:可用区组编码。 取值范围:0表示center,21表示homezone。
|
65
|
+
:type category: int
|
58
66
|
"""
|
59
67
|
|
60
68
|
|
@@ -66,6 +74,8 @@ class Flavor:
|
|
66
74
|
self._project_id = None
|
67
75
|
self._type = None
|
68
76
|
self._flavor_sold_out = None
|
77
|
+
self._public_border_group = None
|
78
|
+
self._category = None
|
69
79
|
self.discriminator = None
|
70
80
|
|
71
81
|
self.id = id
|
@@ -75,12 +85,16 @@ class Flavor:
|
|
75
85
|
self.project_id = project_id
|
76
86
|
self.type = type
|
77
87
|
self.flavor_sold_out = flavor_sold_out
|
88
|
+
if public_border_group is not None:
|
89
|
+
self.public_border_group = public_border_group
|
90
|
+
if category is not None:
|
91
|
+
self.category = category
|
78
92
|
|
79
93
|
@property
|
80
94
|
def id(self):
|
81
95
|
"""Gets the id of this Flavor.
|
82
96
|
|
83
|
-
|
97
|
+
参数解释:规格ID。
|
84
98
|
|
85
99
|
:return: The id of this Flavor.
|
86
100
|
:rtype: str
|
@@ -91,7 +105,7 @@ class Flavor:
|
|
91
105
|
def id(self, id):
|
92
106
|
"""Sets the id of this Flavor.
|
93
107
|
|
94
|
-
|
108
|
+
参数解释:规格ID。
|
95
109
|
|
96
110
|
:param id: The id of this Flavor.
|
97
111
|
:type id: str
|
@@ -120,7 +134,7 @@ class Flavor:
|
|
120
134
|
def name(self):
|
121
135
|
"""Gets the name of this Flavor.
|
122
136
|
|
123
|
-
|
137
|
+
参数解释:规格名称。 取值范围: 网络型有如下规格: - L4_flavor.elb.s1.small: 小型 I - L4_flavor.elb.s2.small: 小型 II - L4_flavor.elb.s1.medium: 中型 I - L4_flavor.elb.s2.medium: 中型 II - L4_flavor.elb.s1.large: 大型 I - L4_flavor.elb.s2.large: 大型 II - L4_flavor.elb.pro.max: 四层弹性规格 应用型有如下规格: - L7_flavor.elb.s1.small: 小型 I - L7_flavor.elb.s2.small: 小型 II - L7_flavor.elb.s1.medium: 中型 I - L7_flavor.elb.s2.medium: 中型 II - L7_flavor.elb.s1.large: 大型 I - L7_flavor.elb.s2.large: 大型 II - L7_flavor.elb.s1.extra-large: 超大型 I - L7_flavor.elb.s2.extra-large: 超大型 II - L7_flavor.elb.pro.max: 七层弹性规格
|
124
138
|
|
125
139
|
:return: The name of this Flavor.
|
126
140
|
:rtype: str
|
@@ -131,7 +145,7 @@ class Flavor:
|
|
131
145
|
def name(self, name):
|
132
146
|
"""Sets the name of this Flavor.
|
133
147
|
|
134
|
-
|
148
|
+
参数解释:规格名称。 取值范围: 网络型有如下规格: - L4_flavor.elb.s1.small: 小型 I - L4_flavor.elb.s2.small: 小型 II - L4_flavor.elb.s1.medium: 中型 I - L4_flavor.elb.s2.medium: 中型 II - L4_flavor.elb.s1.large: 大型 I - L4_flavor.elb.s2.large: 大型 II - L4_flavor.elb.pro.max: 四层弹性规格 应用型有如下规格: - L7_flavor.elb.s1.small: 小型 I - L7_flavor.elb.s2.small: 小型 II - L7_flavor.elb.s1.medium: 中型 I - L7_flavor.elb.s2.medium: 中型 II - L7_flavor.elb.s1.large: 大型 I - L7_flavor.elb.s2.large: 大型 II - L7_flavor.elb.s1.extra-large: 超大型 I - L7_flavor.elb.s2.extra-large: 超大型 II - L7_flavor.elb.pro.max: 七层弹性规格
|
135
149
|
|
136
150
|
:param name: The name of this Flavor.
|
137
151
|
:type name: str
|
@@ -142,7 +156,7 @@ class Flavor:
|
|
142
156
|
def shared(self):
|
143
157
|
"""Gets the shared of this Flavor.
|
144
158
|
|
145
|
-
|
159
|
+
参数解释:是否公共规格。 取值范围: - true表示公共规格,所有租户可见。 - false表示私有规格,为当前租户所有。
|
146
160
|
|
147
161
|
:return: The shared of this Flavor.
|
148
162
|
:rtype: bool
|
@@ -153,7 +167,7 @@ class Flavor:
|
|
153
167
|
def shared(self, shared):
|
154
168
|
"""Sets the shared of this Flavor.
|
155
169
|
|
156
|
-
|
170
|
+
参数解释:是否公共规格。 取值范围: - true表示公共规格,所有租户可见。 - false表示私有规格,为当前租户所有。
|
157
171
|
|
158
172
|
:param shared: The shared of this Flavor.
|
159
173
|
:type shared: bool
|
@@ -164,7 +178,7 @@ class Flavor:
|
|
164
178
|
def project_id(self):
|
165
179
|
"""Gets the project_id of this Flavor.
|
166
180
|
|
167
|
-
|
181
|
+
参数解释:项目ID。
|
168
182
|
|
169
183
|
:return: The project_id of this Flavor.
|
170
184
|
:rtype: str
|
@@ -175,7 +189,7 @@ class Flavor:
|
|
175
189
|
def project_id(self, project_id):
|
176
190
|
"""Sets the project_id of this Flavor.
|
177
191
|
|
178
|
-
|
192
|
+
参数解释:项目ID。
|
179
193
|
|
180
194
|
:param project_id: The project_id of this Flavor.
|
181
195
|
:type project_id: str
|
@@ -186,7 +200,7 @@ class Flavor:
|
|
186
200
|
def type(self):
|
187
201
|
"""Gets the type of this Flavor.
|
188
202
|
|
189
|
-
|
203
|
+
参数解释:规格类别。 取值范围: - L4和L7 表示四层网络型和七层应用型flavor。 [- gateway 表示网关型LB的flavor,目前只支持弹性计费类型。当前仅支持欧洲局点。](tag:hws_eu) - L4_elastic和L7_elastic 表示弹性扩缩容实例的下限规格。已废弃,请勿使用。 - L4_elastic_max、L7_elastic_max[和gateway_elastic_max](tag:hws_eu) 表示弹性扩缩容实例的上限规格。
|
190
204
|
|
191
205
|
:return: The type of this Flavor.
|
192
206
|
:rtype: str
|
@@ -197,7 +211,7 @@ class Flavor:
|
|
197
211
|
def type(self, type):
|
198
212
|
"""Sets the type of this Flavor.
|
199
213
|
|
200
|
-
|
214
|
+
参数解释:规格类别。 取值范围: - L4和L7 表示四层网络型和七层应用型flavor。 [- gateway 表示网关型LB的flavor,目前只支持弹性计费类型。当前仅支持欧洲局点。](tag:hws_eu) - L4_elastic和L7_elastic 表示弹性扩缩容实例的下限规格。已废弃,请勿使用。 - L4_elastic_max、L7_elastic_max[和gateway_elastic_max](tag:hws_eu) 表示弹性扩缩容实例的上限规格。
|
201
215
|
|
202
216
|
:param type: The type of this Flavor.
|
203
217
|
:type type: str
|
@@ -208,7 +222,7 @@ class Flavor:
|
|
208
222
|
def flavor_sold_out(self):
|
209
223
|
"""Gets the flavor_sold_out of this Flavor.
|
210
224
|
|
211
|
-
[是否售罄。](tag:hws,hk,hws_eu,otc,tlf,
|
225
|
+
参数解释:[是否售罄。](tag:hws,hk,hws_eu,otc,tlf,sbc,g42,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt) [是否无法购买该规格的LB](tag:ctc,cmcc,ocb,tm,fcs,fcs_dt,hcso,hcso_dt,hk_vdf) 取值范围: - true:[已售罄,将](tag:hws,hk,hws_eu,otc,tlf,sbc,g42,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt)无法购买该规格的LB。 - false:[未售罄,](tag:hws,hk,hws_eu,otc,tlf,sbc,g42,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt)可购买该规格的LB。
|
212
226
|
|
213
227
|
:return: The flavor_sold_out of this Flavor.
|
214
228
|
:rtype: bool
|
@@ -219,13 +233,57 @@ class Flavor:
|
|
219
233
|
def flavor_sold_out(self, flavor_sold_out):
|
220
234
|
"""Sets the flavor_sold_out of this Flavor.
|
221
235
|
|
222
|
-
[是否售罄。](tag:hws,hk,hws_eu,otc,tlf,
|
236
|
+
参数解释:[是否售罄。](tag:hws,hk,hws_eu,otc,tlf,sbc,g42,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt) [是否无法购买该规格的LB](tag:ctc,cmcc,ocb,tm,fcs,fcs_dt,hcso,hcso_dt,hk_vdf) 取值范围: - true:[已售罄,将](tag:hws,hk,hws_eu,otc,tlf,sbc,g42,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt)无法购买该规格的LB。 - false:[未售罄,](tag:hws,hk,hws_eu,otc,tlf,sbc,g42,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt)可购买该规格的LB。
|
223
237
|
|
224
238
|
:param flavor_sold_out: The flavor_sold_out of this Flavor.
|
225
239
|
:type flavor_sold_out: bool
|
226
240
|
"""
|
227
241
|
self._flavor_sold_out = flavor_sold_out
|
228
242
|
|
243
|
+
@property
|
244
|
+
def public_border_group(self):
|
245
|
+
"""Gets the public_border_group of this Flavor.
|
246
|
+
|
247
|
+
参数解释:可用区组,如:center
|
248
|
+
|
249
|
+
:return: The public_border_group of this Flavor.
|
250
|
+
:rtype: str
|
251
|
+
"""
|
252
|
+
return self._public_border_group
|
253
|
+
|
254
|
+
@public_border_group.setter
|
255
|
+
def public_border_group(self, public_border_group):
|
256
|
+
"""Sets the public_border_group of this Flavor.
|
257
|
+
|
258
|
+
参数解释:可用区组,如:center
|
259
|
+
|
260
|
+
:param public_border_group: The public_border_group of this Flavor.
|
261
|
+
:type public_border_group: str
|
262
|
+
"""
|
263
|
+
self._public_border_group = public_border_group
|
264
|
+
|
265
|
+
@property
|
266
|
+
def category(self):
|
267
|
+
"""Gets the category of this Flavor.
|
268
|
+
|
269
|
+
参数解释:可用区组编码。 取值范围:0表示center,21表示homezone。
|
270
|
+
|
271
|
+
:return: The category of this Flavor.
|
272
|
+
:rtype: int
|
273
|
+
"""
|
274
|
+
return self._category
|
275
|
+
|
276
|
+
@category.setter
|
277
|
+
def category(self, category):
|
278
|
+
"""Sets the category of this Flavor.
|
279
|
+
|
280
|
+
参数解释:可用区组编码。 取值范围:0表示center,21表示homezone。
|
281
|
+
|
282
|
+
:param category: The category of this Flavor.
|
283
|
+
:type category: int
|
284
|
+
"""
|
285
|
+
self._category = category
|
286
|
+
|
229
287
|
def to_dict(self):
|
230
288
|
"""Returns the model properties as a dict"""
|
231
289
|
result = {}
|
@@ -39,17 +39,17 @@ class FlavorInfo:
|
|
39
39
|
|
40
40
|
The model defined in huaweicloud sdk
|
41
41
|
|
42
|
-
:param connection:
|
42
|
+
:param connection: 参数解释:并发数。单位:个。
|
43
43
|
:type connection: int
|
44
|
-
:param cps:
|
44
|
+
:param cps: 参数解释:新建数。单位:个。
|
45
45
|
:type cps: int
|
46
|
-
:param qps:
|
46
|
+
:param qps: 参数解释:每秒查询数。单位:个。 约束限制:仅7层LB有该指标。
|
47
47
|
:type qps: int
|
48
|
-
:param bandwidth:
|
48
|
+
:param bandwidth: 参数解释:带宽。单位:Kbit/s。
|
49
49
|
:type bandwidth: int
|
50
|
-
:param lcu:
|
50
|
+
:param lcu: 参数解释:当前flavor对应的lcu数量。单位:个。 > LCU是用来衡量独享型ELB处理性能综合指标,LCU值越大,性能越好。
|
51
51
|
:type lcu: int
|
52
|
-
:param https_cps: https
|
52
|
+
:param https_cps: 参数解释:https新建连接数。单位:个。 约束限制:仅7层LB有该指标。
|
53
53
|
:type https_cps: int
|
54
54
|
"""
|
55
55
|
|
@@ -78,7 +78,7 @@ class FlavorInfo:
|
|
78
78
|
def connection(self):
|
79
79
|
"""Gets the connection of this FlavorInfo.
|
80
80
|
|
81
|
-
|
81
|
+
参数解释:并发数。单位:个。
|
82
82
|
|
83
83
|
:return: The connection of this FlavorInfo.
|
84
84
|
:rtype: int
|
@@ -89,7 +89,7 @@ class FlavorInfo:
|
|
89
89
|
def connection(self, connection):
|
90
90
|
"""Sets the connection of this FlavorInfo.
|
91
91
|
|
92
|
-
|
92
|
+
参数解释:并发数。单位:个。
|
93
93
|
|
94
94
|
:param connection: The connection of this FlavorInfo.
|
95
95
|
:type connection: int
|
@@ -100,7 +100,7 @@ class FlavorInfo:
|
|
100
100
|
def cps(self):
|
101
101
|
"""Gets the cps of this FlavorInfo.
|
102
102
|
|
103
|
-
|
103
|
+
参数解释:新建数。单位:个。
|
104
104
|
|
105
105
|
:return: The cps of this FlavorInfo.
|
106
106
|
:rtype: int
|
@@ -111,7 +111,7 @@ class FlavorInfo:
|
|
111
111
|
def cps(self, cps):
|
112
112
|
"""Sets the cps of this FlavorInfo.
|
113
113
|
|
114
|
-
|
114
|
+
参数解释:新建数。单位:个。
|
115
115
|
|
116
116
|
:param cps: The cps of this FlavorInfo.
|
117
117
|
:type cps: int
|
@@ -122,7 +122,7 @@ class FlavorInfo:
|
|
122
122
|
def qps(self):
|
123
123
|
"""Gets the qps of this FlavorInfo.
|
124
124
|
|
125
|
-
|
125
|
+
参数解释:每秒查询数。单位:个。 约束限制:仅7层LB有该指标。
|
126
126
|
|
127
127
|
:return: The qps of this FlavorInfo.
|
128
128
|
:rtype: int
|
@@ -133,7 +133,7 @@ class FlavorInfo:
|
|
133
133
|
def qps(self, qps):
|
134
134
|
"""Sets the qps of this FlavorInfo.
|
135
135
|
|
136
|
-
|
136
|
+
参数解释:每秒查询数。单位:个。 约束限制:仅7层LB有该指标。
|
137
137
|
|
138
138
|
:param qps: The qps of this FlavorInfo.
|
139
139
|
:type qps: int
|
@@ -144,7 +144,7 @@ class FlavorInfo:
|
|
144
144
|
def bandwidth(self):
|
145
145
|
"""Gets the bandwidth of this FlavorInfo.
|
146
146
|
|
147
|
-
|
147
|
+
参数解释:带宽。单位:Kbit/s。
|
148
148
|
|
149
149
|
:return: The bandwidth of this FlavorInfo.
|
150
150
|
:rtype: int
|
@@ -155,7 +155,7 @@ class FlavorInfo:
|
|
155
155
|
def bandwidth(self, bandwidth):
|
156
156
|
"""Sets the bandwidth of this FlavorInfo.
|
157
157
|
|
158
|
-
|
158
|
+
参数解释:带宽。单位:Kbit/s。
|
159
159
|
|
160
160
|
:param bandwidth: The bandwidth of this FlavorInfo.
|
161
161
|
:type bandwidth: int
|
@@ -166,7 +166,7 @@ class FlavorInfo:
|
|
166
166
|
def lcu(self):
|
167
167
|
"""Gets the lcu of this FlavorInfo.
|
168
168
|
|
169
|
-
|
169
|
+
参数解释:当前flavor对应的lcu数量。单位:个。 > LCU是用来衡量独享型ELB处理性能综合指标,LCU值越大,性能越好。
|
170
170
|
|
171
171
|
:return: The lcu of this FlavorInfo.
|
172
172
|
:rtype: int
|
@@ -177,7 +177,7 @@ class FlavorInfo:
|
|
177
177
|
def lcu(self, lcu):
|
178
178
|
"""Sets the lcu of this FlavorInfo.
|
179
179
|
|
180
|
-
|
180
|
+
参数解释:当前flavor对应的lcu数量。单位:个。 > LCU是用来衡量独享型ELB处理性能综合指标,LCU值越大,性能越好。
|
181
181
|
|
182
182
|
:param lcu: The lcu of this FlavorInfo.
|
183
183
|
:type lcu: int
|
@@ -188,7 +188,7 @@ class FlavorInfo:
|
|
188
188
|
def https_cps(self):
|
189
189
|
"""Gets the https_cps of this FlavorInfo.
|
190
190
|
|
191
|
-
https
|
191
|
+
参数解释:https新建连接数。单位:个。 约束限制:仅7层LB有该指标。
|
192
192
|
|
193
193
|
:return: The https_cps of this FlavorInfo.
|
194
194
|
:rtype: int
|
@@ -199,7 +199,7 @@ class FlavorInfo:
|
|
199
199
|
def https_cps(self, https_cps):
|
200
200
|
"""Sets the https_cps of this FlavorInfo.
|
201
201
|
|
202
|
-
https
|
202
|
+
参数解释:https新建连接数。单位:个。 约束限制:仅7层LB有该指标。
|
203
203
|
|
204
204
|
:param https_cps: The https_cps of this FlavorInfo.
|
205
205
|
:type https_cps: int
|
@@ -33,11 +33,11 @@ class GlobalEipInfo:
|
|
33
33
|
|
34
34
|
The model defined in huaweicloud sdk
|
35
35
|
|
36
|
-
:param global_eip_id: global eip的id
|
36
|
+
:param global_eip_id: 参数解释:global eip的id
|
37
37
|
:type global_eip_id: str
|
38
|
-
:param global_eip_address: global eip的ip地址
|
38
|
+
:param global_eip_address: 参数解释:global eip的ip地址
|
39
39
|
:type global_eip_address: str
|
40
|
-
:param ip_version: IP版本信息。
|
40
|
+
:param ip_version: 参数解释:IP版本信息。 取值范围: - 4,表示IPv4 - 6,表示IPv6 [不支持IPv6,请勿设置为6。](tag:dt,dt_test)
|
41
41
|
:type ip_version: int
|
42
42
|
"""
|
43
43
|
|
@@ -59,7 +59,7 @@ class GlobalEipInfo:
|
|
59
59
|
def global_eip_id(self):
|
60
60
|
"""Gets the global_eip_id of this GlobalEipInfo.
|
61
61
|
|
62
|
-
global eip的id
|
62
|
+
参数解释:global eip的id
|
63
63
|
|
64
64
|
:return: The global_eip_id of this GlobalEipInfo.
|
65
65
|
:rtype: str
|
@@ -70,7 +70,7 @@ class GlobalEipInfo:
|
|
70
70
|
def global_eip_id(self, global_eip_id):
|
71
71
|
"""Sets the global_eip_id of this GlobalEipInfo.
|
72
72
|
|
73
|
-
global eip的id
|
73
|
+
参数解释:global eip的id
|
74
74
|
|
75
75
|
:param global_eip_id: The global_eip_id of this GlobalEipInfo.
|
76
76
|
:type global_eip_id: str
|
@@ -81,7 +81,7 @@ class GlobalEipInfo:
|
|
81
81
|
def global_eip_address(self):
|
82
82
|
"""Gets the global_eip_address of this GlobalEipInfo.
|
83
83
|
|
84
|
-
global eip的ip地址
|
84
|
+
参数解释:global eip的ip地址
|
85
85
|
|
86
86
|
:return: The global_eip_address of this GlobalEipInfo.
|
87
87
|
:rtype: str
|
@@ -92,7 +92,7 @@ class GlobalEipInfo:
|
|
92
92
|
def global_eip_address(self, global_eip_address):
|
93
93
|
"""Sets the global_eip_address of this GlobalEipInfo.
|
94
94
|
|
95
|
-
global eip的ip地址
|
95
|
+
参数解释:global eip的ip地址
|
96
96
|
|
97
97
|
:param global_eip_address: The global_eip_address of this GlobalEipInfo.
|
98
98
|
:type global_eip_address: str
|
@@ -103,7 +103,7 @@ class GlobalEipInfo:
|
|
103
103
|
def ip_version(self):
|
104
104
|
"""Gets the ip_version of this GlobalEipInfo.
|
105
105
|
|
106
|
-
IP版本信息。
|
106
|
+
参数解释:IP版本信息。 取值范围: - 4,表示IPv4 - 6,表示IPv6 [不支持IPv6,请勿设置为6。](tag:dt,dt_test)
|
107
107
|
|
108
108
|
:return: The ip_version of this GlobalEipInfo.
|
109
109
|
:rtype: int
|
@@ -114,7 +114,7 @@ class GlobalEipInfo:
|
|
114
114
|
def ip_version(self, ip_version):
|
115
115
|
"""Sets the ip_version of this GlobalEipInfo.
|
116
116
|
|
117
|
-
IP版本信息。
|
117
|
+
参数解释:IP版本信息。 取值范围: - 4,表示IPv4 - 6,表示IPv6 [不支持IPv6,请勿设置为6。](tag:dt,dt_test)
|
118
118
|
|
119
119
|
:param ip_version: The ip_version of this GlobalEipInfo.
|
120
120
|
:type ip_version: int
|
@@ -61,15 +61,15 @@ class HealthMonitor:
|
|
61
61
|
|
62
62
|
The model defined in huaweicloud sdk
|
63
63
|
|
64
|
-
:param admin_state_up: 健康检查的管理状态。
|
64
|
+
:param admin_state_up: 健康检查的管理状态。 取值范围: - true:表示开启健康检查。 - false表示关闭健康检查。 默认取值:true。
|
65
65
|
:type admin_state_up: bool
|
66
66
|
:param delay: 健康检查间隔。取值:1-50s。
|
67
67
|
:type delay: int
|
68
68
|
:param domain_name: 发送健康检查请求的域名。 取值:以数字或字母开头,只能包含数字、字母、’-’、’.’。 默认为空,表示使用负载均衡器的vip作为http请求的目的地址。 使用说明:当type为HTTP/HTTPS时生效。
|
69
69
|
:type domain_name: str
|
70
|
-
:param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。
|
70
|
+
:param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为GRPC,则默认值为0,;其他为200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。
|
71
71
|
:type expected_codes: str
|
72
|
-
:param http_method: HTTP请求方法。 取值:GET、HEAD、POST
|
72
|
+
:param http_method: HTTP请求方法。 取值:GET、HEAD、POST,默认GET。 使用说明:当type为HTTP/HTTPS时生效。
|
73
73
|
:type http_method: str
|
74
74
|
:param id: 健康检查ID
|
75
75
|
:type id: str
|
@@ -77,17 +77,17 @@ class HealthMonitor:
|
|
77
77
|
:type max_retries: int
|
78
78
|
:param max_retries_down: 健康检查连续失败多少次后,将后端服务器的健康检查状态由ONLINE判定为OFFLINE。取值范围:1-10,默认3。
|
79
79
|
:type max_retries_down: int
|
80
|
-
:param monitor_port: 健康检查端口号。取值:1-65535
|
80
|
+
:param monitor_port: 健康检查端口号。取值:1-65535,默认为空,表示使用后端服务器端口号。[当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu)
|
81
81
|
:type monitor_port: int
|
82
82
|
:param name: 健康检查名称。
|
83
83
|
:type name: str
|
84
|
-
:param pools:
|
84
|
+
:param pools: 健康检查所在的后端服务器组ID列表。实际只会有一个后端服务器组ID。
|
85
85
|
:type pools: list[:class:`huaweicloudsdkelb.v3.PoolRef`]
|
86
86
|
:param project_id: 健康检查所在的项目ID。
|
87
87
|
:type project_id: str
|
88
88
|
:param timeout: 一次健康检查请求的超时时间。 建议该值小于delay的值。
|
89
89
|
:type timeout: int
|
90
|
-
:param type: 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test)
|
90
|
+
:param type: 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、TLS和GRPC。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 [- 若pool的protocol为IP,则type可以是TCP、HTTP、HTTPS。](tag:hws_eu) - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为GRPC,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test)
|
91
91
|
:type type: str
|
92
92
|
:param url_path: 健康检查请求的请求路径。以\"/\"开头,默认为\"/\"。 支持使用字母、数字和短划线(-)、正斜线(/)、半角句号(.)、百分号(%)、半角问号(?)、井号(#)和and(&)以及扩展字符集_;~!()*[]@$^:',+ 使用说明:当type为HTTP/HTTPS时生效。
|
93
93
|
:type url_path: str
|
@@ -142,7 +142,7 @@ class HealthMonitor:
|
|
142
142
|
def admin_state_up(self):
|
143
143
|
"""Gets the admin_state_up of this HealthMonitor.
|
144
144
|
|
145
|
-
健康检查的管理状态。
|
145
|
+
健康检查的管理状态。 取值范围: - true:表示开启健康检查。 - false表示关闭健康检查。 默认取值:true。
|
146
146
|
|
147
147
|
:return: The admin_state_up of this HealthMonitor.
|
148
148
|
:rtype: bool
|
@@ -153,7 +153,7 @@ class HealthMonitor:
|
|
153
153
|
def admin_state_up(self, admin_state_up):
|
154
154
|
"""Sets the admin_state_up of this HealthMonitor.
|
155
155
|
|
156
|
-
健康检查的管理状态。
|
156
|
+
健康检查的管理状态。 取值范围: - true:表示开启健康检查。 - false表示关闭健康检查。 默认取值:true。
|
157
157
|
|
158
158
|
:param admin_state_up: The admin_state_up of this HealthMonitor.
|
159
159
|
:type admin_state_up: bool
|
@@ -208,7 +208,7 @@ class HealthMonitor:
|
|
208
208
|
def expected_codes(self):
|
209
209
|
"""Gets the expected_codes of this HealthMonitor.
|
210
210
|
|
211
|
-
期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。
|
211
|
+
期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为GRPC,则默认值为0,;其他为200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。
|
212
212
|
|
213
213
|
:return: The expected_codes of this HealthMonitor.
|
214
214
|
:rtype: str
|
@@ -219,7 +219,7 @@ class HealthMonitor:
|
|
219
219
|
def expected_codes(self, expected_codes):
|
220
220
|
"""Sets the expected_codes of this HealthMonitor.
|
221
221
|
|
222
|
-
期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。
|
222
|
+
期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为GRPC,则默认值为0,;其他为200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。
|
223
223
|
|
224
224
|
:param expected_codes: The expected_codes of this HealthMonitor.
|
225
225
|
:type expected_codes: str
|
@@ -230,7 +230,7 @@ class HealthMonitor:
|
|
230
230
|
def http_method(self):
|
231
231
|
"""Gets the http_method of this HealthMonitor.
|
232
232
|
|
233
|
-
HTTP请求方法。 取值:GET、HEAD、POST
|
233
|
+
HTTP请求方法。 取值:GET、HEAD、POST,默认GET。 使用说明:当type为HTTP/HTTPS时生效。
|
234
234
|
|
235
235
|
:return: The http_method of this HealthMonitor.
|
236
236
|
:rtype: str
|
@@ -241,7 +241,7 @@ class HealthMonitor:
|
|
241
241
|
def http_method(self, http_method):
|
242
242
|
"""Sets the http_method of this HealthMonitor.
|
243
243
|
|
244
|
-
HTTP请求方法。 取值:GET、HEAD、POST
|
244
|
+
HTTP请求方法。 取值:GET、HEAD、POST,默认GET。 使用说明:当type为HTTP/HTTPS时生效。
|
245
245
|
|
246
246
|
:param http_method: The http_method of this HealthMonitor.
|
247
247
|
:type http_method: str
|
@@ -318,7 +318,7 @@ class HealthMonitor:
|
|
318
318
|
def monitor_port(self):
|
319
319
|
"""Gets the monitor_port of this HealthMonitor.
|
320
320
|
|
321
|
-
健康检查端口号。取值:1-65535
|
321
|
+
健康检查端口号。取值:1-65535,默认为空,表示使用后端服务器端口号。[当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu)
|
322
322
|
|
323
323
|
:return: The monitor_port of this HealthMonitor.
|
324
324
|
:rtype: int
|
@@ -329,7 +329,7 @@ class HealthMonitor:
|
|
329
329
|
def monitor_port(self, monitor_port):
|
330
330
|
"""Sets the monitor_port of this HealthMonitor.
|
331
331
|
|
332
|
-
健康检查端口号。取值:1-65535
|
332
|
+
健康检查端口号。取值:1-65535,默认为空,表示使用后端服务器端口号。[当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu)
|
333
333
|
|
334
334
|
:param monitor_port: The monitor_port of this HealthMonitor.
|
335
335
|
:type monitor_port: int
|
@@ -362,7 +362,7 @@ class HealthMonitor:
|
|
362
362
|
def pools(self):
|
363
363
|
"""Gets the pools of this HealthMonitor.
|
364
364
|
|
365
|
-
|
365
|
+
健康检查所在的后端服务器组ID列表。实际只会有一个后端服务器组ID。
|
366
366
|
|
367
367
|
:return: The pools of this HealthMonitor.
|
368
368
|
:rtype: list[:class:`huaweicloudsdkelb.v3.PoolRef`]
|
@@ -373,7 +373,7 @@ class HealthMonitor:
|
|
373
373
|
def pools(self, pools):
|
374
374
|
"""Sets the pools of this HealthMonitor.
|
375
375
|
|
376
|
-
|
376
|
+
健康检查所在的后端服务器组ID列表。实际只会有一个后端服务器组ID。
|
377
377
|
|
378
378
|
:param pools: The pools of this HealthMonitor.
|
379
379
|
:type pools: list[:class:`huaweicloudsdkelb.v3.PoolRef`]
|
@@ -428,7 +428,7 @@ class HealthMonitor:
|
|
428
428
|
def type(self):
|
429
429
|
"""Gets the type of this HealthMonitor.
|
430
430
|
|
431
|
-
健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test)
|
431
|
+
健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、TLS和GRPC。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 [- 若pool的protocol为IP,则type可以是TCP、HTTP、HTTPS。](tag:hws_eu) - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为GRPC,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test)
|
432
432
|
|
433
433
|
:return: The type of this HealthMonitor.
|
434
434
|
:rtype: str
|
@@ -439,7 +439,7 @@ class HealthMonitor:
|
|
439
439
|
def type(self, type):
|
440
440
|
"""Sets the type of this HealthMonitor.
|
441
441
|
|
442
|
-
健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test)
|
442
|
+
健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、TLS和GRPC。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 [- 若pool的protocol为IP,则type可以是TCP、HTTP、HTTPS。](tag:hws_eu) - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为GRPC,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test)
|
443
443
|
|
444
444
|
:param type: The type of this HealthMonitor.
|
445
445
|
:type type: str
|