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
@@ -31,9 +31,9 @@ class IpInfo:
|
|
31
31
|
|
32
32
|
The model defined in huaweicloud sdk
|
33
33
|
|
34
|
-
:param ip: IP地址组中的IP地址。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
|
34
|
+
:param ip: 参数解释:IP地址组中的IP地址。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
|
35
35
|
:type ip: str
|
36
|
-
:param description: IP地址组中ip
|
36
|
+
:param description: 参数解释:IP地址组中ip的备注信息。
|
37
37
|
:type description: str
|
38
38
|
"""
|
39
39
|
|
@@ -50,7 +50,7 @@ class IpInfo:
|
|
50
50
|
def ip(self):
|
51
51
|
"""Gets the ip of this IpInfo.
|
52
52
|
|
53
|
-
IP地址组中的IP地址。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
|
53
|
+
参数解释:IP地址组中的IP地址。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
|
54
54
|
|
55
55
|
:return: The ip of this IpInfo.
|
56
56
|
:rtype: str
|
@@ -61,7 +61,7 @@ class IpInfo:
|
|
61
61
|
def ip(self, ip):
|
62
62
|
"""Sets the ip of this IpInfo.
|
63
63
|
|
64
|
-
IP地址组中的IP地址。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
|
64
|
+
参数解释:IP地址组中的IP地址。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
|
65
65
|
|
66
66
|
:param ip: The ip of this IpInfo.
|
67
67
|
:type ip: str
|
@@ -72,7 +72,7 @@ class IpInfo:
|
|
72
72
|
def description(self):
|
73
73
|
"""Gets the description of this IpInfo.
|
74
74
|
|
75
|
-
IP地址组中ip
|
75
|
+
参数解释:IP地址组中ip的备注信息。
|
76
76
|
|
77
77
|
:return: The description of this IpInfo.
|
78
78
|
:rtype: str
|
@@ -83,7 +83,7 @@ class IpInfo:
|
|
83
83
|
def description(self, description):
|
84
84
|
"""Sets the description of this IpInfo.
|
85
85
|
|
86
|
-
IP地址组中ip
|
86
|
+
参数解释:IP地址组中ip的备注信息。
|
87
87
|
|
88
88
|
:param description: The description of this IpInfo.
|
89
89
|
:type description: str
|
@@ -32,6 +32,8 @@ class L7Policy:
|
|
32
32
|
'redirect_url': 'str',
|
33
33
|
'rules': 'list[RuleRef]',
|
34
34
|
'redirect_url_config': 'RedirectUrlConfig',
|
35
|
+
'redirect_pools_config': 'list[RedirectPoolsConfig]',
|
36
|
+
'redirect_pools_sticky_session_config': 'RedirectPoolsStickySessionConfig',
|
35
37
|
'redirect_pools_extend_config': 'RedirectPoolsExtendConfig',
|
36
38
|
'fixed_response_config': 'FixtedResponseConfig',
|
37
39
|
'created_at': 'str',
|
@@ -54,13 +56,15 @@ class L7Policy:
|
|
54
56
|
'redirect_url': 'redirect_url',
|
55
57
|
'rules': 'rules',
|
56
58
|
'redirect_url_config': 'redirect_url_config',
|
59
|
+
'redirect_pools_config': 'redirect_pools_config',
|
60
|
+
'redirect_pools_sticky_session_config': 'redirect_pools_sticky_session_config',
|
57
61
|
'redirect_pools_extend_config': 'redirect_pools_extend_config',
|
58
62
|
'fixed_response_config': 'fixed_response_config',
|
59
63
|
'created_at': 'created_at',
|
60
64
|
'updated_at': 'updated_at'
|
61
65
|
}
|
62
66
|
|
63
|
-
def __init__(self, action=None, admin_state_up=None, description=None, id=None, listener_id=None, name=None, position=None, priority=None, project_id=None, provisioning_status=None, redirect_pool_id=None, redirect_listener_id=None, redirect_url=None, rules=None, redirect_url_config=None, redirect_pools_extend_config=None, fixed_response_config=None, created_at=None, updated_at=None):
|
67
|
+
def __init__(self, action=None, admin_state_up=None, description=None, id=None, listener_id=None, name=None, position=None, priority=None, project_id=None, provisioning_status=None, redirect_pool_id=None, redirect_listener_id=None, redirect_url=None, rules=None, redirect_url_config=None, redirect_pools_config=None, redirect_pools_sticky_session_config=None, redirect_pools_extend_config=None, fixed_response_config=None, created_at=None, updated_at=None):
|
64
68
|
"""L7Policy
|
65
69
|
|
66
70
|
The model defined in huaweicloud sdk
|
@@ -79,11 +83,11 @@ class L7Policy:
|
|
79
83
|
:type name: str
|
80
84
|
:param position: 转发策略的优先级,不支持更新。 不支持该字段,请勿使用。
|
81
85
|
:type position: int
|
82
|
-
:param priority: 转发策略的优先级。数字越小表示优先级越高,同一监听器下不允许重复。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 当action为REDIRECT_TO_LISTENER时,仅支持指定为0,优先级最高。 当关联的listener没有开启enhance_l7policy_enable,按原有policy的排序逻辑,自动排序。 各域名之间优先级独立,相同域名下,按path的compare_type排序,精确>前缀>正则, 匹配类型相同时,path的长度越长优先级越高。若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 当关联的listener开启了enhance_l7policy_enable,且不传该字段,则新创建的转发策略的优先级的值为: 同一监听器下已有转发策略的优先级的最大值+1。 因此,若当前已有转发策略的优先级的最大值是10000,新创建会因超出取值范围10000而失败。 此时可通过传入指定priority,或调整原有policy的优先级来避免错误。若监听器下没有转发策略,则新建的转发策略的优先级为1。 [共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm) [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt)
|
86
|
+
:param priority: 转发策略的优先级。数字越小表示优先级越高,同一监听器下不允许重复。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 当action为REDIRECT_TO_LISTENER时,仅支持指定为0,优先级最高。 当关联的listener没有开启enhance_l7policy_enable,按原有policy的排序逻辑,自动排序。 各域名之间优先级独立,相同域名下,按path的compare_type排序,精确>前缀>正则, 匹配类型相同时,path的长度越长优先级越高。若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 当关联的listener开启了enhance_l7policy_enable,且不传该字段,则新创建的转发策略的优先级的值为: 同一监听器下已有转发策略的优先级的最大值+1。 因此,若当前已有转发策略的优先级的最大值是10000,新创建会因超出取值范围10000而失败。 此时可通过传入指定priority,或调整原有policy的优先级来避免错误。若监听器下没有转发策略,则新建的转发策略的优先级为1。 [共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
83
87
|
:type priority: int
|
84
88
|
:param project_id: 转发策略所在的项目ID。
|
85
89
|
:type project_id: str
|
86
|
-
:param provisioning_status: 转发策略的配置状态。 取值范围: - ACTIVE: 默认值,表示正常。 [- ERROR: 表示当前策略与同一监听器下的其他策略存在相同的规则配置。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs)
|
90
|
+
:param provisioning_status: 转发策略的配置状态。 取值范围: - ACTIVE: 默认值,表示正常。 [- ERROR: 表示当前策略与同一监听器下的其他策略存在相同的规则配置。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs)
|
87
91
|
:type provisioning_status: str
|
88
92
|
:param redirect_pool_id: 转发到pool的ID。当action为REDIRECT_TO_POOL时生效。
|
89
93
|
:type redirect_pool_id: str
|
@@ -95,13 +99,17 @@ class L7Policy:
|
|
95
99
|
:type rules: list[:class:`huaweicloudsdkelb.v3.RuleRef`]
|
96
100
|
:param redirect_url_config:
|
97
101
|
:type redirect_url_config: :class:`huaweicloudsdkelb.v3.RedirectUrlConfig`
|
102
|
+
:param redirect_pools_config: 转发到多个主机组列表。一个policy最多配置5个pool。
|
103
|
+
:type redirect_pools_config: list[:class:`huaweicloudsdkelb.v3.RedirectPoolsConfig`]
|
104
|
+
:param redirect_pools_sticky_session_config:
|
105
|
+
:type redirect_pools_sticky_session_config: :class:`huaweicloudsdkelb.v3.RedirectPoolsStickySessionConfig`
|
98
106
|
:param redirect_pools_extend_config:
|
99
107
|
:type redirect_pools_extend_config: :class:`huaweicloudsdkelb.v3.RedirectPoolsExtendConfig`
|
100
108
|
:param fixed_response_config:
|
101
109
|
:type fixed_response_config: :class:`huaweicloudsdkelb.v3.FixtedResponseConfig`
|
102
|
-
: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)
|
110
|
+
: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)
|
103
111
|
:type created_at: str
|
104
|
-
: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)
|
112
|
+
: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)
|
105
113
|
:type updated_at: str
|
106
114
|
"""
|
107
115
|
|
@@ -122,6 +130,8 @@ class L7Policy:
|
|
122
130
|
self._redirect_url = None
|
123
131
|
self._rules = None
|
124
132
|
self._redirect_url_config = None
|
133
|
+
self._redirect_pools_config = None
|
134
|
+
self._redirect_pools_sticky_session_config = None
|
125
135
|
self._redirect_pools_extend_config = None
|
126
136
|
self._fixed_response_config = None
|
127
137
|
self._created_at = None
|
@@ -144,6 +154,10 @@ class L7Policy:
|
|
144
154
|
self.redirect_url = redirect_url
|
145
155
|
self.rules = rules
|
146
156
|
self.redirect_url_config = redirect_url_config
|
157
|
+
if redirect_pools_config is not None:
|
158
|
+
self.redirect_pools_config = redirect_pools_config
|
159
|
+
if redirect_pools_sticky_session_config is not None:
|
160
|
+
self.redirect_pools_sticky_session_config = redirect_pools_sticky_session_config
|
147
161
|
if redirect_pools_extend_config is not None:
|
148
162
|
self.redirect_pools_extend_config = redirect_pools_extend_config
|
149
163
|
self.fixed_response_config = fixed_response_config
|
@@ -310,7 +324,7 @@ class L7Policy:
|
|
310
324
|
def priority(self):
|
311
325
|
"""Gets the priority of this L7Policy.
|
312
326
|
|
313
|
-
转发策略的优先级。数字越小表示优先级越高,同一监听器下不允许重复。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 当action为REDIRECT_TO_LISTENER时,仅支持指定为0,优先级最高。 当关联的listener没有开启enhance_l7policy_enable,按原有policy的排序逻辑,自动排序。 各域名之间优先级独立,相同域名下,按path的compare_type排序,精确>前缀>正则, 匹配类型相同时,path的长度越长优先级越高。若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 当关联的listener开启了enhance_l7policy_enable,且不传该字段,则新创建的转发策略的优先级的值为: 同一监听器下已有转发策略的优先级的最大值+1。 因此,若当前已有转发策略的优先级的最大值是10000,新创建会因超出取值范围10000而失败。 此时可通过传入指定priority,或调整原有policy的优先级来避免错误。若监听器下没有转发策略,则新建的转发策略的优先级为1。 [共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm) [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt)
|
327
|
+
转发策略的优先级。数字越小表示优先级越高,同一监听器下不允许重复。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 当action为REDIRECT_TO_LISTENER时,仅支持指定为0,优先级最高。 当关联的listener没有开启enhance_l7policy_enable,按原有policy的排序逻辑,自动排序。 各域名之间优先级独立,相同域名下,按path的compare_type排序,精确>前缀>正则, 匹配类型相同时,path的长度越长优先级越高。若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 当关联的listener开启了enhance_l7policy_enable,且不传该字段,则新创建的转发策略的优先级的值为: 同一监听器下已有转发策略的优先级的最大值+1。 因此,若当前已有转发策略的优先级的最大值是10000,新创建会因超出取值范围10000而失败。 此时可通过传入指定priority,或调整原有policy的优先级来避免错误。若监听器下没有转发策略,则新建的转发策略的优先级为1。 [共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
314
328
|
|
315
329
|
:return: The priority of this L7Policy.
|
316
330
|
:rtype: int
|
@@ -321,7 +335,7 @@ class L7Policy:
|
|
321
335
|
def priority(self, priority):
|
322
336
|
"""Sets the priority of this L7Policy.
|
323
337
|
|
324
|
-
转发策略的优先级。数字越小表示优先级越高,同一监听器下不允许重复。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 当action为REDIRECT_TO_LISTENER时,仅支持指定为0,优先级最高。 当关联的listener没有开启enhance_l7policy_enable,按原有policy的排序逻辑,自动排序。 各域名之间优先级独立,相同域名下,按path的compare_type排序,精确>前缀>正则, 匹配类型相同时,path的长度越长优先级越高。若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 当关联的listener开启了enhance_l7policy_enable,且不传该字段,则新创建的转发策略的优先级的值为: 同一监听器下已有转发策略的优先级的最大值+1。 因此,若当前已有转发策略的优先级的最大值是10000,新创建会因超出取值范围10000而失败。 此时可通过传入指定priority,或调整原有policy的优先级来避免错误。若监听器下没有转发策略,则新建的转发策略的优先级为1。 [共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm) [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt)
|
338
|
+
转发策略的优先级。数字越小表示优先级越高,同一监听器下不允许重复。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 当action为REDIRECT_TO_LISTENER时,仅支持指定为0,优先级最高。 当关联的listener没有开启enhance_l7policy_enable,按原有policy的排序逻辑,自动排序。 各域名之间优先级独立,相同域名下,按path的compare_type排序,精确>前缀>正则, 匹配类型相同时,path的长度越长优先级越高。若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 当关联的listener开启了enhance_l7policy_enable,且不传该字段,则新创建的转发策略的优先级的值为: 同一监听器下已有转发策略的优先级的最大值+1。 因此,若当前已有转发策略的优先级的最大值是10000,新创建会因超出取值范围10000而失败。 此时可通过传入指定priority,或调整原有policy的优先级来避免错误。若监听器下没有转发策略,则新建的转发策略的优先级为1。 [共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
325
339
|
|
326
340
|
:param priority: The priority of this L7Policy.
|
327
341
|
:type priority: int
|
@@ -354,7 +368,7 @@ class L7Policy:
|
|
354
368
|
def provisioning_status(self):
|
355
369
|
"""Gets the provisioning_status of this L7Policy.
|
356
370
|
|
357
|
-
转发策略的配置状态。 取值范围: - ACTIVE: 默认值,表示正常。 [- ERROR: 表示当前策略与同一监听器下的其他策略存在相同的规则配置。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs)
|
371
|
+
转发策略的配置状态。 取值范围: - ACTIVE: 默认值,表示正常。 [- ERROR: 表示当前策略与同一监听器下的其他策略存在相同的规则配置。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs)
|
358
372
|
|
359
373
|
:return: The provisioning_status of this L7Policy.
|
360
374
|
:rtype: str
|
@@ -365,7 +379,7 @@ class L7Policy:
|
|
365
379
|
def provisioning_status(self, provisioning_status):
|
366
380
|
"""Sets the provisioning_status of this L7Policy.
|
367
381
|
|
368
|
-
转发策略的配置状态。 取值范围: - ACTIVE: 默认值,表示正常。 [- ERROR: 表示当前策略与同一监听器下的其他策略存在相同的规则配置。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs)
|
382
|
+
转发策略的配置状态。 取值范围: - ACTIVE: 默认值,表示正常。 [- ERROR: 表示当前策略与同一监听器下的其他策略存在相同的规则配置。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs)
|
369
383
|
|
370
384
|
:param provisioning_status: The provisioning_status of this L7Policy.
|
371
385
|
:type provisioning_status: str
|
@@ -478,6 +492,46 @@ class L7Policy:
|
|
478
492
|
"""
|
479
493
|
self._redirect_url_config = redirect_url_config
|
480
494
|
|
495
|
+
@property
|
496
|
+
def redirect_pools_config(self):
|
497
|
+
"""Gets the redirect_pools_config of this L7Policy.
|
498
|
+
|
499
|
+
转发到多个主机组列表。一个policy最多配置5个pool。
|
500
|
+
|
501
|
+
:return: The redirect_pools_config of this L7Policy.
|
502
|
+
:rtype: list[:class:`huaweicloudsdkelb.v3.RedirectPoolsConfig`]
|
503
|
+
"""
|
504
|
+
return self._redirect_pools_config
|
505
|
+
|
506
|
+
@redirect_pools_config.setter
|
507
|
+
def redirect_pools_config(self, redirect_pools_config):
|
508
|
+
"""Sets the redirect_pools_config of this L7Policy.
|
509
|
+
|
510
|
+
转发到多个主机组列表。一个policy最多配置5个pool。
|
511
|
+
|
512
|
+
:param redirect_pools_config: The redirect_pools_config of this L7Policy.
|
513
|
+
:type redirect_pools_config: list[:class:`huaweicloudsdkelb.v3.RedirectPoolsConfig`]
|
514
|
+
"""
|
515
|
+
self._redirect_pools_config = redirect_pools_config
|
516
|
+
|
517
|
+
@property
|
518
|
+
def redirect_pools_sticky_session_config(self):
|
519
|
+
"""Gets the redirect_pools_sticky_session_config of this L7Policy.
|
520
|
+
|
521
|
+
:return: The redirect_pools_sticky_session_config of this L7Policy.
|
522
|
+
:rtype: :class:`huaweicloudsdkelb.v3.RedirectPoolsStickySessionConfig`
|
523
|
+
"""
|
524
|
+
return self._redirect_pools_sticky_session_config
|
525
|
+
|
526
|
+
@redirect_pools_sticky_session_config.setter
|
527
|
+
def redirect_pools_sticky_session_config(self, redirect_pools_sticky_session_config):
|
528
|
+
"""Sets the redirect_pools_sticky_session_config of this L7Policy.
|
529
|
+
|
530
|
+
:param redirect_pools_sticky_session_config: The redirect_pools_sticky_session_config of this L7Policy.
|
531
|
+
:type redirect_pools_sticky_session_config: :class:`huaweicloudsdkelb.v3.RedirectPoolsStickySessionConfig`
|
532
|
+
"""
|
533
|
+
self._redirect_pools_sticky_session_config = redirect_pools_sticky_session_config
|
534
|
+
|
481
535
|
@property
|
482
536
|
def redirect_pools_extend_config(self):
|
483
537
|
"""Gets the redirect_pools_extend_config of this L7Policy.
|
@@ -518,7 +572,7 @@ class L7Policy:
|
|
518
572
|
def created_at(self):
|
519
573
|
"""Gets the created_at of this L7Policy.
|
520
574
|
|
521
|
-
创建时间。格式: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)
|
575
|
+
创建时间。格式: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)
|
522
576
|
|
523
577
|
:return: The created_at of this L7Policy.
|
524
578
|
:rtype: str
|
@@ -529,7 +583,7 @@ class L7Policy:
|
|
529
583
|
def created_at(self, created_at):
|
530
584
|
"""Sets the created_at of this L7Policy.
|
531
585
|
|
532
|
-
创建时间。格式: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)
|
586
|
+
创建时间。格式: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)
|
533
587
|
|
534
588
|
:param created_at: The created_at of this L7Policy.
|
535
589
|
:type created_at: str
|
@@ -540,7 +594,7 @@ class L7Policy:
|
|
540
594
|
def updated_at(self):
|
541
595
|
"""Gets the updated_at of this L7Policy.
|
542
596
|
|
543
|
-
更新时间。格式: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)
|
597
|
+
更新时间。格式: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)
|
544
598
|
|
545
599
|
:return: The updated_at of this L7Policy.
|
546
600
|
:rtype: str
|
@@ -551,7 +605,7 @@ class L7Policy:
|
|
551
605
|
def updated_at(self, updated_at):
|
552
606
|
"""Sets the updated_at of this L7Policy.
|
553
607
|
|
554
|
-
更新时间。格式: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)
|
608
|
+
更新时间。格式: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)
|
555
609
|
|
556
610
|
:param updated_at: The updated_at of this L7Policy.
|
557
611
|
:type updated_at: str
|
@@ -55,11 +55,11 @@ class L7Rule:
|
|
55
55
|
:type admin_state_up: bool
|
56
56
|
:param compare_type: 转发规则的匹配方式。type为HOST_NAME时可以为EQUAL_TO。type为PATH时可以为REGEX, STARTS_WITH,EQUAL_TO。
|
57
57
|
:type compare_type: str
|
58
|
-
:param key: 匹配内容的键值。[type为HOST_NAME和PATH时,该字段不生效。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [不支持该字段,请勿使用。](tag:hcso_dt)
|
58
|
+
:param key: 匹配内容的键值。[type为HOST_NAME和PATH时,该字段不生效。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [不支持该字段,请勿使用。](tag:hcso_dt)
|
59
59
|
:type key: str
|
60
60
|
:param project_id: 转发规则所在的项目ID。
|
61
61
|
:type project_id: str
|
62
|
-
: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)
|
62
|
+
: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)
|
63
63
|
:type type: str
|
64
64
|
:param value: 匹配内容的值。仅当conditions空时该字段生效。 当type为HOST_NAME时,字符串只能包含英文字母、数字、-.*,必须以字母、数字或*开头。 若域名中包含*,则*只能出现在开头且必须以*.开始。当*开头时表示通配0~任一个字符。 当type为PATH时,当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以/开头。 当type为METHOD、SOURCE_IP、HEADER, QUERY_STRING时,该字段无意义,使用condition_pair来指定key,value。
|
65
65
|
:type value: str
|
@@ -69,11 +69,11 @@ class L7Rule:
|
|
69
69
|
:type invert: bool
|
70
70
|
:param id: 规则ID。
|
71
71
|
:type id: str
|
72
|
-
:param conditions: 转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 若转发规则配置了conditions,字段key、字段value的值无意义。 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt)
|
72
|
+
:param conditions: 转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 若转发规则配置了conditions,字段key、字段value的值无意义。 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
73
73
|
:type conditions: list[:class:`huaweicloudsdkelb.v3.RuleCondition`]
|
74
|
-
: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)
|
74
|
+
: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)
|
75
75
|
:type created_at: str
|
76
|
-
: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)
|
76
|
+
: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)
|
77
77
|
:type updated_at: str
|
78
78
|
"""
|
79
79
|
|
@@ -156,7 +156,7 @@ class L7Rule:
|
|
156
156
|
def key(self):
|
157
157
|
"""Gets the key of this L7Rule.
|
158
158
|
|
159
|
-
匹配内容的键值。[type为HOST_NAME和PATH时,该字段不生效。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [不支持该字段,请勿使用。](tag:hcso_dt)
|
159
|
+
匹配内容的键值。[type为HOST_NAME和PATH时,该字段不生效。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [不支持该字段,请勿使用。](tag:hcso_dt)
|
160
160
|
|
161
161
|
:return: The key of this L7Rule.
|
162
162
|
:rtype: str
|
@@ -167,7 +167,7 @@ class L7Rule:
|
|
167
167
|
def key(self, key):
|
168
168
|
"""Sets the key of this L7Rule.
|
169
169
|
|
170
|
-
匹配内容的键值。[type为HOST_NAME和PATH时,该字段不生效。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [不支持该字段,请勿使用。](tag:hcso_dt)
|
170
|
+
匹配内容的键值。[type为HOST_NAME和PATH时,该字段不生效。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [不支持该字段,请勿使用。](tag:hcso_dt)
|
171
171
|
|
172
172
|
:param key: The key of this L7Rule.
|
173
173
|
:type key: str
|
@@ -200,7 +200,7 @@ class L7Rule:
|
|
200
200
|
def type(self):
|
201
201
|
"""Gets the type of this L7Rule.
|
202
202
|
|
203
|
-
转发规则类别。 取值: - 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)
|
203
|
+
转发规则类别。 取值: - 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)
|
204
204
|
|
205
205
|
:return: The type of this L7Rule.
|
206
206
|
:rtype: str
|
@@ -211,7 +211,7 @@ class L7Rule:
|
|
211
211
|
def type(self, type):
|
212
212
|
"""Sets the type of this L7Rule.
|
213
213
|
|
214
|
-
转发规则类别。 取值: - 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)
|
214
|
+
转发规则类别。 取值: - 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)
|
215
215
|
|
216
216
|
:param type: The type of this L7Rule.
|
217
217
|
:type type: str
|
@@ -310,7 +310,7 @@ class L7Rule:
|
|
310
310
|
def conditions(self):
|
311
311
|
"""Gets the conditions of this L7Rule.
|
312
312
|
|
313
|
-
转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 若转发规则配置了conditions,字段key、字段value的值无意义。 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt)
|
313
|
+
转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 若转发规则配置了conditions,字段key、字段value的值无意义。 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
314
314
|
|
315
315
|
:return: The conditions of this L7Rule.
|
316
316
|
:rtype: list[:class:`huaweicloudsdkelb.v3.RuleCondition`]
|
@@ -321,7 +321,7 @@ class L7Rule:
|
|
321
321
|
def conditions(self, conditions):
|
322
322
|
"""Sets the conditions of this L7Rule.
|
323
323
|
|
324
|
-
转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 若转发规则配置了conditions,字段key、字段value的值无意义。 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt)
|
324
|
+
转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 若转发规则配置了conditions,字段key、字段value的值无意义。 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
325
325
|
|
326
326
|
:param conditions: The conditions of this L7Rule.
|
327
327
|
:type conditions: list[:class:`huaweicloudsdkelb.v3.RuleCondition`]
|
@@ -332,7 +332,7 @@ class L7Rule:
|
|
332
332
|
def created_at(self):
|
333
333
|
"""Gets the created_at of this L7Rule.
|
334
334
|
|
335
|
-
创建时间。格式: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)
|
335
|
+
创建时间。格式: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)
|
336
336
|
|
337
337
|
:return: The created_at of this L7Rule.
|
338
338
|
:rtype: str
|
@@ -343,7 +343,7 @@ class L7Rule:
|
|
343
343
|
def created_at(self, created_at):
|
344
344
|
"""Sets the created_at of this L7Rule.
|
345
345
|
|
346
|
-
创建时间。格式: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)
|
346
|
+
创建时间。格式: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)
|
347
347
|
|
348
348
|
:param created_at: The created_at of this L7Rule.
|
349
349
|
:type created_at: str
|
@@ -354,7 +354,7 @@ class L7Rule:
|
|
354
354
|
def updated_at(self):
|
355
355
|
"""Gets the updated_at of this L7Rule.
|
356
356
|
|
357
|
-
更新时间。格式: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)
|
357
|
+
更新时间。格式: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)
|
358
358
|
|
359
359
|
:return: The updated_at of this L7Rule.
|
360
360
|
:rtype: str
|
@@ -365,7 +365,7 @@ class L7Rule:
|
|
365
365
|
def updated_at(self, updated_at):
|
366
366
|
"""Sets the updated_at of this L7Rule.
|
367
367
|
|
368
|
-
更新时间。格式: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)
|
368
|
+
更新时间。格式: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)
|
369
369
|
|
370
370
|
:param updated_at: The updated_at of this L7Rule.
|
371
371
|
:type updated_at: str
|
@@ -59,7 +59,7 @@ class ListAllMembersRequest:
|
|
59
59
|
|
60
60
|
:param marker: 上一页最后一条记录的ID。 使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
|
61
61
|
:type marker: str
|
62
|
-
:param limit:
|
62
|
+
:param limit: 参数解释:每页返回的个数。 取值范围:0-2000 默认取值:2000
|
63
63
|
:type limit: int
|
64
64
|
:param page_reverse: 是否反向查询。 取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
|
65
65
|
:type page_reverse: bool
|
@@ -165,7 +165,7 @@ class ListAllMembersRequest:
|
|
165
165
|
def limit(self):
|
166
166
|
"""Gets the limit of this ListAllMembersRequest.
|
167
167
|
|
168
|
-
|
168
|
+
参数解释:每页返回的个数。 取值范围:0-2000 默认取值:2000
|
169
169
|
|
170
170
|
:return: The limit of this ListAllMembersRequest.
|
171
171
|
:rtype: int
|
@@ -176,7 +176,7 @@ class ListAllMembersRequest:
|
|
176
176
|
def limit(self, limit):
|
177
177
|
"""Sets the limit of this ListAllMembersRequest.
|
178
178
|
|
179
|
-
|
179
|
+
参数解释:每页返回的个数。 取值范围:0-2000 默认取值:2000
|
180
180
|
|
181
181
|
:param limit: The limit of this ListAllMembersRequest.
|
182
182
|
:type limit: int
|
@@ -20,7 +20,7 @@ class ListAllMembersResponse(SdkResponse):
|
|
20
20
|
openapi_types = {
|
21
21
|
'request_id': 'str',
|
22
22
|
'page_info': 'PageInfo',
|
23
|
-
'members': 'list[
|
23
|
+
'members': 'list[MemberInfo]'
|
24
24
|
}
|
25
25
|
|
26
26
|
attribute_map = {
|
@@ -39,7 +39,7 @@ class ListAllMembersResponse(SdkResponse):
|
|
39
39
|
:param page_info:
|
40
40
|
:type page_info: :class:`huaweicloudsdkelb.v3.PageInfo`
|
41
41
|
:param members: 后端服务器对象列表。
|
42
|
-
:type members: list[:class:`huaweicloudsdkelb.v3.
|
42
|
+
:type members: list[:class:`huaweicloudsdkelb.v3.MemberInfo`]
|
43
43
|
"""
|
44
44
|
|
45
45
|
super(ListAllMembersResponse, self).__init__()
|
@@ -103,7 +103,7 @@ class ListAllMembersResponse(SdkResponse):
|
|
103
103
|
后端服务器对象列表。
|
104
104
|
|
105
105
|
:return: The members of this ListAllMembersResponse.
|
106
|
-
:rtype: list[:class:`huaweicloudsdkelb.v3.
|
106
|
+
:rtype: list[:class:`huaweicloudsdkelb.v3.MemberInfo`]
|
107
107
|
"""
|
108
108
|
return self._members
|
109
109
|
|
@@ -114,7 +114,7 @@ class ListAllMembersResponse(SdkResponse):
|
|
114
114
|
后端服务器对象列表。
|
115
115
|
|
116
116
|
:param members: The members of this ListAllMembersResponse.
|
117
|
-
:type members: list[:class:`huaweicloudsdkelb.v3.
|
117
|
+
:type members: list[:class:`huaweicloudsdkelb.v3.MemberInfo`]
|
118
118
|
"""
|
119
119
|
self._members = members
|
120
120
|
|
@@ -25,7 +25,9 @@ class ListCertificatesRequest:
|
|
25
25
|
'description': 'list[str]',
|
26
26
|
'admin_state_up': 'bool',
|
27
27
|
'domain': 'list[str]',
|
28
|
-
'type': 'list[str]'
|
28
|
+
'type': 'list[str]',
|
29
|
+
'common_name': 'list[str]',
|
30
|
+
'fingerprint': 'list[str]'
|
29
31
|
}
|
30
32
|
|
31
33
|
attribute_map = {
|
@@ -37,17 +39,19 @@ class ListCertificatesRequest:
|
|
37
39
|
'description': 'description',
|
38
40
|
'admin_state_up': 'admin_state_up',
|
39
41
|
'domain': 'domain',
|
40
|
-
'type': 'type'
|
42
|
+
'type': 'type',
|
43
|
+
'common_name': 'common_name',
|
44
|
+
'fingerprint': 'fingerprint'
|
41
45
|
}
|
42
46
|
|
43
|
-
def __init__(self, marker=None, limit=None, page_reverse=None, id=None, name=None, description=None, admin_state_up=None, domain=None, type=None):
|
47
|
+
def __init__(self, marker=None, limit=None, page_reverse=None, id=None, name=None, description=None, admin_state_up=None, domain=None, type=None, common_name=None, fingerprint=None):
|
44
48
|
"""ListCertificatesRequest
|
45
49
|
|
46
50
|
The model defined in huaweicloud sdk
|
47
51
|
|
48
52
|
:param marker: 上一页最后一条记录的ID。 使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
|
49
53
|
:type marker: str
|
50
|
-
:param limit:
|
54
|
+
:param limit: 参数解释:每页返回的个数。 取值范围:0-2000 默认取值:2000
|
51
55
|
:type limit: int
|
52
56
|
:param page_reverse: 是否反向查询。 取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
|
53
57
|
:type page_reverse: bool
|
@@ -63,6 +67,10 @@ class ListCertificatesRequest:
|
|
63
67
|
:type domain: list[str]
|
64
68
|
:param type: 证书的类型。分为服务器证书(server)和CA证书(client)。 支持多值查询,查询条件格式:type=xxx&type=xxx。
|
65
69
|
:type type: list[str]
|
70
|
+
:param common_name: 证书的主域名。 支持多值查询,查询条件格式:common_name=xxx&common_name=xxx。
|
71
|
+
:type common_name: list[str]
|
72
|
+
:param fingerprint: 证书的指纹。 支持多值查询,查询条件格式:fingerprint=xxx&fingerprint=xxx。
|
73
|
+
:type fingerprint: list[str]
|
66
74
|
"""
|
67
75
|
|
68
76
|
|
@@ -76,6 +84,8 @@ class ListCertificatesRequest:
|
|
76
84
|
self._admin_state_up = None
|
77
85
|
self._domain = None
|
78
86
|
self._type = None
|
87
|
+
self._common_name = None
|
88
|
+
self._fingerprint = None
|
79
89
|
self.discriminator = None
|
80
90
|
|
81
91
|
if marker is not None:
|
@@ -96,6 +106,10 @@ class ListCertificatesRequest:
|
|
96
106
|
self.domain = domain
|
97
107
|
if type is not None:
|
98
108
|
self.type = type
|
109
|
+
if common_name is not None:
|
110
|
+
self.common_name = common_name
|
111
|
+
if fingerprint is not None:
|
112
|
+
self.fingerprint = fingerprint
|
99
113
|
|
100
114
|
@property
|
101
115
|
def marker(self):
|
@@ -123,7 +137,7 @@ class ListCertificatesRequest:
|
|
123
137
|
def limit(self):
|
124
138
|
"""Gets the limit of this ListCertificatesRequest.
|
125
139
|
|
126
|
-
|
140
|
+
参数解释:每页返回的个数。 取值范围:0-2000 默认取值:2000
|
127
141
|
|
128
142
|
:return: The limit of this ListCertificatesRequest.
|
129
143
|
:rtype: int
|
@@ -134,7 +148,7 @@ class ListCertificatesRequest:
|
|
134
148
|
def limit(self, limit):
|
135
149
|
"""Sets the limit of this ListCertificatesRequest.
|
136
150
|
|
137
|
-
|
151
|
+
参数解释:每页返回的个数。 取值范围:0-2000 默认取值:2000
|
138
152
|
|
139
153
|
:param limit: The limit of this ListCertificatesRequest.
|
140
154
|
:type limit: int
|
@@ -295,6 +309,50 @@ class ListCertificatesRequest:
|
|
295
309
|
"""
|
296
310
|
self._type = type
|
297
311
|
|
312
|
+
@property
|
313
|
+
def common_name(self):
|
314
|
+
"""Gets the common_name of this ListCertificatesRequest.
|
315
|
+
|
316
|
+
证书的主域名。 支持多值查询,查询条件格式:common_name=xxx&common_name=xxx。
|
317
|
+
|
318
|
+
:return: The common_name of this ListCertificatesRequest.
|
319
|
+
:rtype: list[str]
|
320
|
+
"""
|
321
|
+
return self._common_name
|
322
|
+
|
323
|
+
@common_name.setter
|
324
|
+
def common_name(self, common_name):
|
325
|
+
"""Sets the common_name of this ListCertificatesRequest.
|
326
|
+
|
327
|
+
证书的主域名。 支持多值查询,查询条件格式:common_name=xxx&common_name=xxx。
|
328
|
+
|
329
|
+
:param common_name: The common_name of this ListCertificatesRequest.
|
330
|
+
:type common_name: list[str]
|
331
|
+
"""
|
332
|
+
self._common_name = common_name
|
333
|
+
|
334
|
+
@property
|
335
|
+
def fingerprint(self):
|
336
|
+
"""Gets the fingerprint of this ListCertificatesRequest.
|
337
|
+
|
338
|
+
证书的指纹。 支持多值查询,查询条件格式:fingerprint=xxx&fingerprint=xxx。
|
339
|
+
|
340
|
+
:return: The fingerprint of this ListCertificatesRequest.
|
341
|
+
:rtype: list[str]
|
342
|
+
"""
|
343
|
+
return self._fingerprint
|
344
|
+
|
345
|
+
@fingerprint.setter
|
346
|
+
def fingerprint(self, fingerprint):
|
347
|
+
"""Sets the fingerprint of this ListCertificatesRequest.
|
348
|
+
|
349
|
+
证书的指纹。 支持多值查询,查询条件格式:fingerprint=xxx&fingerprint=xxx。
|
350
|
+
|
351
|
+
:param fingerprint: The fingerprint of this ListCertificatesRequest.
|
352
|
+
:type fingerprint: list[str]
|
353
|
+
"""
|
354
|
+
self._fingerprint = fingerprint
|
355
|
+
|
298
356
|
def to_dict(self):
|
299
357
|
"""Returns the model properties as a dict"""
|
300
358
|
result = {}
|