huaweicloudsdkelb 3.1.104__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.104.dist-info → huaweicloudsdkelb-3.1.106.dist-info}/METADATA +2 -2
- {huaweicloudsdkelb-3.1.104.dist-info → huaweicloudsdkelb-3.1.106.dist-info}/RECORD +142 -113
- {huaweicloudsdkelb-3.1.104.dist-info → huaweicloudsdkelb-3.1.106.dist-info}/LICENSE +0 -0
- {huaweicloudsdkelb-3.1.104.dist-info → huaweicloudsdkelb-3.1.106.dist-info}/WHEEL +0 -0
- {huaweicloudsdkelb-3.1.104.dist-info → huaweicloudsdkelb-3.1.106.dist-info}/top_level.txt +0 -0
@@ -34,7 +34,7 @@ class ShowIpGroupResponse(SdkResponse):
|
|
34
34
|
|
35
35
|
:param ipgroup:
|
36
36
|
:type ipgroup: :class:`huaweicloudsdkelb.v3.IpGroup`
|
37
|
-
:param request_id:
|
37
|
+
:param request_id: 参数解释:请求ID。 注:自动生成 。
|
38
38
|
:type request_id: str
|
39
39
|
"""
|
40
40
|
|
@@ -71,7 +71,7 @@ class ShowIpGroupResponse(SdkResponse):
|
|
71
71
|
def request_id(self):
|
72
72
|
"""Gets the request_id of this ShowIpGroupResponse.
|
73
73
|
|
74
|
-
|
74
|
+
参数解释:请求ID。 注:自动生成 。
|
75
75
|
|
76
76
|
:return: The request_id of this ShowIpGroupResponse.
|
77
77
|
:rtype: str
|
@@ -82,7 +82,7 @@ class ShowIpGroupResponse(SdkResponse):
|
|
82
82
|
def request_id(self, request_id):
|
83
83
|
"""Sets the request_id of this ShowIpGroupResponse.
|
84
84
|
|
85
|
-
|
85
|
+
参数解释:请求ID。 注:自动生成 。
|
86
86
|
|
87
87
|
:param request_id: The request_id of this ShowIpGroupResponse.
|
88
88
|
:type request_id: str
|
@@ -0,0 +1,173 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class TrafficLimitConfig:
|
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
|
+
'qps': 'int',
|
21
|
+
'per_source_ip_qps': 'int',
|
22
|
+
'burst': 'int'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'qps': 'qps',
|
27
|
+
'per_source_ip_qps': 'per_source_ip_qps',
|
28
|
+
'burst': 'burst'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, qps=None, per_source_ip_qps=None, burst=None):
|
32
|
+
"""TrafficLimitConfig
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param qps: 转发策略整体限速。取值: 0-100000s。0表示不限速
|
37
|
+
:type qps: int
|
38
|
+
:param per_source_ip_qps: 对转发策略单源进行限速。 quic监听器下转发策略不支持配置单源限速,指定该字段时,赋值可以为0或者为null 取值: 0-100000s。0表示不限速,如果qps不为0,per_ip_qps需要小于qps。
|
39
|
+
:type per_source_ip_qps: int
|
40
|
+
:param burst: 对转发策略单源进行限速。取值: 0-100000s。当qps超限的时候,不返回503,支持允许局部突增burst大小的请求。
|
41
|
+
:type burst: int
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._qps = None
|
47
|
+
self._per_source_ip_qps = None
|
48
|
+
self._burst = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if qps is not None:
|
52
|
+
self.qps = qps
|
53
|
+
if per_source_ip_qps is not None:
|
54
|
+
self.per_source_ip_qps = per_source_ip_qps
|
55
|
+
if burst is not None:
|
56
|
+
self.burst = burst
|
57
|
+
|
58
|
+
@property
|
59
|
+
def qps(self):
|
60
|
+
"""Gets the qps of this TrafficLimitConfig.
|
61
|
+
|
62
|
+
转发策略整体限速。取值: 0-100000s。0表示不限速
|
63
|
+
|
64
|
+
:return: The qps of this TrafficLimitConfig.
|
65
|
+
:rtype: int
|
66
|
+
"""
|
67
|
+
return self._qps
|
68
|
+
|
69
|
+
@qps.setter
|
70
|
+
def qps(self, qps):
|
71
|
+
"""Sets the qps of this TrafficLimitConfig.
|
72
|
+
|
73
|
+
转发策略整体限速。取值: 0-100000s。0表示不限速
|
74
|
+
|
75
|
+
:param qps: The qps of this TrafficLimitConfig.
|
76
|
+
:type qps: int
|
77
|
+
"""
|
78
|
+
self._qps = qps
|
79
|
+
|
80
|
+
@property
|
81
|
+
def per_source_ip_qps(self):
|
82
|
+
"""Gets the per_source_ip_qps of this TrafficLimitConfig.
|
83
|
+
|
84
|
+
对转发策略单源进行限速。 quic监听器下转发策略不支持配置单源限速,指定该字段时,赋值可以为0或者为null 取值: 0-100000s。0表示不限速,如果qps不为0,per_ip_qps需要小于qps。
|
85
|
+
|
86
|
+
:return: The per_source_ip_qps of this TrafficLimitConfig.
|
87
|
+
:rtype: int
|
88
|
+
"""
|
89
|
+
return self._per_source_ip_qps
|
90
|
+
|
91
|
+
@per_source_ip_qps.setter
|
92
|
+
def per_source_ip_qps(self, per_source_ip_qps):
|
93
|
+
"""Sets the per_source_ip_qps of this TrafficLimitConfig.
|
94
|
+
|
95
|
+
对转发策略单源进行限速。 quic监听器下转发策略不支持配置单源限速,指定该字段时,赋值可以为0或者为null 取值: 0-100000s。0表示不限速,如果qps不为0,per_ip_qps需要小于qps。
|
96
|
+
|
97
|
+
:param per_source_ip_qps: The per_source_ip_qps of this TrafficLimitConfig.
|
98
|
+
:type per_source_ip_qps: int
|
99
|
+
"""
|
100
|
+
self._per_source_ip_qps = per_source_ip_qps
|
101
|
+
|
102
|
+
@property
|
103
|
+
def burst(self):
|
104
|
+
"""Gets the burst of this TrafficLimitConfig.
|
105
|
+
|
106
|
+
对转发策略单源进行限速。取值: 0-100000s。当qps超限的时候,不返回503,支持允许局部突增burst大小的请求。
|
107
|
+
|
108
|
+
:return: The burst of this TrafficLimitConfig.
|
109
|
+
:rtype: int
|
110
|
+
"""
|
111
|
+
return self._burst
|
112
|
+
|
113
|
+
@burst.setter
|
114
|
+
def burst(self, burst):
|
115
|
+
"""Sets the burst of this TrafficLimitConfig.
|
116
|
+
|
117
|
+
对转发策略单源进行限速。取值: 0-100000s。当qps超限的时候,不返回503,支持允许局部突增burst大小的请求。
|
118
|
+
|
119
|
+
:param burst: The burst of this TrafficLimitConfig.
|
120
|
+
:type burst: int
|
121
|
+
"""
|
122
|
+
self._burst = burst
|
123
|
+
|
124
|
+
def to_dict(self):
|
125
|
+
"""Returns the model properties as a dict"""
|
126
|
+
result = {}
|
127
|
+
|
128
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
129
|
+
value = getattr(self, attr)
|
130
|
+
if isinstance(value, list):
|
131
|
+
result[attr] = list(map(
|
132
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
133
|
+
value
|
134
|
+
))
|
135
|
+
elif hasattr(value, "to_dict"):
|
136
|
+
result[attr] = value.to_dict()
|
137
|
+
elif isinstance(value, dict):
|
138
|
+
result[attr] = dict(map(
|
139
|
+
lambda item: (item[0], item[1].to_dict())
|
140
|
+
if hasattr(item[1], "to_dict") else item,
|
141
|
+
value.items()
|
142
|
+
))
|
143
|
+
else:
|
144
|
+
if attr in self.sensitive_list:
|
145
|
+
result[attr] = "****"
|
146
|
+
else:
|
147
|
+
result[attr] = value
|
148
|
+
|
149
|
+
return result
|
150
|
+
|
151
|
+
def to_str(self):
|
152
|
+
"""Returns the string representation of the model"""
|
153
|
+
import simplejson as json
|
154
|
+
if six.PY2:
|
155
|
+
import sys
|
156
|
+
reload(sys)
|
157
|
+
sys.setdefaultencoding("utf-8")
|
158
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
159
|
+
|
160
|
+
def __repr__(self):
|
161
|
+
"""For `print`"""
|
162
|
+
return self.to_str()
|
163
|
+
|
164
|
+
def __eq__(self, other):
|
165
|
+
"""Returns true if both objects are equal"""
|
166
|
+
if not isinstance(other, TrafficLimitConfig):
|
167
|
+
return False
|
168
|
+
|
169
|
+
return self.__dict__ == other.__dict__
|
170
|
+
|
171
|
+
def __ne__(self, other):
|
172
|
+
"""Returns true if both objects are not equal"""
|
173
|
+
return not self == other
|
@@ -31,9 +31,9 @@ class UpadateIpGroupIpOption:
|
|
31
31
|
|
32
32
|
The model defined in huaweicloud sdk
|
33
33
|
|
34
|
-
:param ip: IP地址。支持IPv4、IPv6。若传入IP地址不存在,则新增;否则更新已有IP地址的描述信息。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
|
34
|
+
:param ip: 参数解释:IP地址。支持IPv4、IPv6。若传入IP地址不存在,则新增;否则更新已有IP地址的描述信息。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
|
35
35
|
:type ip: str
|
36
|
-
:param description:
|
36
|
+
:param description: 参数解释:备注信息。
|
37
37
|
:type description: str
|
38
38
|
"""
|
39
39
|
|
@@ -51,7 +51,7 @@ class UpadateIpGroupIpOption:
|
|
51
51
|
def ip(self):
|
52
52
|
"""Gets the ip of this UpadateIpGroupIpOption.
|
53
53
|
|
54
|
-
IP地址。支持IPv4、IPv6。若传入IP地址不存在,则新增;否则更新已有IP地址的描述信息。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
|
54
|
+
参数解释:IP地址。支持IPv4、IPv6。若传入IP地址不存在,则新增;否则更新已有IP地址的描述信息。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
|
55
55
|
|
56
56
|
:return: The ip of this UpadateIpGroupIpOption.
|
57
57
|
:rtype: str
|
@@ -62,7 +62,7 @@ class UpadateIpGroupIpOption:
|
|
62
62
|
def ip(self, ip):
|
63
63
|
"""Sets the ip of this UpadateIpGroupIpOption.
|
64
64
|
|
65
|
-
IP地址。支持IPv4、IPv6。若传入IP地址不存在,则新增;否则更新已有IP地址的描述信息。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
|
65
|
+
参数解释:IP地址。支持IPv4、IPv6。若传入IP地址不存在,则新增;否则更新已有IP地址的描述信息。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
|
66
66
|
|
67
67
|
:param ip: The ip of this UpadateIpGroupIpOption.
|
68
68
|
:type ip: str
|
@@ -73,7 +73,7 @@ class UpadateIpGroupIpOption:
|
|
73
73
|
def description(self):
|
74
74
|
"""Gets the description of this UpadateIpGroupIpOption.
|
75
75
|
|
76
|
-
|
76
|
+
参数解释:备注信息。
|
77
77
|
|
78
78
|
:return: The description of this UpadateIpGroupIpOption.
|
79
79
|
:rtype: str
|
@@ -84,7 +84,7 @@ class UpadateIpGroupIpOption:
|
|
84
84
|
def description(self, description):
|
85
85
|
"""Sets the description of this UpadateIpGroupIpOption.
|
86
86
|
|
87
|
-
|
87
|
+
参数解释:备注信息。
|
88
88
|
|
89
89
|
:param description: The description of this UpadateIpGroupIpOption.
|
90
90
|
:type description: str
|
@@ -49,7 +49,7 @@ class UpdateCertificateOption:
|
|
49
49
|
:type name: str
|
50
50
|
:param private_key: 服务器证书的私钥。PEM编码格式。 当type为client时,该参数被忽略,不影响证书的创建和使用。若传入不符合格式值,则会报错。 当type为server时,该字段必须符合格式要求,且私钥必须是有效的。 最大长度8192字符。
|
51
51
|
:type private_key: str
|
52
|
-
:param domain: 服务器证书所签域名。该字段仅type为server时有效。 总长度为0-10000,由若干普通域名或泛域名组成,域名之间以\",\"分割,不超过100个域名。 普通域名:由若干字符串组成,字符串间以\".\"分割,单个字符串长度不超过63个字符, 只能包含英文字母、数字或\"-\",且必须以字母或数字开头和结尾。例:www.test.com; 泛域名:在普通域名的基础上仅允许首字母为\"
|
52
|
+
:param domain: 服务器证书所签域名。该字段仅type为server时有效。 总长度为0-10000,由若干普通域名或泛域名组成,域名之间以\",\"分割,不超过100个域名。 普通域名:由若干字符串组成,字符串间以\".\"分割,单个字符串长度不超过63个字符, 只能包含英文字母、数字或\"-\",且必须以字母或数字开头和结尾。例:www.test.com; 泛域名:在普通域名的基础上仅允许首字母为\"\\*\"。例:\\*.test.com
|
53
53
|
:type domain: str
|
54
54
|
:param enc_certificate: HTTPS协议使用的SM加密证书内容。支持证书链,最大11层(含证书和证书链)。 取值:PEM编码格式。最大长度65536字符。 使用说明:仅type为server_sm时有效。
|
55
55
|
:type enc_certificate: str
|
@@ -175,7 +175,7 @@ class UpdateCertificateOption:
|
|
175
175
|
def domain(self):
|
176
176
|
"""Gets the domain of this UpdateCertificateOption.
|
177
177
|
|
178
|
-
服务器证书所签域名。该字段仅type为server时有效。 总长度为0-10000,由若干普通域名或泛域名组成,域名之间以\",\"分割,不超过100个域名。 普通域名:由若干字符串组成,字符串间以\".\"分割,单个字符串长度不超过63个字符, 只能包含英文字母、数字或\"-\",且必须以字母或数字开头和结尾。例:www.test.com; 泛域名:在普通域名的基础上仅允许首字母为\"
|
178
|
+
服务器证书所签域名。该字段仅type为server时有效。 总长度为0-10000,由若干普通域名或泛域名组成,域名之间以\",\"分割,不超过100个域名。 普通域名:由若干字符串组成,字符串间以\".\"分割,单个字符串长度不超过63个字符, 只能包含英文字母、数字或\"-\",且必须以字母或数字开头和结尾。例:www.test.com; 泛域名:在普通域名的基础上仅允许首字母为\"\\*\"。例:\\*.test.com
|
179
179
|
|
180
180
|
:return: The domain of this UpdateCertificateOption.
|
181
181
|
:rtype: str
|
@@ -186,7 +186,7 @@ class UpdateCertificateOption:
|
|
186
186
|
def domain(self, domain):
|
187
187
|
"""Sets the domain of this UpdateCertificateOption.
|
188
188
|
|
189
|
-
服务器证书所签域名。该字段仅type为server时有效。 总长度为0-10000,由若干普通域名或泛域名组成,域名之间以\",\"分割,不超过100个域名。 普通域名:由若干字符串组成,字符串间以\".\"分割,单个字符串长度不超过63个字符, 只能包含英文字母、数字或\"-\",且必须以字母或数字开头和结尾。例:www.test.com; 泛域名:在普通域名的基础上仅允许首字母为\"
|
189
|
+
服务器证书所签域名。该字段仅type为server时有效。 总长度为0-10000,由若干普通域名或泛域名组成,域名之间以\",\"分割,不超过100个域名。 普通域名:由若干字符串组成,字符串间以\".\"分割,单个字符串长度不超过63个字符, 只能包含英文字母、数字或\"-\",且必须以字母或数字开头和结尾。例:www.test.com; 泛域名:在普通域名的基础上仅允许首字母为\"\\*\"。例:\\*.test.com
|
190
190
|
|
191
191
|
:param domain: The domain of this UpdateCertificateOption.
|
192
192
|
:type domain: str
|
@@ -19,16 +19,22 @@ 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
|
@@ -39,6 +45,12 @@ class UpdateFixtedResponseConfig:
|
|
39
45
|
:type content_type: str
|
40
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,6 +69,12 @@ 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):
|
@@ -121,6 +142,60 @@ class UpdateFixtedResponseConfig:
|
|
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 = {}
|
@@ -57,9 +57,9 @@ class UpdateHealthMonitorOption:
|
|
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
|
@@ -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为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
|
|
@@ -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
|
@@ -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为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为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: 支持1-40个字符(不区分大小写)。 支持字母a-z,数字,短划线-和下划线_。 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。
|
37
|
+
:type key: str
|
38
|
+
:param value_type: 可选值:USER_DEFINED,REFERENCE_HEADER,SYSTEM_DEFINED。
|
39
|
+
:type value_type: str
|
40
|
+
:param value: header值。当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
|
+
支持1-40个字符(不区分大小写)。 支持字母a-z,数字,短划线-和下划线_。 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。
|
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
|
+
支持1-40个字符(不区分大小写)。 支持字母a-z,数字,短划线-和下划线_。 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。
|
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
|
+
header值。当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
|
+
header值。当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
|