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,567 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateSyncTaskReq:
|
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_cloud_type': 'str',
|
21
|
+
'src_region': 'str',
|
22
|
+
'src_bucket': 'str',
|
23
|
+
'src_ak': 'str',
|
24
|
+
'src_sk': 'str',
|
25
|
+
'dst_ak': 'str',
|
26
|
+
'dst_sk': 'str',
|
27
|
+
'dst_region': 'str',
|
28
|
+
'dst_bucket': 'str',
|
29
|
+
'description': 'str',
|
30
|
+
'enable_metadata_migration': 'bool',
|
31
|
+
'enable_kms': 'bool',
|
32
|
+
'enable_restore': 'bool',
|
33
|
+
'dst_storage_policy': 'str',
|
34
|
+
'app_id': 'str',
|
35
|
+
'source_cdn': 'SourceCdnReq',
|
36
|
+
'consistency_check': 'str'
|
37
|
+
}
|
38
|
+
|
39
|
+
attribute_map = {
|
40
|
+
'src_cloud_type': 'src_cloud_type',
|
41
|
+
'src_region': 'src_region',
|
42
|
+
'src_bucket': 'src_bucket',
|
43
|
+
'src_ak': 'src_ak',
|
44
|
+
'src_sk': 'src_sk',
|
45
|
+
'dst_ak': 'dst_ak',
|
46
|
+
'dst_sk': 'dst_sk',
|
47
|
+
'dst_region': 'dst_region',
|
48
|
+
'dst_bucket': 'dst_bucket',
|
49
|
+
'description': 'description',
|
50
|
+
'enable_metadata_migration': 'enable_metadata_migration',
|
51
|
+
'enable_kms': 'enable_kms',
|
52
|
+
'enable_restore': 'enable_restore',
|
53
|
+
'dst_storage_policy': 'dst_storage_policy',
|
54
|
+
'app_id': 'app_id',
|
55
|
+
'source_cdn': 'source_cdn',
|
56
|
+
'consistency_check': 'consistency_check'
|
57
|
+
}
|
58
|
+
|
59
|
+
def __init__(self, src_cloud_type=None, src_region=None, src_bucket=None, src_ak=None, src_sk=None, dst_ak=None, dst_sk=None, dst_region=None, dst_bucket=None, description=None, enable_metadata_migration=None, enable_kms=None, enable_restore=None, dst_storage_policy=None, app_id=None, source_cdn=None, consistency_check=None):
|
60
|
+
r"""CreateSyncTaskReq
|
61
|
+
|
62
|
+
The model defined in huaweicloud sdk
|
63
|
+
|
64
|
+
:param src_cloud_type: 源端云服务提供商。 可选值有AWS、Azure、Aliyun、Tencent、HuaweiCloud、QingCloud、KingsoftCloud、Baidu、Qiniu、Cloud。默认值为Aliyun。
|
65
|
+
:type src_cloud_type: str
|
66
|
+
:param src_region: 源端桶所处的区域
|
67
|
+
:type src_region: str
|
68
|
+
:param src_bucket: 源端桶名
|
69
|
+
:type src_bucket: str
|
70
|
+
:param src_ak: 源端桶的AK(最大长度100个字符)。
|
71
|
+
:type src_ak: str
|
72
|
+
:param src_sk: 源端桶的SK(最大长度100个字符)。
|
73
|
+
:type src_sk: str
|
74
|
+
:param dst_ak: 目的端桶的AK(最大长度100个字符)。
|
75
|
+
:type dst_ak: str
|
76
|
+
:param dst_sk: 目的端桶的SK(最大长度100个字符)。
|
77
|
+
:type dst_sk: str
|
78
|
+
:param dst_region: 目的端region
|
79
|
+
:type dst_region: str
|
80
|
+
:param dst_bucket: 目的端桶名
|
81
|
+
:type dst_bucket: str
|
82
|
+
:param description: 任务描述,不能超过255个字符,且不能包含<>()\"'&等特殊字符。
|
83
|
+
:type description: str
|
84
|
+
:param enable_metadata_migration: 是否启用元数据迁移,默认否。不启用时,为保证迁移任务正常运行,仍将为您迁移ContentType元数据。
|
85
|
+
:type enable_metadata_migration: bool
|
86
|
+
:param enable_kms: 是否开启KMS加密,默认不开启。
|
87
|
+
:type enable_kms: bool
|
88
|
+
:param enable_restore: 是否自动解冻归档数据,默认否。 开启后,如果遇到归档类型数据,会自动解冻再进行迁移。
|
89
|
+
:type enable_restore: bool
|
90
|
+
:param dst_storage_policy: 目的端存储类型设置,当且仅当目的端为华为云OBS时需要,默认为标准存储 STANDARD:华为云OBS标准存储 IA:华为云OBS低频存储 ARCHIVE:华为云OBS归档存储 DEEP_ARCHIVE:华为云OBS深度归档存储 SRC_STORAGE_MAPPING:保留源端存储类型,将源端存储类型映射为华为云OBS存储类型
|
91
|
+
:type dst_storage_policy: str
|
92
|
+
:param app_id: 当源端为腾讯云时,需要填写此参数。
|
93
|
+
:type app_id: str
|
94
|
+
:param source_cdn:
|
95
|
+
:type source_cdn: :class:`huaweicloudsdkoms.v2.SourceCdnReq`
|
96
|
+
:param consistency_check: 一致性校验方式,用于迁移前/后校验对象是否一致,所有校验方式需满足源端/目的端对象的加密状态一致,具体校验方式和校验结果可通过对象列表查看。默认size_last_modified。 size_last_modified:默认配置。迁移前后,通过对比源端和目的端对象大小+最后修改时间,判断对象是否已存在或迁移后数据是否完整。源端与目的端同名对象大小相同,且目的端对象最后修改时间晚于源端对象最后修改时间,则代表该对象已存在/迁移成功。 crc64:目前仅支持华为/阿里/腾讯。迁移前后,通过对比源端和目的端对象元数据中CRC64值是否相同,判断对象是否已存在/迁移完成。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用大小/最后修改时间校验方式来校验。 transmission:目前仅支持HTTP/HTTPS数据源。当源端对象无法通过标准http协议中content-length字段获取数据大小时,默认数据下载成功即迁移成功,不对数据做额外校验,且迁移时源端对象默认覆盖目的端同名对象。当源端对象能正常通过标准http协议中content-length字段获取数据大小时,则采用大小/最后修改时间校验方式来校验。
|
97
|
+
:type consistency_check: str
|
98
|
+
"""
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
self._src_cloud_type = None
|
103
|
+
self._src_region = None
|
104
|
+
self._src_bucket = None
|
105
|
+
self._src_ak = None
|
106
|
+
self._src_sk = None
|
107
|
+
self._dst_ak = None
|
108
|
+
self._dst_sk = None
|
109
|
+
self._dst_region = None
|
110
|
+
self._dst_bucket = None
|
111
|
+
self._description = None
|
112
|
+
self._enable_metadata_migration = None
|
113
|
+
self._enable_kms = None
|
114
|
+
self._enable_restore = None
|
115
|
+
self._dst_storage_policy = None
|
116
|
+
self._app_id = None
|
117
|
+
self._source_cdn = None
|
118
|
+
self._consistency_check = None
|
119
|
+
self.discriminator = None
|
120
|
+
|
121
|
+
if src_cloud_type is not None:
|
122
|
+
self.src_cloud_type = src_cloud_type
|
123
|
+
self.src_region = src_region
|
124
|
+
self.src_bucket = src_bucket
|
125
|
+
self.src_ak = src_ak
|
126
|
+
self.src_sk = src_sk
|
127
|
+
self.dst_ak = dst_ak
|
128
|
+
self.dst_sk = dst_sk
|
129
|
+
self.dst_region = dst_region
|
130
|
+
self.dst_bucket = dst_bucket
|
131
|
+
if description is not None:
|
132
|
+
self.description = description
|
133
|
+
if enable_metadata_migration is not None:
|
134
|
+
self.enable_metadata_migration = enable_metadata_migration
|
135
|
+
if enable_kms is not None:
|
136
|
+
self.enable_kms = enable_kms
|
137
|
+
if enable_restore is not None:
|
138
|
+
self.enable_restore = enable_restore
|
139
|
+
if dst_storage_policy is not None:
|
140
|
+
self.dst_storage_policy = dst_storage_policy
|
141
|
+
if app_id is not None:
|
142
|
+
self.app_id = app_id
|
143
|
+
if source_cdn is not None:
|
144
|
+
self.source_cdn = source_cdn
|
145
|
+
if consistency_check is not None:
|
146
|
+
self.consistency_check = consistency_check
|
147
|
+
|
148
|
+
@property
|
149
|
+
def src_cloud_type(self):
|
150
|
+
r"""Gets the src_cloud_type of this CreateSyncTaskReq.
|
151
|
+
|
152
|
+
源端云服务提供商。 可选值有AWS、Azure、Aliyun、Tencent、HuaweiCloud、QingCloud、KingsoftCloud、Baidu、Qiniu、Cloud。默认值为Aliyun。
|
153
|
+
|
154
|
+
:return: The src_cloud_type of this CreateSyncTaskReq.
|
155
|
+
:rtype: str
|
156
|
+
"""
|
157
|
+
return self._src_cloud_type
|
158
|
+
|
159
|
+
@src_cloud_type.setter
|
160
|
+
def src_cloud_type(self, src_cloud_type):
|
161
|
+
r"""Sets the src_cloud_type of this CreateSyncTaskReq.
|
162
|
+
|
163
|
+
源端云服务提供商。 可选值有AWS、Azure、Aliyun、Tencent、HuaweiCloud、QingCloud、KingsoftCloud、Baidu、Qiniu、Cloud。默认值为Aliyun。
|
164
|
+
|
165
|
+
:param src_cloud_type: The src_cloud_type of this CreateSyncTaskReq.
|
166
|
+
:type src_cloud_type: str
|
167
|
+
"""
|
168
|
+
self._src_cloud_type = src_cloud_type
|
169
|
+
|
170
|
+
@property
|
171
|
+
def src_region(self):
|
172
|
+
r"""Gets the src_region of this CreateSyncTaskReq.
|
173
|
+
|
174
|
+
源端桶所处的区域
|
175
|
+
|
176
|
+
:return: The src_region of this CreateSyncTaskReq.
|
177
|
+
:rtype: str
|
178
|
+
"""
|
179
|
+
return self._src_region
|
180
|
+
|
181
|
+
@src_region.setter
|
182
|
+
def src_region(self, src_region):
|
183
|
+
r"""Sets the src_region of this CreateSyncTaskReq.
|
184
|
+
|
185
|
+
源端桶所处的区域
|
186
|
+
|
187
|
+
:param src_region: The src_region of this CreateSyncTaskReq.
|
188
|
+
:type src_region: str
|
189
|
+
"""
|
190
|
+
self._src_region = src_region
|
191
|
+
|
192
|
+
@property
|
193
|
+
def src_bucket(self):
|
194
|
+
r"""Gets the src_bucket of this CreateSyncTaskReq.
|
195
|
+
|
196
|
+
源端桶名
|
197
|
+
|
198
|
+
:return: The src_bucket of this CreateSyncTaskReq.
|
199
|
+
:rtype: str
|
200
|
+
"""
|
201
|
+
return self._src_bucket
|
202
|
+
|
203
|
+
@src_bucket.setter
|
204
|
+
def src_bucket(self, src_bucket):
|
205
|
+
r"""Sets the src_bucket of this CreateSyncTaskReq.
|
206
|
+
|
207
|
+
源端桶名
|
208
|
+
|
209
|
+
:param src_bucket: The src_bucket of this CreateSyncTaskReq.
|
210
|
+
:type src_bucket: str
|
211
|
+
"""
|
212
|
+
self._src_bucket = src_bucket
|
213
|
+
|
214
|
+
@property
|
215
|
+
def src_ak(self):
|
216
|
+
r"""Gets the src_ak of this CreateSyncTaskReq.
|
217
|
+
|
218
|
+
源端桶的AK(最大长度100个字符)。
|
219
|
+
|
220
|
+
:return: The src_ak of this CreateSyncTaskReq.
|
221
|
+
:rtype: str
|
222
|
+
"""
|
223
|
+
return self._src_ak
|
224
|
+
|
225
|
+
@src_ak.setter
|
226
|
+
def src_ak(self, src_ak):
|
227
|
+
r"""Sets the src_ak of this CreateSyncTaskReq.
|
228
|
+
|
229
|
+
源端桶的AK(最大长度100个字符)。
|
230
|
+
|
231
|
+
:param src_ak: The src_ak of this CreateSyncTaskReq.
|
232
|
+
:type src_ak: str
|
233
|
+
"""
|
234
|
+
self._src_ak = src_ak
|
235
|
+
|
236
|
+
@property
|
237
|
+
def src_sk(self):
|
238
|
+
r"""Gets the src_sk of this CreateSyncTaskReq.
|
239
|
+
|
240
|
+
源端桶的SK(最大长度100个字符)。
|
241
|
+
|
242
|
+
:return: The src_sk of this CreateSyncTaskReq.
|
243
|
+
:rtype: str
|
244
|
+
"""
|
245
|
+
return self._src_sk
|
246
|
+
|
247
|
+
@src_sk.setter
|
248
|
+
def src_sk(self, src_sk):
|
249
|
+
r"""Sets the src_sk of this CreateSyncTaskReq.
|
250
|
+
|
251
|
+
源端桶的SK(最大长度100个字符)。
|
252
|
+
|
253
|
+
:param src_sk: The src_sk of this CreateSyncTaskReq.
|
254
|
+
:type src_sk: str
|
255
|
+
"""
|
256
|
+
self._src_sk = src_sk
|
257
|
+
|
258
|
+
@property
|
259
|
+
def dst_ak(self):
|
260
|
+
r"""Gets the dst_ak of this CreateSyncTaskReq.
|
261
|
+
|
262
|
+
目的端桶的AK(最大长度100个字符)。
|
263
|
+
|
264
|
+
:return: The dst_ak of this CreateSyncTaskReq.
|
265
|
+
:rtype: str
|
266
|
+
"""
|
267
|
+
return self._dst_ak
|
268
|
+
|
269
|
+
@dst_ak.setter
|
270
|
+
def dst_ak(self, dst_ak):
|
271
|
+
r"""Sets the dst_ak of this CreateSyncTaskReq.
|
272
|
+
|
273
|
+
目的端桶的AK(最大长度100个字符)。
|
274
|
+
|
275
|
+
:param dst_ak: The dst_ak of this CreateSyncTaskReq.
|
276
|
+
:type dst_ak: str
|
277
|
+
"""
|
278
|
+
self._dst_ak = dst_ak
|
279
|
+
|
280
|
+
@property
|
281
|
+
def dst_sk(self):
|
282
|
+
r"""Gets the dst_sk of this CreateSyncTaskReq.
|
283
|
+
|
284
|
+
目的端桶的SK(最大长度100个字符)。
|
285
|
+
|
286
|
+
:return: The dst_sk of this CreateSyncTaskReq.
|
287
|
+
:rtype: str
|
288
|
+
"""
|
289
|
+
return self._dst_sk
|
290
|
+
|
291
|
+
@dst_sk.setter
|
292
|
+
def dst_sk(self, dst_sk):
|
293
|
+
r"""Sets the dst_sk of this CreateSyncTaskReq.
|
294
|
+
|
295
|
+
目的端桶的SK(最大长度100个字符)。
|
296
|
+
|
297
|
+
:param dst_sk: The dst_sk of this CreateSyncTaskReq.
|
298
|
+
:type dst_sk: str
|
299
|
+
"""
|
300
|
+
self._dst_sk = dst_sk
|
301
|
+
|
302
|
+
@property
|
303
|
+
def dst_region(self):
|
304
|
+
r"""Gets the dst_region of this CreateSyncTaskReq.
|
305
|
+
|
306
|
+
目的端region
|
307
|
+
|
308
|
+
:return: The dst_region of this CreateSyncTaskReq.
|
309
|
+
:rtype: str
|
310
|
+
"""
|
311
|
+
return self._dst_region
|
312
|
+
|
313
|
+
@dst_region.setter
|
314
|
+
def dst_region(self, dst_region):
|
315
|
+
r"""Sets the dst_region of this CreateSyncTaskReq.
|
316
|
+
|
317
|
+
目的端region
|
318
|
+
|
319
|
+
:param dst_region: The dst_region of this CreateSyncTaskReq.
|
320
|
+
:type dst_region: str
|
321
|
+
"""
|
322
|
+
self._dst_region = dst_region
|
323
|
+
|
324
|
+
@property
|
325
|
+
def dst_bucket(self):
|
326
|
+
r"""Gets the dst_bucket of this CreateSyncTaskReq.
|
327
|
+
|
328
|
+
目的端桶名
|
329
|
+
|
330
|
+
:return: The dst_bucket of this CreateSyncTaskReq.
|
331
|
+
:rtype: str
|
332
|
+
"""
|
333
|
+
return self._dst_bucket
|
334
|
+
|
335
|
+
@dst_bucket.setter
|
336
|
+
def dst_bucket(self, dst_bucket):
|
337
|
+
r"""Sets the dst_bucket of this CreateSyncTaskReq.
|
338
|
+
|
339
|
+
目的端桶名
|
340
|
+
|
341
|
+
:param dst_bucket: The dst_bucket of this CreateSyncTaskReq.
|
342
|
+
:type dst_bucket: str
|
343
|
+
"""
|
344
|
+
self._dst_bucket = dst_bucket
|
345
|
+
|
346
|
+
@property
|
347
|
+
def description(self):
|
348
|
+
r"""Gets the description of this CreateSyncTaskReq.
|
349
|
+
|
350
|
+
任务描述,不能超过255个字符,且不能包含<>()\"'&等特殊字符。
|
351
|
+
|
352
|
+
:return: The description of this CreateSyncTaskReq.
|
353
|
+
:rtype: str
|
354
|
+
"""
|
355
|
+
return self._description
|
356
|
+
|
357
|
+
@description.setter
|
358
|
+
def description(self, description):
|
359
|
+
r"""Sets the description of this CreateSyncTaskReq.
|
360
|
+
|
361
|
+
任务描述,不能超过255个字符,且不能包含<>()\"'&等特殊字符。
|
362
|
+
|
363
|
+
:param description: The description of this CreateSyncTaskReq.
|
364
|
+
:type description: str
|
365
|
+
"""
|
366
|
+
self._description = description
|
367
|
+
|
368
|
+
@property
|
369
|
+
def enable_metadata_migration(self):
|
370
|
+
r"""Gets the enable_metadata_migration of this CreateSyncTaskReq.
|
371
|
+
|
372
|
+
是否启用元数据迁移,默认否。不启用时,为保证迁移任务正常运行,仍将为您迁移ContentType元数据。
|
373
|
+
|
374
|
+
:return: The enable_metadata_migration of this CreateSyncTaskReq.
|
375
|
+
:rtype: bool
|
376
|
+
"""
|
377
|
+
return self._enable_metadata_migration
|
378
|
+
|
379
|
+
@enable_metadata_migration.setter
|
380
|
+
def enable_metadata_migration(self, enable_metadata_migration):
|
381
|
+
r"""Sets the enable_metadata_migration of this CreateSyncTaskReq.
|
382
|
+
|
383
|
+
是否启用元数据迁移,默认否。不启用时,为保证迁移任务正常运行,仍将为您迁移ContentType元数据。
|
384
|
+
|
385
|
+
:param enable_metadata_migration: The enable_metadata_migration of this CreateSyncTaskReq.
|
386
|
+
:type enable_metadata_migration: bool
|
387
|
+
"""
|
388
|
+
self._enable_metadata_migration = enable_metadata_migration
|
389
|
+
|
390
|
+
@property
|
391
|
+
def enable_kms(self):
|
392
|
+
r"""Gets the enable_kms of this CreateSyncTaskReq.
|
393
|
+
|
394
|
+
是否开启KMS加密,默认不开启。
|
395
|
+
|
396
|
+
:return: The enable_kms of this CreateSyncTaskReq.
|
397
|
+
:rtype: bool
|
398
|
+
"""
|
399
|
+
return self._enable_kms
|
400
|
+
|
401
|
+
@enable_kms.setter
|
402
|
+
def enable_kms(self, enable_kms):
|
403
|
+
r"""Sets the enable_kms of this CreateSyncTaskReq.
|
404
|
+
|
405
|
+
是否开启KMS加密,默认不开启。
|
406
|
+
|
407
|
+
:param enable_kms: The enable_kms of this CreateSyncTaskReq.
|
408
|
+
:type enable_kms: bool
|
409
|
+
"""
|
410
|
+
self._enable_kms = enable_kms
|
411
|
+
|
412
|
+
@property
|
413
|
+
def enable_restore(self):
|
414
|
+
r"""Gets the enable_restore of this CreateSyncTaskReq.
|
415
|
+
|
416
|
+
是否自动解冻归档数据,默认否。 开启后,如果遇到归档类型数据,会自动解冻再进行迁移。
|
417
|
+
|
418
|
+
:return: The enable_restore of this CreateSyncTaskReq.
|
419
|
+
:rtype: bool
|
420
|
+
"""
|
421
|
+
return self._enable_restore
|
422
|
+
|
423
|
+
@enable_restore.setter
|
424
|
+
def enable_restore(self, enable_restore):
|
425
|
+
r"""Sets the enable_restore of this CreateSyncTaskReq.
|
426
|
+
|
427
|
+
是否自动解冻归档数据,默认否。 开启后,如果遇到归档类型数据,会自动解冻再进行迁移。
|
428
|
+
|
429
|
+
:param enable_restore: The enable_restore of this CreateSyncTaskReq.
|
430
|
+
:type enable_restore: bool
|
431
|
+
"""
|
432
|
+
self._enable_restore = enable_restore
|
433
|
+
|
434
|
+
@property
|
435
|
+
def dst_storage_policy(self):
|
436
|
+
r"""Gets the dst_storage_policy of this CreateSyncTaskReq.
|
437
|
+
|
438
|
+
目的端存储类型设置,当且仅当目的端为华为云OBS时需要,默认为标准存储 STANDARD:华为云OBS标准存储 IA:华为云OBS低频存储 ARCHIVE:华为云OBS归档存储 DEEP_ARCHIVE:华为云OBS深度归档存储 SRC_STORAGE_MAPPING:保留源端存储类型,将源端存储类型映射为华为云OBS存储类型
|
439
|
+
|
440
|
+
:return: The dst_storage_policy of this CreateSyncTaskReq.
|
441
|
+
:rtype: str
|
442
|
+
"""
|
443
|
+
return self._dst_storage_policy
|
444
|
+
|
445
|
+
@dst_storage_policy.setter
|
446
|
+
def dst_storage_policy(self, dst_storage_policy):
|
447
|
+
r"""Sets the dst_storage_policy of this CreateSyncTaskReq.
|
448
|
+
|
449
|
+
目的端存储类型设置,当且仅当目的端为华为云OBS时需要,默认为标准存储 STANDARD:华为云OBS标准存储 IA:华为云OBS低频存储 ARCHIVE:华为云OBS归档存储 DEEP_ARCHIVE:华为云OBS深度归档存储 SRC_STORAGE_MAPPING:保留源端存储类型,将源端存储类型映射为华为云OBS存储类型
|
450
|
+
|
451
|
+
:param dst_storage_policy: The dst_storage_policy of this CreateSyncTaskReq.
|
452
|
+
:type dst_storage_policy: str
|
453
|
+
"""
|
454
|
+
self._dst_storage_policy = dst_storage_policy
|
455
|
+
|
456
|
+
@property
|
457
|
+
def app_id(self):
|
458
|
+
r"""Gets the app_id of this CreateSyncTaskReq.
|
459
|
+
|
460
|
+
当源端为腾讯云时,需要填写此参数。
|
461
|
+
|
462
|
+
:return: The app_id of this CreateSyncTaskReq.
|
463
|
+
:rtype: str
|
464
|
+
"""
|
465
|
+
return self._app_id
|
466
|
+
|
467
|
+
@app_id.setter
|
468
|
+
def app_id(self, app_id):
|
469
|
+
r"""Sets the app_id of this CreateSyncTaskReq.
|
470
|
+
|
471
|
+
当源端为腾讯云时,需要填写此参数。
|
472
|
+
|
473
|
+
:param app_id: The app_id of this CreateSyncTaskReq.
|
474
|
+
:type app_id: str
|
475
|
+
"""
|
476
|
+
self._app_id = app_id
|
477
|
+
|
478
|
+
@property
|
479
|
+
def source_cdn(self):
|
480
|
+
r"""Gets the source_cdn of this CreateSyncTaskReq.
|
481
|
+
|
482
|
+
:return: The source_cdn of this CreateSyncTaskReq.
|
483
|
+
:rtype: :class:`huaweicloudsdkoms.v2.SourceCdnReq`
|
484
|
+
"""
|
485
|
+
return self._source_cdn
|
486
|
+
|
487
|
+
@source_cdn.setter
|
488
|
+
def source_cdn(self, source_cdn):
|
489
|
+
r"""Sets the source_cdn of this CreateSyncTaskReq.
|
490
|
+
|
491
|
+
:param source_cdn: The source_cdn of this CreateSyncTaskReq.
|
492
|
+
:type source_cdn: :class:`huaweicloudsdkoms.v2.SourceCdnReq`
|
493
|
+
"""
|
494
|
+
self._source_cdn = source_cdn
|
495
|
+
|
496
|
+
@property
|
497
|
+
def consistency_check(self):
|
498
|
+
r"""Gets the consistency_check of this CreateSyncTaskReq.
|
499
|
+
|
500
|
+
一致性校验方式,用于迁移前/后校验对象是否一致,所有校验方式需满足源端/目的端对象的加密状态一致,具体校验方式和校验结果可通过对象列表查看。默认size_last_modified。 size_last_modified:默认配置。迁移前后,通过对比源端和目的端对象大小+最后修改时间,判断对象是否已存在或迁移后数据是否完整。源端与目的端同名对象大小相同,且目的端对象最后修改时间晚于源端对象最后修改时间,则代表该对象已存在/迁移成功。 crc64:目前仅支持华为/阿里/腾讯。迁移前后,通过对比源端和目的端对象元数据中CRC64值是否相同,判断对象是否已存在/迁移完成。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用大小/最后修改时间校验方式来校验。 transmission:目前仅支持HTTP/HTTPS数据源。当源端对象无法通过标准http协议中content-length字段获取数据大小时,默认数据下载成功即迁移成功,不对数据做额外校验,且迁移时源端对象默认覆盖目的端同名对象。当源端对象能正常通过标准http协议中content-length字段获取数据大小时,则采用大小/最后修改时间校验方式来校验。
|
501
|
+
|
502
|
+
:return: The consistency_check of this CreateSyncTaskReq.
|
503
|
+
:rtype: str
|
504
|
+
"""
|
505
|
+
return self._consistency_check
|
506
|
+
|
507
|
+
@consistency_check.setter
|
508
|
+
def consistency_check(self, consistency_check):
|
509
|
+
r"""Sets the consistency_check of this CreateSyncTaskReq.
|
510
|
+
|
511
|
+
一致性校验方式,用于迁移前/后校验对象是否一致,所有校验方式需满足源端/目的端对象的加密状态一致,具体校验方式和校验结果可通过对象列表查看。默认size_last_modified。 size_last_modified:默认配置。迁移前后,通过对比源端和目的端对象大小+最后修改时间,判断对象是否已存在或迁移后数据是否完整。源端与目的端同名对象大小相同,且目的端对象最后修改时间晚于源端对象最后修改时间,则代表该对象已存在/迁移成功。 crc64:目前仅支持华为/阿里/腾讯。迁移前后,通过对比源端和目的端对象元数据中CRC64值是否相同,判断对象是否已存在/迁移完成。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用大小/最后修改时间校验方式来校验。 transmission:目前仅支持HTTP/HTTPS数据源。当源端对象无法通过标准http协议中content-length字段获取数据大小时,默认数据下载成功即迁移成功,不对数据做额外校验,且迁移时源端对象默认覆盖目的端同名对象。当源端对象能正常通过标准http协议中content-length字段获取数据大小时,则采用大小/最后修改时间校验方式来校验。
|
512
|
+
|
513
|
+
:param consistency_check: The consistency_check of this CreateSyncTaskReq.
|
514
|
+
:type consistency_check: str
|
515
|
+
"""
|
516
|
+
self._consistency_check = consistency_check
|
517
|
+
|
518
|
+
def to_dict(self):
|
519
|
+
"""Returns the model properties as a dict"""
|
520
|
+
result = {}
|
521
|
+
|
522
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
523
|
+
value = getattr(self, attr)
|
524
|
+
if isinstance(value, list):
|
525
|
+
result[attr] = list(map(
|
526
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
527
|
+
value
|
528
|
+
))
|
529
|
+
elif hasattr(value, "to_dict"):
|
530
|
+
result[attr] = value.to_dict()
|
531
|
+
elif isinstance(value, dict):
|
532
|
+
result[attr] = dict(map(
|
533
|
+
lambda item: (item[0], item[1].to_dict())
|
534
|
+
if hasattr(item[1], "to_dict") else item,
|
535
|
+
value.items()
|
536
|
+
))
|
537
|
+
else:
|
538
|
+
if attr in self.sensitive_list:
|
539
|
+
result[attr] = "****"
|
540
|
+
else:
|
541
|
+
result[attr] = value
|
542
|
+
|
543
|
+
return result
|
544
|
+
|
545
|
+
def to_str(self):
|
546
|
+
"""Returns the string representation of the model"""
|
547
|
+
import simplejson as json
|
548
|
+
if six.PY2:
|
549
|
+
import sys
|
550
|
+
reload(sys)
|
551
|
+
sys.setdefaultencoding("utf-8")
|
552
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
553
|
+
|
554
|
+
def __repr__(self):
|
555
|
+
"""For `print`"""
|
556
|
+
return self.to_str()
|
557
|
+
|
558
|
+
def __eq__(self, other):
|
559
|
+
"""Returns true if both objects are equal"""
|
560
|
+
if not isinstance(other, CreateSyncTaskReq):
|
561
|
+
return False
|
562
|
+
|
563
|
+
return self.__dict__ == other.__dict__
|
564
|
+
|
565
|
+
def __ne__(self, other):
|
566
|
+
"""Returns true if both objects are not equal"""
|
567
|
+
return not self == other
|
@@ -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 CreateSyncTaskRequest:
|
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
|
+
'body': 'CreateSyncTaskReq'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'body': 'body'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, body=None):
|
28
|
+
r"""CreateSyncTaskRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param body: Body of the CreateSyncTaskRequest
|
33
|
+
:type body: :class:`huaweicloudsdkoms.v2.CreateSyncTaskReq`
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._body = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
if body is not None:
|
42
|
+
self.body = body
|
43
|
+
|
44
|
+
@property
|
45
|
+
def body(self):
|
46
|
+
r"""Gets the body of this CreateSyncTaskRequest.
|
47
|
+
|
48
|
+
:return: The body of this CreateSyncTaskRequest.
|
49
|
+
:rtype: :class:`huaweicloudsdkoms.v2.CreateSyncTaskReq`
|
50
|
+
"""
|
51
|
+
return self._body
|
52
|
+
|
53
|
+
@body.setter
|
54
|
+
def body(self, body):
|
55
|
+
r"""Sets the body of this CreateSyncTaskRequest.
|
56
|
+
|
57
|
+
:param body: The body of this CreateSyncTaskRequest.
|
58
|
+
:type body: :class:`huaweicloudsdkoms.v2.CreateSyncTaskReq`
|
59
|
+
"""
|
60
|
+
self._body = body
|
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, CreateSyncTaskRequest):
|
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
|