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
@@ -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 RemoveHeaderConfig:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'key': 'str'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'key': 'key'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, key=None):
|
28
|
+
"""RemoveHeaderConfig
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param key: 被移除的请求头的参数名。取值范围: 1-40个字符(不区分大小写)。 支持字母a-z,数字,短划线-和下划线_。 不能移除以下请求头参数: 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
|
33
|
+
:type key: str
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._key = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.key = key
|
42
|
+
|
43
|
+
@property
|
44
|
+
def key(self):
|
45
|
+
"""Gets the key of this RemoveHeaderConfig.
|
46
|
+
|
47
|
+
被移除的请求头的参数名。取值范围: 1-40个字符(不区分大小写)。 支持字母a-z,数字,短划线-和下划线_。 不能移除以下请求头参数: 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
|
48
|
+
|
49
|
+
:return: The key of this RemoveHeaderConfig.
|
50
|
+
:rtype: str
|
51
|
+
"""
|
52
|
+
return self._key
|
53
|
+
|
54
|
+
@key.setter
|
55
|
+
def key(self, key):
|
56
|
+
"""Sets the key of this RemoveHeaderConfig.
|
57
|
+
|
58
|
+
被移除的请求头的参数名。取值范围: 1-40个字符(不区分大小写)。 支持字母a-z,数字,短划线-和下划线_。 不能移除以下请求头参数: 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
|
59
|
+
|
60
|
+
:param key: The key of this RemoveHeaderConfig.
|
61
|
+
:type key: str
|
62
|
+
"""
|
63
|
+
self._key = key
|
64
|
+
|
65
|
+
def to_dict(self):
|
66
|
+
"""Returns the model properties as a dict"""
|
67
|
+
result = {}
|
68
|
+
|
69
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
70
|
+
value = getattr(self, attr)
|
71
|
+
if isinstance(value, list):
|
72
|
+
result[attr] = list(map(
|
73
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
74
|
+
value
|
75
|
+
))
|
76
|
+
elif hasattr(value, "to_dict"):
|
77
|
+
result[attr] = value.to_dict()
|
78
|
+
elif isinstance(value, dict):
|
79
|
+
result[attr] = dict(map(
|
80
|
+
lambda item: (item[0], item[1].to_dict())
|
81
|
+
if hasattr(item[1], "to_dict") else item,
|
82
|
+
value.items()
|
83
|
+
))
|
84
|
+
else:
|
85
|
+
if attr in self.sensitive_list:
|
86
|
+
result[attr] = "****"
|
87
|
+
else:
|
88
|
+
result[attr] = value
|
89
|
+
|
90
|
+
return result
|
91
|
+
|
92
|
+
def to_str(self):
|
93
|
+
"""Returns the string representation of the model"""
|
94
|
+
import simplejson as json
|
95
|
+
if six.PY2:
|
96
|
+
import sys
|
97
|
+
reload(sys)
|
98
|
+
sys.setdefaultencoding("utf-8")
|
99
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
100
|
+
|
101
|
+
def __repr__(self):
|
102
|
+
"""For `print`"""
|
103
|
+
return self.to_str()
|
104
|
+
|
105
|
+
def __eq__(self, other):
|
106
|
+
"""Returns true if both objects are equal"""
|
107
|
+
if not isinstance(other, RemoveHeaderConfig):
|
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
|
@@ -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
|
@@ -33,9 +33,9 @@ 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) [支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt)
|
36
|
+
:param cookie_name: 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) 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt)
|
37
37
|
:type cookie_name: str
|
38
|
-
:param type: 会话保持类型。 取值范围:SOURCE_IP、HTTP_COOKIE、APP_COOKIE。 [使用说明: - 当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,fcs,dt) [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。type只能为HTTP_COOKIE, 其他取值会话保持失效。](tag:hws_eu,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) [不支持QUIC。](tag:tm)
|
38
|
+
:param type: 会话保持类型。 取值范围:SOURCE_IP、HTTP_COOKIE、APP_COOKIE。 [使用说明: - 当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) [荷兰region不支持QUIC。](tag:dt,dt_test) [不支持QUIC。](tag:tm)
|
39
39
|
:type type: str
|
40
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
|
@@ -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) [支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt)
|
61
|
+
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) 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [不支持该字段,请勿使用。](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) [支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt)
|
72
|
+
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) 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [不支持该字段,请勿使用。](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
|
-
会话保持类型。 取值范围:SOURCE_IP、HTTP_COOKIE、APP_COOKIE。 [使用说明: - 当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,fcs,dt) [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。type只能为HTTP_COOKIE, 其他取值会话保持失效。](tag:hws_eu,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) [不支持QUIC。](tag:tm)
|
83
|
+
会话保持类型。 取值范围:SOURCE_IP、HTTP_COOKIE、APP_COOKIE。 [使用说明: - 当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) [荷兰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
|
-
会话保持类型。 取值范围:SOURCE_IP、HTTP_COOKIE、APP_COOKIE。 [使用说明: - 当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,fcs,dt) [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。type只能为HTTP_COOKIE, 其他取值会话保持失效。](tag:hws_eu,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) [不支持QUIC。](tag:tm)
|
94
|
+
会话保持类型。 取值范围:SOURCE_IP、HTTP_COOKIE、APP_COOKIE。 [使用说明: - 当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) [荷兰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
|
@@ -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
|
@@ -29,7 +29,7 @@ class ShowIpGroupRequest:
|
|
29
29
|
|
30
30
|
The model defined in huaweicloud sdk
|
31
31
|
|
32
|
-
:param ipgroup_id: IP地址组ID。
|
32
|
+
:param ipgroup_id: 参数解释:IP地址组ID。
|
33
33
|
:type ipgroup_id: str
|
34
34
|
"""
|
35
35
|
|
@@ -44,7 +44,7 @@ class ShowIpGroupRequest:
|
|
44
44
|
def ipgroup_id(self):
|
45
45
|
"""Gets the ipgroup_id of this ShowIpGroupRequest.
|
46
46
|
|
47
|
-
IP地址组ID。
|
47
|
+
参数解释:IP地址组ID。
|
48
48
|
|
49
49
|
:return: The ipgroup_id of this ShowIpGroupRequest.
|
50
50
|
:rtype: str
|
@@ -55,7 +55,7 @@ class ShowIpGroupRequest:
|
|
55
55
|
def ipgroup_id(self, ipgroup_id):
|
56
56
|
"""Sets the ipgroup_id of this ShowIpGroupRequest.
|
57
57
|
|
58
|
-
IP地址组ID。
|
58
|
+
参数解释:IP地址组ID。
|
59
59
|
|
60
60
|
:param ipgroup_id: The ipgroup_id of this ShowIpGroupRequest.
|
61
61
|
:type ipgroup_id: str
|