huaweicloudsdkelb 3.1.86__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.86.dist-info → huaweicloudsdkelb-3.1.132.dist-info}/METADATA +2 -2
- {huaweicloudsdkelb-3.1.86.dist-info → huaweicloudsdkelb-3.1.132.dist-info}/RECORD +213 -184
- {huaweicloudsdkelb-3.1.86.dist-info → huaweicloudsdkelb-3.1.132.dist-info}/WHEEL +1 -1
- {huaweicloudsdkelb-3.1.86.dist-info → huaweicloudsdkelb-3.1.132.dist-info}/LICENSE +0 -0
- {huaweicloudsdkelb-3.1.86.dist-info → huaweicloudsdkelb-3.1.132.dist-info}/top_level.txt +0 -0
@@ -18,41 +18,62 @@ class UpdateRedirectPoolsExtendConfig:
|
|
18
18
|
|
19
19
|
openapi_types = {
|
20
20
|
'rewrite_url_enable': 'bool',
|
21
|
-
'rewrite_url_config': '
|
21
|
+
'rewrite_url_config': 'UpdateRewriteUrlConfig',
|
22
|
+
'insert_headers_config': 'UpdateInsertHeadersConfig',
|
23
|
+
'remove_headers_config': 'UpdateRemoveHeadersConfig',
|
24
|
+
'traffic_limit_config': 'UpdateTrafficLimitConfig'
|
22
25
|
}
|
23
26
|
|
24
27
|
attribute_map = {
|
25
28
|
'rewrite_url_enable': 'rewrite_url_enable',
|
26
|
-
'rewrite_url_config': 'rewrite_url_config'
|
29
|
+
'rewrite_url_config': 'rewrite_url_config',
|
30
|
+
'insert_headers_config': 'insert_headers_config',
|
31
|
+
'remove_headers_config': 'remove_headers_config',
|
32
|
+
'traffic_limit_config': 'traffic_limit_config'
|
27
33
|
}
|
28
34
|
|
29
|
-
def __init__(self, rewrite_url_enable=None, rewrite_url_config=None):
|
35
|
+
def __init__(self, rewrite_url_enable=None, rewrite_url_config=None, insert_headers_config=None, remove_headers_config=None, traffic_limit_config=None):
|
30
36
|
"""UpdateRedirectPoolsExtendConfig
|
31
37
|
|
32
38
|
The model defined in huaweicloud sdk
|
33
39
|
|
34
|
-
:param rewrite_url_enable:
|
40
|
+
:param rewrite_url_enable: 参数解释:是否开启url重定向
|
35
41
|
:type rewrite_url_enable: bool
|
36
42
|
:param rewrite_url_config:
|
37
|
-
:type rewrite_url_config: :class:`huaweicloudsdkelb.v3.
|
43
|
+
:type rewrite_url_config: :class:`huaweicloudsdkelb.v3.UpdateRewriteUrlConfig`
|
44
|
+
:param insert_headers_config:
|
45
|
+
:type insert_headers_config: :class:`huaweicloudsdkelb.v3.UpdateInsertHeadersConfig`
|
46
|
+
:param remove_headers_config:
|
47
|
+
:type remove_headers_config: :class:`huaweicloudsdkelb.v3.UpdateRemoveHeadersConfig`
|
48
|
+
:param traffic_limit_config:
|
49
|
+
:type traffic_limit_config: :class:`huaweicloudsdkelb.v3.UpdateTrafficLimitConfig`
|
38
50
|
"""
|
39
51
|
|
40
52
|
|
41
53
|
|
42
54
|
self._rewrite_url_enable = None
|
43
55
|
self._rewrite_url_config = None
|
56
|
+
self._insert_headers_config = None
|
57
|
+
self._remove_headers_config = None
|
58
|
+
self._traffic_limit_config = None
|
44
59
|
self.discriminator = None
|
45
60
|
|
46
61
|
if rewrite_url_enable is not None:
|
47
62
|
self.rewrite_url_enable = rewrite_url_enable
|
48
63
|
if rewrite_url_config is not None:
|
49
64
|
self.rewrite_url_config = rewrite_url_config
|
65
|
+
if insert_headers_config is not None:
|
66
|
+
self.insert_headers_config = insert_headers_config
|
67
|
+
if remove_headers_config is not None:
|
68
|
+
self.remove_headers_config = remove_headers_config
|
69
|
+
if traffic_limit_config is not None:
|
70
|
+
self.traffic_limit_config = traffic_limit_config
|
50
71
|
|
51
72
|
@property
|
52
73
|
def rewrite_url_enable(self):
|
53
74
|
"""Gets the rewrite_url_enable of this UpdateRedirectPoolsExtendConfig.
|
54
75
|
|
55
|
-
|
76
|
+
参数解释:是否开启url重定向
|
56
77
|
|
57
78
|
:return: The rewrite_url_enable of this UpdateRedirectPoolsExtendConfig.
|
58
79
|
:rtype: bool
|
@@ -63,7 +84,7 @@ class UpdateRedirectPoolsExtendConfig:
|
|
63
84
|
def rewrite_url_enable(self, rewrite_url_enable):
|
64
85
|
"""Sets the rewrite_url_enable of this UpdateRedirectPoolsExtendConfig.
|
65
86
|
|
66
|
-
|
87
|
+
参数解释:是否开启url重定向
|
67
88
|
|
68
89
|
:param rewrite_url_enable: The rewrite_url_enable of this UpdateRedirectPoolsExtendConfig.
|
69
90
|
:type rewrite_url_enable: bool
|
@@ -75,7 +96,7 @@ class UpdateRedirectPoolsExtendConfig:
|
|
75
96
|
"""Gets the rewrite_url_config of this UpdateRedirectPoolsExtendConfig.
|
76
97
|
|
77
98
|
:return: The rewrite_url_config of this UpdateRedirectPoolsExtendConfig.
|
78
|
-
:rtype: :class:`huaweicloudsdkelb.v3.
|
99
|
+
:rtype: :class:`huaweicloudsdkelb.v3.UpdateRewriteUrlConfig`
|
79
100
|
"""
|
80
101
|
return self._rewrite_url_config
|
81
102
|
|
@@ -84,10 +105,64 @@ class UpdateRedirectPoolsExtendConfig:
|
|
84
105
|
"""Sets the rewrite_url_config of this UpdateRedirectPoolsExtendConfig.
|
85
106
|
|
86
107
|
:param rewrite_url_config: The rewrite_url_config of this UpdateRedirectPoolsExtendConfig.
|
87
|
-
:type rewrite_url_config: :class:`huaweicloudsdkelb.v3.
|
108
|
+
:type rewrite_url_config: :class:`huaweicloudsdkelb.v3.UpdateRewriteUrlConfig`
|
88
109
|
"""
|
89
110
|
self._rewrite_url_config = rewrite_url_config
|
90
111
|
|
112
|
+
@property
|
113
|
+
def insert_headers_config(self):
|
114
|
+
"""Gets the insert_headers_config of this UpdateRedirectPoolsExtendConfig.
|
115
|
+
|
116
|
+
:return: The insert_headers_config of this UpdateRedirectPoolsExtendConfig.
|
117
|
+
:rtype: :class:`huaweicloudsdkelb.v3.UpdateInsertHeadersConfig`
|
118
|
+
"""
|
119
|
+
return self._insert_headers_config
|
120
|
+
|
121
|
+
@insert_headers_config.setter
|
122
|
+
def insert_headers_config(self, insert_headers_config):
|
123
|
+
"""Sets the insert_headers_config of this UpdateRedirectPoolsExtendConfig.
|
124
|
+
|
125
|
+
:param insert_headers_config: The insert_headers_config of this UpdateRedirectPoolsExtendConfig.
|
126
|
+
:type insert_headers_config: :class:`huaweicloudsdkelb.v3.UpdateInsertHeadersConfig`
|
127
|
+
"""
|
128
|
+
self._insert_headers_config = insert_headers_config
|
129
|
+
|
130
|
+
@property
|
131
|
+
def remove_headers_config(self):
|
132
|
+
"""Gets the remove_headers_config of this UpdateRedirectPoolsExtendConfig.
|
133
|
+
|
134
|
+
:return: The remove_headers_config of this UpdateRedirectPoolsExtendConfig.
|
135
|
+
:rtype: :class:`huaweicloudsdkelb.v3.UpdateRemoveHeadersConfig`
|
136
|
+
"""
|
137
|
+
return self._remove_headers_config
|
138
|
+
|
139
|
+
@remove_headers_config.setter
|
140
|
+
def remove_headers_config(self, remove_headers_config):
|
141
|
+
"""Sets the remove_headers_config of this UpdateRedirectPoolsExtendConfig.
|
142
|
+
|
143
|
+
:param remove_headers_config: The remove_headers_config of this UpdateRedirectPoolsExtendConfig.
|
144
|
+
:type remove_headers_config: :class:`huaweicloudsdkelb.v3.UpdateRemoveHeadersConfig`
|
145
|
+
"""
|
146
|
+
self._remove_headers_config = remove_headers_config
|
147
|
+
|
148
|
+
@property
|
149
|
+
def traffic_limit_config(self):
|
150
|
+
"""Gets the traffic_limit_config of this UpdateRedirectPoolsExtendConfig.
|
151
|
+
|
152
|
+
:return: The traffic_limit_config of this UpdateRedirectPoolsExtendConfig.
|
153
|
+
:rtype: :class:`huaweicloudsdkelb.v3.UpdateTrafficLimitConfig`
|
154
|
+
"""
|
155
|
+
return self._traffic_limit_config
|
156
|
+
|
157
|
+
@traffic_limit_config.setter
|
158
|
+
def traffic_limit_config(self, traffic_limit_config):
|
159
|
+
"""Sets the traffic_limit_config of this UpdateRedirectPoolsExtendConfig.
|
160
|
+
|
161
|
+
:param traffic_limit_config: The traffic_limit_config of this UpdateRedirectPoolsExtendConfig.
|
162
|
+
:type traffic_limit_config: :class:`huaweicloudsdkelb.v3.UpdateTrafficLimitConfig`
|
163
|
+
"""
|
164
|
+
self._traffic_limit_config = traffic_limit_config
|
165
|
+
|
91
166
|
def to_dict(self):
|
92
167
|
"""Returns the model properties as a dict"""
|
93
168
|
result = {}
|
@@ -0,0 +1,144 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class UpdateRedirectPoolsStickySessionConfig:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'enable': 'bool',
|
21
|
+
'timeout': 'int'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'enable': 'enable',
|
26
|
+
'timeout': 'timeout'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, enable=None, timeout=None):
|
30
|
+
"""UpdateRedirectPoolsStickySessionConfig
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param enable: 参数解释:转发策略主机组会话保持开启的开关。 默认取值:false,表示关闭主机组会话保持。
|
35
|
+
:type enable: bool
|
36
|
+
:param timeout: 参数解释:会话保持的时间。 取值范围:1-1440(分钟) 默认取值:1440 [荷兰region不支持QUIC。](tag:dt,dt_test)
|
37
|
+
:type timeout: int
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._enable = None
|
43
|
+
self._timeout = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if enable is not None:
|
47
|
+
self.enable = enable
|
48
|
+
if timeout is not None:
|
49
|
+
self.timeout = timeout
|
50
|
+
|
51
|
+
@property
|
52
|
+
def enable(self):
|
53
|
+
"""Gets the enable of this UpdateRedirectPoolsStickySessionConfig.
|
54
|
+
|
55
|
+
参数解释:转发策略主机组会话保持开启的开关。 默认取值:false,表示关闭主机组会话保持。
|
56
|
+
|
57
|
+
:return: The enable of this UpdateRedirectPoolsStickySessionConfig.
|
58
|
+
:rtype: bool
|
59
|
+
"""
|
60
|
+
return self._enable
|
61
|
+
|
62
|
+
@enable.setter
|
63
|
+
def enable(self, enable):
|
64
|
+
"""Sets the enable of this UpdateRedirectPoolsStickySessionConfig.
|
65
|
+
|
66
|
+
参数解释:转发策略主机组会话保持开启的开关。 默认取值:false,表示关闭主机组会话保持。
|
67
|
+
|
68
|
+
:param enable: The enable of this UpdateRedirectPoolsStickySessionConfig.
|
69
|
+
:type enable: bool
|
70
|
+
"""
|
71
|
+
self._enable = enable
|
72
|
+
|
73
|
+
@property
|
74
|
+
def timeout(self):
|
75
|
+
"""Gets the timeout of this UpdateRedirectPoolsStickySessionConfig.
|
76
|
+
|
77
|
+
参数解释:会话保持的时间。 取值范围:1-1440(分钟) 默认取值:1440 [荷兰region不支持QUIC。](tag:dt,dt_test)
|
78
|
+
|
79
|
+
:return: The timeout of this UpdateRedirectPoolsStickySessionConfig.
|
80
|
+
:rtype: int
|
81
|
+
"""
|
82
|
+
return self._timeout
|
83
|
+
|
84
|
+
@timeout.setter
|
85
|
+
def timeout(self, timeout):
|
86
|
+
"""Sets the timeout of this UpdateRedirectPoolsStickySessionConfig.
|
87
|
+
|
88
|
+
参数解释:会话保持的时间。 取值范围:1-1440(分钟) 默认取值:1440 [荷兰region不支持QUIC。](tag:dt,dt_test)
|
89
|
+
|
90
|
+
:param timeout: The timeout of this UpdateRedirectPoolsStickySessionConfig.
|
91
|
+
:type timeout: int
|
92
|
+
"""
|
93
|
+
self._timeout = timeout
|
94
|
+
|
95
|
+
def to_dict(self):
|
96
|
+
"""Returns the model properties as a dict"""
|
97
|
+
result = {}
|
98
|
+
|
99
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
100
|
+
value = getattr(self, attr)
|
101
|
+
if isinstance(value, list):
|
102
|
+
result[attr] = list(map(
|
103
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
104
|
+
value
|
105
|
+
))
|
106
|
+
elif hasattr(value, "to_dict"):
|
107
|
+
result[attr] = value.to_dict()
|
108
|
+
elif isinstance(value, dict):
|
109
|
+
result[attr] = dict(map(
|
110
|
+
lambda item: (item[0], item[1].to_dict())
|
111
|
+
if hasattr(item[1], "to_dict") else item,
|
112
|
+
value.items()
|
113
|
+
))
|
114
|
+
else:
|
115
|
+
if attr in self.sensitive_list:
|
116
|
+
result[attr] = "****"
|
117
|
+
else:
|
118
|
+
result[attr] = value
|
119
|
+
|
120
|
+
return result
|
121
|
+
|
122
|
+
def to_str(self):
|
123
|
+
"""Returns the string representation of the model"""
|
124
|
+
import simplejson as json
|
125
|
+
if six.PY2:
|
126
|
+
import sys
|
127
|
+
reload(sys)
|
128
|
+
sys.setdefaultencoding("utf-8")
|
129
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
130
|
+
|
131
|
+
def __repr__(self):
|
132
|
+
"""For `print`"""
|
133
|
+
return self.to_str()
|
134
|
+
|
135
|
+
def __eq__(self, other):
|
136
|
+
"""Returns true if both objects are equal"""
|
137
|
+
if not isinstance(other, UpdateRedirectPoolsStickySessionConfig):
|
138
|
+
return False
|
139
|
+
|
140
|
+
return self.__dict__ == other.__dict__
|
141
|
+
|
142
|
+
def __ne__(self, other):
|
143
|
+
"""Returns true if both objects are not equal"""
|
144
|
+
return not self == other
|
@@ -22,7 +22,9 @@ class UpdateRedirectUrlConfig:
|
|
22
22
|
'port': 'str',
|
23
23
|
'path': 'str',
|
24
24
|
'query': 'str',
|
25
|
-
'status_code': 'str'
|
25
|
+
'status_code': 'str',
|
26
|
+
'insert_headers_config': 'UpdateInsertHeadersConfig',
|
27
|
+
'remove_headers_config': 'UpdateRemoveHeadersConfig'
|
26
28
|
}
|
27
29
|
|
28
30
|
attribute_map = {
|
@@ -31,26 +33,32 @@ class UpdateRedirectUrlConfig:
|
|
31
33
|
'port': 'port',
|
32
34
|
'path': 'path',
|
33
35
|
'query': 'query',
|
34
|
-
'status_code': 'status_code'
|
36
|
+
'status_code': 'status_code',
|
37
|
+
'insert_headers_config': 'insert_headers_config',
|
38
|
+
'remove_headers_config': 'remove_headers_config'
|
35
39
|
}
|
36
40
|
|
37
|
-
def __init__(self, protocol=None, host=None, port=None, path=None, query=None, status_code=None):
|
41
|
+
def __init__(self, protocol=None, host=None, port=None, path=None, query=None, status_code=None, insert_headers_config=None, remove_headers_config=None):
|
38
42
|
"""UpdateRedirectUrlConfig
|
39
43
|
|
40
44
|
The model defined in huaweicloud sdk
|
41
45
|
|
42
|
-
:param protocol:
|
46
|
+
:param protocol: 参数解释:重定向的协议。 取值范围: - HTTP - HTTPS - ${protocol},表示继承原值(即与被转发请求保持一致)。
|
43
47
|
:type protocol: str
|
44
|
-
:param host:
|
48
|
+
:param host: 参数解释:重定向的主机名。 取值范围:字符串只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认取值:${host},表示继承原值(即与被转发请求保持一致)。
|
45
49
|
:type host: str
|
46
|
-
:param port:
|
50
|
+
:param port: 参数解释:重定向到的端口。 默认取值:${port}表示继承原值(即与被转发请求保持一致)。
|
47
51
|
:type port: str
|
48
|
-
:param path:
|
52
|
+
:param path: 参数解释:重定向的路径。 取值范围:只能包含英文字母、数字、_~';@^-%#&$.\\*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 默认取值:${path},表示继承原值(即与被转发请求保持一致)。
|
49
53
|
:type path: str
|
50
|
-
:param query:
|
54
|
+
:param query: 参数解释:重定向的查询字符串。举例如下: 将query设置为:${query}&name=my_name,则在转发符合条件的URL (如https://www.example.com:8080/elb?type=loadbalancer)时,将会重定向到 https://www.example.com:8080/elb?type=loadbalancer&name=my_name。在例子中${query}表示type=loadbalancer。 取值范围:只能包含英文字母、数字和特殊字符:!$&'()\\*+,-./:;=?@^_`。字母区分大小写。其中$1,$2会匹配请求url通配符星号(\\*) 默认取值:${query}表示继承原值(即与被转发请求保持一致)
|
51
55
|
:type query: str
|
52
|
-
:param status_code:
|
56
|
+
:param status_code: 参数解释:重定向后的返回码。 取值范围: - 301 - 302 - 303 - 307 - 308
|
53
57
|
:type status_code: str
|
58
|
+
:param insert_headers_config:
|
59
|
+
:type insert_headers_config: :class:`huaweicloudsdkelb.v3.UpdateInsertHeadersConfig`
|
60
|
+
:param remove_headers_config:
|
61
|
+
:type remove_headers_config: :class:`huaweicloudsdkelb.v3.UpdateRemoveHeadersConfig`
|
54
62
|
"""
|
55
63
|
|
56
64
|
|
@@ -61,6 +69,8 @@ class UpdateRedirectUrlConfig:
|
|
61
69
|
self._path = None
|
62
70
|
self._query = None
|
63
71
|
self._status_code = None
|
72
|
+
self._insert_headers_config = None
|
73
|
+
self._remove_headers_config = None
|
64
74
|
self.discriminator = None
|
65
75
|
|
66
76
|
if protocol is not None:
|
@@ -75,12 +85,16 @@ class UpdateRedirectUrlConfig:
|
|
75
85
|
self.query = query
|
76
86
|
if status_code is not None:
|
77
87
|
self.status_code = status_code
|
88
|
+
if insert_headers_config is not None:
|
89
|
+
self.insert_headers_config = insert_headers_config
|
90
|
+
if remove_headers_config is not None:
|
91
|
+
self.remove_headers_config = remove_headers_config
|
78
92
|
|
79
93
|
@property
|
80
94
|
def protocol(self):
|
81
95
|
"""Gets the protocol of this UpdateRedirectUrlConfig.
|
82
96
|
|
83
|
-
|
97
|
+
参数解释:重定向的协议。 取值范围: - HTTP - HTTPS - ${protocol},表示继承原值(即与被转发请求保持一致)。
|
84
98
|
|
85
99
|
:return: The protocol of this UpdateRedirectUrlConfig.
|
86
100
|
:rtype: str
|
@@ -91,7 +105,7 @@ class UpdateRedirectUrlConfig:
|
|
91
105
|
def protocol(self, protocol):
|
92
106
|
"""Sets the protocol of this UpdateRedirectUrlConfig.
|
93
107
|
|
94
|
-
|
108
|
+
参数解释:重定向的协议。 取值范围: - HTTP - HTTPS - ${protocol},表示继承原值(即与被转发请求保持一致)。
|
95
109
|
|
96
110
|
:param protocol: The protocol of this UpdateRedirectUrlConfig.
|
97
111
|
:type protocol: str
|
@@ -102,7 +116,7 @@ class UpdateRedirectUrlConfig:
|
|
102
116
|
def host(self):
|
103
117
|
"""Gets the host of this UpdateRedirectUrlConfig.
|
104
118
|
|
105
|
-
|
119
|
+
参数解释:重定向的主机名。 取值范围:字符串只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认取值:${host},表示继承原值(即与被转发请求保持一致)。
|
106
120
|
|
107
121
|
:return: The host of this UpdateRedirectUrlConfig.
|
108
122
|
:rtype: str
|
@@ -113,7 +127,7 @@ class UpdateRedirectUrlConfig:
|
|
113
127
|
def host(self, host):
|
114
128
|
"""Sets the host of this UpdateRedirectUrlConfig.
|
115
129
|
|
116
|
-
|
130
|
+
参数解释:重定向的主机名。 取值范围:字符串只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认取值:${host},表示继承原值(即与被转发请求保持一致)。
|
117
131
|
|
118
132
|
:param host: The host of this UpdateRedirectUrlConfig.
|
119
133
|
:type host: str
|
@@ -124,7 +138,7 @@ class UpdateRedirectUrlConfig:
|
|
124
138
|
def port(self):
|
125
139
|
"""Gets the port of this UpdateRedirectUrlConfig.
|
126
140
|
|
127
|
-
|
141
|
+
参数解释:重定向到的端口。 默认取值:${port}表示继承原值(即与被转发请求保持一致)。
|
128
142
|
|
129
143
|
:return: The port of this UpdateRedirectUrlConfig.
|
130
144
|
:rtype: str
|
@@ -135,7 +149,7 @@ class UpdateRedirectUrlConfig:
|
|
135
149
|
def port(self, port):
|
136
150
|
"""Sets the port of this UpdateRedirectUrlConfig.
|
137
151
|
|
138
|
-
|
152
|
+
参数解释:重定向到的端口。 默认取值:${port}表示继承原值(即与被转发请求保持一致)。
|
139
153
|
|
140
154
|
:param port: The port of this UpdateRedirectUrlConfig.
|
141
155
|
:type port: str
|
@@ -146,7 +160,7 @@ class UpdateRedirectUrlConfig:
|
|
146
160
|
def path(self):
|
147
161
|
"""Gets the path of this UpdateRedirectUrlConfig.
|
148
162
|
|
149
|
-
|
163
|
+
参数解释:重定向的路径。 取值范围:只能包含英文字母、数字、_~';@^-%#&$.\\*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 默认取值:${path},表示继承原值(即与被转发请求保持一致)。
|
150
164
|
|
151
165
|
:return: The path of this UpdateRedirectUrlConfig.
|
152
166
|
:rtype: str
|
@@ -157,7 +171,7 @@ class UpdateRedirectUrlConfig:
|
|
157
171
|
def path(self, path):
|
158
172
|
"""Sets the path of this UpdateRedirectUrlConfig.
|
159
173
|
|
160
|
-
|
174
|
+
参数解释:重定向的路径。 取值范围:只能包含英文字母、数字、_~';@^-%#&$.\\*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 默认取值:${path},表示继承原值(即与被转发请求保持一致)。
|
161
175
|
|
162
176
|
:param path: The path of this UpdateRedirectUrlConfig.
|
163
177
|
:type path: str
|
@@ -168,7 +182,7 @@ class UpdateRedirectUrlConfig:
|
|
168
182
|
def query(self):
|
169
183
|
"""Gets the query of this UpdateRedirectUrlConfig.
|
170
184
|
|
171
|
-
|
185
|
+
参数解释:重定向的查询字符串。举例如下: 将query设置为:${query}&name=my_name,则在转发符合条件的URL (如https://www.example.com:8080/elb?type=loadbalancer)时,将会重定向到 https://www.example.com:8080/elb?type=loadbalancer&name=my_name。在例子中${query}表示type=loadbalancer。 取值范围:只能包含英文字母、数字和特殊字符:!$&'()\\*+,-./:;=?@^_`。字母区分大小写。其中$1,$2会匹配请求url通配符星号(\\*) 默认取值:${query}表示继承原值(即与被转发请求保持一致)
|
172
186
|
|
173
187
|
:return: The query of this UpdateRedirectUrlConfig.
|
174
188
|
:rtype: str
|
@@ -179,7 +193,7 @@ class UpdateRedirectUrlConfig:
|
|
179
193
|
def query(self, query):
|
180
194
|
"""Sets the query of this UpdateRedirectUrlConfig.
|
181
195
|
|
182
|
-
|
196
|
+
参数解释:重定向的查询字符串。举例如下: 将query设置为:${query}&name=my_name,则在转发符合条件的URL (如https://www.example.com:8080/elb?type=loadbalancer)时,将会重定向到 https://www.example.com:8080/elb?type=loadbalancer&name=my_name。在例子中${query}表示type=loadbalancer。 取值范围:只能包含英文字母、数字和特殊字符:!$&'()\\*+,-./:;=?@^_`。字母区分大小写。其中$1,$2会匹配请求url通配符星号(\\*) 默认取值:${query}表示继承原值(即与被转发请求保持一致)
|
183
197
|
|
184
198
|
:param query: The query of this UpdateRedirectUrlConfig.
|
185
199
|
:type query: str
|
@@ -190,7 +204,7 @@ class UpdateRedirectUrlConfig:
|
|
190
204
|
def status_code(self):
|
191
205
|
"""Gets the status_code of this UpdateRedirectUrlConfig.
|
192
206
|
|
193
|
-
|
207
|
+
参数解释:重定向后的返回码。 取值范围: - 301 - 302 - 303 - 307 - 308
|
194
208
|
|
195
209
|
:return: The status_code of this UpdateRedirectUrlConfig.
|
196
210
|
:rtype: str
|
@@ -201,13 +215,49 @@ class UpdateRedirectUrlConfig:
|
|
201
215
|
def status_code(self, status_code):
|
202
216
|
"""Sets the status_code of this UpdateRedirectUrlConfig.
|
203
217
|
|
204
|
-
|
218
|
+
参数解释:重定向后的返回码。 取值范围: - 301 - 302 - 303 - 307 - 308
|
205
219
|
|
206
220
|
:param status_code: The status_code of this UpdateRedirectUrlConfig.
|
207
221
|
:type status_code: str
|
208
222
|
"""
|
209
223
|
self._status_code = status_code
|
210
224
|
|
225
|
+
@property
|
226
|
+
def insert_headers_config(self):
|
227
|
+
"""Gets the insert_headers_config of this UpdateRedirectUrlConfig.
|
228
|
+
|
229
|
+
:return: The insert_headers_config of this UpdateRedirectUrlConfig.
|
230
|
+
:rtype: :class:`huaweicloudsdkelb.v3.UpdateInsertHeadersConfig`
|
231
|
+
"""
|
232
|
+
return self._insert_headers_config
|
233
|
+
|
234
|
+
@insert_headers_config.setter
|
235
|
+
def insert_headers_config(self, insert_headers_config):
|
236
|
+
"""Sets the insert_headers_config of this UpdateRedirectUrlConfig.
|
237
|
+
|
238
|
+
:param insert_headers_config: The insert_headers_config of this UpdateRedirectUrlConfig.
|
239
|
+
:type insert_headers_config: :class:`huaweicloudsdkelb.v3.UpdateInsertHeadersConfig`
|
240
|
+
"""
|
241
|
+
self._insert_headers_config = insert_headers_config
|
242
|
+
|
243
|
+
@property
|
244
|
+
def remove_headers_config(self):
|
245
|
+
"""Gets the remove_headers_config of this UpdateRedirectUrlConfig.
|
246
|
+
|
247
|
+
:return: The remove_headers_config of this UpdateRedirectUrlConfig.
|
248
|
+
:rtype: :class:`huaweicloudsdkelb.v3.UpdateRemoveHeadersConfig`
|
249
|
+
"""
|
250
|
+
return self._remove_headers_config
|
251
|
+
|
252
|
+
@remove_headers_config.setter
|
253
|
+
def remove_headers_config(self, remove_headers_config):
|
254
|
+
"""Sets the remove_headers_config of this UpdateRedirectUrlConfig.
|
255
|
+
|
256
|
+
:param remove_headers_config: The remove_headers_config of this UpdateRedirectUrlConfig.
|
257
|
+
:type remove_headers_config: :class:`huaweicloudsdkelb.v3.UpdateRemoveHeadersConfig`
|
258
|
+
"""
|
259
|
+
self._remove_headers_config = remove_headers_config
|
260
|
+
|
211
261
|
def to_dict(self):
|
212
262
|
"""Returns the model properties as a dict"""
|
213
263
|
result = {}
|
@@ -0,0 +1,114 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class UpdateRemoveHeaderConfig:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'key': 'str'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'key': 'key'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, key=None):
|
28
|
+
"""UpdateRemoveHeaderConfig
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param key: 参数解释:被移除的请求头的参数名。 约束限制:不能移除以下请求头参数: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out 取值范围:1-40个字符,字母a-z(不区分大小写)、数字,短划线-和下划线_。
|
33
|
+
:type key: str
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._key = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.key = key
|
42
|
+
|
43
|
+
@property
|
44
|
+
def key(self):
|
45
|
+
"""Gets the key of this UpdateRemoveHeaderConfig.
|
46
|
+
|
47
|
+
参数解释:被移除的请求头的参数名。 约束限制:不能移除以下请求头参数: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out 取值范围:1-40个字符,字母a-z(不区分大小写)、数字,短划线-和下划线_。
|
48
|
+
|
49
|
+
:return: The key of this UpdateRemoveHeaderConfig.
|
50
|
+
:rtype: str
|
51
|
+
"""
|
52
|
+
return self._key
|
53
|
+
|
54
|
+
@key.setter
|
55
|
+
def key(self, key):
|
56
|
+
"""Sets the key of this UpdateRemoveHeaderConfig.
|
57
|
+
|
58
|
+
参数解释:被移除的请求头的参数名。 约束限制:不能移除以下请求头参数: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out 取值范围:1-40个字符,字母a-z(不区分大小写)、数字,短划线-和下划线_。
|
59
|
+
|
60
|
+
:param key: The key of this UpdateRemoveHeaderConfig.
|
61
|
+
:type key: str
|
62
|
+
"""
|
63
|
+
self._key = key
|
64
|
+
|
65
|
+
def to_dict(self):
|
66
|
+
"""Returns the model properties as a dict"""
|
67
|
+
result = {}
|
68
|
+
|
69
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
70
|
+
value = getattr(self, attr)
|
71
|
+
if isinstance(value, list):
|
72
|
+
result[attr] = list(map(
|
73
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
74
|
+
value
|
75
|
+
))
|
76
|
+
elif hasattr(value, "to_dict"):
|
77
|
+
result[attr] = value.to_dict()
|
78
|
+
elif isinstance(value, dict):
|
79
|
+
result[attr] = dict(map(
|
80
|
+
lambda item: (item[0], item[1].to_dict())
|
81
|
+
if hasattr(item[1], "to_dict") else item,
|
82
|
+
value.items()
|
83
|
+
))
|
84
|
+
else:
|
85
|
+
if attr in self.sensitive_list:
|
86
|
+
result[attr] = "****"
|
87
|
+
else:
|
88
|
+
result[attr] = value
|
89
|
+
|
90
|
+
return result
|
91
|
+
|
92
|
+
def to_str(self):
|
93
|
+
"""Returns the string representation of the model"""
|
94
|
+
import simplejson as json
|
95
|
+
if six.PY2:
|
96
|
+
import sys
|
97
|
+
reload(sys)
|
98
|
+
sys.setdefaultencoding("utf-8")
|
99
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
100
|
+
|
101
|
+
def __repr__(self):
|
102
|
+
"""For `print`"""
|
103
|
+
return self.to_str()
|
104
|
+
|
105
|
+
def __eq__(self, other):
|
106
|
+
"""Returns true if both objects are equal"""
|
107
|
+
if not isinstance(other, UpdateRemoveHeaderConfig):
|
108
|
+
return False
|
109
|
+
|
110
|
+
return self.__dict__ == other.__dict__
|
111
|
+
|
112
|
+
def __ne__(self, other):
|
113
|
+
"""Returns true if both objects are not equal"""
|
114
|
+
return not self == other
|