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
@@ -19,26 +19,38 @@ class UpdateFixtedResponseConfig:
|
|
19
19
|
openapi_types = {
|
20
20
|
'status_code': 'str',
|
21
21
|
'content_type': 'str',
|
22
|
-
'message_body': 'str'
|
22
|
+
'message_body': 'str',
|
23
|
+
'insert_headers_config': 'UpdateInsertHeadersConfig',
|
24
|
+
'remove_headers_config': 'UpdateRemoveHeadersConfig',
|
25
|
+
'traffic_limit_config': 'UpdateTrafficLimitConfig'
|
23
26
|
}
|
24
27
|
|
25
28
|
attribute_map = {
|
26
29
|
'status_code': 'status_code',
|
27
30
|
'content_type': 'content_type',
|
28
|
-
'message_body': 'message_body'
|
31
|
+
'message_body': 'message_body',
|
32
|
+
'insert_headers_config': 'insert_headers_config',
|
33
|
+
'remove_headers_config': 'remove_headers_config',
|
34
|
+
'traffic_limit_config': 'traffic_limit_config'
|
29
35
|
}
|
30
36
|
|
31
|
-
def __init__(self, status_code=None, content_type=None, message_body=None):
|
37
|
+
def __init__(self, status_code=None, content_type=None, message_body=None, insert_headers_config=None, remove_headers_config=None, traffic_limit_config=None):
|
32
38
|
"""UpdateFixtedResponseConfig
|
33
39
|
|
34
40
|
The model defined in huaweicloud sdk
|
35
41
|
|
36
|
-
:param status_code:
|
42
|
+
:param status_code: 参数解释:返回码。 取值范围:200-299,400-499,500-599。
|
37
43
|
:type status_code: str
|
38
|
-
:param content_type:
|
44
|
+
:param content_type: 参数解释:返回body的格式。 取值范围: - text/plain - text/css - text/html - application/javascript - application/json application/json
|
39
45
|
:type content_type: str
|
40
|
-
:param message_body:
|
46
|
+
:param message_body: 参数解释:返回消息内容。
|
41
47
|
:type message_body: str
|
48
|
+
:param insert_headers_config:
|
49
|
+
:type insert_headers_config: :class:`huaweicloudsdkelb.v3.UpdateInsertHeadersConfig`
|
50
|
+
:param remove_headers_config:
|
51
|
+
:type remove_headers_config: :class:`huaweicloudsdkelb.v3.UpdateRemoveHeadersConfig`
|
52
|
+
:param traffic_limit_config:
|
53
|
+
:type traffic_limit_config: :class:`huaweicloudsdkelb.v3.UpdateTrafficLimitConfig`
|
42
54
|
"""
|
43
55
|
|
44
56
|
|
@@ -46,6 +58,9 @@ class UpdateFixtedResponseConfig:
|
|
46
58
|
self._status_code = None
|
47
59
|
self._content_type = None
|
48
60
|
self._message_body = None
|
61
|
+
self._insert_headers_config = None
|
62
|
+
self._remove_headers_config = None
|
63
|
+
self._traffic_limit_config = None
|
49
64
|
self.discriminator = None
|
50
65
|
|
51
66
|
if status_code is not None:
|
@@ -54,12 +69,18 @@ class UpdateFixtedResponseConfig:
|
|
54
69
|
self.content_type = content_type
|
55
70
|
if message_body is not None:
|
56
71
|
self.message_body = message_body
|
72
|
+
if insert_headers_config is not None:
|
73
|
+
self.insert_headers_config = insert_headers_config
|
74
|
+
if remove_headers_config is not None:
|
75
|
+
self.remove_headers_config = remove_headers_config
|
76
|
+
if traffic_limit_config is not None:
|
77
|
+
self.traffic_limit_config = traffic_limit_config
|
57
78
|
|
58
79
|
@property
|
59
80
|
def status_code(self):
|
60
81
|
"""Gets the status_code of this UpdateFixtedResponseConfig.
|
61
82
|
|
62
|
-
|
83
|
+
参数解释:返回码。 取值范围:200-299,400-499,500-599。
|
63
84
|
|
64
85
|
:return: The status_code of this UpdateFixtedResponseConfig.
|
65
86
|
:rtype: str
|
@@ -70,7 +91,7 @@ class UpdateFixtedResponseConfig:
|
|
70
91
|
def status_code(self, status_code):
|
71
92
|
"""Sets the status_code of this UpdateFixtedResponseConfig.
|
72
93
|
|
73
|
-
|
94
|
+
参数解释:返回码。 取值范围:200-299,400-499,500-599。
|
74
95
|
|
75
96
|
:param status_code: The status_code of this UpdateFixtedResponseConfig.
|
76
97
|
:type status_code: str
|
@@ -81,7 +102,7 @@ class UpdateFixtedResponseConfig:
|
|
81
102
|
def content_type(self):
|
82
103
|
"""Gets the content_type of this UpdateFixtedResponseConfig.
|
83
104
|
|
84
|
-
|
105
|
+
参数解释:返回body的格式。 取值范围: - text/plain - text/css - text/html - application/javascript - application/json application/json
|
85
106
|
|
86
107
|
:return: The content_type of this UpdateFixtedResponseConfig.
|
87
108
|
:rtype: str
|
@@ -92,7 +113,7 @@ class UpdateFixtedResponseConfig:
|
|
92
113
|
def content_type(self, content_type):
|
93
114
|
"""Sets the content_type of this UpdateFixtedResponseConfig.
|
94
115
|
|
95
|
-
|
116
|
+
参数解释:返回body的格式。 取值范围: - text/plain - text/css - text/html - application/javascript - application/json application/json
|
96
117
|
|
97
118
|
:param content_type: The content_type of this UpdateFixtedResponseConfig.
|
98
119
|
:type content_type: str
|
@@ -103,7 +124,7 @@ class UpdateFixtedResponseConfig:
|
|
103
124
|
def message_body(self):
|
104
125
|
"""Gets the message_body of this UpdateFixtedResponseConfig.
|
105
126
|
|
106
|
-
|
127
|
+
参数解释:返回消息内容。
|
107
128
|
|
108
129
|
:return: The message_body of this UpdateFixtedResponseConfig.
|
109
130
|
:rtype: str
|
@@ -114,13 +135,67 @@ class UpdateFixtedResponseConfig:
|
|
114
135
|
def message_body(self, message_body):
|
115
136
|
"""Sets the message_body of this UpdateFixtedResponseConfig.
|
116
137
|
|
117
|
-
|
138
|
+
参数解释:返回消息内容。
|
118
139
|
|
119
140
|
:param message_body: The message_body of this UpdateFixtedResponseConfig.
|
120
141
|
:type message_body: str
|
121
142
|
"""
|
122
143
|
self._message_body = message_body
|
123
144
|
|
145
|
+
@property
|
146
|
+
def insert_headers_config(self):
|
147
|
+
"""Gets the insert_headers_config of this UpdateFixtedResponseConfig.
|
148
|
+
|
149
|
+
:return: The insert_headers_config of this UpdateFixtedResponseConfig.
|
150
|
+
:rtype: :class:`huaweicloudsdkelb.v3.UpdateInsertHeadersConfig`
|
151
|
+
"""
|
152
|
+
return self._insert_headers_config
|
153
|
+
|
154
|
+
@insert_headers_config.setter
|
155
|
+
def insert_headers_config(self, insert_headers_config):
|
156
|
+
"""Sets the insert_headers_config of this UpdateFixtedResponseConfig.
|
157
|
+
|
158
|
+
:param insert_headers_config: The insert_headers_config of this UpdateFixtedResponseConfig.
|
159
|
+
:type insert_headers_config: :class:`huaweicloudsdkelb.v3.UpdateInsertHeadersConfig`
|
160
|
+
"""
|
161
|
+
self._insert_headers_config = insert_headers_config
|
162
|
+
|
163
|
+
@property
|
164
|
+
def remove_headers_config(self):
|
165
|
+
"""Gets the remove_headers_config of this UpdateFixtedResponseConfig.
|
166
|
+
|
167
|
+
:return: The remove_headers_config of this UpdateFixtedResponseConfig.
|
168
|
+
:rtype: :class:`huaweicloudsdkelb.v3.UpdateRemoveHeadersConfig`
|
169
|
+
"""
|
170
|
+
return self._remove_headers_config
|
171
|
+
|
172
|
+
@remove_headers_config.setter
|
173
|
+
def remove_headers_config(self, remove_headers_config):
|
174
|
+
"""Sets the remove_headers_config of this UpdateFixtedResponseConfig.
|
175
|
+
|
176
|
+
:param remove_headers_config: The remove_headers_config of this UpdateFixtedResponseConfig.
|
177
|
+
:type remove_headers_config: :class:`huaweicloudsdkelb.v3.UpdateRemoveHeadersConfig`
|
178
|
+
"""
|
179
|
+
self._remove_headers_config = remove_headers_config
|
180
|
+
|
181
|
+
@property
|
182
|
+
def traffic_limit_config(self):
|
183
|
+
"""Gets the traffic_limit_config of this UpdateFixtedResponseConfig.
|
184
|
+
|
185
|
+
:return: The traffic_limit_config of this UpdateFixtedResponseConfig.
|
186
|
+
:rtype: :class:`huaweicloudsdkelb.v3.UpdateTrafficLimitConfig`
|
187
|
+
"""
|
188
|
+
return self._traffic_limit_config
|
189
|
+
|
190
|
+
@traffic_limit_config.setter
|
191
|
+
def traffic_limit_config(self, traffic_limit_config):
|
192
|
+
"""Sets the traffic_limit_config of this UpdateFixtedResponseConfig.
|
193
|
+
|
194
|
+
:param traffic_limit_config: The traffic_limit_config of this UpdateFixtedResponseConfig.
|
195
|
+
:type traffic_limit_config: :class:`huaweicloudsdkelb.v3.UpdateTrafficLimitConfig`
|
196
|
+
"""
|
197
|
+
self._traffic_limit_config = traffic_limit_config
|
198
|
+
|
124
199
|
def to_dict(self):
|
125
200
|
"""Returns the model properties as a dict"""
|
126
201
|
result = {}
|
@@ -51,21 +51,21 @@ class UpdateHealthMonitorOption:
|
|
51
51
|
|
52
52
|
The model defined in huaweicloud sdk
|
53
53
|
|
54
|
-
:param admin_state_up:
|
54
|
+
:param admin_state_up: 参数解释:健康检查的管理状态。 取值范围: - true:表示开启健康检查。 - false表示关闭健康检查。
|
55
55
|
:type admin_state_up: bool
|
56
56
|
:param delay: 健康检查间隔。健康检查间隔。取值:1-50s。
|
57
57
|
:type delay: int
|
58
58
|
:param domain_name: 发送健康检查请求的域名。 取值:以数字或字母开头,只能包含数字、字母、’-’、’.’。 不能传空,但可传null或不传,表示使用负载均衡器的vip作为http请求的目的地址。 使用说明:当type为HTTP/HTTPS时生效。
|
59
59
|
:type domain_name: str
|
60
|
-
:param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。
|
60
|
+
:param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。
|
61
61
|
:type expected_codes: str
|
62
|
-
:param http_method: HTTP请求方法。 取值:GET、HEAD、POST
|
62
|
+
:param http_method: HTTP请求方法。 取值:GET、HEAD、POST,默认GET。 使用说明:当type为HTTP/HTTPS时生效。
|
63
63
|
:type http_method: str
|
64
64
|
:param max_retries: 健康检查连续成功多少次后,将后端服务器的健康检查状态由OFFLINE判定为ONLINE。取值范围:1-10。
|
65
65
|
:type max_retries: int
|
66
66
|
:param max_retries_down: 健康检查连续失败多少次后,将后端服务器的健康检查状态由ONLINE判定为OFFLINE。取值范围:1-10。
|
67
67
|
:type max_retries_down: int
|
68
|
-
:param monitor_port: 健康检查端口号。取值:1-65535,不可传入空,但可传入null
|
68
|
+
:param monitor_port: 健康检查端口号。取值:1-65535,不可传入空,但可传入null,表示使用后端服务器端口号。[当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu)
|
69
69
|
:type monitor_port: int
|
70
70
|
:param name: 健康检查名称。
|
71
71
|
:type name: str
|
@@ -73,7 +73,7 @@ class UpdateHealthMonitorOption:
|
|
73
73
|
:type timeout: int
|
74
74
|
:param url_path: 健康检查请求的请求路径。以\"/\"开头,默认为\"/\"。 支持使用字母、数字和短划线(-)、正斜线(/)、半角句号(.)、百分号(%)、半角问号(?)、井号(#)和and(&)以及扩展字符集_;~!()*[]@$^:',+ 使用说明:当type为HTTP/HTTPS时生效。
|
75
75
|
:type url_path: str
|
76
|
-
: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)
|
76
|
+
: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)
|
77
77
|
:type type: str
|
78
78
|
"""
|
79
79
|
|
@@ -122,7 +122,7 @@ class UpdateHealthMonitorOption:
|
|
122
122
|
def admin_state_up(self):
|
123
123
|
"""Gets the admin_state_up of this UpdateHealthMonitorOption.
|
124
124
|
|
125
|
-
|
125
|
+
参数解释:健康检查的管理状态。 取值范围: - true:表示开启健康检查。 - false表示关闭健康检查。
|
126
126
|
|
127
127
|
:return: The admin_state_up of this UpdateHealthMonitorOption.
|
128
128
|
:rtype: bool
|
@@ -133,7 +133,7 @@ class UpdateHealthMonitorOption:
|
|
133
133
|
def admin_state_up(self, admin_state_up):
|
134
134
|
"""Sets the admin_state_up of this UpdateHealthMonitorOption.
|
135
135
|
|
136
|
-
|
136
|
+
参数解释:健康检查的管理状态。 取值范围: - true:表示开启健康检查。 - false表示关闭健康检查。
|
137
137
|
|
138
138
|
:param admin_state_up: The admin_state_up of this UpdateHealthMonitorOption.
|
139
139
|
:type admin_state_up: bool
|
@@ -188,7 +188,7 @@ class UpdateHealthMonitorOption:
|
|
188
188
|
def expected_codes(self):
|
189
189
|
"""Gets the expected_codes of this UpdateHealthMonitorOption.
|
190
190
|
|
191
|
-
期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。
|
191
|
+
期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。
|
192
192
|
|
193
193
|
:return: The expected_codes of this UpdateHealthMonitorOption.
|
194
194
|
:rtype: str
|
@@ -199,7 +199,7 @@ class UpdateHealthMonitorOption:
|
|
199
199
|
def expected_codes(self, expected_codes):
|
200
200
|
"""Sets the expected_codes of this UpdateHealthMonitorOption.
|
201
201
|
|
202
|
-
期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。
|
202
|
+
期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。
|
203
203
|
|
204
204
|
:param expected_codes: The expected_codes of this UpdateHealthMonitorOption.
|
205
205
|
:type expected_codes: str
|
@@ -210,7 +210,7 @@ class UpdateHealthMonitorOption:
|
|
210
210
|
def http_method(self):
|
211
211
|
"""Gets the http_method of this UpdateHealthMonitorOption.
|
212
212
|
|
213
|
-
HTTP请求方法。 取值:GET、HEAD、POST
|
213
|
+
HTTP请求方法。 取值:GET、HEAD、POST,默认GET。 使用说明:当type为HTTP/HTTPS时生效。
|
214
214
|
|
215
215
|
:return: The http_method of this UpdateHealthMonitorOption.
|
216
216
|
:rtype: str
|
@@ -221,7 +221,7 @@ class UpdateHealthMonitorOption:
|
|
221
221
|
def http_method(self, http_method):
|
222
222
|
"""Sets the http_method of this UpdateHealthMonitorOption.
|
223
223
|
|
224
|
-
HTTP请求方法。 取值:GET、HEAD、POST
|
224
|
+
HTTP请求方法。 取值:GET、HEAD、POST,默认GET。 使用说明:当type为HTTP/HTTPS时生效。
|
225
225
|
|
226
226
|
:param http_method: The http_method of this UpdateHealthMonitorOption.
|
227
227
|
:type http_method: str
|
@@ -276,7 +276,7 @@ class UpdateHealthMonitorOption:
|
|
276
276
|
def monitor_port(self):
|
277
277
|
"""Gets the monitor_port of this UpdateHealthMonitorOption.
|
278
278
|
|
279
|
-
健康检查端口号。取值:1-65535,不可传入空,但可传入null
|
279
|
+
健康检查端口号。取值:1-65535,不可传入空,但可传入null,表示使用后端服务器端口号。[当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu)
|
280
280
|
|
281
281
|
:return: The monitor_port of this UpdateHealthMonitorOption.
|
282
282
|
:rtype: int
|
@@ -287,7 +287,7 @@ class UpdateHealthMonitorOption:
|
|
287
287
|
def monitor_port(self, monitor_port):
|
288
288
|
"""Sets the monitor_port of this UpdateHealthMonitorOption.
|
289
289
|
|
290
|
-
健康检查端口号。取值:1-65535,不可传入空,但可传入null
|
290
|
+
健康检查端口号。取值:1-65535,不可传入空,但可传入null,表示使用后端服务器端口号。[当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu)
|
291
291
|
|
292
292
|
:param monitor_port: The monitor_port of this UpdateHealthMonitorOption.
|
293
293
|
:type monitor_port: int
|
@@ -364,7 +364,7 @@ class UpdateHealthMonitorOption:
|
|
364
364
|
def type(self):
|
365
365
|
"""Gets the type of this UpdateHealthMonitorOption.
|
366
366
|
|
367
|
-
健康检查请求协议。 取值: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)
|
367
|
+
健康检查请求协议。 取值: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)
|
368
368
|
|
369
369
|
:return: The type of this UpdateHealthMonitorOption.
|
370
370
|
:rtype: str
|
@@ -375,7 +375,7 @@ class UpdateHealthMonitorOption:
|
|
375
375
|
def type(self, type):
|
376
376
|
"""Sets the type of this UpdateHealthMonitorOption.
|
377
377
|
|
378
|
-
健康检查请求协议。 取值: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)
|
378
|
+
健康检查请求协议。 取值: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)
|
379
379
|
|
380
380
|
:param type: The type of this UpdateHealthMonitorOption.
|
381
381
|
:type type: str
|
@@ -0,0 +1,170 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class UpdateInsertHeaderConfig:
|
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
|
+
'value_type': 'str',
|
22
|
+
'value': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'key': 'key',
|
27
|
+
'value_type': 'value_type',
|
28
|
+
'value': 'value'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, key=None, value_type=None, value=None):
|
32
|
+
"""UpdateInsertHeaderConfig
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
: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(不区分大小写)、数字,短划线-和下划线_。
|
37
|
+
:type key: str
|
38
|
+
:param value_type: 参数解释:请求头参数类别。 取值范围:USER_DEFINED,REFERENCE_HEADER,SYSTEM_DEFINED。
|
39
|
+
:type value_type: str
|
40
|
+
:param value: 参数解释:请求头参数的值。 约束限制:当value_type为SYSTEM_DEFINED时,value只可从CLIENT-PORT,CLIENT-IP, ELB-PROTOCOL, ELB-ID, ELB-PORT, ELB-EIP, ELB-VIP中取值。 取值范围:1-128个字符,支持ascii码值32<=ch<=127范围内可打印字符,*和英文问号?。不能以空格开头或结尾。
|
41
|
+
:type value: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._key = None
|
47
|
+
self._value_type = None
|
48
|
+
self._value = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.key = key
|
52
|
+
self.value_type = value_type
|
53
|
+
self.value = value
|
54
|
+
|
55
|
+
@property
|
56
|
+
def key(self):
|
57
|
+
"""Gets the key of this UpdateInsertHeaderConfig.
|
58
|
+
|
59
|
+
参数解释:请求头参数名。 约束限制:不能是以下字符: 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(不区分大小写)、数字,短划线-和下划线_。
|
60
|
+
|
61
|
+
:return: The key of this UpdateInsertHeaderConfig.
|
62
|
+
:rtype: str
|
63
|
+
"""
|
64
|
+
return self._key
|
65
|
+
|
66
|
+
@key.setter
|
67
|
+
def key(self, key):
|
68
|
+
"""Sets the key of this UpdateInsertHeaderConfig.
|
69
|
+
|
70
|
+
参数解释:请求头参数名。 约束限制:不能是以下字符: 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(不区分大小写)、数字,短划线-和下划线_。
|
71
|
+
|
72
|
+
:param key: The key of this UpdateInsertHeaderConfig.
|
73
|
+
:type key: str
|
74
|
+
"""
|
75
|
+
self._key = key
|
76
|
+
|
77
|
+
@property
|
78
|
+
def value_type(self):
|
79
|
+
"""Gets the value_type of this UpdateInsertHeaderConfig.
|
80
|
+
|
81
|
+
参数解释:请求头参数类别。 取值范围:USER_DEFINED,REFERENCE_HEADER,SYSTEM_DEFINED。
|
82
|
+
|
83
|
+
:return: The value_type of this UpdateInsertHeaderConfig.
|
84
|
+
:rtype: str
|
85
|
+
"""
|
86
|
+
return self._value_type
|
87
|
+
|
88
|
+
@value_type.setter
|
89
|
+
def value_type(self, value_type):
|
90
|
+
"""Sets the value_type of this UpdateInsertHeaderConfig.
|
91
|
+
|
92
|
+
参数解释:请求头参数类别。 取值范围:USER_DEFINED,REFERENCE_HEADER,SYSTEM_DEFINED。
|
93
|
+
|
94
|
+
:param value_type: The value_type of this UpdateInsertHeaderConfig.
|
95
|
+
:type value_type: str
|
96
|
+
"""
|
97
|
+
self._value_type = value_type
|
98
|
+
|
99
|
+
@property
|
100
|
+
def value(self):
|
101
|
+
"""Gets the value of this UpdateInsertHeaderConfig.
|
102
|
+
|
103
|
+
参数解释:请求头参数的值。 约束限制:当value_type为SYSTEM_DEFINED时,value只可从CLIENT-PORT,CLIENT-IP, ELB-PROTOCOL, ELB-ID, ELB-PORT, ELB-EIP, ELB-VIP中取值。 取值范围:1-128个字符,支持ascii码值32<=ch<=127范围内可打印字符,*和英文问号?。不能以空格开头或结尾。
|
104
|
+
|
105
|
+
:return: The value of this UpdateInsertHeaderConfig.
|
106
|
+
:rtype: str
|
107
|
+
"""
|
108
|
+
return self._value
|
109
|
+
|
110
|
+
@value.setter
|
111
|
+
def value(self, value):
|
112
|
+
"""Sets the value of this UpdateInsertHeaderConfig.
|
113
|
+
|
114
|
+
参数解释:请求头参数的值。 约束限制:当value_type为SYSTEM_DEFINED时,value只可从CLIENT-PORT,CLIENT-IP, ELB-PROTOCOL, ELB-ID, ELB-PORT, ELB-EIP, ELB-VIP中取值。 取值范围:1-128个字符,支持ascii码值32<=ch<=127范围内可打印字符,*和英文问号?。不能以空格开头或结尾。
|
115
|
+
|
116
|
+
:param value: The value of this UpdateInsertHeaderConfig.
|
117
|
+
:type value: str
|
118
|
+
"""
|
119
|
+
self._value = value
|
120
|
+
|
121
|
+
def to_dict(self):
|
122
|
+
"""Returns the model properties as a dict"""
|
123
|
+
result = {}
|
124
|
+
|
125
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
126
|
+
value = getattr(self, attr)
|
127
|
+
if isinstance(value, list):
|
128
|
+
result[attr] = list(map(
|
129
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
130
|
+
value
|
131
|
+
))
|
132
|
+
elif hasattr(value, "to_dict"):
|
133
|
+
result[attr] = value.to_dict()
|
134
|
+
elif isinstance(value, dict):
|
135
|
+
result[attr] = dict(map(
|
136
|
+
lambda item: (item[0], item[1].to_dict())
|
137
|
+
if hasattr(item[1], "to_dict") else item,
|
138
|
+
value.items()
|
139
|
+
))
|
140
|
+
else:
|
141
|
+
if attr in self.sensitive_list:
|
142
|
+
result[attr] = "****"
|
143
|
+
else:
|
144
|
+
result[attr] = value
|
145
|
+
|
146
|
+
return result
|
147
|
+
|
148
|
+
def to_str(self):
|
149
|
+
"""Returns the string representation of the model"""
|
150
|
+
import simplejson as json
|
151
|
+
if six.PY2:
|
152
|
+
import sys
|
153
|
+
reload(sys)
|
154
|
+
sys.setdefaultencoding("utf-8")
|
155
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
156
|
+
|
157
|
+
def __repr__(self):
|
158
|
+
"""For `print`"""
|
159
|
+
return self.to_str()
|
160
|
+
|
161
|
+
def __eq__(self, other):
|
162
|
+
"""Returns true if both objects are equal"""
|
163
|
+
if not isinstance(other, UpdateInsertHeaderConfig):
|
164
|
+
return False
|
165
|
+
|
166
|
+
return self.__dict__ == other.__dict__
|
167
|
+
|
168
|
+
def __ne__(self, other):
|
169
|
+
"""Returns true if both objects are not equal"""
|
170
|
+
return not self == other
|
@@ -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 UpdateInsertHeadersConfig:
|
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
|
+
'configs': 'list[UpdateInsertHeaderConfig]'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'configs': 'configs'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, configs=None):
|
28
|
+
"""UpdateInsertHeadersConfig
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param configs: 参数解释:要添加请求头参数列表。
|
33
|
+
:type configs: list[:class:`huaweicloudsdkelb.v3.UpdateInsertHeaderConfig`]
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._configs = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.configs = configs
|
42
|
+
|
43
|
+
@property
|
44
|
+
def configs(self):
|
45
|
+
"""Gets the configs of this UpdateInsertHeadersConfig.
|
46
|
+
|
47
|
+
参数解释:要添加请求头参数列表。
|
48
|
+
|
49
|
+
:return: The configs of this UpdateInsertHeadersConfig.
|
50
|
+
:rtype: list[:class:`huaweicloudsdkelb.v3.UpdateInsertHeaderConfig`]
|
51
|
+
"""
|
52
|
+
return self._configs
|
53
|
+
|
54
|
+
@configs.setter
|
55
|
+
def configs(self, configs):
|
56
|
+
"""Sets the configs of this UpdateInsertHeadersConfig.
|
57
|
+
|
58
|
+
参数解释:要添加请求头参数列表。
|
59
|
+
|
60
|
+
:param configs: The configs of this UpdateInsertHeadersConfig.
|
61
|
+
:type configs: list[:class:`huaweicloudsdkelb.v3.UpdateInsertHeaderConfig`]
|
62
|
+
"""
|
63
|
+
self._configs = configs
|
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, UpdateInsertHeadersConfig):
|
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
|
@@ -33,11 +33,11 @@ class UpdateIpGroupOption:
|
|
33
33
|
|
34
34
|
The model defined in huaweicloud sdk
|
35
35
|
|
36
|
-
:param description: IP地址组的描述信息
|
36
|
+
:param description: 参数解释:IP地址组的描述信息
|
37
37
|
:type description: str
|
38
|
-
:param name: IP地址组的名称
|
38
|
+
:param name: 参数解释:IP地址组的名称
|
39
39
|
:type name: str
|
40
|
-
:param ip_list: IP地址组中包含的IP列表。
|
40
|
+
:param ip_list: 参数解释:IP地址组中包含的IP列表。
|
41
41
|
:type ip_list: list[:class:`huaweicloudsdkelb.v3.UpadateIpGroupIpOption`]
|
42
42
|
"""
|
43
43
|
|
@@ -59,7 +59,7 @@ class UpdateIpGroupOption:
|
|
59
59
|
def description(self):
|
60
60
|
"""Gets the description of this UpdateIpGroupOption.
|
61
61
|
|
62
|
-
IP地址组的描述信息
|
62
|
+
参数解释:IP地址组的描述信息
|
63
63
|
|
64
64
|
:return: The description of this UpdateIpGroupOption.
|
65
65
|
:rtype: str
|
@@ -70,7 +70,7 @@ class UpdateIpGroupOption:
|
|
70
70
|
def description(self, description):
|
71
71
|
"""Sets the description of this UpdateIpGroupOption.
|
72
72
|
|
73
|
-
IP地址组的描述信息
|
73
|
+
参数解释:IP地址组的描述信息
|
74
74
|
|
75
75
|
:param description: The description of this UpdateIpGroupOption.
|
76
76
|
:type description: str
|
@@ -81,7 +81,7 @@ class UpdateIpGroupOption:
|
|
81
81
|
def name(self):
|
82
82
|
"""Gets the name of this UpdateIpGroupOption.
|
83
83
|
|
84
|
-
IP地址组的名称
|
84
|
+
参数解释:IP地址组的名称
|
85
85
|
|
86
86
|
:return: The name of this UpdateIpGroupOption.
|
87
87
|
:rtype: str
|
@@ -92,7 +92,7 @@ class UpdateIpGroupOption:
|
|
92
92
|
def name(self, name):
|
93
93
|
"""Sets the name of this UpdateIpGroupOption.
|
94
94
|
|
95
|
-
IP地址组的名称
|
95
|
+
参数解释:IP地址组的名称
|
96
96
|
|
97
97
|
:param name: The name of this UpdateIpGroupOption.
|
98
98
|
:type name: str
|
@@ -103,7 +103,7 @@ class UpdateIpGroupOption:
|
|
103
103
|
def ip_list(self):
|
104
104
|
"""Gets the ip_list of this UpdateIpGroupOption.
|
105
105
|
|
106
|
-
IP地址组中包含的IP列表。
|
106
|
+
参数解释:IP地址组中包含的IP列表。
|
107
107
|
|
108
108
|
:return: The ip_list of this UpdateIpGroupOption.
|
109
109
|
:rtype: list[:class:`huaweicloudsdkelb.v3.UpadateIpGroupIpOption`]
|
@@ -114,7 +114,7 @@ class UpdateIpGroupOption:
|
|
114
114
|
def ip_list(self, ip_list):
|
115
115
|
"""Sets the ip_list of this UpdateIpGroupOption.
|
116
116
|
|
117
|
-
IP地址组中包含的IP列表。
|
117
|
+
参数解释:IP地址组中包含的IP列表。
|
118
118
|
|
119
119
|
:param ip_list: The ip_list of this UpdateIpGroupOption.
|
120
120
|
:type ip_list: list[:class:`huaweicloudsdkelb.v3.UpadateIpGroupIpOption`]
|