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
@@ -22,7 +22,8 @@ class RedirectPoolsExtendConfig:
|
|
22
22
|
'insert_headers_config': 'InsertHeadersConfig',
|
23
23
|
'remove_headers_config': 'RemoveHeadersConfig',
|
24
24
|
'traffic_limit_config': 'TrafficLimitConfig',
|
25
|
-
'cors_config': 'CorsConfig'
|
25
|
+
'cors_config': 'CorsConfig',
|
26
|
+
'traffic_mirror_config': 'TrafficMirrorConfig'
|
26
27
|
}
|
27
28
|
|
28
29
|
attribute_map = {
|
@@ -31,10 +32,11 @@ class RedirectPoolsExtendConfig:
|
|
31
32
|
'insert_headers_config': 'insert_headers_config',
|
32
33
|
'remove_headers_config': 'remove_headers_config',
|
33
34
|
'traffic_limit_config': 'traffic_limit_config',
|
34
|
-
'cors_config': 'cors_config'
|
35
|
+
'cors_config': 'cors_config',
|
36
|
+
'traffic_mirror_config': 'traffic_mirror_config'
|
35
37
|
}
|
36
38
|
|
37
|
-
def __init__(self, rewrite_url_enable=None, rewrite_url_config=None, insert_headers_config=None, remove_headers_config=None, traffic_limit_config=None, cors_config=None):
|
39
|
+
def __init__(self, rewrite_url_enable=None, rewrite_url_config=None, insert_headers_config=None, remove_headers_config=None, traffic_limit_config=None, cors_config=None, traffic_mirror_config=None):
|
38
40
|
r"""RedirectPoolsExtendConfig
|
39
41
|
|
40
42
|
The model defined in huaweicloud sdk
|
@@ -51,6 +53,8 @@ class RedirectPoolsExtendConfig:
|
|
51
53
|
:type traffic_limit_config: :class:`huaweicloudsdkelb.v3.TrafficLimitConfig`
|
52
54
|
:param cors_config:
|
53
55
|
:type cors_config: :class:`huaweicloudsdkelb.v3.CorsConfig`
|
56
|
+
:param traffic_mirror_config:
|
57
|
+
:type traffic_mirror_config: :class:`huaweicloudsdkelb.v3.TrafficMirrorConfig`
|
54
58
|
"""
|
55
59
|
|
56
60
|
|
@@ -61,6 +65,7 @@ class RedirectPoolsExtendConfig:
|
|
61
65
|
self._remove_headers_config = None
|
62
66
|
self._traffic_limit_config = None
|
63
67
|
self._cors_config = None
|
68
|
+
self._traffic_mirror_config = None
|
64
69
|
self.discriminator = None
|
65
70
|
|
66
71
|
if rewrite_url_enable is not None:
|
@@ -75,6 +80,8 @@ class RedirectPoolsExtendConfig:
|
|
75
80
|
self.traffic_limit_config = traffic_limit_config
|
76
81
|
if cors_config is not None:
|
77
82
|
self.cors_config = cors_config
|
83
|
+
if traffic_mirror_config is not None:
|
84
|
+
self.traffic_mirror_config = traffic_mirror_config
|
78
85
|
|
79
86
|
@property
|
80
87
|
def rewrite_url_enable(self):
|
@@ -188,6 +195,24 @@ class RedirectPoolsExtendConfig:
|
|
188
195
|
"""
|
189
196
|
self._cors_config = cors_config
|
190
197
|
|
198
|
+
@property
|
199
|
+
def traffic_mirror_config(self):
|
200
|
+
r"""Gets the traffic_mirror_config of this RedirectPoolsExtendConfig.
|
201
|
+
|
202
|
+
:return: The traffic_mirror_config of this RedirectPoolsExtendConfig.
|
203
|
+
:rtype: :class:`huaweicloudsdkelb.v3.TrafficMirrorConfig`
|
204
|
+
"""
|
205
|
+
return self._traffic_mirror_config
|
206
|
+
|
207
|
+
@traffic_mirror_config.setter
|
208
|
+
def traffic_mirror_config(self, traffic_mirror_config):
|
209
|
+
r"""Sets the traffic_mirror_config of this RedirectPoolsExtendConfig.
|
210
|
+
|
211
|
+
:param traffic_mirror_config: The traffic_mirror_config of this RedirectPoolsExtendConfig.
|
212
|
+
:type traffic_mirror_config: :class:`huaweicloudsdkelb.v3.TrafficMirrorConfig`
|
213
|
+
"""
|
214
|
+
self._traffic_mirror_config = traffic_mirror_config
|
215
|
+
|
191
216
|
def to_dict(self):
|
192
217
|
"""Returns the model properties as a dict"""
|
193
218
|
result = {}
|
@@ -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 RestoreLoadbalancerRequest:
|
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
|
+
'loadbalancer_id': 'str'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'loadbalancer_id': 'loadbalancer_id'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, loadbalancer_id=None):
|
28
|
+
r"""RestoreLoadbalancerRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param loadbalancer_id: 负载均衡器ID。
|
33
|
+
:type loadbalancer_id: str
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._loadbalancer_id = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.loadbalancer_id = loadbalancer_id
|
42
|
+
|
43
|
+
@property
|
44
|
+
def loadbalancer_id(self):
|
45
|
+
r"""Gets the loadbalancer_id of this RestoreLoadbalancerRequest.
|
46
|
+
|
47
|
+
负载均衡器ID。
|
48
|
+
|
49
|
+
:return: The loadbalancer_id of this RestoreLoadbalancerRequest.
|
50
|
+
:rtype: str
|
51
|
+
"""
|
52
|
+
return self._loadbalancer_id
|
53
|
+
|
54
|
+
@loadbalancer_id.setter
|
55
|
+
def loadbalancer_id(self, loadbalancer_id):
|
56
|
+
r"""Sets the loadbalancer_id of this RestoreLoadbalancerRequest.
|
57
|
+
|
58
|
+
负载均衡器ID。
|
59
|
+
|
60
|
+
:param loadbalancer_id: The loadbalancer_id of this RestoreLoadbalancerRequest.
|
61
|
+
:type loadbalancer_id: str
|
62
|
+
"""
|
63
|
+
self._loadbalancer_id = loadbalancer_id
|
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, RestoreLoadbalancerRequest):
|
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,174 @@
|
|
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 RestoreLoadbalancerResponse(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
|
+
'type': 'str',
|
23
|
+
'job_id': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'request_id': 'request_id',
|
28
|
+
'type': 'type',
|
29
|
+
'job_id': 'job_id'
|
30
|
+
}
|
31
|
+
|
32
|
+
def __init__(self, request_id=None, type=None, job_id=None):
|
33
|
+
r"""RestoreLoadbalancerResponse
|
34
|
+
|
35
|
+
The model defined in huaweicloud sdk
|
36
|
+
|
37
|
+
:param request_id: 请求ID。 注:自动生成 。
|
38
|
+
:type request_id: str
|
39
|
+
:param type: ELB实例的类型,v2或者v3。
|
40
|
+
:type type: str
|
41
|
+
:param job_id: 还原负载均衡器的任务ID。
|
42
|
+
:type job_id: str
|
43
|
+
"""
|
44
|
+
|
45
|
+
super(RestoreLoadbalancerResponse, self).__init__()
|
46
|
+
|
47
|
+
self._request_id = None
|
48
|
+
self._type = None
|
49
|
+
self._job_id = None
|
50
|
+
self.discriminator = None
|
51
|
+
|
52
|
+
if request_id is not None:
|
53
|
+
self.request_id = request_id
|
54
|
+
if type is not None:
|
55
|
+
self.type = type
|
56
|
+
if job_id is not None:
|
57
|
+
self.job_id = job_id
|
58
|
+
|
59
|
+
@property
|
60
|
+
def request_id(self):
|
61
|
+
r"""Gets the request_id of this RestoreLoadbalancerResponse.
|
62
|
+
|
63
|
+
请求ID。 注:自动生成 。
|
64
|
+
|
65
|
+
:return: The request_id of this RestoreLoadbalancerResponse.
|
66
|
+
:rtype: str
|
67
|
+
"""
|
68
|
+
return self._request_id
|
69
|
+
|
70
|
+
@request_id.setter
|
71
|
+
def request_id(self, request_id):
|
72
|
+
r"""Sets the request_id of this RestoreLoadbalancerResponse.
|
73
|
+
|
74
|
+
请求ID。 注:自动生成 。
|
75
|
+
|
76
|
+
:param request_id: The request_id of this RestoreLoadbalancerResponse.
|
77
|
+
:type request_id: str
|
78
|
+
"""
|
79
|
+
self._request_id = request_id
|
80
|
+
|
81
|
+
@property
|
82
|
+
def type(self):
|
83
|
+
r"""Gets the type of this RestoreLoadbalancerResponse.
|
84
|
+
|
85
|
+
ELB实例的类型,v2或者v3。
|
86
|
+
|
87
|
+
:return: The type of this RestoreLoadbalancerResponse.
|
88
|
+
:rtype: str
|
89
|
+
"""
|
90
|
+
return self._type
|
91
|
+
|
92
|
+
@type.setter
|
93
|
+
def type(self, type):
|
94
|
+
r"""Sets the type of this RestoreLoadbalancerResponse.
|
95
|
+
|
96
|
+
ELB实例的类型,v2或者v3。
|
97
|
+
|
98
|
+
:param type: The type of this RestoreLoadbalancerResponse.
|
99
|
+
:type type: str
|
100
|
+
"""
|
101
|
+
self._type = type
|
102
|
+
|
103
|
+
@property
|
104
|
+
def job_id(self):
|
105
|
+
r"""Gets the job_id of this RestoreLoadbalancerResponse.
|
106
|
+
|
107
|
+
还原负载均衡器的任务ID。
|
108
|
+
|
109
|
+
:return: The job_id of this RestoreLoadbalancerResponse.
|
110
|
+
:rtype: str
|
111
|
+
"""
|
112
|
+
return self._job_id
|
113
|
+
|
114
|
+
@job_id.setter
|
115
|
+
def job_id(self, job_id):
|
116
|
+
r"""Sets the job_id of this RestoreLoadbalancerResponse.
|
117
|
+
|
118
|
+
还原负载均衡器的任务ID。
|
119
|
+
|
120
|
+
:param job_id: The job_id of this RestoreLoadbalancerResponse.
|
121
|
+
:type job_id: str
|
122
|
+
"""
|
123
|
+
self._job_id = job_id
|
124
|
+
|
125
|
+
def to_dict(self):
|
126
|
+
"""Returns the model properties as a dict"""
|
127
|
+
result = {}
|
128
|
+
|
129
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
130
|
+
value = getattr(self, attr)
|
131
|
+
if isinstance(value, list):
|
132
|
+
result[attr] = list(map(
|
133
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
134
|
+
value
|
135
|
+
))
|
136
|
+
elif hasattr(value, "to_dict"):
|
137
|
+
result[attr] = value.to_dict()
|
138
|
+
elif isinstance(value, dict):
|
139
|
+
result[attr] = dict(map(
|
140
|
+
lambda item: (item[0], item[1].to_dict())
|
141
|
+
if hasattr(item[1], "to_dict") else item,
|
142
|
+
value.items()
|
143
|
+
))
|
144
|
+
else:
|
145
|
+
if attr in self.sensitive_list:
|
146
|
+
result[attr] = "****"
|
147
|
+
else:
|
148
|
+
result[attr] = value
|
149
|
+
|
150
|
+
return result
|
151
|
+
|
152
|
+
def to_str(self):
|
153
|
+
"""Returns the string representation of the model"""
|
154
|
+
import simplejson as json
|
155
|
+
if six.PY2:
|
156
|
+
import sys
|
157
|
+
reload(sys)
|
158
|
+
sys.setdefaultencoding("utf-8")
|
159
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
160
|
+
|
161
|
+
def __repr__(self):
|
162
|
+
"""For `print`"""
|
163
|
+
return self.to_str()
|
164
|
+
|
165
|
+
def __eq__(self, other):
|
166
|
+
"""Returns true if both objects are equal"""
|
167
|
+
if not isinstance(other, RestoreLoadbalancerResponse):
|
168
|
+
return False
|
169
|
+
|
170
|
+
return self.__dict__ == other.__dict__
|
171
|
+
|
172
|
+
def __ne__(self, other):
|
173
|
+
"""Returns true if both objects are not equal"""
|
174
|
+
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 ShowMemberHealthCheckJobRequest:
|
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
|
+
'job_id': 'str'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'job_id': 'job_id'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, job_id=None):
|
28
|
+
r"""ShowMemberHealthCheckJobRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param job_id: 参数解释:创建后端服务器检测任务的接口返回的job_id。
|
33
|
+
:type job_id: str
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._job_id = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.job_id = job_id
|
42
|
+
|
43
|
+
@property
|
44
|
+
def job_id(self):
|
45
|
+
r"""Gets the job_id of this ShowMemberHealthCheckJobRequest.
|
46
|
+
|
47
|
+
参数解释:创建后端服务器检测任务的接口返回的job_id。
|
48
|
+
|
49
|
+
:return: The job_id of this ShowMemberHealthCheckJobRequest.
|
50
|
+
:rtype: str
|
51
|
+
"""
|
52
|
+
return self._job_id
|
53
|
+
|
54
|
+
@job_id.setter
|
55
|
+
def job_id(self, job_id):
|
56
|
+
r"""Sets the job_id of this ShowMemberHealthCheckJobRequest.
|
57
|
+
|
58
|
+
参数解释:创建后端服务器检测任务的接口返回的job_id。
|
59
|
+
|
60
|
+
:param job_id: The job_id of this ShowMemberHealthCheckJobRequest.
|
61
|
+
:type job_id: str
|
62
|
+
"""
|
63
|
+
self._job_id = job_id
|
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, ShowMemberHealthCheckJobRequest):
|
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,141 @@
|
|
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 ShowMemberHealthCheckJobResponse(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
|
+
'member_check': 'MemberCheckJobInfo',
|
22
|
+
'request_id': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'member_check': 'member_check',
|
27
|
+
'request_id': 'request_id'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, member_check=None, request_id=None):
|
31
|
+
r"""ShowMemberHealthCheckJobResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param member_check:
|
36
|
+
:type member_check: :class:`huaweicloudsdkelb.v3.MemberCheckJobInfo`
|
37
|
+
:param request_id: 参数解释:请求ID。 注:自动生成 。
|
38
|
+
:type request_id: str
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ShowMemberHealthCheckJobResponse, self).__init__()
|
42
|
+
|
43
|
+
self._member_check = None
|
44
|
+
self._request_id = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if member_check is not None:
|
48
|
+
self.member_check = member_check
|
49
|
+
if request_id is not None:
|
50
|
+
self.request_id = request_id
|
51
|
+
|
52
|
+
@property
|
53
|
+
def member_check(self):
|
54
|
+
r"""Gets the member_check of this ShowMemberHealthCheckJobResponse.
|
55
|
+
|
56
|
+
:return: The member_check of this ShowMemberHealthCheckJobResponse.
|
57
|
+
:rtype: :class:`huaweicloudsdkelb.v3.MemberCheckJobInfo`
|
58
|
+
"""
|
59
|
+
return self._member_check
|
60
|
+
|
61
|
+
@member_check.setter
|
62
|
+
def member_check(self, member_check):
|
63
|
+
r"""Sets the member_check of this ShowMemberHealthCheckJobResponse.
|
64
|
+
|
65
|
+
:param member_check: The member_check of this ShowMemberHealthCheckJobResponse.
|
66
|
+
:type member_check: :class:`huaweicloudsdkelb.v3.MemberCheckJobInfo`
|
67
|
+
"""
|
68
|
+
self._member_check = member_check
|
69
|
+
|
70
|
+
@property
|
71
|
+
def request_id(self):
|
72
|
+
r"""Gets the request_id of this ShowMemberHealthCheckJobResponse.
|
73
|
+
|
74
|
+
参数解释:请求ID。 注:自动生成 。
|
75
|
+
|
76
|
+
:return: The request_id of this ShowMemberHealthCheckJobResponse.
|
77
|
+
:rtype: str
|
78
|
+
"""
|
79
|
+
return self._request_id
|
80
|
+
|
81
|
+
@request_id.setter
|
82
|
+
def request_id(self, request_id):
|
83
|
+
r"""Sets the request_id of this ShowMemberHealthCheckJobResponse.
|
84
|
+
|
85
|
+
参数解释:请求ID。 注:自动生成 。
|
86
|
+
|
87
|
+
:param request_id: The request_id of this ShowMemberHealthCheckJobResponse.
|
88
|
+
:type request_id: str
|
89
|
+
"""
|
90
|
+
self._request_id = request_id
|
91
|
+
|
92
|
+
def to_dict(self):
|
93
|
+
"""Returns the model properties as a dict"""
|
94
|
+
result = {}
|
95
|
+
|
96
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
97
|
+
value = getattr(self, attr)
|
98
|
+
if isinstance(value, list):
|
99
|
+
result[attr] = list(map(
|
100
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
101
|
+
value
|
102
|
+
))
|
103
|
+
elif hasattr(value, "to_dict"):
|
104
|
+
result[attr] = value.to_dict()
|
105
|
+
elif isinstance(value, dict):
|
106
|
+
result[attr] = dict(map(
|
107
|
+
lambda item: (item[0], item[1].to_dict())
|
108
|
+
if hasattr(item[1], "to_dict") else item,
|
109
|
+
value.items()
|
110
|
+
))
|
111
|
+
else:
|
112
|
+
if attr in self.sensitive_list:
|
113
|
+
result[attr] = "****"
|
114
|
+
else:
|
115
|
+
result[attr] = value
|
116
|
+
|
117
|
+
return result
|
118
|
+
|
119
|
+
def to_str(self):
|
120
|
+
"""Returns the string representation of the model"""
|
121
|
+
import simplejson as json
|
122
|
+
if six.PY2:
|
123
|
+
import sys
|
124
|
+
reload(sys)
|
125
|
+
sys.setdefaultencoding("utf-8")
|
126
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
127
|
+
|
128
|
+
def __repr__(self):
|
129
|
+
"""For `print`"""
|
130
|
+
return self.to_str()
|
131
|
+
|
132
|
+
def __eq__(self, other):
|
133
|
+
"""Returns true if both objects are equal"""
|
134
|
+
if not isinstance(other, ShowMemberHealthCheckJobResponse):
|
135
|
+
return False
|
136
|
+
|
137
|
+
return self.__dict__ == other.__dict__
|
138
|
+
|
139
|
+
def __ne__(self, other):
|
140
|
+
"""Returns true if both objects are not equal"""
|
141
|
+
return not self == other
|
@@ -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 ShowRecycleBinRequest:
|
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
|
+
r"""ShowRecycleBinRequest
|
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, ShowRecycleBinRequest):
|
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
|