huaweicloudsdkoms 3.1.160__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.
- huaweicloudsdkoms/__init__.py +0 -0
- huaweicloudsdkoms/v2/__init__.py +117 -0
- huaweicloudsdkoms/v2/model/__init__.py +114 -0
- huaweicloudsdkoms/v2/model/bandwidth_policy_dto.py +170 -0
- huaweicloudsdkoms/v2/model/batch_update_tasks_req.py +201 -0
- huaweicloudsdkoms/v2/model/batch_update_tasks_request.py +111 -0
- huaweicloudsdkoms/v2/model/batch_update_tasks_response.py +85 -0
- huaweicloudsdkoms/v2/model/check_prefix_req.py +343 -0
- huaweicloudsdkoms/v2/model/check_prefix_request.py +111 -0
- huaweicloudsdkoms/v2/model/check_prefix_response.py +116 -0
- huaweicloudsdkoms/v2/model/checked_key.py +173 -0
- huaweicloudsdkoms/v2/model/create_sync_events_request.py +139 -0
- huaweicloudsdkoms/v2/model/create_sync_events_response.py +85 -0
- huaweicloudsdkoms/v2/model/create_sync_task_req.py +567 -0
- huaweicloudsdkoms/v2/model/create_sync_task_request.py +111 -0
- huaweicloudsdkoms/v2/model/create_sync_task_response.py +116 -0
- huaweicloudsdkoms/v2/model/create_task_group_req.py +531 -0
- huaweicloudsdkoms/v2/model/create_task_group_request.py +111 -0
- huaweicloudsdkoms/v2/model/create_task_group_response.py +116 -0
- huaweicloudsdkoms/v2/model/create_task_req.py +561 -0
- huaweicloudsdkoms/v2/model/create_task_request.py +111 -0
- huaweicloudsdkoms/v2/model/create_task_response.py +145 -0
- huaweicloudsdkoms/v2/model/delete_sync_task_request.py +114 -0
- huaweicloudsdkoms/v2/model/delete_sync_task_response.py +85 -0
- huaweicloudsdkoms/v2/model/delete_task_group_request.py +114 -0
- huaweicloudsdkoms/v2/model/delete_task_group_response.py +85 -0
- huaweicloudsdkoms/v2/model/delete_task_request.py +114 -0
- huaweicloudsdkoms/v2/model/delete_task_response.py +85 -0
- huaweicloudsdkoms/v2/model/dst_node_req.py +256 -0
- huaweicloudsdkoms/v2/model/dst_node_resp.py +173 -0
- huaweicloudsdkoms/v2/model/error_reason_resp.py +144 -0
- huaweicloudsdkoms/v2/model/failed_object_record_dto.py +173 -0
- huaweicloudsdkoms/v2/model/link.py +144 -0
- huaweicloudsdkoms/v2/model/list_api_versions_request.py +84 -0
- huaweicloudsdkoms/v2/model/list_api_versions_response.py +116 -0
- huaweicloudsdkoms/v2/model/list_buckets_req.py +230 -0
- huaweicloudsdkoms/v2/model/list_file.py +171 -0
- huaweicloudsdkoms/v2/model/list_sync_task_statistic_request.py +198 -0
- huaweicloudsdkoms/v2/model/list_sync_task_statistic_response.py +174 -0
- huaweicloudsdkoms/v2/model/list_sync_tasks_request.py +173 -0
- huaweicloudsdkoms/v2/model/list_sync_tasks_response.py +145 -0
- huaweicloudsdkoms/v2/model/list_task_group_request.py +173 -0
- huaweicloudsdkoms/v2/model/list_task_group_response.py +145 -0
- huaweicloudsdkoms/v2/model/list_tasks_request.py +202 -0
- huaweicloudsdkoms/v2/model/list_tasks_response.py +145 -0
- huaweicloudsdkoms/v2/model/prefix_key_info.py +114 -0
- huaweicloudsdkoms/v2/model/region_info.py +173 -0
- huaweicloudsdkoms/v2/model/retry_task_group_req.py +289 -0
- huaweicloudsdkoms/v2/model/retry_task_group_request.py +139 -0
- huaweicloudsdkoms/v2/model/retry_task_group_response.py +85 -0
- huaweicloudsdkoms/v2/model/show_api_info_request.py +114 -0
- huaweicloudsdkoms/v2/model/show_api_info_response.py +203 -0
- huaweicloudsdkoms/v2/model/show_bucket_list_request.py +111 -0
- huaweicloudsdkoms/v2/model/show_bucket_list_response.py +112 -0
- huaweicloudsdkoms/v2/model/show_bucket_objects_request.py +111 -0
- huaweicloudsdkoms/v2/model/show_bucket_objects_response.py +174 -0
- huaweicloudsdkoms/v2/model/show_bucket_record.py +144 -0
- huaweicloudsdkoms/v2/model/show_bucket_region_req.py +258 -0
- huaweicloudsdkoms/v2/model/show_bucket_region_request.py +111 -0
- huaweicloudsdkoms/v2/model/show_bucket_region_response.py +174 -0
- huaweicloudsdkoms/v2/model/show_bucket_req.py +370 -0
- huaweicloudsdkoms/v2/model/show_cdn_info_req.py +304 -0
- huaweicloudsdkoms/v2/model/show_cdn_info_request.py +111 -0
- huaweicloudsdkoms/v2/model/show_cdn_info_response.py +174 -0
- huaweicloudsdkoms/v2/model/show_cloud_type_request.py +114 -0
- huaweicloudsdkoms/v2/model/show_cloud_type_response.py +112 -0
- huaweicloudsdkoms/v2/model/show_region_info_request.py +84 -0
- huaweicloudsdkoms/v2/model/show_region_info_resp.py +144 -0
- huaweicloudsdkoms/v2/model/show_region_info_response.py +112 -0
- huaweicloudsdkoms/v2/model/show_sync_task_request.py +142 -0
- huaweicloudsdkoms/v2/model/show_sync_task_response.py +725 -0
- huaweicloudsdkoms/v2/model/show_task_group_request.py +114 -0
- huaweicloudsdkoms/v2/model/show_task_group_response.py +1165 -0
- huaweicloudsdkoms/v2/model/show_task_request.py +114 -0
- huaweicloudsdkoms/v2/model/show_task_response.py +1194 -0
- huaweicloudsdkoms/v2/model/smn_config.py +200 -0
- huaweicloudsdkoms/v2/model/smn_info.py +173 -0
- huaweicloudsdkoms/v2/model/source_cdn_req.py +199 -0
- huaweicloudsdkoms/v2/model/source_cdn_resp.py +171 -0
- huaweicloudsdkoms/v2/model/src_node_req.py +372 -0
- huaweicloudsdkoms/v2/model/src_node_resp.py +256 -0
- huaweicloudsdkoms/v2/model/start_sync_task_req.py +227 -0
- huaweicloudsdkoms/v2/model/start_sync_task_request.py +139 -0
- huaweicloudsdkoms/v2/model/start_sync_task_response.py +85 -0
- huaweicloudsdkoms/v2/model/start_task_group_req.py +258 -0
- huaweicloudsdkoms/v2/model/start_task_group_request.py +139 -0
- huaweicloudsdkoms/v2/model/start_task_group_response.py +85 -0
- huaweicloudsdkoms/v2/model/start_task_req.py +345 -0
- huaweicloudsdkoms/v2/model/start_task_request.py +139 -0
- huaweicloudsdkoms/v2/model/start_task_response.py +85 -0
- huaweicloudsdkoms/v2/model/statistic_data.py +144 -0
- huaweicloudsdkoms/v2/model/statistic_type_data.py +144 -0
- huaweicloudsdkoms/v2/model/stop_sync_task_request.py +114 -0
- huaweicloudsdkoms/v2/model/stop_sync_task_response.py +85 -0
- huaweicloudsdkoms/v2/model/stop_task_group_request.py +114 -0
- huaweicloudsdkoms/v2/model/stop_task_group_response.py +85 -0
- huaweicloudsdkoms/v2/model/stop_task_request.py +114 -0
- huaweicloudsdkoms/v2/model/stop_task_response.py +85 -0
- huaweicloudsdkoms/v2/model/sync_object_req.py +114 -0
- huaweicloudsdkoms/v2/model/sync_task_info.py +604 -0
- huaweicloudsdkoms/v2/model/task_group_dst_node.py +256 -0
- huaweicloudsdkoms/v2/model/task_group_dst_node_resp.py +173 -0
- huaweicloudsdkoms/v2/model/task_group_resp.py +1164 -0
- huaweicloudsdkoms/v2/model/task_group_src_node.py +343 -0
- huaweicloudsdkoms/v2/model/task_group_src_node_resp.py +256 -0
- huaweicloudsdkoms/v2/model/task_resp.py +1193 -0
- huaweicloudsdkoms/v2/model/update_bandwidth_policy_req.py +114 -0
- huaweicloudsdkoms/v2/model/update_bandwidth_policy_request.py +139 -0
- huaweicloudsdkoms/v2/model/update_bandwidth_policy_response.py +85 -0
- huaweicloudsdkoms/v2/model/update_task_group_request.py +139 -0
- huaweicloudsdkoms/v2/model/update_task_group_response.py +85 -0
- huaweicloudsdkoms/v2/model/version.py +202 -0
- huaweicloudsdkoms/v2/oms_async_client.py +2263 -0
- huaweicloudsdkoms/v2/oms_client.py +2260 -0
- huaweicloudsdkoms/v2/region/__init__.py +0 -0
- huaweicloudsdkoms/v2/region/oms_region.py +91 -0
- huaweicloudsdkoms-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdkoms-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdkoms-3.1.160.dist-info/RECORD +121 -0
- huaweicloudsdkoms-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdkoms-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,345 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class StartTaskReq:
|
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
|
+
'src_ak': 'str',
|
21
|
+
'src_sk': 'str',
|
22
|
+
'json_auth_file': 'str',
|
23
|
+
'src_security_token': 'str',
|
24
|
+
'dst_ak': 'str',
|
25
|
+
'dst_sk': 'str',
|
26
|
+
'dst_security_token': 'str',
|
27
|
+
'source_cdn_authentication_key': 'str',
|
28
|
+
'migrate_failed_object': 'bool'
|
29
|
+
}
|
30
|
+
|
31
|
+
attribute_map = {
|
32
|
+
'src_ak': 'src_ak',
|
33
|
+
'src_sk': 'src_sk',
|
34
|
+
'json_auth_file': 'json_auth_file',
|
35
|
+
'src_security_token': 'src_security_token',
|
36
|
+
'dst_ak': 'dst_ak',
|
37
|
+
'dst_sk': 'dst_sk',
|
38
|
+
'dst_security_token': 'dst_security_token',
|
39
|
+
'source_cdn_authentication_key': 'source_cdn_authentication_key',
|
40
|
+
'migrate_failed_object': 'migrate_failed_object'
|
41
|
+
}
|
42
|
+
|
43
|
+
def __init__(self, src_ak=None, src_sk=None, json_auth_file=None, src_security_token=None, dst_ak=None, dst_sk=None, dst_security_token=None, source_cdn_authentication_key=None, migrate_failed_object=None):
|
44
|
+
r"""StartTaskReq
|
45
|
+
|
46
|
+
The model defined in huaweicloud sdk
|
47
|
+
|
48
|
+
:param src_ak: 源端节点AK(最大长度100个字符)。URL列表迁移任务不需要填写此参数。
|
49
|
+
:type src_ak: str
|
50
|
+
:param src_sk: 源端节点SK(最大长度100个字符)。URL列表迁移任务不需要填写此参数。
|
51
|
+
:type src_sk: str
|
52
|
+
:param json_auth_file: 用于谷歌云Cloud Storage鉴权
|
53
|
+
:type json_auth_file: str
|
54
|
+
:param src_security_token: 源端节点临时Token
|
55
|
+
:type src_security_token: str
|
56
|
+
:param dst_ak: 目的端节点AK(最大长度100个字符)。
|
57
|
+
:type dst_ak: str
|
58
|
+
:param dst_sk: 目的端节点SK(最大长度100个字符)。
|
59
|
+
:type dst_sk: str
|
60
|
+
:param dst_security_token: 目标端节点临时Token
|
61
|
+
:type dst_security_token: str
|
62
|
+
:param source_cdn_authentication_key: CDN鉴权秘钥。
|
63
|
+
:type source_cdn_authentication_key: str
|
64
|
+
:param migrate_failed_object: 迁移类型,标识是否为全量迁移,默认false(全量迁移)。 值为true时表示只重传失败对象。 值为空或者为false时表示全量迁移。
|
65
|
+
:type migrate_failed_object: bool
|
66
|
+
"""
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
self._src_ak = None
|
71
|
+
self._src_sk = None
|
72
|
+
self._json_auth_file = None
|
73
|
+
self._src_security_token = None
|
74
|
+
self._dst_ak = None
|
75
|
+
self._dst_sk = None
|
76
|
+
self._dst_security_token = None
|
77
|
+
self._source_cdn_authentication_key = None
|
78
|
+
self._migrate_failed_object = None
|
79
|
+
self.discriminator = None
|
80
|
+
|
81
|
+
if src_ak is not None:
|
82
|
+
self.src_ak = src_ak
|
83
|
+
if src_sk is not None:
|
84
|
+
self.src_sk = src_sk
|
85
|
+
if json_auth_file is not None:
|
86
|
+
self.json_auth_file = json_auth_file
|
87
|
+
if src_security_token is not None:
|
88
|
+
self.src_security_token = src_security_token
|
89
|
+
self.dst_ak = dst_ak
|
90
|
+
self.dst_sk = dst_sk
|
91
|
+
if dst_security_token is not None:
|
92
|
+
self.dst_security_token = dst_security_token
|
93
|
+
if source_cdn_authentication_key is not None:
|
94
|
+
self.source_cdn_authentication_key = source_cdn_authentication_key
|
95
|
+
if migrate_failed_object is not None:
|
96
|
+
self.migrate_failed_object = migrate_failed_object
|
97
|
+
|
98
|
+
@property
|
99
|
+
def src_ak(self):
|
100
|
+
r"""Gets the src_ak of this StartTaskReq.
|
101
|
+
|
102
|
+
源端节点AK(最大长度100个字符)。URL列表迁移任务不需要填写此参数。
|
103
|
+
|
104
|
+
:return: The src_ak of this StartTaskReq.
|
105
|
+
:rtype: str
|
106
|
+
"""
|
107
|
+
return self._src_ak
|
108
|
+
|
109
|
+
@src_ak.setter
|
110
|
+
def src_ak(self, src_ak):
|
111
|
+
r"""Sets the src_ak of this StartTaskReq.
|
112
|
+
|
113
|
+
源端节点AK(最大长度100个字符)。URL列表迁移任务不需要填写此参数。
|
114
|
+
|
115
|
+
:param src_ak: The src_ak of this StartTaskReq.
|
116
|
+
:type src_ak: str
|
117
|
+
"""
|
118
|
+
self._src_ak = src_ak
|
119
|
+
|
120
|
+
@property
|
121
|
+
def src_sk(self):
|
122
|
+
r"""Gets the src_sk of this StartTaskReq.
|
123
|
+
|
124
|
+
源端节点SK(最大长度100个字符)。URL列表迁移任务不需要填写此参数。
|
125
|
+
|
126
|
+
:return: The src_sk of this StartTaskReq.
|
127
|
+
:rtype: str
|
128
|
+
"""
|
129
|
+
return self._src_sk
|
130
|
+
|
131
|
+
@src_sk.setter
|
132
|
+
def src_sk(self, src_sk):
|
133
|
+
r"""Sets the src_sk of this StartTaskReq.
|
134
|
+
|
135
|
+
源端节点SK(最大长度100个字符)。URL列表迁移任务不需要填写此参数。
|
136
|
+
|
137
|
+
:param src_sk: The src_sk of this StartTaskReq.
|
138
|
+
:type src_sk: str
|
139
|
+
"""
|
140
|
+
self._src_sk = src_sk
|
141
|
+
|
142
|
+
@property
|
143
|
+
def json_auth_file(self):
|
144
|
+
r"""Gets the json_auth_file of this StartTaskReq.
|
145
|
+
|
146
|
+
用于谷歌云Cloud Storage鉴权
|
147
|
+
|
148
|
+
:return: The json_auth_file of this StartTaskReq.
|
149
|
+
:rtype: str
|
150
|
+
"""
|
151
|
+
return self._json_auth_file
|
152
|
+
|
153
|
+
@json_auth_file.setter
|
154
|
+
def json_auth_file(self, json_auth_file):
|
155
|
+
r"""Sets the json_auth_file of this StartTaskReq.
|
156
|
+
|
157
|
+
用于谷歌云Cloud Storage鉴权
|
158
|
+
|
159
|
+
:param json_auth_file: The json_auth_file of this StartTaskReq.
|
160
|
+
:type json_auth_file: str
|
161
|
+
"""
|
162
|
+
self._json_auth_file = json_auth_file
|
163
|
+
|
164
|
+
@property
|
165
|
+
def src_security_token(self):
|
166
|
+
r"""Gets the src_security_token of this StartTaskReq.
|
167
|
+
|
168
|
+
源端节点临时Token
|
169
|
+
|
170
|
+
:return: The src_security_token of this StartTaskReq.
|
171
|
+
:rtype: str
|
172
|
+
"""
|
173
|
+
return self._src_security_token
|
174
|
+
|
175
|
+
@src_security_token.setter
|
176
|
+
def src_security_token(self, src_security_token):
|
177
|
+
r"""Sets the src_security_token of this StartTaskReq.
|
178
|
+
|
179
|
+
源端节点临时Token
|
180
|
+
|
181
|
+
:param src_security_token: The src_security_token of this StartTaskReq.
|
182
|
+
:type src_security_token: str
|
183
|
+
"""
|
184
|
+
self._src_security_token = src_security_token
|
185
|
+
|
186
|
+
@property
|
187
|
+
def dst_ak(self):
|
188
|
+
r"""Gets the dst_ak of this StartTaskReq.
|
189
|
+
|
190
|
+
目的端节点AK(最大长度100个字符)。
|
191
|
+
|
192
|
+
:return: The dst_ak of this StartTaskReq.
|
193
|
+
:rtype: str
|
194
|
+
"""
|
195
|
+
return self._dst_ak
|
196
|
+
|
197
|
+
@dst_ak.setter
|
198
|
+
def dst_ak(self, dst_ak):
|
199
|
+
r"""Sets the dst_ak of this StartTaskReq.
|
200
|
+
|
201
|
+
目的端节点AK(最大长度100个字符)。
|
202
|
+
|
203
|
+
:param dst_ak: The dst_ak of this StartTaskReq.
|
204
|
+
:type dst_ak: str
|
205
|
+
"""
|
206
|
+
self._dst_ak = dst_ak
|
207
|
+
|
208
|
+
@property
|
209
|
+
def dst_sk(self):
|
210
|
+
r"""Gets the dst_sk of this StartTaskReq.
|
211
|
+
|
212
|
+
目的端节点SK(最大长度100个字符)。
|
213
|
+
|
214
|
+
:return: The dst_sk of this StartTaskReq.
|
215
|
+
:rtype: str
|
216
|
+
"""
|
217
|
+
return self._dst_sk
|
218
|
+
|
219
|
+
@dst_sk.setter
|
220
|
+
def dst_sk(self, dst_sk):
|
221
|
+
r"""Sets the dst_sk of this StartTaskReq.
|
222
|
+
|
223
|
+
目的端节点SK(最大长度100个字符)。
|
224
|
+
|
225
|
+
:param dst_sk: The dst_sk of this StartTaskReq.
|
226
|
+
:type dst_sk: str
|
227
|
+
"""
|
228
|
+
self._dst_sk = dst_sk
|
229
|
+
|
230
|
+
@property
|
231
|
+
def dst_security_token(self):
|
232
|
+
r"""Gets the dst_security_token of this StartTaskReq.
|
233
|
+
|
234
|
+
目标端节点临时Token
|
235
|
+
|
236
|
+
:return: The dst_security_token of this StartTaskReq.
|
237
|
+
:rtype: str
|
238
|
+
"""
|
239
|
+
return self._dst_security_token
|
240
|
+
|
241
|
+
@dst_security_token.setter
|
242
|
+
def dst_security_token(self, dst_security_token):
|
243
|
+
r"""Sets the dst_security_token of this StartTaskReq.
|
244
|
+
|
245
|
+
目标端节点临时Token
|
246
|
+
|
247
|
+
:param dst_security_token: The dst_security_token of this StartTaskReq.
|
248
|
+
:type dst_security_token: str
|
249
|
+
"""
|
250
|
+
self._dst_security_token = dst_security_token
|
251
|
+
|
252
|
+
@property
|
253
|
+
def source_cdn_authentication_key(self):
|
254
|
+
r"""Gets the source_cdn_authentication_key of this StartTaskReq.
|
255
|
+
|
256
|
+
CDN鉴权秘钥。
|
257
|
+
|
258
|
+
:return: The source_cdn_authentication_key of this StartTaskReq.
|
259
|
+
:rtype: str
|
260
|
+
"""
|
261
|
+
return self._source_cdn_authentication_key
|
262
|
+
|
263
|
+
@source_cdn_authentication_key.setter
|
264
|
+
def source_cdn_authentication_key(self, source_cdn_authentication_key):
|
265
|
+
r"""Sets the source_cdn_authentication_key of this StartTaskReq.
|
266
|
+
|
267
|
+
CDN鉴权秘钥。
|
268
|
+
|
269
|
+
:param source_cdn_authentication_key: The source_cdn_authentication_key of this StartTaskReq.
|
270
|
+
:type source_cdn_authentication_key: str
|
271
|
+
"""
|
272
|
+
self._source_cdn_authentication_key = source_cdn_authentication_key
|
273
|
+
|
274
|
+
@property
|
275
|
+
def migrate_failed_object(self):
|
276
|
+
r"""Gets the migrate_failed_object of this StartTaskReq.
|
277
|
+
|
278
|
+
迁移类型,标识是否为全量迁移,默认false(全量迁移)。 值为true时表示只重传失败对象。 值为空或者为false时表示全量迁移。
|
279
|
+
|
280
|
+
:return: The migrate_failed_object of this StartTaskReq.
|
281
|
+
:rtype: bool
|
282
|
+
"""
|
283
|
+
return self._migrate_failed_object
|
284
|
+
|
285
|
+
@migrate_failed_object.setter
|
286
|
+
def migrate_failed_object(self, migrate_failed_object):
|
287
|
+
r"""Sets the migrate_failed_object of this StartTaskReq.
|
288
|
+
|
289
|
+
迁移类型,标识是否为全量迁移,默认false(全量迁移)。 值为true时表示只重传失败对象。 值为空或者为false时表示全量迁移。
|
290
|
+
|
291
|
+
:param migrate_failed_object: The migrate_failed_object of this StartTaskReq.
|
292
|
+
:type migrate_failed_object: bool
|
293
|
+
"""
|
294
|
+
self._migrate_failed_object = migrate_failed_object
|
295
|
+
|
296
|
+
def to_dict(self):
|
297
|
+
"""Returns the model properties as a dict"""
|
298
|
+
result = {}
|
299
|
+
|
300
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
301
|
+
value = getattr(self, attr)
|
302
|
+
if isinstance(value, list):
|
303
|
+
result[attr] = list(map(
|
304
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
305
|
+
value
|
306
|
+
))
|
307
|
+
elif hasattr(value, "to_dict"):
|
308
|
+
result[attr] = value.to_dict()
|
309
|
+
elif isinstance(value, dict):
|
310
|
+
result[attr] = dict(map(
|
311
|
+
lambda item: (item[0], item[1].to_dict())
|
312
|
+
if hasattr(item[1], "to_dict") else item,
|
313
|
+
value.items()
|
314
|
+
))
|
315
|
+
else:
|
316
|
+
if attr in self.sensitive_list:
|
317
|
+
result[attr] = "****"
|
318
|
+
else:
|
319
|
+
result[attr] = value
|
320
|
+
|
321
|
+
return result
|
322
|
+
|
323
|
+
def to_str(self):
|
324
|
+
"""Returns the string representation of the model"""
|
325
|
+
import simplejson as json
|
326
|
+
if six.PY2:
|
327
|
+
import sys
|
328
|
+
reload(sys)
|
329
|
+
sys.setdefaultencoding("utf-8")
|
330
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
331
|
+
|
332
|
+
def __repr__(self):
|
333
|
+
"""For `print`"""
|
334
|
+
return self.to_str()
|
335
|
+
|
336
|
+
def __eq__(self, other):
|
337
|
+
"""Returns true if both objects are equal"""
|
338
|
+
if not isinstance(other, StartTaskReq):
|
339
|
+
return False
|
340
|
+
|
341
|
+
return self.__dict__ == other.__dict__
|
342
|
+
|
343
|
+
def __ne__(self, other):
|
344
|
+
"""Returns true if both objects are not equal"""
|
345
|
+
return not self == other
|
@@ -0,0 +1,139 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class StartTaskRequest:
|
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
|
+
'task_id': 'str',
|
21
|
+
'body': 'StartTaskReq'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'task_id': 'task_id',
|
26
|
+
'body': 'body'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, task_id=None, body=None):
|
30
|
+
r"""StartTaskRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param task_id: 迁移任务ID。
|
35
|
+
:type task_id: str
|
36
|
+
:param body: Body of the StartTaskRequest
|
37
|
+
:type body: :class:`huaweicloudsdkoms.v2.StartTaskReq`
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._task_id = None
|
43
|
+
self._body = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.task_id = task_id
|
47
|
+
if body is not None:
|
48
|
+
self.body = body
|
49
|
+
|
50
|
+
@property
|
51
|
+
def task_id(self):
|
52
|
+
r"""Gets the task_id of this StartTaskRequest.
|
53
|
+
|
54
|
+
迁移任务ID。
|
55
|
+
|
56
|
+
:return: The task_id of this StartTaskRequest.
|
57
|
+
:rtype: str
|
58
|
+
"""
|
59
|
+
return self._task_id
|
60
|
+
|
61
|
+
@task_id.setter
|
62
|
+
def task_id(self, task_id):
|
63
|
+
r"""Sets the task_id of this StartTaskRequest.
|
64
|
+
|
65
|
+
迁移任务ID。
|
66
|
+
|
67
|
+
:param task_id: The task_id of this StartTaskRequest.
|
68
|
+
:type task_id: str
|
69
|
+
"""
|
70
|
+
self._task_id = task_id
|
71
|
+
|
72
|
+
@property
|
73
|
+
def body(self):
|
74
|
+
r"""Gets the body of this StartTaskRequest.
|
75
|
+
|
76
|
+
:return: The body of this StartTaskRequest.
|
77
|
+
:rtype: :class:`huaweicloudsdkoms.v2.StartTaskReq`
|
78
|
+
"""
|
79
|
+
return self._body
|
80
|
+
|
81
|
+
@body.setter
|
82
|
+
def body(self, body):
|
83
|
+
r"""Sets the body of this StartTaskRequest.
|
84
|
+
|
85
|
+
:param body: The body of this StartTaskRequest.
|
86
|
+
:type body: :class:`huaweicloudsdkoms.v2.StartTaskReq`
|
87
|
+
"""
|
88
|
+
self._body = body
|
89
|
+
|
90
|
+
def to_dict(self):
|
91
|
+
"""Returns the model properties as a dict"""
|
92
|
+
result = {}
|
93
|
+
|
94
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
95
|
+
value = getattr(self, attr)
|
96
|
+
if isinstance(value, list):
|
97
|
+
result[attr] = list(map(
|
98
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
99
|
+
value
|
100
|
+
))
|
101
|
+
elif hasattr(value, "to_dict"):
|
102
|
+
result[attr] = value.to_dict()
|
103
|
+
elif isinstance(value, dict):
|
104
|
+
result[attr] = dict(map(
|
105
|
+
lambda item: (item[0], item[1].to_dict())
|
106
|
+
if hasattr(item[1], "to_dict") else item,
|
107
|
+
value.items()
|
108
|
+
))
|
109
|
+
else:
|
110
|
+
if attr in self.sensitive_list:
|
111
|
+
result[attr] = "****"
|
112
|
+
else:
|
113
|
+
result[attr] = value
|
114
|
+
|
115
|
+
return result
|
116
|
+
|
117
|
+
def to_str(self):
|
118
|
+
"""Returns the string representation of the model"""
|
119
|
+
import simplejson as json
|
120
|
+
if six.PY2:
|
121
|
+
import sys
|
122
|
+
reload(sys)
|
123
|
+
sys.setdefaultencoding("utf-8")
|
124
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
125
|
+
|
126
|
+
def __repr__(self):
|
127
|
+
"""For `print`"""
|
128
|
+
return self.to_str()
|
129
|
+
|
130
|
+
def __eq__(self, other):
|
131
|
+
"""Returns true if both objects are equal"""
|
132
|
+
if not isinstance(other, StartTaskRequest):
|
133
|
+
return False
|
134
|
+
|
135
|
+
return self.__dict__ == other.__dict__
|
136
|
+
|
137
|
+
def __ne__(self, other):
|
138
|
+
"""Returns true if both objects are not equal"""
|
139
|
+
return not self == other
|
@@ -0,0 +1,85 @@
|
|
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 StartTaskResponse(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
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
}
|
25
|
+
|
26
|
+
def __init__(self):
|
27
|
+
r"""StartTaskResponse
|
28
|
+
|
29
|
+
The model defined in huaweicloud sdk
|
30
|
+
|
31
|
+
"""
|
32
|
+
|
33
|
+
super(StartTaskResponse, self).__init__()
|
34
|
+
self.discriminator = None
|
35
|
+
|
36
|
+
def to_dict(self):
|
37
|
+
"""Returns the model properties as a dict"""
|
38
|
+
result = {}
|
39
|
+
|
40
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
41
|
+
value = getattr(self, attr)
|
42
|
+
if isinstance(value, list):
|
43
|
+
result[attr] = list(map(
|
44
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
45
|
+
value
|
46
|
+
))
|
47
|
+
elif hasattr(value, "to_dict"):
|
48
|
+
result[attr] = value.to_dict()
|
49
|
+
elif isinstance(value, dict):
|
50
|
+
result[attr] = dict(map(
|
51
|
+
lambda item: (item[0], item[1].to_dict())
|
52
|
+
if hasattr(item[1], "to_dict") else item,
|
53
|
+
value.items()
|
54
|
+
))
|
55
|
+
else:
|
56
|
+
if attr in self.sensitive_list:
|
57
|
+
result[attr] = "****"
|
58
|
+
else:
|
59
|
+
result[attr] = value
|
60
|
+
|
61
|
+
return result
|
62
|
+
|
63
|
+
def to_str(self):
|
64
|
+
"""Returns the string representation of the model"""
|
65
|
+
import simplejson as json
|
66
|
+
if six.PY2:
|
67
|
+
import sys
|
68
|
+
reload(sys)
|
69
|
+
sys.setdefaultencoding("utf-8")
|
70
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
71
|
+
|
72
|
+
def __repr__(self):
|
73
|
+
"""For `print`"""
|
74
|
+
return self.to_str()
|
75
|
+
|
76
|
+
def __eq__(self, other):
|
77
|
+
"""Returns true if both objects are equal"""
|
78
|
+
if not isinstance(other, StartTaskResponse):
|
79
|
+
return False
|
80
|
+
|
81
|
+
return self.__dict__ == other.__dict__
|
82
|
+
|
83
|
+
def __ne__(self, other):
|
84
|
+
"""Returns true if both objects are not equal"""
|
85
|
+
return not self == other
|
@@ -0,0 +1,144 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class StatisticData:
|
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
|
+
'time_stamp': 'int',
|
21
|
+
'statistic_num': 'int'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'time_stamp': 'time_stamp',
|
26
|
+
'statistic_num': 'statistic_num'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, time_stamp=None, statistic_num=None):
|
30
|
+
r"""StatisticData
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param time_stamp: 统计时间戳
|
35
|
+
:type time_stamp: int
|
36
|
+
:param statistic_num: 统计数量
|
37
|
+
:type statistic_num: int
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._time_stamp = None
|
43
|
+
self._statistic_num = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if time_stamp is not None:
|
47
|
+
self.time_stamp = time_stamp
|
48
|
+
if statistic_num is not None:
|
49
|
+
self.statistic_num = statistic_num
|
50
|
+
|
51
|
+
@property
|
52
|
+
def time_stamp(self):
|
53
|
+
r"""Gets the time_stamp of this StatisticData.
|
54
|
+
|
55
|
+
统计时间戳
|
56
|
+
|
57
|
+
:return: The time_stamp of this StatisticData.
|
58
|
+
:rtype: int
|
59
|
+
"""
|
60
|
+
return self._time_stamp
|
61
|
+
|
62
|
+
@time_stamp.setter
|
63
|
+
def time_stamp(self, time_stamp):
|
64
|
+
r"""Sets the time_stamp of this StatisticData.
|
65
|
+
|
66
|
+
统计时间戳
|
67
|
+
|
68
|
+
:param time_stamp: The time_stamp of this StatisticData.
|
69
|
+
:type time_stamp: int
|
70
|
+
"""
|
71
|
+
self._time_stamp = time_stamp
|
72
|
+
|
73
|
+
@property
|
74
|
+
def statistic_num(self):
|
75
|
+
r"""Gets the statistic_num of this StatisticData.
|
76
|
+
|
77
|
+
统计数量
|
78
|
+
|
79
|
+
:return: The statistic_num of this StatisticData.
|
80
|
+
:rtype: int
|
81
|
+
"""
|
82
|
+
return self._statistic_num
|
83
|
+
|
84
|
+
@statistic_num.setter
|
85
|
+
def statistic_num(self, statistic_num):
|
86
|
+
r"""Sets the statistic_num of this StatisticData.
|
87
|
+
|
88
|
+
统计数量
|
89
|
+
|
90
|
+
:param statistic_num: The statistic_num of this StatisticData.
|
91
|
+
:type statistic_num: int
|
92
|
+
"""
|
93
|
+
self._statistic_num = statistic_num
|
94
|
+
|
95
|
+
def to_dict(self):
|
96
|
+
"""Returns the model properties as a dict"""
|
97
|
+
result = {}
|
98
|
+
|
99
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
100
|
+
value = getattr(self, attr)
|
101
|
+
if isinstance(value, list):
|
102
|
+
result[attr] = list(map(
|
103
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
104
|
+
value
|
105
|
+
))
|
106
|
+
elif hasattr(value, "to_dict"):
|
107
|
+
result[attr] = value.to_dict()
|
108
|
+
elif isinstance(value, dict):
|
109
|
+
result[attr] = dict(map(
|
110
|
+
lambda item: (item[0], item[1].to_dict())
|
111
|
+
if hasattr(item[1], "to_dict") else item,
|
112
|
+
value.items()
|
113
|
+
))
|
114
|
+
else:
|
115
|
+
if attr in self.sensitive_list:
|
116
|
+
result[attr] = "****"
|
117
|
+
else:
|
118
|
+
result[attr] = value
|
119
|
+
|
120
|
+
return result
|
121
|
+
|
122
|
+
def to_str(self):
|
123
|
+
"""Returns the string representation of the model"""
|
124
|
+
import simplejson as json
|
125
|
+
if six.PY2:
|
126
|
+
import sys
|
127
|
+
reload(sys)
|
128
|
+
sys.setdefaultencoding("utf-8")
|
129
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
130
|
+
|
131
|
+
def __repr__(self):
|
132
|
+
"""For `print`"""
|
133
|
+
return self.to_str()
|
134
|
+
|
135
|
+
def __eq__(self, other):
|
136
|
+
"""Returns true if both objects are equal"""
|
137
|
+
if not isinstance(other, StatisticData):
|
138
|
+
return False
|
139
|
+
|
140
|
+
return self.__dict__ == other.__dict__
|
141
|
+
|
142
|
+
def __ne__(self, other):
|
143
|
+
"""Returns true if both objects are not equal"""
|
144
|
+
return not self == other
|