huaweicloudsdkdcs 3.1.148__py2.py3-none-any.whl → 3.1.150__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.
Potentially problematic release.
This version of huaweicloudsdkdcs might be problematic. Click here for more details.
- huaweicloudsdkdcs/v2/__init__.py +29 -0
- huaweicloudsdkdcs/v2/dcs_async_client.py +604 -0
- huaweicloudsdkdcs/v2/dcs_client.py +604 -0
- huaweicloudsdkdcs/v2/model/__init__.py +29 -0
- huaweicloudsdkdcs/v2/model/band_width.py +144 -0
- huaweicloudsdkdcs/v2/model/create_instance_body.py +3 -3
- huaweicloudsdkdcs/v2/model/create_offline_key_analysis_request.py +139 -0
- huaweicloudsdkdcs/v2/model/create_offline_key_analysis_request_body.py +143 -0
- huaweicloudsdkdcs/v2/model/create_offline_key_analysis_response.py +116 -0
- huaweicloudsdkdcs/v2/model/delete_offline_key_analysis_task_request.py +142 -0
- huaweicloudsdkdcs/v2/model/delete_offline_key_analysis_task_response.py +116 -0
- huaweicloudsdkdcs/v2/model/dims_info.py +144 -0
- huaweicloudsdkdcs/v2/model/download_hot_key_request.py +142 -0
- huaweicloudsdkdcs/v2/model/download_hot_key_response.py +85 -0
- huaweicloudsdkdcs/v2/model/key_space.py +202 -0
- huaweicloudsdkdcs/v2/model/key_type_byte.py +144 -0
- huaweicloudsdkdcs/v2/model/key_type_num.py +144 -0
- huaweicloudsdkdcs/v2/model/largest_key.py +202 -0
- huaweicloudsdkdcs/v2/model/largest_key_prefix.py +202 -0
- huaweicloudsdkdcs/v2/model/list_offline_key_analysis_task_request.py +201 -0
- huaweicloudsdkdcs/v2/model/list_offline_key_analysis_task_response.py +174 -0
- huaweicloudsdkdcs/v2/model/migrate_az_request.py +139 -0
- huaweicloudsdkdcs/v2/model/migrate_az_request_body.py +144 -0
- huaweicloudsdkdcs/v2/model/migrate_az_response.py +85 -0
- huaweicloudsdkdcs/v2/model/offline_key_analysis_record.py +231 -0
- huaweicloudsdkdcs/v2/model/rename_command_resp.py +119 -3
- huaweicloudsdkdcs/v2/model/rollback_exchange_instance_ip_request.py +114 -0
- huaweicloudsdkdcs/v2/model/rollback_exchange_instance_ip_response.py +85 -0
- huaweicloudsdkdcs/v2/model/show_instance_topology_request.py +114 -0
- huaweicloudsdkdcs/v2/model/show_instance_topology_response.py +290 -0
- huaweicloudsdkdcs/v2/model/show_offline_key_analysis_task_request.py +142 -0
- huaweicloudsdkdcs/v2/model/show_offline_key_analysis_task_response.py +580 -0
- huaweicloudsdkdcs/v2/model/topology_info.py +538 -0
- huaweicloudsdkdcs/v2/model/update_ip_whitelist_async_request.py +139 -0
- huaweicloudsdkdcs/v2/model/update_ip_whitelist_async_response.py +116 -0
- {huaweicloudsdkdcs-3.1.148.dist-info → huaweicloudsdkdcs-3.1.150.dist-info}/METADATA +2 -2
- {huaweicloudsdkdcs-3.1.148.dist-info → huaweicloudsdkdcs-3.1.150.dist-info}/RECORD +40 -11
- {huaweicloudsdkdcs-3.1.148.dist-info → huaweicloudsdkdcs-3.1.150.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdcs-3.1.148.dist-info → huaweicloudsdkdcs-3.1.150.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdcs-3.1.148.dist-info → huaweicloudsdkdcs-3.1.150.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,290 @@
|
|
|
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 ShowInstanceTopologyResponse(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
|
+
'redis_server': 'list[TopologyInfo]',
|
|
22
|
+
'cluster_lvs': 'list[TopologyInfo]',
|
|
23
|
+
'cluster_admin': 'list[TopologyInfo]',
|
|
24
|
+
'cluster_proxy': 'list[TopologyInfo]',
|
|
25
|
+
'master': 'list[TopologyInfo]',
|
|
26
|
+
'vpcendpoint': 'list[TopologyInfo]',
|
|
27
|
+
'elb': 'list[TopologyInfo]'
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
attribute_map = {
|
|
31
|
+
'redis_server': 'redis_server',
|
|
32
|
+
'cluster_lvs': 'cluster_lvs',
|
|
33
|
+
'cluster_admin': 'cluster_admin',
|
|
34
|
+
'cluster_proxy': 'cluster_proxy',
|
|
35
|
+
'master': 'master',
|
|
36
|
+
'vpcendpoint': 'vpcendpoint',
|
|
37
|
+
'elb': 'elb'
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
def __init__(self, redis_server=None, cluster_lvs=None, cluster_admin=None, cluster_proxy=None, master=None, vpcendpoint=None, elb=None):
|
|
41
|
+
r"""ShowInstanceTopologyResponse
|
|
42
|
+
|
|
43
|
+
The model defined in huaweicloud sdk
|
|
44
|
+
|
|
45
|
+
:param redis_server: **参数解释**: 集群角色:redis-server实例拓朴图。
|
|
46
|
+
:type redis_server: list[:class:`huaweicloudsdkdcs.v2.TopologyInfo`]
|
|
47
|
+
:param cluster_lvs: **参数解释**: 集群角色:lvs实例拓朴图(当前已下线),只适用于Redis 3.0版本实例。
|
|
48
|
+
:type cluster_lvs: list[:class:`huaweicloudsdkdcs.v2.TopologyInfo`]
|
|
49
|
+
:param cluster_admin: **参数解释**: 集群角色:admin实例拓朴图(当前已下线),只适用于Redis 3.0版本实例。
|
|
50
|
+
:type cluster_admin: list[:class:`huaweicloudsdkdcs.v2.TopologyInfo`]
|
|
51
|
+
:param cluster_proxy: **参数解释**: 集群角色:proxy实例拓朴图。
|
|
52
|
+
:type cluster_proxy: list[:class:`huaweicloudsdkdcs.v2.TopologyInfo`]
|
|
53
|
+
:param master: **参数解释**: Redis的角色master实例拓朴图,只适用于Redis 3.0版本实例。
|
|
54
|
+
:type master: list[:class:`huaweicloudsdkdcs.v2.TopologyInfo`]
|
|
55
|
+
:param vpcendpoint: **参数解释**: 集群角色:VPC Endpoint服务实例拓朴图,适用于4.0及以上版本实例。
|
|
56
|
+
:type vpcendpoint: list[:class:`huaweicloudsdkdcs.v2.TopologyInfo`]
|
|
57
|
+
:param elb: **参数解释**: 集群角色:ELB服务实例拓朴图,适用于Redis 4.0及以上版本实例。
|
|
58
|
+
:type elb: list[:class:`huaweicloudsdkdcs.v2.TopologyInfo`]
|
|
59
|
+
"""
|
|
60
|
+
|
|
61
|
+
super(ShowInstanceTopologyResponse, self).__init__()
|
|
62
|
+
|
|
63
|
+
self._redis_server = None
|
|
64
|
+
self._cluster_lvs = None
|
|
65
|
+
self._cluster_admin = None
|
|
66
|
+
self._cluster_proxy = None
|
|
67
|
+
self._master = None
|
|
68
|
+
self._vpcendpoint = None
|
|
69
|
+
self._elb = None
|
|
70
|
+
self.discriminator = None
|
|
71
|
+
|
|
72
|
+
if redis_server is not None:
|
|
73
|
+
self.redis_server = redis_server
|
|
74
|
+
if cluster_lvs is not None:
|
|
75
|
+
self.cluster_lvs = cluster_lvs
|
|
76
|
+
if cluster_admin is not None:
|
|
77
|
+
self.cluster_admin = cluster_admin
|
|
78
|
+
if cluster_proxy is not None:
|
|
79
|
+
self.cluster_proxy = cluster_proxy
|
|
80
|
+
if master is not None:
|
|
81
|
+
self.master = master
|
|
82
|
+
if vpcendpoint is not None:
|
|
83
|
+
self.vpcendpoint = vpcendpoint
|
|
84
|
+
if elb is not None:
|
|
85
|
+
self.elb = elb
|
|
86
|
+
|
|
87
|
+
@property
|
|
88
|
+
def redis_server(self):
|
|
89
|
+
r"""Gets the redis_server of this ShowInstanceTopologyResponse.
|
|
90
|
+
|
|
91
|
+
**参数解释**: 集群角色:redis-server实例拓朴图。
|
|
92
|
+
|
|
93
|
+
:return: The redis_server of this ShowInstanceTopologyResponse.
|
|
94
|
+
:rtype: list[:class:`huaweicloudsdkdcs.v2.TopologyInfo`]
|
|
95
|
+
"""
|
|
96
|
+
return self._redis_server
|
|
97
|
+
|
|
98
|
+
@redis_server.setter
|
|
99
|
+
def redis_server(self, redis_server):
|
|
100
|
+
r"""Sets the redis_server of this ShowInstanceTopologyResponse.
|
|
101
|
+
|
|
102
|
+
**参数解释**: 集群角色:redis-server实例拓朴图。
|
|
103
|
+
|
|
104
|
+
:param redis_server: The redis_server of this ShowInstanceTopologyResponse.
|
|
105
|
+
:type redis_server: list[:class:`huaweicloudsdkdcs.v2.TopologyInfo`]
|
|
106
|
+
"""
|
|
107
|
+
self._redis_server = redis_server
|
|
108
|
+
|
|
109
|
+
@property
|
|
110
|
+
def cluster_lvs(self):
|
|
111
|
+
r"""Gets the cluster_lvs of this ShowInstanceTopologyResponse.
|
|
112
|
+
|
|
113
|
+
**参数解释**: 集群角色:lvs实例拓朴图(当前已下线),只适用于Redis 3.0版本实例。
|
|
114
|
+
|
|
115
|
+
:return: The cluster_lvs of this ShowInstanceTopologyResponse.
|
|
116
|
+
:rtype: list[:class:`huaweicloudsdkdcs.v2.TopologyInfo`]
|
|
117
|
+
"""
|
|
118
|
+
return self._cluster_lvs
|
|
119
|
+
|
|
120
|
+
@cluster_lvs.setter
|
|
121
|
+
def cluster_lvs(self, cluster_lvs):
|
|
122
|
+
r"""Sets the cluster_lvs of this ShowInstanceTopologyResponse.
|
|
123
|
+
|
|
124
|
+
**参数解释**: 集群角色:lvs实例拓朴图(当前已下线),只适用于Redis 3.0版本实例。
|
|
125
|
+
|
|
126
|
+
:param cluster_lvs: The cluster_lvs of this ShowInstanceTopologyResponse.
|
|
127
|
+
:type cluster_lvs: list[:class:`huaweicloudsdkdcs.v2.TopologyInfo`]
|
|
128
|
+
"""
|
|
129
|
+
self._cluster_lvs = cluster_lvs
|
|
130
|
+
|
|
131
|
+
@property
|
|
132
|
+
def cluster_admin(self):
|
|
133
|
+
r"""Gets the cluster_admin of this ShowInstanceTopologyResponse.
|
|
134
|
+
|
|
135
|
+
**参数解释**: 集群角色:admin实例拓朴图(当前已下线),只适用于Redis 3.0版本实例。
|
|
136
|
+
|
|
137
|
+
:return: The cluster_admin of this ShowInstanceTopologyResponse.
|
|
138
|
+
:rtype: list[:class:`huaweicloudsdkdcs.v2.TopologyInfo`]
|
|
139
|
+
"""
|
|
140
|
+
return self._cluster_admin
|
|
141
|
+
|
|
142
|
+
@cluster_admin.setter
|
|
143
|
+
def cluster_admin(self, cluster_admin):
|
|
144
|
+
r"""Sets the cluster_admin of this ShowInstanceTopologyResponse.
|
|
145
|
+
|
|
146
|
+
**参数解释**: 集群角色:admin实例拓朴图(当前已下线),只适用于Redis 3.0版本实例。
|
|
147
|
+
|
|
148
|
+
:param cluster_admin: The cluster_admin of this ShowInstanceTopologyResponse.
|
|
149
|
+
:type cluster_admin: list[:class:`huaweicloudsdkdcs.v2.TopologyInfo`]
|
|
150
|
+
"""
|
|
151
|
+
self._cluster_admin = cluster_admin
|
|
152
|
+
|
|
153
|
+
@property
|
|
154
|
+
def cluster_proxy(self):
|
|
155
|
+
r"""Gets the cluster_proxy of this ShowInstanceTopologyResponse.
|
|
156
|
+
|
|
157
|
+
**参数解释**: 集群角色:proxy实例拓朴图。
|
|
158
|
+
|
|
159
|
+
:return: The cluster_proxy of this ShowInstanceTopologyResponse.
|
|
160
|
+
:rtype: list[:class:`huaweicloudsdkdcs.v2.TopologyInfo`]
|
|
161
|
+
"""
|
|
162
|
+
return self._cluster_proxy
|
|
163
|
+
|
|
164
|
+
@cluster_proxy.setter
|
|
165
|
+
def cluster_proxy(self, cluster_proxy):
|
|
166
|
+
r"""Sets the cluster_proxy of this ShowInstanceTopologyResponse.
|
|
167
|
+
|
|
168
|
+
**参数解释**: 集群角色:proxy实例拓朴图。
|
|
169
|
+
|
|
170
|
+
:param cluster_proxy: The cluster_proxy of this ShowInstanceTopologyResponse.
|
|
171
|
+
:type cluster_proxy: list[:class:`huaweicloudsdkdcs.v2.TopologyInfo`]
|
|
172
|
+
"""
|
|
173
|
+
self._cluster_proxy = cluster_proxy
|
|
174
|
+
|
|
175
|
+
@property
|
|
176
|
+
def master(self):
|
|
177
|
+
r"""Gets the master of this ShowInstanceTopologyResponse.
|
|
178
|
+
|
|
179
|
+
**参数解释**: Redis的角色master实例拓朴图,只适用于Redis 3.0版本实例。
|
|
180
|
+
|
|
181
|
+
:return: The master of this ShowInstanceTopologyResponse.
|
|
182
|
+
:rtype: list[:class:`huaweicloudsdkdcs.v2.TopologyInfo`]
|
|
183
|
+
"""
|
|
184
|
+
return self._master
|
|
185
|
+
|
|
186
|
+
@master.setter
|
|
187
|
+
def master(self, master):
|
|
188
|
+
r"""Sets the master of this ShowInstanceTopologyResponse.
|
|
189
|
+
|
|
190
|
+
**参数解释**: Redis的角色master实例拓朴图,只适用于Redis 3.0版本实例。
|
|
191
|
+
|
|
192
|
+
:param master: The master of this ShowInstanceTopologyResponse.
|
|
193
|
+
:type master: list[:class:`huaweicloudsdkdcs.v2.TopologyInfo`]
|
|
194
|
+
"""
|
|
195
|
+
self._master = master
|
|
196
|
+
|
|
197
|
+
@property
|
|
198
|
+
def vpcendpoint(self):
|
|
199
|
+
r"""Gets the vpcendpoint of this ShowInstanceTopologyResponse.
|
|
200
|
+
|
|
201
|
+
**参数解释**: 集群角色:VPC Endpoint服务实例拓朴图,适用于4.0及以上版本实例。
|
|
202
|
+
|
|
203
|
+
:return: The vpcendpoint of this ShowInstanceTopologyResponse.
|
|
204
|
+
:rtype: list[:class:`huaweicloudsdkdcs.v2.TopologyInfo`]
|
|
205
|
+
"""
|
|
206
|
+
return self._vpcendpoint
|
|
207
|
+
|
|
208
|
+
@vpcendpoint.setter
|
|
209
|
+
def vpcendpoint(self, vpcendpoint):
|
|
210
|
+
r"""Sets the vpcendpoint of this ShowInstanceTopologyResponse.
|
|
211
|
+
|
|
212
|
+
**参数解释**: 集群角色:VPC Endpoint服务实例拓朴图,适用于4.0及以上版本实例。
|
|
213
|
+
|
|
214
|
+
:param vpcendpoint: The vpcendpoint of this ShowInstanceTopologyResponse.
|
|
215
|
+
:type vpcendpoint: list[:class:`huaweicloudsdkdcs.v2.TopologyInfo`]
|
|
216
|
+
"""
|
|
217
|
+
self._vpcendpoint = vpcendpoint
|
|
218
|
+
|
|
219
|
+
@property
|
|
220
|
+
def elb(self):
|
|
221
|
+
r"""Gets the elb of this ShowInstanceTopologyResponse.
|
|
222
|
+
|
|
223
|
+
**参数解释**: 集群角色:ELB服务实例拓朴图,适用于Redis 4.0及以上版本实例。
|
|
224
|
+
|
|
225
|
+
:return: The elb of this ShowInstanceTopologyResponse.
|
|
226
|
+
:rtype: list[:class:`huaweicloudsdkdcs.v2.TopologyInfo`]
|
|
227
|
+
"""
|
|
228
|
+
return self._elb
|
|
229
|
+
|
|
230
|
+
@elb.setter
|
|
231
|
+
def elb(self, elb):
|
|
232
|
+
r"""Sets the elb of this ShowInstanceTopologyResponse.
|
|
233
|
+
|
|
234
|
+
**参数解释**: 集群角色:ELB服务实例拓朴图,适用于Redis 4.0及以上版本实例。
|
|
235
|
+
|
|
236
|
+
:param elb: The elb of this ShowInstanceTopologyResponse.
|
|
237
|
+
:type elb: list[:class:`huaweicloudsdkdcs.v2.TopologyInfo`]
|
|
238
|
+
"""
|
|
239
|
+
self._elb = elb
|
|
240
|
+
|
|
241
|
+
def to_dict(self):
|
|
242
|
+
"""Returns the model properties as a dict"""
|
|
243
|
+
result = {}
|
|
244
|
+
|
|
245
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
246
|
+
value = getattr(self, attr)
|
|
247
|
+
if isinstance(value, list):
|
|
248
|
+
result[attr] = list(map(
|
|
249
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
250
|
+
value
|
|
251
|
+
))
|
|
252
|
+
elif hasattr(value, "to_dict"):
|
|
253
|
+
result[attr] = value.to_dict()
|
|
254
|
+
elif isinstance(value, dict):
|
|
255
|
+
result[attr] = dict(map(
|
|
256
|
+
lambda item: (item[0], item[1].to_dict())
|
|
257
|
+
if hasattr(item[1], "to_dict") else item,
|
|
258
|
+
value.items()
|
|
259
|
+
))
|
|
260
|
+
else:
|
|
261
|
+
if attr in self.sensitive_list:
|
|
262
|
+
result[attr] = "****"
|
|
263
|
+
else:
|
|
264
|
+
result[attr] = value
|
|
265
|
+
|
|
266
|
+
return result
|
|
267
|
+
|
|
268
|
+
def to_str(self):
|
|
269
|
+
"""Returns the string representation of the model"""
|
|
270
|
+
import simplejson as json
|
|
271
|
+
if six.PY2:
|
|
272
|
+
import sys
|
|
273
|
+
reload(sys)
|
|
274
|
+
sys.setdefaultencoding("utf-8")
|
|
275
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
276
|
+
|
|
277
|
+
def __repr__(self):
|
|
278
|
+
"""For `print`"""
|
|
279
|
+
return self.to_str()
|
|
280
|
+
|
|
281
|
+
def __eq__(self, other):
|
|
282
|
+
"""Returns true if both objects are equal"""
|
|
283
|
+
if not isinstance(other, ShowInstanceTopologyResponse):
|
|
284
|
+
return False
|
|
285
|
+
|
|
286
|
+
return self.__dict__ == other.__dict__
|
|
287
|
+
|
|
288
|
+
def __ne__(self, other):
|
|
289
|
+
"""Returns true if both objects are not equal"""
|
|
290
|
+
return not self == other
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ShowOfflineKeyAnalysisTaskRequest:
|
|
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
|
+
'instance_id': 'str',
|
|
21
|
+
'task_id': 'str'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'instance_id': 'instance_id',
|
|
26
|
+
'task_id': 'task_id'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, instance_id=None, task_id=None):
|
|
30
|
+
r"""ShowOfflineKeyAnalysisTaskRequest
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param instance_id: **参数解释**: 实例ID。可通过DCS控制台进入实例详情界面查看。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
|
35
|
+
:type instance_id: str
|
|
36
|
+
:param task_id: **参数解释**: 任务ID。可通过DCS控制台进入离线全量key分析界面查看。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
|
37
|
+
:type task_id: str
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
self._instance_id = None
|
|
43
|
+
self._task_id = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
|
|
46
|
+
self.instance_id = instance_id
|
|
47
|
+
self.task_id = task_id
|
|
48
|
+
|
|
49
|
+
@property
|
|
50
|
+
def instance_id(self):
|
|
51
|
+
r"""Gets the instance_id of this ShowOfflineKeyAnalysisTaskRequest.
|
|
52
|
+
|
|
53
|
+
**参数解释**: 实例ID。可通过DCS控制台进入实例详情界面查看。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
|
54
|
+
|
|
55
|
+
:return: The instance_id of this ShowOfflineKeyAnalysisTaskRequest.
|
|
56
|
+
:rtype: str
|
|
57
|
+
"""
|
|
58
|
+
return self._instance_id
|
|
59
|
+
|
|
60
|
+
@instance_id.setter
|
|
61
|
+
def instance_id(self, instance_id):
|
|
62
|
+
r"""Sets the instance_id of this ShowOfflineKeyAnalysisTaskRequest.
|
|
63
|
+
|
|
64
|
+
**参数解释**: 实例ID。可通过DCS控制台进入实例详情界面查看。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
|
65
|
+
|
|
66
|
+
:param instance_id: The instance_id of this ShowOfflineKeyAnalysisTaskRequest.
|
|
67
|
+
:type instance_id: str
|
|
68
|
+
"""
|
|
69
|
+
self._instance_id = instance_id
|
|
70
|
+
|
|
71
|
+
@property
|
|
72
|
+
def task_id(self):
|
|
73
|
+
r"""Gets the task_id of this ShowOfflineKeyAnalysisTaskRequest.
|
|
74
|
+
|
|
75
|
+
**参数解释**: 任务ID。可通过DCS控制台进入离线全量key分析界面查看。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
|
76
|
+
|
|
77
|
+
:return: The task_id of this ShowOfflineKeyAnalysisTaskRequest.
|
|
78
|
+
:rtype: str
|
|
79
|
+
"""
|
|
80
|
+
return self._task_id
|
|
81
|
+
|
|
82
|
+
@task_id.setter
|
|
83
|
+
def task_id(self, task_id):
|
|
84
|
+
r"""Sets the task_id of this ShowOfflineKeyAnalysisTaskRequest.
|
|
85
|
+
|
|
86
|
+
**参数解释**: 任务ID。可通过DCS控制台进入离线全量key分析界面查看。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
|
87
|
+
|
|
88
|
+
:param task_id: The task_id of this ShowOfflineKeyAnalysisTaskRequest.
|
|
89
|
+
:type task_id: str
|
|
90
|
+
"""
|
|
91
|
+
self._task_id = task_id
|
|
92
|
+
|
|
93
|
+
def to_dict(self):
|
|
94
|
+
"""Returns the model properties as a dict"""
|
|
95
|
+
result = {}
|
|
96
|
+
|
|
97
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
98
|
+
value = getattr(self, attr)
|
|
99
|
+
if isinstance(value, list):
|
|
100
|
+
result[attr] = list(map(
|
|
101
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
102
|
+
value
|
|
103
|
+
))
|
|
104
|
+
elif hasattr(value, "to_dict"):
|
|
105
|
+
result[attr] = value.to_dict()
|
|
106
|
+
elif isinstance(value, dict):
|
|
107
|
+
result[attr] = dict(map(
|
|
108
|
+
lambda item: (item[0], item[1].to_dict())
|
|
109
|
+
if hasattr(item[1], "to_dict") else item,
|
|
110
|
+
value.items()
|
|
111
|
+
))
|
|
112
|
+
else:
|
|
113
|
+
if attr in self.sensitive_list:
|
|
114
|
+
result[attr] = "****"
|
|
115
|
+
else:
|
|
116
|
+
result[attr] = value
|
|
117
|
+
|
|
118
|
+
return result
|
|
119
|
+
|
|
120
|
+
def to_str(self):
|
|
121
|
+
"""Returns the string representation of the model"""
|
|
122
|
+
import simplejson as json
|
|
123
|
+
if six.PY2:
|
|
124
|
+
import sys
|
|
125
|
+
reload(sys)
|
|
126
|
+
sys.setdefaultencoding("utf-8")
|
|
127
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
128
|
+
|
|
129
|
+
def __repr__(self):
|
|
130
|
+
"""For `print`"""
|
|
131
|
+
return self.to_str()
|
|
132
|
+
|
|
133
|
+
def __eq__(self, other):
|
|
134
|
+
"""Returns true if both objects are equal"""
|
|
135
|
+
if not isinstance(other, ShowOfflineKeyAnalysisTaskRequest):
|
|
136
|
+
return False
|
|
137
|
+
|
|
138
|
+
return self.__dict__ == other.__dict__
|
|
139
|
+
|
|
140
|
+
def __ne__(self, other):
|
|
141
|
+
"""Returns true if both objects are not equal"""
|
|
142
|
+
return not self == other
|