huaweicloudsdkelb 3.1.148__py2.py3-none-any.whl → 3.1.149__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 +34 -0
- huaweicloudsdkelb/v3/elb_async_client.py +631 -3
- huaweicloudsdkelb/v3/elb_client.py +631 -3
- huaweicloudsdkelb/v3/model/__init__.py +34 -0
- huaweicloudsdkelb/v3/model/az_affinity.py +201 -0
- huaweicloudsdkelb/v3/model/batch_create_load_balancer_option.py +3 -3
- huaweicloudsdkelb/v3/model/batch_create_members_option.py +30 -1
- huaweicloudsdkelb/v3/model/batch_update_member.py +32 -3
- huaweicloudsdkelb/v3/model/batch_update_members_option.py +30 -1
- huaweicloudsdkelb/v3/model/certificate_info.py +90 -3
- huaweicloudsdkelb/v3/model/create_certificate_option.py +90 -3
- huaweicloudsdkelb/v3/model/create_health_monitor_option.py +3 -3
- huaweicloudsdkelb/v3/model/create_master_slave_health_monitor_option.py +3 -3
- huaweicloudsdkelb/v3/model/create_member_health_check_job_option.py +142 -0
- huaweicloudsdkelb/v3/model/create_member_health_check_job_request.py +139 -0
- huaweicloudsdkelb/v3/model/create_member_health_check_job_request_body.py +111 -0
- huaweicloudsdkelb/v3/model/create_member_health_check_job_response.py +141 -0
- huaweicloudsdkelb/v3/model/create_member_option.py +32 -3
- huaweicloudsdkelb/v3/model/create_pool_option.py +26 -1
- huaweicloudsdkelb/v3/model/create_redirect_pools_extend_config.py +28 -3
- huaweicloudsdkelb/v3/model/create_traffic_mirror_config.py +144 -0
- huaweicloudsdkelb/v3/model/delete_recycle_load_balancer_request.py +114 -0
- huaweicloudsdkelb/v3/model/delete_recycle_load_balancer_response.py +85 -0
- huaweicloudsdkelb/v3/model/health_monitor.py +3 -3
- huaweicloudsdkelb/v3/model/list_certificates_request.py +90 -3
- huaweicloudsdkelb/v3/model/list_health_monitors_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_listeners_request.py +30 -1
- huaweicloudsdkelb/v3/model/list_load_balancers_request.py +30 -1
- huaweicloudsdkelb/v3/model/list_members_request.py +32 -3
- huaweicloudsdkelb/v3/model/list_pools_request.py +32 -3
- huaweicloudsdkelb/v3/model/list_recycle_bin_load_balancers_request.py +1043 -0
- huaweicloudsdkelb/v3/model/list_recycle_bin_load_balancers_response.py +170 -0
- huaweicloudsdkelb/v3/model/master_slave_health_monitor.py +3 -3
- huaweicloudsdkelb/v3/model/member.py +29 -1
- huaweicloudsdkelb/v3/model/member_check_job.py +115 -0
- huaweicloudsdkelb/v3/model/member_check_job_info.py +343 -0
- huaweicloudsdkelb/v3/model/member_check_job_result.py +161 -0
- huaweicloudsdkelb/v3/model/member_check_job_result_group.py +173 -0
- huaweicloudsdkelb/v3/model/member_check_job_result_item.py +289 -0
- huaweicloudsdkelb/v3/model/member_info.py +29 -1
- huaweicloudsdkelb/v3/model/pool.py +29 -4
- huaweicloudsdkelb/v3/model/prepaid_change_charge_mode_option.py +30 -1
- huaweicloudsdkelb/v3/model/recycle_bin_policy.py +144 -0
- huaweicloudsdkelb/v3/model/recycle_bin_policy_request_body.py +111 -0
- huaweicloudsdkelb/v3/model/recycle_bin_request_body.py +115 -0
- huaweicloudsdkelb/v3/model/recycle_bin_response_body.py +169 -0
- huaweicloudsdkelb/v3/model/recycle_load_balancer.py +1412 -0
- huaweicloudsdkelb/v3/model/redirect_pools_extend_config.py +28 -3
- huaweicloudsdkelb/v3/model/restore_loadbalancer_request.py +114 -0
- huaweicloudsdkelb/v3/model/restore_loadbalancer_response.py +174 -0
- huaweicloudsdkelb/v3/model/show_member_health_check_job_request.py +114 -0
- huaweicloudsdkelb/v3/model/show_member_health_check_job_response.py +141 -0
- huaweicloudsdkelb/v3/model/show_recycle_bin_request.py +84 -0
- huaweicloudsdkelb/v3/model/show_recycle_bin_response.py +112 -0
- huaweicloudsdkelb/v3/model/traffic_mirror_config.py +144 -0
- huaweicloudsdkelb/v3/model/update_az_affinity.py +202 -0
- huaweicloudsdkelb/v3/model/update_certificate_option.py +90 -3
- huaweicloudsdkelb/v3/model/update_health_monitor_option.py +3 -3
- huaweicloudsdkelb/v3/model/update_member_option.py +30 -1
- huaweicloudsdkelb/v3/model/update_pool_option.py +28 -3
- huaweicloudsdkelb/v3/model/update_recycle_bin_enable_request.py +111 -0
- huaweicloudsdkelb/v3/model/update_recycle_bin_enable_request_body.py +111 -0
- huaweicloudsdkelb/v3/model/update_recycle_bin_enable_response.py +112 -0
- huaweicloudsdkelb/v3/model/update_recycle_bin_policy_request.py +111 -0
- huaweicloudsdkelb/v3/model/update_recycle_bin_policy_request_body.py +111 -0
- huaweicloudsdkelb/v3/model/update_recycle_bin_policy_response.py +112 -0
- huaweicloudsdkelb/v3/model/update_redirect_pools_extend_config.py +28 -3
- {huaweicloudsdkelb-3.1.148.dist-info → huaweicloudsdkelb-3.1.149.dist-info}/METADATA +2 -2
- {huaweicloudsdkelb-3.1.148.dist-info → huaweicloudsdkelb-3.1.149.dist-info}/RECORD +72 -38
- {huaweicloudsdkelb-3.1.148.dist-info → huaweicloudsdkelb-3.1.149.dist-info}/LICENSE +0 -0
- {huaweicloudsdkelb-3.1.148.dist-info → huaweicloudsdkelb-3.1.149.dist-info}/WHEEL +0 -0
- {huaweicloudsdkelb-3.1.148.dist-info → huaweicloudsdkelb-3.1.149.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,111 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class RecycleBinPolicyRequestBody:
|
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
|
+
'policy': 'RecycleBinPolicy'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'policy': 'policy'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, policy=None):
|
28
|
+
r"""RecycleBinPolicyRequestBody
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param policy:
|
33
|
+
:type policy: :class:`huaweicloudsdkelb.v3.RecycleBinPolicy`
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._policy = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
if policy is not None:
|
42
|
+
self.policy = policy
|
43
|
+
|
44
|
+
@property
|
45
|
+
def policy(self):
|
46
|
+
r"""Gets the policy of this RecycleBinPolicyRequestBody.
|
47
|
+
|
48
|
+
:return: The policy of this RecycleBinPolicyRequestBody.
|
49
|
+
:rtype: :class:`huaweicloudsdkelb.v3.RecycleBinPolicy`
|
50
|
+
"""
|
51
|
+
return self._policy
|
52
|
+
|
53
|
+
@policy.setter
|
54
|
+
def policy(self, policy):
|
55
|
+
r"""Sets the policy of this RecycleBinPolicyRequestBody.
|
56
|
+
|
57
|
+
:param policy: The policy of this RecycleBinPolicyRequestBody.
|
58
|
+
:type policy: :class:`huaweicloudsdkelb.v3.RecycleBinPolicy`
|
59
|
+
"""
|
60
|
+
self._policy = policy
|
61
|
+
|
62
|
+
def to_dict(self):
|
63
|
+
"""Returns the model properties as a dict"""
|
64
|
+
result = {}
|
65
|
+
|
66
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
67
|
+
value = getattr(self, attr)
|
68
|
+
if isinstance(value, list):
|
69
|
+
result[attr] = list(map(
|
70
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
71
|
+
value
|
72
|
+
))
|
73
|
+
elif hasattr(value, "to_dict"):
|
74
|
+
result[attr] = value.to_dict()
|
75
|
+
elif isinstance(value, dict):
|
76
|
+
result[attr] = dict(map(
|
77
|
+
lambda item: (item[0], item[1].to_dict())
|
78
|
+
if hasattr(item[1], "to_dict") else item,
|
79
|
+
value.items()
|
80
|
+
))
|
81
|
+
else:
|
82
|
+
if attr in self.sensitive_list:
|
83
|
+
result[attr] = "****"
|
84
|
+
else:
|
85
|
+
result[attr] = value
|
86
|
+
|
87
|
+
return result
|
88
|
+
|
89
|
+
def to_str(self):
|
90
|
+
"""Returns the string representation of the model"""
|
91
|
+
import simplejson as json
|
92
|
+
if six.PY2:
|
93
|
+
import sys
|
94
|
+
reload(sys)
|
95
|
+
sys.setdefaultencoding("utf-8")
|
96
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
97
|
+
|
98
|
+
def __repr__(self):
|
99
|
+
"""For `print`"""
|
100
|
+
return self.to_str()
|
101
|
+
|
102
|
+
def __eq__(self, other):
|
103
|
+
"""Returns true if both objects are equal"""
|
104
|
+
if not isinstance(other, RecycleBinPolicyRequestBody):
|
105
|
+
return False
|
106
|
+
|
107
|
+
return self.__dict__ == other.__dict__
|
108
|
+
|
109
|
+
def __ne__(self, other):
|
110
|
+
"""Returns true if both objects are not equal"""
|
111
|
+
return not self == other
|
@@ -0,0 +1,115 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class RecycleBinRequestBody:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'enable': 'bool'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'enable': 'enable'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, enable=None):
|
28
|
+
r"""RecycleBinRequestBody
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param enable: 是否启用回收站。 取值: - true:启用回收站。 - false:不启用回收站。
|
33
|
+
:type enable: bool
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._enable = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
if enable is not None:
|
42
|
+
self.enable = enable
|
43
|
+
|
44
|
+
@property
|
45
|
+
def enable(self):
|
46
|
+
r"""Gets the enable of this RecycleBinRequestBody.
|
47
|
+
|
48
|
+
是否启用回收站。 取值: - true:启用回收站。 - false:不启用回收站。
|
49
|
+
|
50
|
+
:return: The enable of this RecycleBinRequestBody.
|
51
|
+
:rtype: bool
|
52
|
+
"""
|
53
|
+
return self._enable
|
54
|
+
|
55
|
+
@enable.setter
|
56
|
+
def enable(self, enable):
|
57
|
+
r"""Sets the enable of this RecycleBinRequestBody.
|
58
|
+
|
59
|
+
是否启用回收站。 取值: - true:启用回收站。 - false:不启用回收站。
|
60
|
+
|
61
|
+
:param enable: The enable of this RecycleBinRequestBody.
|
62
|
+
:type enable: bool
|
63
|
+
"""
|
64
|
+
self._enable = enable
|
65
|
+
|
66
|
+
def to_dict(self):
|
67
|
+
"""Returns the model properties as a dict"""
|
68
|
+
result = {}
|
69
|
+
|
70
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
71
|
+
value = getattr(self, attr)
|
72
|
+
if isinstance(value, list):
|
73
|
+
result[attr] = list(map(
|
74
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
75
|
+
value
|
76
|
+
))
|
77
|
+
elif hasattr(value, "to_dict"):
|
78
|
+
result[attr] = value.to_dict()
|
79
|
+
elif isinstance(value, dict):
|
80
|
+
result[attr] = dict(map(
|
81
|
+
lambda item: (item[0], item[1].to_dict())
|
82
|
+
if hasattr(item[1], "to_dict") else item,
|
83
|
+
value.items()
|
84
|
+
))
|
85
|
+
else:
|
86
|
+
if attr in self.sensitive_list:
|
87
|
+
result[attr] = "****"
|
88
|
+
else:
|
89
|
+
result[attr] = value
|
90
|
+
|
91
|
+
return result
|
92
|
+
|
93
|
+
def to_str(self):
|
94
|
+
"""Returns the string representation of the model"""
|
95
|
+
import simplejson as json
|
96
|
+
if six.PY2:
|
97
|
+
import sys
|
98
|
+
reload(sys)
|
99
|
+
sys.setdefaultencoding("utf-8")
|
100
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
101
|
+
|
102
|
+
def __repr__(self):
|
103
|
+
"""For `print`"""
|
104
|
+
return self.to_str()
|
105
|
+
|
106
|
+
def __eq__(self, other):
|
107
|
+
"""Returns true if both objects are equal"""
|
108
|
+
if not isinstance(other, RecycleBinRequestBody):
|
109
|
+
return False
|
110
|
+
|
111
|
+
return self.__dict__ == other.__dict__
|
112
|
+
|
113
|
+
def __ne__(self, other):
|
114
|
+
"""Returns true if both objects are not equal"""
|
115
|
+
return not self == other
|
@@ -0,0 +1,169 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class RecycleBinResponseBody:
|
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
|
+
'project_id': 'str',
|
21
|
+
'policy': 'RecycleBinPolicy',
|
22
|
+
'enable': 'bool'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'project_id': 'project_id',
|
27
|
+
'policy': 'policy',
|
28
|
+
'enable': 'enable'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, project_id=None, policy=None, enable=None):
|
32
|
+
r"""RecycleBinResponseBody
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param project_id: 参数解释:项目ID。
|
37
|
+
:type project_id: str
|
38
|
+
:param policy:
|
39
|
+
:type policy: :class:`huaweicloudsdkelb.v3.RecycleBinPolicy`
|
40
|
+
:param enable: 是否启用回收站。 取值: - true:启用回收站。 - false:不启用回收站。
|
41
|
+
:type enable: bool
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._project_id = None
|
47
|
+
self._policy = None
|
48
|
+
self._enable = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if project_id is not None:
|
52
|
+
self.project_id = project_id
|
53
|
+
if policy is not None:
|
54
|
+
self.policy = policy
|
55
|
+
if enable is not None:
|
56
|
+
self.enable = enable
|
57
|
+
|
58
|
+
@property
|
59
|
+
def project_id(self):
|
60
|
+
r"""Gets the project_id of this RecycleBinResponseBody.
|
61
|
+
|
62
|
+
参数解释:项目ID。
|
63
|
+
|
64
|
+
:return: The project_id of this RecycleBinResponseBody.
|
65
|
+
:rtype: str
|
66
|
+
"""
|
67
|
+
return self._project_id
|
68
|
+
|
69
|
+
@project_id.setter
|
70
|
+
def project_id(self, project_id):
|
71
|
+
r"""Sets the project_id of this RecycleBinResponseBody.
|
72
|
+
|
73
|
+
参数解释:项目ID。
|
74
|
+
|
75
|
+
:param project_id: The project_id of this RecycleBinResponseBody.
|
76
|
+
:type project_id: str
|
77
|
+
"""
|
78
|
+
self._project_id = project_id
|
79
|
+
|
80
|
+
@property
|
81
|
+
def policy(self):
|
82
|
+
r"""Gets the policy of this RecycleBinResponseBody.
|
83
|
+
|
84
|
+
:return: The policy of this RecycleBinResponseBody.
|
85
|
+
:rtype: :class:`huaweicloudsdkelb.v3.RecycleBinPolicy`
|
86
|
+
"""
|
87
|
+
return self._policy
|
88
|
+
|
89
|
+
@policy.setter
|
90
|
+
def policy(self, policy):
|
91
|
+
r"""Sets the policy of this RecycleBinResponseBody.
|
92
|
+
|
93
|
+
:param policy: The policy of this RecycleBinResponseBody.
|
94
|
+
:type policy: :class:`huaweicloudsdkelb.v3.RecycleBinPolicy`
|
95
|
+
"""
|
96
|
+
self._policy = policy
|
97
|
+
|
98
|
+
@property
|
99
|
+
def enable(self):
|
100
|
+
r"""Gets the enable of this RecycleBinResponseBody.
|
101
|
+
|
102
|
+
是否启用回收站。 取值: - true:启用回收站。 - false:不启用回收站。
|
103
|
+
|
104
|
+
:return: The enable of this RecycleBinResponseBody.
|
105
|
+
:rtype: bool
|
106
|
+
"""
|
107
|
+
return self._enable
|
108
|
+
|
109
|
+
@enable.setter
|
110
|
+
def enable(self, enable):
|
111
|
+
r"""Sets the enable of this RecycleBinResponseBody.
|
112
|
+
|
113
|
+
是否启用回收站。 取值: - true:启用回收站。 - false:不启用回收站。
|
114
|
+
|
115
|
+
:param enable: The enable of this RecycleBinResponseBody.
|
116
|
+
:type enable: bool
|
117
|
+
"""
|
118
|
+
self._enable = enable
|
119
|
+
|
120
|
+
def to_dict(self):
|
121
|
+
"""Returns the model properties as a dict"""
|
122
|
+
result = {}
|
123
|
+
|
124
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
125
|
+
value = getattr(self, attr)
|
126
|
+
if isinstance(value, list):
|
127
|
+
result[attr] = list(map(
|
128
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
129
|
+
value
|
130
|
+
))
|
131
|
+
elif hasattr(value, "to_dict"):
|
132
|
+
result[attr] = value.to_dict()
|
133
|
+
elif isinstance(value, dict):
|
134
|
+
result[attr] = dict(map(
|
135
|
+
lambda item: (item[0], item[1].to_dict())
|
136
|
+
if hasattr(item[1], "to_dict") else item,
|
137
|
+
value.items()
|
138
|
+
))
|
139
|
+
else:
|
140
|
+
if attr in self.sensitive_list:
|
141
|
+
result[attr] = "****"
|
142
|
+
else:
|
143
|
+
result[attr] = value
|
144
|
+
|
145
|
+
return result
|
146
|
+
|
147
|
+
def to_str(self):
|
148
|
+
"""Returns the string representation of the model"""
|
149
|
+
import simplejson as json
|
150
|
+
if six.PY2:
|
151
|
+
import sys
|
152
|
+
reload(sys)
|
153
|
+
sys.setdefaultencoding("utf-8")
|
154
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
155
|
+
|
156
|
+
def __repr__(self):
|
157
|
+
"""For `print`"""
|
158
|
+
return self.to_str()
|
159
|
+
|
160
|
+
def __eq__(self, other):
|
161
|
+
"""Returns true if both objects are equal"""
|
162
|
+
if not isinstance(other, RecycleBinResponseBody):
|
163
|
+
return False
|
164
|
+
|
165
|
+
return self.__dict__ == other.__dict__
|
166
|
+
|
167
|
+
def __ne__(self, other):
|
168
|
+
"""Returns true if both objects are not equal"""
|
169
|
+
return not self == other
|