huaweicloudsdkelb 3.1.85__py2.py3-none-any.whl → 3.1.132__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- huaweicloudsdkelb/v2/elb_async_client.py +2 -0
- huaweicloudsdkelb/v2/elb_client.py +2 -0
- huaweicloudsdkelb/v2/model/list_members_request.py +32 -3
- huaweicloudsdkelb/v2/region/elb_region.py +19 -1
- huaweicloudsdkelb/v3/__init__.py +29 -0
- huaweicloudsdkelb/v3/elb_async_client.py +175 -34
- huaweicloudsdkelb/v3/elb_client.py +175 -34
- huaweicloudsdkelb/v3/model/__init__.py +29 -0
- huaweicloudsdkelb/v3/model/autoscaling_ref.py +6 -6
- huaweicloudsdkelb/v3/model/availability_zone.py +15 -15
- huaweicloudsdkelb/v3/model/bandwidth_ref.py +3 -3
- huaweicloudsdkelb/v3/model/batch_add_available_zones_request.py +3 -3
- huaweicloudsdkelb/v3/model/batch_add_available_zones_response.py +6 -6
- huaweicloudsdkelb/v3/model/batch_create_members_option.py +12 -12
- huaweicloudsdkelb/v3/model/batch_create_members_request.py +3 -3
- huaweicloudsdkelb/v3/model/batch_delete_ip_list_option.py +3 -3
- huaweicloudsdkelb/v3/model/batch_delete_ip_list_request.py +3 -3
- huaweicloudsdkelb/v3/model/batch_delete_ip_list_response.py +3 -3
- huaweicloudsdkelb/v3/model/batch_delete_members_request.py +3 -3
- huaweicloudsdkelb/v3/model/batch_member.py +85 -27
- huaweicloudsdkelb/v3/model/batch_update_member.py +85 -27
- huaweicloudsdkelb/v3/model/batch_update_members_option.py +9 -9
- huaweicloudsdkelb/v3/model/batch_update_members_request.py +3 -3
- huaweicloudsdkelb/v3/model/batch_update_policies_priority_request_body.py +3 -3
- huaweicloudsdkelb/v3/model/batch_update_priority_request_body.py +6 -6
- huaweicloudsdkelb/v3/model/certificate_info.py +93 -6
- huaweicloudsdkelb/v3/model/change_loadbalancer_charge_mode_request_body.py +3 -3
- huaweicloudsdkelb/v3/model/connection_drain.py +6 -6
- huaweicloudsdkelb/v3/model/count_preoccupy_ip_num_request.py +6 -6
- huaweicloudsdkelb/v3/model/create_certificate_option.py +5 -4
- huaweicloudsdkelb/v3/model/create_certificate_private_key_echo_request.py +111 -0
- huaweicloudsdkelb/v3/model/create_certificate_private_key_echo_request_body.py +114 -0
- huaweicloudsdkelb/v3/model/create_certificate_private_key_echo_response.py +145 -0
- huaweicloudsdkelb/v3/model/create_fixted_response_config.py +87 -12
- huaweicloudsdkelb/v3/model/create_health_monitor_option.py +18 -18
- huaweicloudsdkelb/v3/model/create_insert_header_config.py +170 -0
- huaweicloudsdkelb/v3/model/create_insert_headers_config.py +114 -0
- huaweicloudsdkelb/v3/model/create_ip_group_ip_option.py +6 -6
- huaweicloudsdkelb/v3/model/create_ip_group_option.py +15 -15
- huaweicloudsdkelb/v3/model/create_ip_group_response.py +3 -3
- huaweicloudsdkelb/v3/model/create_l7_policy_option.py +91 -37
- huaweicloudsdkelb/v3/model/create_l7_policy_response.py +3 -3
- huaweicloudsdkelb/v3/model/create_l7_policy_rule_option.py +21 -21
- huaweicloudsdkelb/v3/model/create_l7_rule_request.py +3 -3
- huaweicloudsdkelb/v3/model/create_l7_rule_response.py +3 -3
- huaweicloudsdkelb/v3/model/create_listener_ip_group_option.py +9 -9
- huaweicloudsdkelb/v3/model/create_listener_option.py +84 -84
- huaweicloudsdkelb/v3/model/create_listener_quic_config_option.py +6 -6
- huaweicloudsdkelb/v3/model/create_listener_response.py +3 -3
- huaweicloudsdkelb/v3/model/create_load_balancer_bandwidth_option.py +18 -18
- huaweicloudsdkelb/v3/model/create_load_balancer_option.py +76 -105
- huaweicloudsdkelb/v3/model/create_load_balancer_public_ip_option.py +12 -12
- huaweicloudsdkelb/v3/model/create_load_balancer_response.py +9 -9
- huaweicloudsdkelb/v3/model/create_loadbalancer_autoscaling_option.py +6 -6
- huaweicloudsdkelb/v3/model/create_master_slave_health_monitor_option.py +9 -9
- huaweicloudsdkelb/v3/model/create_master_slave_member_option.py +12 -12
- huaweicloudsdkelb/v3/model/create_master_slave_pool_option.py +33 -33
- huaweicloudsdkelb/v3/model/create_member_option.py +21 -21
- huaweicloudsdkelb/v3/model/create_member_request.py +3 -3
- huaweicloudsdkelb/v3/model/create_member_response.py +3 -3
- huaweicloudsdkelb/v3/model/create_pool_option.py +102 -48
- huaweicloudsdkelb/v3/model/create_pool_response.py +3 -3
- huaweicloudsdkelb/v3/model/create_pool_session_persistence_option.py +9 -9
- huaweicloudsdkelb/v3/model/create_pool_slow_start_option.py +6 -6
- huaweicloudsdkelb/v3/model/create_redirect_pools_config.py +143 -0
- huaweicloudsdkelb/v3/model/create_redirect_pools_extend_config.py +81 -6
- huaweicloudsdkelb/v3/model/create_redirect_pools_sticky_session_config.py +144 -0
- huaweicloudsdkelb/v3/model/create_redirect_url_config.py +71 -21
- huaweicloudsdkelb/v3/model/create_remove_header_config.py +114 -0
- huaweicloudsdkelb/v3/model/create_remove_headers_config.py +114 -0
- huaweicloudsdkelb/v3/model/create_rewrite_url_config.py +9 -9
- huaweicloudsdkelb/v3/model/create_rule_condition.py +6 -6
- huaweicloudsdkelb/v3/model/create_rule_option.py +24 -24
- huaweicloudsdkelb/v3/model/create_traffic_limit_config.py +173 -0
- huaweicloudsdkelb/v3/model/delete_ip_group_request.py +3 -3
- huaweicloudsdkelb/v3/model/delete_l7_policy_request.py +3 -3
- huaweicloudsdkelb/v3/model/delete_master_slave_pool_request.py +3 -3
- huaweicloudsdkelb/v3/model/delete_member_request.py +6 -6
- huaweicloudsdkelb/v3/model/delete_pool_request.py +3 -3
- huaweicloudsdkelb/v3/model/eip_info.py +9 -9
- huaweicloudsdkelb/v3/model/fixted_response_config.py +87 -12
- huaweicloudsdkelb/v3/model/flavor.py +79 -21
- huaweicloudsdkelb/v3/model/flavor_info.py +18 -18
- huaweicloudsdkelb/v3/model/global_eip_info.py +9 -9
- huaweicloudsdkelb/v3/model/health_monitor.py +18 -18
- huaweicloudsdkelb/v3/model/insert_header_config.py +170 -0
- huaweicloudsdkelb/v3/model/insert_headers_config.py +114 -0
- huaweicloudsdkelb/v3/model/ip_group.py +119 -90
- huaweicloudsdkelb/v3/model/ip_group_ip.py +3 -3
- huaweicloudsdkelb/v3/model/ip_info.py +6 -6
- huaweicloudsdkelb/v3/model/l7_policy.py +103 -49
- huaweicloudsdkelb/v3/model/l7_rule.py +36 -36
- huaweicloudsdkelb/v3/model/list_all_members_request.py +24 -24
- huaweicloudsdkelb/v3/model/list_all_members_response.py +4 -4
- huaweicloudsdkelb/v3/model/list_availability_zones_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_availability_zones_response.py +38 -9
- huaweicloudsdkelb/v3/model/list_certificates_request.py +64 -6
- huaweicloudsdkelb/v3/model/list_flavors_request.py +21 -21
- huaweicloudsdkelb/v3/model/list_flavors_response.py +6 -6
- huaweicloudsdkelb/v3/model/list_health_monitors_request.py +15 -15
- huaweicloudsdkelb/v3/model/list_ip_groups_request.py +53 -24
- huaweicloudsdkelb/v3/model/list_ip_groups_response.py +6 -6
- huaweicloudsdkelb/v3/model/list_l7_policies_request.py +51 -51
- huaweicloudsdkelb/v3/model/list_l7_policies_response.py +6 -6
- huaweicloudsdkelb/v3/model/list_l7_rules_request.py +6 -6
- huaweicloudsdkelb/v3/model/list_l7_rules_response.py +6 -6
- huaweicloudsdkelb/v3/model/list_listeners_request.py +42 -42
- huaweicloudsdkelb/v3/model/list_listeners_response.py +6 -6
- huaweicloudsdkelb/v3/model/list_load_balancers_request.py +36 -36
- huaweicloudsdkelb/v3/model/list_logtanks_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_master_slave_pools_request.py +39 -39
- huaweicloudsdkelb/v3/model/list_members_request.py +27 -27
- huaweicloudsdkelb/v3/model/list_pools_request.py +135 -48
- huaweicloudsdkelb/v3/model/list_security_policies_request.py +3 -3
- huaweicloudsdkelb/v3/model/listener.py +96 -96
- huaweicloudsdkelb/v3/model/listener_insert_headers.py +30 -30
- huaweicloudsdkelb/v3/model/listener_ip_group.py +9 -9
- huaweicloudsdkelb/v3/model/listener_member_info.py +3 -3
- huaweicloudsdkelb/v3/model/listener_quic_config.py +6 -6
- huaweicloudsdkelb/v3/model/listener_ref.py +3 -3
- huaweicloudsdkelb/v3/model/load_balancer.py +129 -129
- huaweicloudsdkelb/v3/model/load_balancer_ref.py +3 -3
- huaweicloudsdkelb/v3/model/load_balancer_status.py +3 -3
- huaweicloudsdkelb/v3/model/load_balancer_status_policy.py +3 -3
- huaweicloudsdkelb/v3/model/load_balancer_status_pool.py +3 -3
- huaweicloudsdkelb/v3/model/logtank.py +3 -3
- huaweicloudsdkelb/v3/model/master_slave_health_monitor.py +12 -12
- huaweicloudsdkelb/v3/model/master_slave_member.py +18 -18
- huaweicloudsdkelb/v3/model/master_slave_pool.py +42 -42
- huaweicloudsdkelb/v3/model/member.py +46 -191
- huaweicloudsdkelb/v3/model/member_info.py +656 -0
- huaweicloudsdkelb/v3/model/member_ref.py +3 -3
- huaweicloudsdkelb/v3/model/member_status.py +6 -6
- huaweicloudsdkelb/v3/model/page_info.py +9 -9
- huaweicloudsdkelb/v3/model/pool.py +146 -63
- huaweicloudsdkelb/v3/model/pool_health.py +115 -0
- huaweicloudsdkelb/v3/model/pool_ref.py +3 -3
- huaweicloudsdkelb/v3/model/prepaid_create_option.py +12 -12
- huaweicloudsdkelb/v3/model/public_ip_info.py +9 -9
- huaweicloudsdkelb/v3/model/quota.py +21 -21
- huaweicloudsdkelb/v3/model/quota_info.py +3 -3
- huaweicloudsdkelb/v3/model/redirect_pools_config.py +144 -0
- huaweicloudsdkelb/v3/model/redirect_pools_extend_config.py +81 -6
- huaweicloudsdkelb/v3/model/redirect_pools_sticky_session_config.py +144 -0
- huaweicloudsdkelb/v3/model/redirect_url_config.py +83 -27
- huaweicloudsdkelb/v3/model/remove_header_config.py +114 -0
- huaweicloudsdkelb/v3/model/remove_headers_config.py +114 -0
- huaweicloudsdkelb/v3/model/rewrite_url_config.py +9 -9
- huaweicloudsdkelb/v3/model/rule_condition.py +6 -6
- huaweicloudsdkelb/v3/model/rule_ref.py +3 -3
- huaweicloudsdkelb/v3/model/session_persistence.py +9 -9
- huaweicloudsdkelb/v3/model/show_certificate_private_key_echo_request.py +84 -0
- huaweicloudsdkelb/v3/model/show_certificate_private_key_echo_response.py +145 -0
- huaweicloudsdkelb/v3/model/show_flavor_request.py +3 -3
- huaweicloudsdkelb/v3/model/show_flavor_response.py +3 -3
- huaweicloudsdkelb/v3/model/show_ip_group_request.py +3 -3
- huaweicloudsdkelb/v3/model/show_ip_group_response.py +3 -3
- huaweicloudsdkelb/v3/model/show_l7_policy_request.py +3 -3
- huaweicloudsdkelb/v3/model/show_l7_policy_response.py +3 -3
- huaweicloudsdkelb/v3/model/show_l7_rule_response.py +3 -3
- huaweicloudsdkelb/v3/model/show_listener_response.py +3 -3
- huaweicloudsdkelb/v3/model/show_load_balancer_response.py +3 -3
- huaweicloudsdkelb/v3/model/show_load_balancer_status_response.py +3 -3
- huaweicloudsdkelb/v3/model/show_master_slave_pool_request.py +3 -3
- huaweicloudsdkelb/v3/model/show_member_request.py +3 -3
- huaweicloudsdkelb/v3/model/show_pool_request.py +3 -3
- huaweicloudsdkelb/v3/model/slow_start.py +6 -6
- huaweicloudsdkelb/v3/model/tag.py +6 -6
- huaweicloudsdkelb/v3/model/traffic_limit_config.py +173 -0
- huaweicloudsdkelb/v3/model/upadate_ip_group_ip_option.py +6 -6
- huaweicloudsdkelb/v3/model/update_certificate_option.py +3 -3
- huaweicloudsdkelb/v3/model/update_fixted_response_config.py +87 -12
- huaweicloudsdkelb/v3/model/update_health_monitor_option.py +15 -15
- huaweicloudsdkelb/v3/model/update_insert_header_config.py +170 -0
- huaweicloudsdkelb/v3/model/update_insert_headers_config.py +114 -0
- huaweicloudsdkelb/v3/model/update_ip_group_option.py +9 -9
- huaweicloudsdkelb/v3/model/update_ip_group_request.py +3 -3
- huaweicloudsdkelb/v3/model/update_ip_group_response.py +3 -3
- huaweicloudsdkelb/v3/model/update_ip_list_option.py +9 -9
- huaweicloudsdkelb/v3/model/update_ip_list_request.py +3 -3
- huaweicloudsdkelb/v3/model/update_ip_list_response.py +3 -3
- huaweicloudsdkelb/v3/model/update_l7_policy_option.py +76 -22
- huaweicloudsdkelb/v3/model/update_l7_policy_request.py +3 -3
- huaweicloudsdkelb/v3/model/update_l7_policy_response.py +3 -3
- huaweicloudsdkelb/v3/model/update_l7_rule_option.py +18 -18
- huaweicloudsdkelb/v3/model/update_l7_rule_response.py +3 -3
- huaweicloudsdkelb/v3/model/update_listener_ip_group_option.py +9 -9
- huaweicloudsdkelb/v3/model/update_listener_option.py +66 -66
- huaweicloudsdkelb/v3/model/update_listener_quic_config_option.py +6 -6
- huaweicloudsdkelb/v3/model/update_listener_response.py +3 -3
- huaweicloudsdkelb/v3/model/update_load_balancer_option.py +48 -48
- huaweicloudsdkelb/v3/model/update_load_balancer_response.py +9 -9
- huaweicloudsdkelb/v3/model/update_loadbalancer_autoscaling_option.py +6 -6
- huaweicloudsdkelb/v3/model/update_member_option.py +12 -12
- huaweicloudsdkelb/v3/model/update_member_request.py +3 -3
- huaweicloudsdkelb/v3/model/update_pool_option.py +52 -27
- huaweicloudsdkelb/v3/model/update_pool_request.py +3 -3
- huaweicloudsdkelb/v3/model/update_pool_session_persistence_option.py +6 -6
- huaweicloudsdkelb/v3/model/update_redirect_pools_config.py +143 -0
- huaweicloudsdkelb/v3/model/update_redirect_pools_extend_config.py +84 -9
- huaweicloudsdkelb/v3/model/update_redirect_pools_sticky_session_config.py +144 -0
- huaweicloudsdkelb/v3/model/update_redirect_url_config.py +71 -21
- huaweicloudsdkelb/v3/model/update_remove_header_config.py +114 -0
- huaweicloudsdkelb/v3/model/update_remove_headers_config.py +114 -0
- huaweicloudsdkelb/v3/model/update_rewrite_url_config.py +173 -0
- huaweicloudsdkelb/v3/model/update_rule_condition.py +6 -6
- huaweicloudsdkelb/v3/model/update_traffic_limit_config.py +173 -0
- huaweicloudsdkelb/v3/region/elb_region.py +19 -1
- {huaweicloudsdkelb-3.1.85.dist-info → huaweicloudsdkelb-3.1.132.dist-info}/METADATA +2 -2
- {huaweicloudsdkelb-3.1.85.dist-info → huaweicloudsdkelb-3.1.132.dist-info}/RECORD +213 -184
- {huaweicloudsdkelb-3.1.85.dist-info → huaweicloudsdkelb-3.1.132.dist-info}/WHEEL +1 -1
- {huaweicloudsdkelb-3.1.85.dist-info → huaweicloudsdkelb-3.1.132.dist-info}/LICENSE +0 -0
- {huaweicloudsdkelb-3.1.85.dist-info → huaweicloudsdkelb-3.1.132.dist-info}/top_level.txt +0 -0
@@ -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 RemoveHeadersConfig:
|
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[RemoveHeaderConfig]'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'configs': 'configs'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, configs=None):
|
28
|
+
"""RemoveHeadersConfig
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param configs: 参数解释:要移除的请求头参数列表。
|
33
|
+
:type configs: list[:class:`huaweicloudsdkelb.v3.RemoveHeaderConfig`]
|
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 RemoveHeadersConfig.
|
46
|
+
|
47
|
+
参数解释:要移除的请求头参数列表。
|
48
|
+
|
49
|
+
:return: The configs of this RemoveHeadersConfig.
|
50
|
+
:rtype: list[:class:`huaweicloudsdkelb.v3.RemoveHeaderConfig`]
|
51
|
+
"""
|
52
|
+
return self._configs
|
53
|
+
|
54
|
+
@configs.setter
|
55
|
+
def configs(self, configs):
|
56
|
+
"""Sets the configs of this RemoveHeadersConfig.
|
57
|
+
|
58
|
+
参数解释:要移除的请求头参数列表。
|
59
|
+
|
60
|
+
:param configs: The configs of this RemoveHeadersConfig.
|
61
|
+
:type configs: list[:class:`huaweicloudsdkelb.v3.RemoveHeaderConfig`]
|
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, RemoveHeadersConfig):
|
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 RewriteUrlConfig:
|
|
33
33
|
|
34
34
|
The model defined in huaweicloud sdk
|
35
35
|
|
36
|
-
:param host:
|
36
|
+
:param host: 参数解释:重定向的域名。 取值范围:英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认取值:${host},表示继承原值(即与被重写请求host保持一致)。
|
37
37
|
:type host: str
|
38
|
-
:param path: url
|
38
|
+
:param path: 参数解释:重定向的请求路径。其中$1-$9会匹配请求url通配符星号(*),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 取值范围:英文字母、数字、_~';@^-%#&$.+?,=!:|/(),且必须以\"/\"开头。 默认取值:${path},表示继承原值(即与被重写请求保持一致)。
|
39
39
|
:type path: str
|
40
|
-
:param query: url
|
40
|
+
:param query: 参数解释:重定向的查询字符串。其中$1-$9会匹配请求url通配符星号(*),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 取值范围:英文字母、数字和特殊字符:!$&'()+,-./:;=?@^_`。字母区分大小写。 默认取值:${query},表示继承原值(即与被重写请求保持一致)。
|
41
41
|
:type query: str
|
42
42
|
"""
|
43
43
|
|
@@ -59,7 +59,7 @@ class RewriteUrlConfig:
|
|
59
59
|
def host(self):
|
60
60
|
"""Gets the host of this RewriteUrlConfig.
|
61
61
|
|
62
|
-
|
62
|
+
参数解释:重定向的域名。 取值范围:英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认取值:${host},表示继承原值(即与被重写请求host保持一致)。
|
63
63
|
|
64
64
|
:return: The host of this RewriteUrlConfig.
|
65
65
|
:rtype: str
|
@@ -70,7 +70,7 @@ class RewriteUrlConfig:
|
|
70
70
|
def host(self, host):
|
71
71
|
"""Sets the host of this RewriteUrlConfig.
|
72
72
|
|
73
|
-
|
73
|
+
参数解释:重定向的域名。 取值范围:英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认取值:${host},表示继承原值(即与被重写请求host保持一致)。
|
74
74
|
|
75
75
|
:param host: The host of this RewriteUrlConfig.
|
76
76
|
:type host: str
|
@@ -81,7 +81,7 @@ class RewriteUrlConfig:
|
|
81
81
|
def path(self):
|
82
82
|
"""Gets the path of this RewriteUrlConfig.
|
83
83
|
|
84
|
-
url
|
84
|
+
参数解释:重定向的请求路径。其中$1-$9会匹配请求url通配符星号(*),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 取值范围:英文字母、数字、_~';@^-%#&$.+?,=!:|/(),且必须以\"/\"开头。 默认取值:${path},表示继承原值(即与被重写请求保持一致)。
|
85
85
|
|
86
86
|
:return: The path of this RewriteUrlConfig.
|
87
87
|
:rtype: str
|
@@ -92,7 +92,7 @@ class RewriteUrlConfig:
|
|
92
92
|
def path(self, path):
|
93
93
|
"""Sets the path of this RewriteUrlConfig.
|
94
94
|
|
95
|
-
url
|
95
|
+
参数解释:重定向的请求路径。其中$1-$9会匹配请求url通配符星号(*),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 取值范围:英文字母、数字、_~';@^-%#&$.+?,=!:|/(),且必须以\"/\"开头。 默认取值:${path},表示继承原值(即与被重写请求保持一致)。
|
96
96
|
|
97
97
|
:param path: The path of this RewriteUrlConfig.
|
98
98
|
:type path: str
|
@@ -103,7 +103,7 @@ class RewriteUrlConfig:
|
|
103
103
|
def query(self):
|
104
104
|
"""Gets the query of this RewriteUrlConfig.
|
105
105
|
|
106
|
-
url
|
106
|
+
参数解释:重定向的查询字符串。其中$1-$9会匹配请求url通配符星号(*),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 取值范围:英文字母、数字和特殊字符:!$&'()+,-./:;=?@^_`。字母区分大小写。 默认取值:${query},表示继承原值(即与被重写请求保持一致)。
|
107
107
|
|
108
108
|
:return: The query of this RewriteUrlConfig.
|
109
109
|
:rtype: str
|
@@ -114,7 +114,7 @@ class RewriteUrlConfig:
|
|
114
114
|
def query(self, query):
|
115
115
|
"""Sets the query of this RewriteUrlConfig.
|
116
116
|
|
117
|
-
url
|
117
|
+
参数解释:重定向的查询字符串。其中$1-$9会匹配请求url通配符星号(*),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 取值范围:英文字母、数字和特殊字符:!$&'()+,-./:;=?@^_`。字母区分大小写。 默认取值:${query},表示继承原值(即与被重写请求保持一致)。
|
118
118
|
|
119
119
|
:param query: The query of this RewriteUrlConfig.
|
120
120
|
:type query: str
|
@@ -31,9 +31,9 @@ class RuleCondition:
|
|
31
31
|
|
32
32
|
The model defined in huaweicloud sdk
|
33
33
|
|
34
|
-
:param key:
|
34
|
+
:param key: 参数解释:匹配项的名称。 约束限制:同一个rule内的conditions列表中所有key必须相同。 取值范围: - 当转发规则类别type为HOST_NAME、PATH、METHOD、SOURCE_IP时,该字段固定为空字符串。 - 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 key的长度限制1-40字符,只允许包含字母、数字和-_。 - 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 key的长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写。
|
35
35
|
:type key: str
|
36
|
-
:param value:
|
36
|
+
:param value: 参数解释:匹配项的值。 约束限制: 同一个rule内的conditions列表中所有value不允许重复。 取值范围: - 当转发规则类别type为HOST_NAME时,key固定为空字符串,value表示域名的值。 value长度1-128字符,字符串只能包含英文字母、数字、-.\\*, 必须以字母、数字或\\*开头,\\*只能出现在开头且必须以\\*.开始。 - 当转发规则类别type为PATH时,key固定为空字符串,value表示请求路径的值。 value长度1-128字符。当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 - 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 value长度限制1-128字符,不支持空格, 双引号,支持以下通配符:*(匹配0个或更多字符)和?(正好匹配1个字符)。 - 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 value长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写,支持通配符:*(匹配0个或更多字符)和?(正好匹配1个字符) - 当转发规则类别type为METHOD时,key固定为空字符串,value表示请求方式。value取值范围为:GET, PUT, POST,DELETE, PATCH, HEAD, OPTIONS。 - 当转发规则类别type为SOURCE_IP时,key固定为空字符串,value表示请求源地址。 value为CIDR格式,支持ipv4,ipv6。例如192.168.0.2/32,2049::49/64。
|
37
37
|
:type value: str
|
38
38
|
"""
|
39
39
|
|
@@ -50,7 +50,7 @@ class RuleCondition:
|
|
50
50
|
def key(self):
|
51
51
|
"""Gets the key of this RuleCondition.
|
52
52
|
|
53
|
-
|
53
|
+
参数解释:匹配项的名称。 约束限制:同一个rule内的conditions列表中所有key必须相同。 取值范围: - 当转发规则类别type为HOST_NAME、PATH、METHOD、SOURCE_IP时,该字段固定为空字符串。 - 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 key的长度限制1-40字符,只允许包含字母、数字和-_。 - 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 key的长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写。
|
54
54
|
|
55
55
|
:return: The key of this RuleCondition.
|
56
56
|
:rtype: str
|
@@ -61,7 +61,7 @@ class RuleCondition:
|
|
61
61
|
def key(self, key):
|
62
62
|
"""Sets the key of this RuleCondition.
|
63
63
|
|
64
|
-
|
64
|
+
参数解释:匹配项的名称。 约束限制:同一个rule内的conditions列表中所有key必须相同。 取值范围: - 当转发规则类别type为HOST_NAME、PATH、METHOD、SOURCE_IP时,该字段固定为空字符串。 - 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 key的长度限制1-40字符,只允许包含字母、数字和-_。 - 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 key的长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写。
|
65
65
|
|
66
66
|
:param key: The key of this RuleCondition.
|
67
67
|
:type key: str
|
@@ -72,7 +72,7 @@ class RuleCondition:
|
|
72
72
|
def value(self):
|
73
73
|
"""Gets the value of this RuleCondition.
|
74
74
|
|
75
|
-
|
75
|
+
参数解释:匹配项的值。 约束限制: 同一个rule内的conditions列表中所有value不允许重复。 取值范围: - 当转发规则类别type为HOST_NAME时,key固定为空字符串,value表示域名的值。 value长度1-128字符,字符串只能包含英文字母、数字、-.\\*, 必须以字母、数字或\\*开头,\\*只能出现在开头且必须以\\*.开始。 - 当转发规则类别type为PATH时,key固定为空字符串,value表示请求路径的值。 value长度1-128字符。当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 - 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 value长度限制1-128字符,不支持空格, 双引号,支持以下通配符:*(匹配0个或更多字符)和?(正好匹配1个字符)。 - 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 value长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写,支持通配符:*(匹配0个或更多字符)和?(正好匹配1个字符) - 当转发规则类别type为METHOD时,key固定为空字符串,value表示请求方式。value取值范围为:GET, PUT, POST,DELETE, PATCH, HEAD, OPTIONS。 - 当转发规则类别type为SOURCE_IP时,key固定为空字符串,value表示请求源地址。 value为CIDR格式,支持ipv4,ipv6。例如192.168.0.2/32,2049::49/64。
|
76
76
|
|
77
77
|
:return: The value of this RuleCondition.
|
78
78
|
:rtype: str
|
@@ -83,7 +83,7 @@ class RuleCondition:
|
|
83
83
|
def value(self, value):
|
84
84
|
"""Sets the value of this RuleCondition.
|
85
85
|
|
86
|
-
|
86
|
+
参数解释:匹配项的值。 约束限制: 同一个rule内的conditions列表中所有value不允许重复。 取值范围: - 当转发规则类别type为HOST_NAME时,key固定为空字符串,value表示域名的值。 value长度1-128字符,字符串只能包含英文字母、数字、-.\\*, 必须以字母、数字或\\*开头,\\*只能出现在开头且必须以\\*.开始。 - 当转发规则类别type为PATH时,key固定为空字符串,value表示请求路径的值。 value长度1-128字符。当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 - 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 value长度限制1-128字符,不支持空格, 双引号,支持以下通配符:*(匹配0个或更多字符)和?(正好匹配1个字符)。 - 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 value长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写,支持通配符:*(匹配0个或更多字符)和?(正好匹配1个字符) - 当转发规则类别type为METHOD时,key固定为空字符串,value表示请求方式。value取值范围为:GET, PUT, POST,DELETE, PATCH, HEAD, OPTIONS。 - 当转发规则类别type为SOURCE_IP时,key固定为空字符串,value表示请求源地址。 value为CIDR格式,支持ipv4,ipv6。例如192.168.0.2/32,2049::49/64。
|
87
87
|
|
88
88
|
:param value: The value of this RuleCondition.
|
89
89
|
:type value: str
|
@@ -29,7 +29,7 @@ class RuleRef:
|
|
29
29
|
|
30
30
|
The model defined in huaweicloud sdk
|
31
31
|
|
32
|
-
:param id:
|
32
|
+
:param id: 参数解释:规则ID。
|
33
33
|
:type id: str
|
34
34
|
"""
|
35
35
|
|
@@ -44,7 +44,7 @@ class RuleRef:
|
|
44
44
|
def id(self):
|
45
45
|
"""Gets the id of this RuleRef.
|
46
46
|
|
47
|
-
|
47
|
+
参数解释:规则ID。
|
48
48
|
|
49
49
|
:return: The id of this RuleRef.
|
50
50
|
:rtype: str
|
@@ -55,7 +55,7 @@ class RuleRef:
|
|
55
55
|
def id(self, id):
|
56
56
|
"""Sets the id of this RuleRef.
|
57
57
|
|
58
|
-
|
58
|
+
参数解释:规则ID。
|
59
59
|
|
60
60
|
:param id: The id of this RuleRef.
|
61
61
|
:type id: str
|
@@ -33,11 +33,11 @@ class SessionPersistence:
|
|
33
33
|
|
34
34
|
The model defined in huaweicloud sdk
|
35
35
|
|
36
|
-
:param cookie_name: cookie名称。 [共享型LB,支持字母、数字、中划线(-)和下划线(_),最大长度64个字符。 独享型LB,支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm) [
|
36
|
+
:param cookie_name: 参数解释:cookie名称。 约束限制: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [取值范围: - 共享型LB,支持字母、数字、中划线(-)和下划线(_),最大长度64个字符。 - 独享型LB,支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) [取值范围:支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt)
|
37
37
|
:type cookie_name: str
|
38
|
-
:param type:
|
38
|
+
:param type: 参数解释:会话保持类型。 [约束限制: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。如果是独享型负载均衡器的pool,则type只能为HTTP_COOKIE,其他取值会话保持失效。如果是共享型负载均衡器的pool,则type可以为HTTP_COOKIE和APP_COOKIE,其他取值会话保持失效。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [约束限制: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。type只能为HTTP_COOKIE,其他取值会话保持失效。](tag:hws_eu,hcso_dt) 取值范围:SOURCE_IP、HTTP_COOKIE、APP_COOKIE。 [荷兰region不支持QUIC。](tag:dt,dt_test) [不支持QUIC。](tag:tm)
|
39
39
|
:type type: str
|
40
|
-
:param persistence_timeout:
|
40
|
+
:param persistence_timeout: 参数解释:会话保持的时间。当type为APP_COOKIE时不生效。 取值范围: - 若pool的protocol为TCP、UDP和QUIC则范围为[1,60](分钟),默认值1; - 若pool的protocol为HTTP和HTTPS则范围为[1,1440](分钟),默认值1440。 [荷兰region不支持QUIC。](tag:dt,dt_test)
|
41
41
|
:type persistence_timeout: int
|
42
42
|
"""
|
43
43
|
|
@@ -58,7 +58,7 @@ class SessionPersistence:
|
|
58
58
|
def cookie_name(self):
|
59
59
|
"""Gets the cookie_name of this SessionPersistence.
|
60
60
|
|
61
|
-
cookie名称。 [共享型LB,支持字母、数字、中划线(-)和下划线(_),最大长度64个字符。 独享型LB,支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm) [
|
61
|
+
参数解释:cookie名称。 约束限制: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [取值范围: - 共享型LB,支持字母、数字、中划线(-)和下划线(_),最大长度64个字符。 - 独享型LB,支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) [取值范围:支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt)
|
62
62
|
|
63
63
|
:return: The cookie_name of this SessionPersistence.
|
64
64
|
:rtype: str
|
@@ -69,7 +69,7 @@ class SessionPersistence:
|
|
69
69
|
def cookie_name(self, cookie_name):
|
70
70
|
"""Sets the cookie_name of this SessionPersistence.
|
71
71
|
|
72
|
-
cookie名称。 [共享型LB,支持字母、数字、中划线(-)和下划线(_),最大长度64个字符。 独享型LB,支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm) [
|
72
|
+
参数解释:cookie名称。 约束限制: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [取值范围: - 共享型LB,支持字母、数字、中划线(-)和下划线(_),最大长度64个字符。 - 独享型LB,支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) [取值范围:支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt)
|
73
73
|
|
74
74
|
:param cookie_name: The cookie_name of this SessionPersistence.
|
75
75
|
:type cookie_name: str
|
@@ -80,7 +80,7 @@ class SessionPersistence:
|
|
80
80
|
def type(self):
|
81
81
|
"""Gets the type of this SessionPersistence.
|
82
82
|
|
83
|
-
|
83
|
+
参数解释:会话保持类型。 [约束限制: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。如果是独享型负载均衡器的pool,则type只能为HTTP_COOKIE,其他取值会话保持失效。如果是共享型负载均衡器的pool,则type可以为HTTP_COOKIE和APP_COOKIE,其他取值会话保持失效。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [约束限制: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。type只能为HTTP_COOKIE,其他取值会话保持失效。](tag:hws_eu,hcso_dt) 取值范围:SOURCE_IP、HTTP_COOKIE、APP_COOKIE。 [荷兰region不支持QUIC。](tag:dt,dt_test) [不支持QUIC。](tag:tm)
|
84
84
|
|
85
85
|
:return: The type of this SessionPersistence.
|
86
86
|
:rtype: str
|
@@ -91,7 +91,7 @@ class SessionPersistence:
|
|
91
91
|
def type(self, type):
|
92
92
|
"""Sets the type of this SessionPersistence.
|
93
93
|
|
94
|
-
|
94
|
+
参数解释:会话保持类型。 [约束限制: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。如果是独享型负载均衡器的pool,则type只能为HTTP_COOKIE,其他取值会话保持失效。如果是共享型负载均衡器的pool,则type可以为HTTP_COOKIE和APP_COOKIE,其他取值会话保持失效。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [约束限制: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。type只能为HTTP_COOKIE,其他取值会话保持失效。](tag:hws_eu,hcso_dt) 取值范围:SOURCE_IP、HTTP_COOKIE、APP_COOKIE。 [荷兰region不支持QUIC。](tag:dt,dt_test) [不支持QUIC。](tag:tm)
|
95
95
|
|
96
96
|
:param type: The type of this SessionPersistence.
|
97
97
|
:type type: str
|
@@ -102,7 +102,7 @@ class SessionPersistence:
|
|
102
102
|
def persistence_timeout(self):
|
103
103
|
"""Gets the persistence_timeout of this SessionPersistence.
|
104
104
|
|
105
|
-
|
105
|
+
参数解释:会话保持的时间。当type为APP_COOKIE时不生效。 取值范围: - 若pool的protocol为TCP、UDP和QUIC则范围为[1,60](分钟),默认值1; - 若pool的protocol为HTTP和HTTPS则范围为[1,1440](分钟),默认值1440。 [荷兰region不支持QUIC。](tag:dt,dt_test)
|
106
106
|
|
107
107
|
:return: The persistence_timeout of this SessionPersistence.
|
108
108
|
:rtype: int
|
@@ -113,7 +113,7 @@ class SessionPersistence:
|
|
113
113
|
def persistence_timeout(self, persistence_timeout):
|
114
114
|
"""Sets the persistence_timeout of this SessionPersistence.
|
115
115
|
|
116
|
-
|
116
|
+
参数解释:会话保持的时间。当type为APP_COOKIE时不生效。 取值范围: - 若pool的protocol为TCP、UDP和QUIC则范围为[1,60](分钟),默认值1; - 若pool的protocol为HTTP和HTTPS则范围为[1,1440](分钟),默认值1440。 [荷兰region不支持QUIC。](tag:dt,dt_test)
|
117
117
|
|
118
118
|
:param persistence_timeout: The persistence_timeout of this SessionPersistence.
|
119
119
|
:type persistence_timeout: int
|
@@ -0,0 +1,84 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShowCertificatePrivateKeyEchoRequest:
|
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
|
+
}
|
21
|
+
|
22
|
+
attribute_map = {
|
23
|
+
}
|
24
|
+
|
25
|
+
def __init__(self):
|
26
|
+
"""ShowCertificatePrivateKeyEchoRequest
|
27
|
+
|
28
|
+
The model defined in huaweicloud sdk
|
29
|
+
|
30
|
+
"""
|
31
|
+
|
32
|
+
|
33
|
+
self.discriminator = None
|
34
|
+
|
35
|
+
def to_dict(self):
|
36
|
+
"""Returns the model properties as a dict"""
|
37
|
+
result = {}
|
38
|
+
|
39
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
40
|
+
value = getattr(self, attr)
|
41
|
+
if isinstance(value, list):
|
42
|
+
result[attr] = list(map(
|
43
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
44
|
+
value
|
45
|
+
))
|
46
|
+
elif hasattr(value, "to_dict"):
|
47
|
+
result[attr] = value.to_dict()
|
48
|
+
elif isinstance(value, dict):
|
49
|
+
result[attr] = dict(map(
|
50
|
+
lambda item: (item[0], item[1].to_dict())
|
51
|
+
if hasattr(item[1], "to_dict") else item,
|
52
|
+
value.items()
|
53
|
+
))
|
54
|
+
else:
|
55
|
+
if attr in self.sensitive_list:
|
56
|
+
result[attr] = "****"
|
57
|
+
else:
|
58
|
+
result[attr] = value
|
59
|
+
|
60
|
+
return result
|
61
|
+
|
62
|
+
def to_str(self):
|
63
|
+
"""Returns the string representation of the model"""
|
64
|
+
import simplejson as json
|
65
|
+
if six.PY2:
|
66
|
+
import sys
|
67
|
+
reload(sys)
|
68
|
+
sys.setdefaultencoding("utf-8")
|
69
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
70
|
+
|
71
|
+
def __repr__(self):
|
72
|
+
"""For `print`"""
|
73
|
+
return self.to_str()
|
74
|
+
|
75
|
+
def __eq__(self, other):
|
76
|
+
"""Returns true if both objects are equal"""
|
77
|
+
if not isinstance(other, ShowCertificatePrivateKeyEchoRequest):
|
78
|
+
return False
|
79
|
+
|
80
|
+
return self.__dict__ == other.__dict__
|
81
|
+
|
82
|
+
def __ne__(self, other):
|
83
|
+
"""Returns true if both objects are not equal"""
|
84
|
+
return not self == other
|
@@ -0,0 +1,145 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class ShowCertificatePrivateKeyEchoResponse(SdkResponse):
|
10
|
+
|
11
|
+
"""
|
12
|
+
Attributes:
|
13
|
+
openapi_types (dict): The key is attribute name
|
14
|
+
and the value is attribute type.
|
15
|
+
attribute_map (dict): The key is attribute name
|
16
|
+
and the value is json key in definition.
|
17
|
+
"""
|
18
|
+
sensitive_list = []
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
'request_id': 'str',
|
22
|
+
'private_key_echo': 'bool'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'request_id': 'request_id',
|
27
|
+
'private_key_echo': 'private_key_echo'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, request_id=None, private_key_echo=None):
|
31
|
+
"""ShowCertificatePrivateKeyEchoResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param request_id: 请求ID。 注:自动生成 。
|
36
|
+
:type request_id: str
|
37
|
+
:param private_key_echo: 证书回显开关,项目粒度的,默认情况下,\"private_key_echo\"是true,证书的返回体中展示私钥。 当值为false时,证书的返回体中不展示私钥。
|
38
|
+
:type private_key_echo: bool
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ShowCertificatePrivateKeyEchoResponse, self).__init__()
|
42
|
+
|
43
|
+
self._request_id = None
|
44
|
+
self._private_key_echo = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if request_id is not None:
|
48
|
+
self.request_id = request_id
|
49
|
+
if private_key_echo is not None:
|
50
|
+
self.private_key_echo = private_key_echo
|
51
|
+
|
52
|
+
@property
|
53
|
+
def request_id(self):
|
54
|
+
"""Gets the request_id of this ShowCertificatePrivateKeyEchoResponse.
|
55
|
+
|
56
|
+
请求ID。 注:自动生成 。
|
57
|
+
|
58
|
+
:return: The request_id of this ShowCertificatePrivateKeyEchoResponse.
|
59
|
+
:rtype: str
|
60
|
+
"""
|
61
|
+
return self._request_id
|
62
|
+
|
63
|
+
@request_id.setter
|
64
|
+
def request_id(self, request_id):
|
65
|
+
"""Sets the request_id of this ShowCertificatePrivateKeyEchoResponse.
|
66
|
+
|
67
|
+
请求ID。 注:自动生成 。
|
68
|
+
|
69
|
+
:param request_id: The request_id of this ShowCertificatePrivateKeyEchoResponse.
|
70
|
+
:type request_id: str
|
71
|
+
"""
|
72
|
+
self._request_id = request_id
|
73
|
+
|
74
|
+
@property
|
75
|
+
def private_key_echo(self):
|
76
|
+
"""Gets the private_key_echo of this ShowCertificatePrivateKeyEchoResponse.
|
77
|
+
|
78
|
+
证书回显开关,项目粒度的,默认情况下,\"private_key_echo\"是true,证书的返回体中展示私钥。 当值为false时,证书的返回体中不展示私钥。
|
79
|
+
|
80
|
+
:return: The private_key_echo of this ShowCertificatePrivateKeyEchoResponse.
|
81
|
+
:rtype: bool
|
82
|
+
"""
|
83
|
+
return self._private_key_echo
|
84
|
+
|
85
|
+
@private_key_echo.setter
|
86
|
+
def private_key_echo(self, private_key_echo):
|
87
|
+
"""Sets the private_key_echo of this ShowCertificatePrivateKeyEchoResponse.
|
88
|
+
|
89
|
+
证书回显开关,项目粒度的,默认情况下,\"private_key_echo\"是true,证书的返回体中展示私钥。 当值为false时,证书的返回体中不展示私钥。
|
90
|
+
|
91
|
+
:param private_key_echo: The private_key_echo of this ShowCertificatePrivateKeyEchoResponse.
|
92
|
+
:type private_key_echo: bool
|
93
|
+
"""
|
94
|
+
self._private_key_echo = private_key_echo
|
95
|
+
|
96
|
+
def to_dict(self):
|
97
|
+
"""Returns the model properties as a dict"""
|
98
|
+
result = {}
|
99
|
+
|
100
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
101
|
+
value = getattr(self, attr)
|
102
|
+
if isinstance(value, list):
|
103
|
+
result[attr] = list(map(
|
104
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
105
|
+
value
|
106
|
+
))
|
107
|
+
elif hasattr(value, "to_dict"):
|
108
|
+
result[attr] = value.to_dict()
|
109
|
+
elif isinstance(value, dict):
|
110
|
+
result[attr] = dict(map(
|
111
|
+
lambda item: (item[0], item[1].to_dict())
|
112
|
+
if hasattr(item[1], "to_dict") else item,
|
113
|
+
value.items()
|
114
|
+
))
|
115
|
+
else:
|
116
|
+
if attr in self.sensitive_list:
|
117
|
+
result[attr] = "****"
|
118
|
+
else:
|
119
|
+
result[attr] = value
|
120
|
+
|
121
|
+
return result
|
122
|
+
|
123
|
+
def to_str(self):
|
124
|
+
"""Returns the string representation of the model"""
|
125
|
+
import simplejson as json
|
126
|
+
if six.PY2:
|
127
|
+
import sys
|
128
|
+
reload(sys)
|
129
|
+
sys.setdefaultencoding("utf-8")
|
130
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
131
|
+
|
132
|
+
def __repr__(self):
|
133
|
+
"""For `print`"""
|
134
|
+
return self.to_str()
|
135
|
+
|
136
|
+
def __eq__(self, other):
|
137
|
+
"""Returns true if both objects are equal"""
|
138
|
+
if not isinstance(other, ShowCertificatePrivateKeyEchoResponse):
|
139
|
+
return False
|
140
|
+
|
141
|
+
return self.__dict__ == other.__dict__
|
142
|
+
|
143
|
+
def __ne__(self, other):
|
144
|
+
"""Returns true if both objects are not equal"""
|
145
|
+
return not self == other
|
@@ -29,7 +29,7 @@ class ShowFlavorRequest:
|
|
29
29
|
|
30
30
|
The model defined in huaweicloud sdk
|
31
31
|
|
32
|
-
:param flavor_id:
|
32
|
+
:param flavor_id: 参数解释:规格ID。
|
33
33
|
:type flavor_id: str
|
34
34
|
"""
|
35
35
|
|
@@ -44,7 +44,7 @@ class ShowFlavorRequest:
|
|
44
44
|
def flavor_id(self):
|
45
45
|
"""Gets the flavor_id of this ShowFlavorRequest.
|
46
46
|
|
47
|
-
|
47
|
+
参数解释:规格ID。
|
48
48
|
|
49
49
|
:return: The flavor_id of this ShowFlavorRequest.
|
50
50
|
:rtype: str
|
@@ -55,7 +55,7 @@ class ShowFlavorRequest:
|
|
55
55
|
def flavor_id(self, flavor_id):
|
56
56
|
"""Sets the flavor_id of this ShowFlavorRequest.
|
57
57
|
|
58
|
-
|
58
|
+
参数解释:规格ID。
|
59
59
|
|
60
60
|
:param flavor_id: The flavor_id of this ShowFlavorRequest.
|
61
61
|
:type flavor_id: str
|
@@ -32,7 +32,7 @@ class ShowFlavorResponse(SdkResponse):
|
|
32
32
|
|
33
33
|
The model defined in huaweicloud sdk
|
34
34
|
|
35
|
-
:param request_id:
|
35
|
+
:param request_id: 参数解释:请求ID。 注:自动生成 。
|
36
36
|
:type request_id: str
|
37
37
|
:param flavor:
|
38
38
|
:type flavor: :class:`huaweicloudsdkelb.v3.Flavor`
|
@@ -53,7 +53,7 @@ class ShowFlavorResponse(SdkResponse):
|
|
53
53
|
def request_id(self):
|
54
54
|
"""Gets the request_id of this ShowFlavorResponse.
|
55
55
|
|
56
|
-
|
56
|
+
参数解释:请求ID。 注:自动生成 。
|
57
57
|
|
58
58
|
:return: The request_id of this ShowFlavorResponse.
|
59
59
|
:rtype: str
|
@@ -64,7 +64,7 @@ class ShowFlavorResponse(SdkResponse):
|
|
64
64
|
def request_id(self, request_id):
|
65
65
|
"""Sets the request_id of this ShowFlavorResponse.
|
66
66
|
|
67
|
-
|
67
|
+
参数解释:请求ID。 注:自动生成 。
|
68
68
|
|
69
69
|
:param request_id: The request_id of this ShowFlavorResponse.
|
70
70
|
:type request_id: str
|