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,725 @@
|
|
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 ShowSyncTaskResponse(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
|
+
'sync_task_id': 'str',
|
22
|
+
'src_cloud_type': 'str',
|
23
|
+
'src_region': 'str',
|
24
|
+
'src_bucket': 'str',
|
25
|
+
'create_time': 'int',
|
26
|
+
'last_start_time': 'int',
|
27
|
+
'dst_bucket': 'str',
|
28
|
+
'dst_region': 'str',
|
29
|
+
'description': 'str',
|
30
|
+
'status': 'str',
|
31
|
+
'enable_kms': 'bool',
|
32
|
+
'enable_metadata_migration': 'bool',
|
33
|
+
'enable_restore': 'bool',
|
34
|
+
'dst_storage_policy': 'str',
|
35
|
+
'app_id': 'str',
|
36
|
+
'monthly_acceptance_request': 'int',
|
37
|
+
'monthly_success_object': 'int',
|
38
|
+
'monthly_failure_object': 'int',
|
39
|
+
'monthly_skip_object': 'int',
|
40
|
+
'monthly_size': 'int',
|
41
|
+
'object_overwrite_mode': 'str',
|
42
|
+
'consistency_check': 'str'
|
43
|
+
}
|
44
|
+
|
45
|
+
attribute_map = {
|
46
|
+
'sync_task_id': 'sync_task_id',
|
47
|
+
'src_cloud_type': 'src_cloud_type',
|
48
|
+
'src_region': 'src_region',
|
49
|
+
'src_bucket': 'src_bucket',
|
50
|
+
'create_time': 'create_time',
|
51
|
+
'last_start_time': 'last_start_time',
|
52
|
+
'dst_bucket': 'dst_bucket',
|
53
|
+
'dst_region': 'dst_region',
|
54
|
+
'description': 'description',
|
55
|
+
'status': 'status',
|
56
|
+
'enable_kms': 'enable_kms',
|
57
|
+
'enable_metadata_migration': 'enable_metadata_migration',
|
58
|
+
'enable_restore': 'enable_restore',
|
59
|
+
'dst_storage_policy': 'dst_storage_policy',
|
60
|
+
'app_id': 'app_id',
|
61
|
+
'monthly_acceptance_request': 'monthly_acceptance_request',
|
62
|
+
'monthly_success_object': 'monthly_success_object',
|
63
|
+
'monthly_failure_object': 'monthly_failure_object',
|
64
|
+
'monthly_skip_object': 'monthly_skip_object',
|
65
|
+
'monthly_size': 'monthly_size',
|
66
|
+
'object_overwrite_mode': 'object_overwrite_mode',
|
67
|
+
'consistency_check': 'consistency_check'
|
68
|
+
}
|
69
|
+
|
70
|
+
def __init__(self, sync_task_id=None, src_cloud_type=None, src_region=None, src_bucket=None, create_time=None, last_start_time=None, dst_bucket=None, dst_region=None, description=None, status=None, enable_kms=None, enable_metadata_migration=None, enable_restore=None, dst_storage_policy=None, app_id=None, monthly_acceptance_request=None, monthly_success_object=None, monthly_failure_object=None, monthly_skip_object=None, monthly_size=None, object_overwrite_mode=None, consistency_check=None):
|
71
|
+
r"""ShowSyncTaskResponse
|
72
|
+
|
73
|
+
The model defined in huaweicloud sdk
|
74
|
+
|
75
|
+
:param sync_task_id: 同步任务ID
|
76
|
+
:type sync_task_id: str
|
77
|
+
:param src_cloud_type: 源端云服务提供商。 可选值有AWS、Azure、Aliyun、Tencent、HuaweiCloud、QingCloud、KingsoftCloud、Baidu、Qiniu、UCloud。默认值为Aliyun。
|
78
|
+
:type src_cloud_type: str
|
79
|
+
:param src_region: 源端桶所处的区域
|
80
|
+
:type src_region: str
|
81
|
+
:param src_bucket: 源端桶
|
82
|
+
:type src_bucket: str
|
83
|
+
:param create_time: 同步任务创建时间(Unix时间戳,毫秒)
|
84
|
+
:type create_time: int
|
85
|
+
:param last_start_time: 最近启动同步任务时间(Unix时间戳,毫秒)
|
86
|
+
:type last_start_time: int
|
87
|
+
:param dst_bucket: 目的端桶。
|
88
|
+
:type dst_bucket: str
|
89
|
+
:param dst_region: 目的端region
|
90
|
+
:type dst_region: str
|
91
|
+
:param description: 任务描述,不能超过255个字符,且不能包含<>()\"'&等特殊字符。
|
92
|
+
:type description: str
|
93
|
+
:param status: 同步任务状态 SYNCHRONIZING:同步中 STOPPED:已停止
|
94
|
+
:type status: str
|
95
|
+
:param enable_kms: 是否开启KMS加密,默认不开启。
|
96
|
+
:type enable_kms: bool
|
97
|
+
:param enable_metadata_migration: 是否启用元数据迁移,默认否。不启用时,为保证迁移任务正常运行,仍将为您迁移ContentType元数据。
|
98
|
+
:type enable_metadata_migration: bool
|
99
|
+
:param enable_restore: 是否自动解冻归档数据,默认否。 开启后,如果遇到归档类型数据,会自动解冻再进行迁移。
|
100
|
+
:type enable_restore: bool
|
101
|
+
:param dst_storage_policy: 目的端存储类型设置,当且仅当目的端为华为云OBS时需要,默认为标准存储 STANDARD:华为云OBS标准存储 IA:华为云OBS低频存储 ARCHIVE:华为云OBS归档存储 DEEP_ARCHIVE:华为云OBS深度归档存储 SRC_STORAGE_MAPPING:保留源端存储类型,将源端存储类型映射为华为云OBS存储类型
|
102
|
+
:type dst_storage_policy: str
|
103
|
+
:param app_id: 当源端为腾讯云时,需要填写此参数。
|
104
|
+
:type app_id: str
|
105
|
+
:param monthly_acceptance_request: 当月接收同步请求对象数
|
106
|
+
:type monthly_acceptance_request: int
|
107
|
+
:param monthly_success_object: 当月同步成功对象数
|
108
|
+
:type monthly_success_object: int
|
109
|
+
:param monthly_failure_object: 当月同步失败对象数
|
110
|
+
:type monthly_failure_object: int
|
111
|
+
:param monthly_skip_object: 当月同步忽略对象数
|
112
|
+
:type monthly_skip_object: int
|
113
|
+
:param monthly_size: 当月同步对象容量大小(Byte)。
|
114
|
+
:type monthly_size: int
|
115
|
+
:param object_overwrite_mode: 迁移前同名对象覆盖方式,用于迁移前判断源端与目的端有同名对象时,覆盖目的端或跳过迁移。默认SIZE_LAST_MODIFIED_COMPARISON_OVERWRITE。 NO_OVERWRITE:不覆盖。迁移前源端对象与目的端对象同名时,不做对比直接跳过迁移。 SIZE_LAST_MODIFIED_COMPARISON_OVERWRITE:大小/最后修改时间对比覆盖。默认配置。迁移前源端对象与目的端对象同名时,通过对比源端和目的端对象大小和最后修改时间,判断是否覆盖目的端,需满足源端/目的端对象的加密状态一致。源端与目的端同名对象大小不相同,或目的端对象的最后修改时间晚于源端对象的最后修改时间(源端较新),覆盖目的端。 CRC64_COMPARISON_OVERWRITE:CRC64对比覆盖。目前仅支持华为/阿里/腾讯。迁移前源端对象与目的端对象同名时,通过对比源端和目的端对象元数据中CRC64值是否相同,判断是否覆盖目的端,需满足源端/目的端对象的加密状态一致。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用SIZE_LAST_MODIFIED_COMPARISON_OVERWRITE(大小/最后修改时间对比覆盖)来对比进行覆盖判断。 FULL_OVERWRITE:全覆盖。迁移前源端对象与目的端对象同名时,不做对比覆盖目的端。
|
116
|
+
:type object_overwrite_mode: str
|
117
|
+
:param consistency_check: 迁移后对象一致性校验方式,用于迁移后校验对象是否一致,所有校验方式需满足源端/目的端对象的加密状态一致,具体校验方式和校验结果可通过对象列表查看。默认size_last_modified。 size_last_modified:默认配置。迁移后,通过对比源端和目的端对象大小和最后修改时间,判断对象迁移后数据是否完整。源端与目的端同名对象大小相同,且目的端对象的最后修改时间不早于源端对象的最后修改时间,则代表该对象迁移成功。 crc64:目前仅支持华为/阿里/腾讯。迁移后,通过对比源端和目的端对象元数据中CRC64值是否相同,判断对象是否迁移完成。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用大小/最后修改时间校验方式来校验。 no_check:目前仅支持HTTP/HTTPS数据源。当源端对象无法通过标准http协议中content-length字段获取数据大小时,默认数据下载成功即迁移成功,不对数据做额外校验。当源端对象能正常通过标准http协议中content-length字段获取数据大小时,则采用大小/最后修改时间校验方式来校验。
|
118
|
+
:type consistency_check: str
|
119
|
+
"""
|
120
|
+
|
121
|
+
super(ShowSyncTaskResponse, self).__init__()
|
122
|
+
|
123
|
+
self._sync_task_id = None
|
124
|
+
self._src_cloud_type = None
|
125
|
+
self._src_region = None
|
126
|
+
self._src_bucket = None
|
127
|
+
self._create_time = None
|
128
|
+
self._last_start_time = None
|
129
|
+
self._dst_bucket = None
|
130
|
+
self._dst_region = None
|
131
|
+
self._description = None
|
132
|
+
self._status = None
|
133
|
+
self._enable_kms = None
|
134
|
+
self._enable_metadata_migration = None
|
135
|
+
self._enable_restore = None
|
136
|
+
self._dst_storage_policy = None
|
137
|
+
self._app_id = None
|
138
|
+
self._monthly_acceptance_request = None
|
139
|
+
self._monthly_success_object = None
|
140
|
+
self._monthly_failure_object = None
|
141
|
+
self._monthly_skip_object = None
|
142
|
+
self._monthly_size = None
|
143
|
+
self._object_overwrite_mode = None
|
144
|
+
self._consistency_check = None
|
145
|
+
self.discriminator = None
|
146
|
+
|
147
|
+
if sync_task_id is not None:
|
148
|
+
self.sync_task_id = sync_task_id
|
149
|
+
if src_cloud_type is not None:
|
150
|
+
self.src_cloud_type = src_cloud_type
|
151
|
+
if src_region is not None:
|
152
|
+
self.src_region = src_region
|
153
|
+
if src_bucket is not None:
|
154
|
+
self.src_bucket = src_bucket
|
155
|
+
if create_time is not None:
|
156
|
+
self.create_time = create_time
|
157
|
+
if last_start_time is not None:
|
158
|
+
self.last_start_time = last_start_time
|
159
|
+
if dst_bucket is not None:
|
160
|
+
self.dst_bucket = dst_bucket
|
161
|
+
if dst_region is not None:
|
162
|
+
self.dst_region = dst_region
|
163
|
+
if description is not None:
|
164
|
+
self.description = description
|
165
|
+
if status is not None:
|
166
|
+
self.status = status
|
167
|
+
if enable_kms is not None:
|
168
|
+
self.enable_kms = enable_kms
|
169
|
+
if enable_metadata_migration is not None:
|
170
|
+
self.enable_metadata_migration = enable_metadata_migration
|
171
|
+
if enable_restore is not None:
|
172
|
+
self.enable_restore = enable_restore
|
173
|
+
if dst_storage_policy is not None:
|
174
|
+
self.dst_storage_policy = dst_storage_policy
|
175
|
+
if app_id is not None:
|
176
|
+
self.app_id = app_id
|
177
|
+
if monthly_acceptance_request is not None:
|
178
|
+
self.monthly_acceptance_request = monthly_acceptance_request
|
179
|
+
if monthly_success_object is not None:
|
180
|
+
self.monthly_success_object = monthly_success_object
|
181
|
+
if monthly_failure_object is not None:
|
182
|
+
self.monthly_failure_object = monthly_failure_object
|
183
|
+
if monthly_skip_object is not None:
|
184
|
+
self.monthly_skip_object = monthly_skip_object
|
185
|
+
if monthly_size is not None:
|
186
|
+
self.monthly_size = monthly_size
|
187
|
+
if object_overwrite_mode is not None:
|
188
|
+
self.object_overwrite_mode = object_overwrite_mode
|
189
|
+
if consistency_check is not None:
|
190
|
+
self.consistency_check = consistency_check
|
191
|
+
|
192
|
+
@property
|
193
|
+
def sync_task_id(self):
|
194
|
+
r"""Gets the sync_task_id of this ShowSyncTaskResponse.
|
195
|
+
|
196
|
+
同步任务ID
|
197
|
+
|
198
|
+
:return: The sync_task_id of this ShowSyncTaskResponse.
|
199
|
+
:rtype: str
|
200
|
+
"""
|
201
|
+
return self._sync_task_id
|
202
|
+
|
203
|
+
@sync_task_id.setter
|
204
|
+
def sync_task_id(self, sync_task_id):
|
205
|
+
r"""Sets the sync_task_id of this ShowSyncTaskResponse.
|
206
|
+
|
207
|
+
同步任务ID
|
208
|
+
|
209
|
+
:param sync_task_id: The sync_task_id of this ShowSyncTaskResponse.
|
210
|
+
:type sync_task_id: str
|
211
|
+
"""
|
212
|
+
self._sync_task_id = sync_task_id
|
213
|
+
|
214
|
+
@property
|
215
|
+
def src_cloud_type(self):
|
216
|
+
r"""Gets the src_cloud_type of this ShowSyncTaskResponse.
|
217
|
+
|
218
|
+
源端云服务提供商。 可选值有AWS、Azure、Aliyun、Tencent、HuaweiCloud、QingCloud、KingsoftCloud、Baidu、Qiniu、UCloud。默认值为Aliyun。
|
219
|
+
|
220
|
+
:return: The src_cloud_type of this ShowSyncTaskResponse.
|
221
|
+
:rtype: str
|
222
|
+
"""
|
223
|
+
return self._src_cloud_type
|
224
|
+
|
225
|
+
@src_cloud_type.setter
|
226
|
+
def src_cloud_type(self, src_cloud_type):
|
227
|
+
r"""Sets the src_cloud_type of this ShowSyncTaskResponse.
|
228
|
+
|
229
|
+
源端云服务提供商。 可选值有AWS、Azure、Aliyun、Tencent、HuaweiCloud、QingCloud、KingsoftCloud、Baidu、Qiniu、UCloud。默认值为Aliyun。
|
230
|
+
|
231
|
+
:param src_cloud_type: The src_cloud_type of this ShowSyncTaskResponse.
|
232
|
+
:type src_cloud_type: str
|
233
|
+
"""
|
234
|
+
self._src_cloud_type = src_cloud_type
|
235
|
+
|
236
|
+
@property
|
237
|
+
def src_region(self):
|
238
|
+
r"""Gets the src_region of this ShowSyncTaskResponse.
|
239
|
+
|
240
|
+
源端桶所处的区域
|
241
|
+
|
242
|
+
:return: The src_region of this ShowSyncTaskResponse.
|
243
|
+
:rtype: str
|
244
|
+
"""
|
245
|
+
return self._src_region
|
246
|
+
|
247
|
+
@src_region.setter
|
248
|
+
def src_region(self, src_region):
|
249
|
+
r"""Sets the src_region of this ShowSyncTaskResponse.
|
250
|
+
|
251
|
+
源端桶所处的区域
|
252
|
+
|
253
|
+
:param src_region: The src_region of this ShowSyncTaskResponse.
|
254
|
+
:type src_region: str
|
255
|
+
"""
|
256
|
+
self._src_region = src_region
|
257
|
+
|
258
|
+
@property
|
259
|
+
def src_bucket(self):
|
260
|
+
r"""Gets the src_bucket of this ShowSyncTaskResponse.
|
261
|
+
|
262
|
+
源端桶
|
263
|
+
|
264
|
+
:return: The src_bucket of this ShowSyncTaskResponse.
|
265
|
+
:rtype: str
|
266
|
+
"""
|
267
|
+
return self._src_bucket
|
268
|
+
|
269
|
+
@src_bucket.setter
|
270
|
+
def src_bucket(self, src_bucket):
|
271
|
+
r"""Sets the src_bucket of this ShowSyncTaskResponse.
|
272
|
+
|
273
|
+
源端桶
|
274
|
+
|
275
|
+
:param src_bucket: The src_bucket of this ShowSyncTaskResponse.
|
276
|
+
:type src_bucket: str
|
277
|
+
"""
|
278
|
+
self._src_bucket = src_bucket
|
279
|
+
|
280
|
+
@property
|
281
|
+
def create_time(self):
|
282
|
+
r"""Gets the create_time of this ShowSyncTaskResponse.
|
283
|
+
|
284
|
+
同步任务创建时间(Unix时间戳,毫秒)
|
285
|
+
|
286
|
+
:return: The create_time of this ShowSyncTaskResponse.
|
287
|
+
:rtype: int
|
288
|
+
"""
|
289
|
+
return self._create_time
|
290
|
+
|
291
|
+
@create_time.setter
|
292
|
+
def create_time(self, create_time):
|
293
|
+
r"""Sets the create_time of this ShowSyncTaskResponse.
|
294
|
+
|
295
|
+
同步任务创建时间(Unix时间戳,毫秒)
|
296
|
+
|
297
|
+
:param create_time: The create_time of this ShowSyncTaskResponse.
|
298
|
+
:type create_time: int
|
299
|
+
"""
|
300
|
+
self._create_time = create_time
|
301
|
+
|
302
|
+
@property
|
303
|
+
def last_start_time(self):
|
304
|
+
r"""Gets the last_start_time of this ShowSyncTaskResponse.
|
305
|
+
|
306
|
+
最近启动同步任务时间(Unix时间戳,毫秒)
|
307
|
+
|
308
|
+
:return: The last_start_time of this ShowSyncTaskResponse.
|
309
|
+
:rtype: int
|
310
|
+
"""
|
311
|
+
return self._last_start_time
|
312
|
+
|
313
|
+
@last_start_time.setter
|
314
|
+
def last_start_time(self, last_start_time):
|
315
|
+
r"""Sets the last_start_time of this ShowSyncTaskResponse.
|
316
|
+
|
317
|
+
最近启动同步任务时间(Unix时间戳,毫秒)
|
318
|
+
|
319
|
+
:param last_start_time: The last_start_time of this ShowSyncTaskResponse.
|
320
|
+
:type last_start_time: int
|
321
|
+
"""
|
322
|
+
self._last_start_time = last_start_time
|
323
|
+
|
324
|
+
@property
|
325
|
+
def dst_bucket(self):
|
326
|
+
r"""Gets the dst_bucket of this ShowSyncTaskResponse.
|
327
|
+
|
328
|
+
目的端桶。
|
329
|
+
|
330
|
+
:return: The dst_bucket of this ShowSyncTaskResponse.
|
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 ShowSyncTaskResponse.
|
338
|
+
|
339
|
+
目的端桶。
|
340
|
+
|
341
|
+
:param dst_bucket: The dst_bucket of this ShowSyncTaskResponse.
|
342
|
+
:type dst_bucket: str
|
343
|
+
"""
|
344
|
+
self._dst_bucket = dst_bucket
|
345
|
+
|
346
|
+
@property
|
347
|
+
def dst_region(self):
|
348
|
+
r"""Gets the dst_region of this ShowSyncTaskResponse.
|
349
|
+
|
350
|
+
目的端region
|
351
|
+
|
352
|
+
:return: The dst_region of this ShowSyncTaskResponse.
|
353
|
+
:rtype: str
|
354
|
+
"""
|
355
|
+
return self._dst_region
|
356
|
+
|
357
|
+
@dst_region.setter
|
358
|
+
def dst_region(self, dst_region):
|
359
|
+
r"""Sets the dst_region of this ShowSyncTaskResponse.
|
360
|
+
|
361
|
+
目的端region
|
362
|
+
|
363
|
+
:param dst_region: The dst_region of this ShowSyncTaskResponse.
|
364
|
+
:type dst_region: str
|
365
|
+
"""
|
366
|
+
self._dst_region = dst_region
|
367
|
+
|
368
|
+
@property
|
369
|
+
def description(self):
|
370
|
+
r"""Gets the description of this ShowSyncTaskResponse.
|
371
|
+
|
372
|
+
任务描述,不能超过255个字符,且不能包含<>()\"'&等特殊字符。
|
373
|
+
|
374
|
+
:return: The description of this ShowSyncTaskResponse.
|
375
|
+
:rtype: str
|
376
|
+
"""
|
377
|
+
return self._description
|
378
|
+
|
379
|
+
@description.setter
|
380
|
+
def description(self, description):
|
381
|
+
r"""Sets the description of this ShowSyncTaskResponse.
|
382
|
+
|
383
|
+
任务描述,不能超过255个字符,且不能包含<>()\"'&等特殊字符。
|
384
|
+
|
385
|
+
:param description: The description of this ShowSyncTaskResponse.
|
386
|
+
:type description: str
|
387
|
+
"""
|
388
|
+
self._description = description
|
389
|
+
|
390
|
+
@property
|
391
|
+
def status(self):
|
392
|
+
r"""Gets the status of this ShowSyncTaskResponse.
|
393
|
+
|
394
|
+
同步任务状态 SYNCHRONIZING:同步中 STOPPED:已停止
|
395
|
+
|
396
|
+
:return: The status of this ShowSyncTaskResponse.
|
397
|
+
:rtype: str
|
398
|
+
"""
|
399
|
+
return self._status
|
400
|
+
|
401
|
+
@status.setter
|
402
|
+
def status(self, status):
|
403
|
+
r"""Sets the status of this ShowSyncTaskResponse.
|
404
|
+
|
405
|
+
同步任务状态 SYNCHRONIZING:同步中 STOPPED:已停止
|
406
|
+
|
407
|
+
:param status: The status of this ShowSyncTaskResponse.
|
408
|
+
:type status: str
|
409
|
+
"""
|
410
|
+
self._status = status
|
411
|
+
|
412
|
+
@property
|
413
|
+
def enable_kms(self):
|
414
|
+
r"""Gets the enable_kms of this ShowSyncTaskResponse.
|
415
|
+
|
416
|
+
是否开启KMS加密,默认不开启。
|
417
|
+
|
418
|
+
:return: The enable_kms of this ShowSyncTaskResponse.
|
419
|
+
:rtype: bool
|
420
|
+
"""
|
421
|
+
return self._enable_kms
|
422
|
+
|
423
|
+
@enable_kms.setter
|
424
|
+
def enable_kms(self, enable_kms):
|
425
|
+
r"""Sets the enable_kms of this ShowSyncTaskResponse.
|
426
|
+
|
427
|
+
是否开启KMS加密,默认不开启。
|
428
|
+
|
429
|
+
:param enable_kms: The enable_kms of this ShowSyncTaskResponse.
|
430
|
+
:type enable_kms: bool
|
431
|
+
"""
|
432
|
+
self._enable_kms = enable_kms
|
433
|
+
|
434
|
+
@property
|
435
|
+
def enable_metadata_migration(self):
|
436
|
+
r"""Gets the enable_metadata_migration of this ShowSyncTaskResponse.
|
437
|
+
|
438
|
+
是否启用元数据迁移,默认否。不启用时,为保证迁移任务正常运行,仍将为您迁移ContentType元数据。
|
439
|
+
|
440
|
+
:return: The enable_metadata_migration of this ShowSyncTaskResponse.
|
441
|
+
:rtype: bool
|
442
|
+
"""
|
443
|
+
return self._enable_metadata_migration
|
444
|
+
|
445
|
+
@enable_metadata_migration.setter
|
446
|
+
def enable_metadata_migration(self, enable_metadata_migration):
|
447
|
+
r"""Sets the enable_metadata_migration of this ShowSyncTaskResponse.
|
448
|
+
|
449
|
+
是否启用元数据迁移,默认否。不启用时,为保证迁移任务正常运行,仍将为您迁移ContentType元数据。
|
450
|
+
|
451
|
+
:param enable_metadata_migration: The enable_metadata_migration of this ShowSyncTaskResponse.
|
452
|
+
:type enable_metadata_migration: bool
|
453
|
+
"""
|
454
|
+
self._enable_metadata_migration = enable_metadata_migration
|
455
|
+
|
456
|
+
@property
|
457
|
+
def enable_restore(self):
|
458
|
+
r"""Gets the enable_restore of this ShowSyncTaskResponse.
|
459
|
+
|
460
|
+
是否自动解冻归档数据,默认否。 开启后,如果遇到归档类型数据,会自动解冻再进行迁移。
|
461
|
+
|
462
|
+
:return: The enable_restore of this ShowSyncTaskResponse.
|
463
|
+
:rtype: bool
|
464
|
+
"""
|
465
|
+
return self._enable_restore
|
466
|
+
|
467
|
+
@enable_restore.setter
|
468
|
+
def enable_restore(self, enable_restore):
|
469
|
+
r"""Sets the enable_restore of this ShowSyncTaskResponse.
|
470
|
+
|
471
|
+
是否自动解冻归档数据,默认否。 开启后,如果遇到归档类型数据,会自动解冻再进行迁移。
|
472
|
+
|
473
|
+
:param enable_restore: The enable_restore of this ShowSyncTaskResponse.
|
474
|
+
:type enable_restore: bool
|
475
|
+
"""
|
476
|
+
self._enable_restore = enable_restore
|
477
|
+
|
478
|
+
@property
|
479
|
+
def dst_storage_policy(self):
|
480
|
+
r"""Gets the dst_storage_policy of this ShowSyncTaskResponse.
|
481
|
+
|
482
|
+
目的端存储类型设置,当且仅当目的端为华为云OBS时需要,默认为标准存储 STANDARD:华为云OBS标准存储 IA:华为云OBS低频存储 ARCHIVE:华为云OBS归档存储 DEEP_ARCHIVE:华为云OBS深度归档存储 SRC_STORAGE_MAPPING:保留源端存储类型,将源端存储类型映射为华为云OBS存储类型
|
483
|
+
|
484
|
+
:return: The dst_storage_policy of this ShowSyncTaskResponse.
|
485
|
+
:rtype: str
|
486
|
+
"""
|
487
|
+
return self._dst_storage_policy
|
488
|
+
|
489
|
+
@dst_storage_policy.setter
|
490
|
+
def dst_storage_policy(self, dst_storage_policy):
|
491
|
+
r"""Sets the dst_storage_policy of this ShowSyncTaskResponse.
|
492
|
+
|
493
|
+
目的端存储类型设置,当且仅当目的端为华为云OBS时需要,默认为标准存储 STANDARD:华为云OBS标准存储 IA:华为云OBS低频存储 ARCHIVE:华为云OBS归档存储 DEEP_ARCHIVE:华为云OBS深度归档存储 SRC_STORAGE_MAPPING:保留源端存储类型,将源端存储类型映射为华为云OBS存储类型
|
494
|
+
|
495
|
+
:param dst_storage_policy: The dst_storage_policy of this ShowSyncTaskResponse.
|
496
|
+
:type dst_storage_policy: str
|
497
|
+
"""
|
498
|
+
self._dst_storage_policy = dst_storage_policy
|
499
|
+
|
500
|
+
@property
|
501
|
+
def app_id(self):
|
502
|
+
r"""Gets the app_id of this ShowSyncTaskResponse.
|
503
|
+
|
504
|
+
当源端为腾讯云时,需要填写此参数。
|
505
|
+
|
506
|
+
:return: The app_id of this ShowSyncTaskResponse.
|
507
|
+
:rtype: str
|
508
|
+
"""
|
509
|
+
return self._app_id
|
510
|
+
|
511
|
+
@app_id.setter
|
512
|
+
def app_id(self, app_id):
|
513
|
+
r"""Sets the app_id of this ShowSyncTaskResponse.
|
514
|
+
|
515
|
+
当源端为腾讯云时,需要填写此参数。
|
516
|
+
|
517
|
+
:param app_id: The app_id of this ShowSyncTaskResponse.
|
518
|
+
:type app_id: str
|
519
|
+
"""
|
520
|
+
self._app_id = app_id
|
521
|
+
|
522
|
+
@property
|
523
|
+
def monthly_acceptance_request(self):
|
524
|
+
r"""Gets the monthly_acceptance_request of this ShowSyncTaskResponse.
|
525
|
+
|
526
|
+
当月接收同步请求对象数
|
527
|
+
|
528
|
+
:return: The monthly_acceptance_request of this ShowSyncTaskResponse.
|
529
|
+
:rtype: int
|
530
|
+
"""
|
531
|
+
return self._monthly_acceptance_request
|
532
|
+
|
533
|
+
@monthly_acceptance_request.setter
|
534
|
+
def monthly_acceptance_request(self, monthly_acceptance_request):
|
535
|
+
r"""Sets the monthly_acceptance_request of this ShowSyncTaskResponse.
|
536
|
+
|
537
|
+
当月接收同步请求对象数
|
538
|
+
|
539
|
+
:param monthly_acceptance_request: The monthly_acceptance_request of this ShowSyncTaskResponse.
|
540
|
+
:type monthly_acceptance_request: int
|
541
|
+
"""
|
542
|
+
self._monthly_acceptance_request = monthly_acceptance_request
|
543
|
+
|
544
|
+
@property
|
545
|
+
def monthly_success_object(self):
|
546
|
+
r"""Gets the monthly_success_object of this ShowSyncTaskResponse.
|
547
|
+
|
548
|
+
当月同步成功对象数
|
549
|
+
|
550
|
+
:return: The monthly_success_object of this ShowSyncTaskResponse.
|
551
|
+
:rtype: int
|
552
|
+
"""
|
553
|
+
return self._monthly_success_object
|
554
|
+
|
555
|
+
@monthly_success_object.setter
|
556
|
+
def monthly_success_object(self, monthly_success_object):
|
557
|
+
r"""Sets the monthly_success_object of this ShowSyncTaskResponse.
|
558
|
+
|
559
|
+
当月同步成功对象数
|
560
|
+
|
561
|
+
:param monthly_success_object: The monthly_success_object of this ShowSyncTaskResponse.
|
562
|
+
:type monthly_success_object: int
|
563
|
+
"""
|
564
|
+
self._monthly_success_object = monthly_success_object
|
565
|
+
|
566
|
+
@property
|
567
|
+
def monthly_failure_object(self):
|
568
|
+
r"""Gets the monthly_failure_object of this ShowSyncTaskResponse.
|
569
|
+
|
570
|
+
当月同步失败对象数
|
571
|
+
|
572
|
+
:return: The monthly_failure_object of this ShowSyncTaskResponse.
|
573
|
+
:rtype: int
|
574
|
+
"""
|
575
|
+
return self._monthly_failure_object
|
576
|
+
|
577
|
+
@monthly_failure_object.setter
|
578
|
+
def monthly_failure_object(self, monthly_failure_object):
|
579
|
+
r"""Sets the monthly_failure_object of this ShowSyncTaskResponse.
|
580
|
+
|
581
|
+
当月同步失败对象数
|
582
|
+
|
583
|
+
:param monthly_failure_object: The monthly_failure_object of this ShowSyncTaskResponse.
|
584
|
+
:type monthly_failure_object: int
|
585
|
+
"""
|
586
|
+
self._monthly_failure_object = monthly_failure_object
|
587
|
+
|
588
|
+
@property
|
589
|
+
def monthly_skip_object(self):
|
590
|
+
r"""Gets the monthly_skip_object of this ShowSyncTaskResponse.
|
591
|
+
|
592
|
+
当月同步忽略对象数
|
593
|
+
|
594
|
+
:return: The monthly_skip_object of this ShowSyncTaskResponse.
|
595
|
+
:rtype: int
|
596
|
+
"""
|
597
|
+
return self._monthly_skip_object
|
598
|
+
|
599
|
+
@monthly_skip_object.setter
|
600
|
+
def monthly_skip_object(self, monthly_skip_object):
|
601
|
+
r"""Sets the monthly_skip_object of this ShowSyncTaskResponse.
|
602
|
+
|
603
|
+
当月同步忽略对象数
|
604
|
+
|
605
|
+
:param monthly_skip_object: The monthly_skip_object of this ShowSyncTaskResponse.
|
606
|
+
:type monthly_skip_object: int
|
607
|
+
"""
|
608
|
+
self._monthly_skip_object = monthly_skip_object
|
609
|
+
|
610
|
+
@property
|
611
|
+
def monthly_size(self):
|
612
|
+
r"""Gets the monthly_size of this ShowSyncTaskResponse.
|
613
|
+
|
614
|
+
当月同步对象容量大小(Byte)。
|
615
|
+
|
616
|
+
:return: The monthly_size of this ShowSyncTaskResponse.
|
617
|
+
:rtype: int
|
618
|
+
"""
|
619
|
+
return self._monthly_size
|
620
|
+
|
621
|
+
@monthly_size.setter
|
622
|
+
def monthly_size(self, monthly_size):
|
623
|
+
r"""Sets the monthly_size of this ShowSyncTaskResponse.
|
624
|
+
|
625
|
+
当月同步对象容量大小(Byte)。
|
626
|
+
|
627
|
+
:param monthly_size: The monthly_size of this ShowSyncTaskResponse.
|
628
|
+
:type monthly_size: int
|
629
|
+
"""
|
630
|
+
self._monthly_size = monthly_size
|
631
|
+
|
632
|
+
@property
|
633
|
+
def object_overwrite_mode(self):
|
634
|
+
r"""Gets the object_overwrite_mode of this ShowSyncTaskResponse.
|
635
|
+
|
636
|
+
迁移前同名对象覆盖方式,用于迁移前判断源端与目的端有同名对象时,覆盖目的端或跳过迁移。默认SIZE_LAST_MODIFIED_COMPARISON_OVERWRITE。 NO_OVERWRITE:不覆盖。迁移前源端对象与目的端对象同名时,不做对比直接跳过迁移。 SIZE_LAST_MODIFIED_COMPARISON_OVERWRITE:大小/最后修改时间对比覆盖。默认配置。迁移前源端对象与目的端对象同名时,通过对比源端和目的端对象大小和最后修改时间,判断是否覆盖目的端,需满足源端/目的端对象的加密状态一致。源端与目的端同名对象大小不相同,或目的端对象的最后修改时间晚于源端对象的最后修改时间(源端较新),覆盖目的端。 CRC64_COMPARISON_OVERWRITE:CRC64对比覆盖。目前仅支持华为/阿里/腾讯。迁移前源端对象与目的端对象同名时,通过对比源端和目的端对象元数据中CRC64值是否相同,判断是否覆盖目的端,需满足源端/目的端对象的加密状态一致。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用SIZE_LAST_MODIFIED_COMPARISON_OVERWRITE(大小/最后修改时间对比覆盖)来对比进行覆盖判断。 FULL_OVERWRITE:全覆盖。迁移前源端对象与目的端对象同名时,不做对比覆盖目的端。
|
637
|
+
|
638
|
+
:return: The object_overwrite_mode of this ShowSyncTaskResponse.
|
639
|
+
:rtype: str
|
640
|
+
"""
|
641
|
+
return self._object_overwrite_mode
|
642
|
+
|
643
|
+
@object_overwrite_mode.setter
|
644
|
+
def object_overwrite_mode(self, object_overwrite_mode):
|
645
|
+
r"""Sets the object_overwrite_mode of this ShowSyncTaskResponse.
|
646
|
+
|
647
|
+
迁移前同名对象覆盖方式,用于迁移前判断源端与目的端有同名对象时,覆盖目的端或跳过迁移。默认SIZE_LAST_MODIFIED_COMPARISON_OVERWRITE。 NO_OVERWRITE:不覆盖。迁移前源端对象与目的端对象同名时,不做对比直接跳过迁移。 SIZE_LAST_MODIFIED_COMPARISON_OVERWRITE:大小/最后修改时间对比覆盖。默认配置。迁移前源端对象与目的端对象同名时,通过对比源端和目的端对象大小和最后修改时间,判断是否覆盖目的端,需满足源端/目的端对象的加密状态一致。源端与目的端同名对象大小不相同,或目的端对象的最后修改时间晚于源端对象的最后修改时间(源端较新),覆盖目的端。 CRC64_COMPARISON_OVERWRITE:CRC64对比覆盖。目前仅支持华为/阿里/腾讯。迁移前源端对象与目的端对象同名时,通过对比源端和目的端对象元数据中CRC64值是否相同,判断是否覆盖目的端,需满足源端/目的端对象的加密状态一致。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用SIZE_LAST_MODIFIED_COMPARISON_OVERWRITE(大小/最后修改时间对比覆盖)来对比进行覆盖判断。 FULL_OVERWRITE:全覆盖。迁移前源端对象与目的端对象同名时,不做对比覆盖目的端。
|
648
|
+
|
649
|
+
:param object_overwrite_mode: The object_overwrite_mode of this ShowSyncTaskResponse.
|
650
|
+
:type object_overwrite_mode: str
|
651
|
+
"""
|
652
|
+
self._object_overwrite_mode = object_overwrite_mode
|
653
|
+
|
654
|
+
@property
|
655
|
+
def consistency_check(self):
|
656
|
+
r"""Gets the consistency_check of this ShowSyncTaskResponse.
|
657
|
+
|
658
|
+
迁移后对象一致性校验方式,用于迁移后校验对象是否一致,所有校验方式需满足源端/目的端对象的加密状态一致,具体校验方式和校验结果可通过对象列表查看。默认size_last_modified。 size_last_modified:默认配置。迁移后,通过对比源端和目的端对象大小和最后修改时间,判断对象迁移后数据是否完整。源端与目的端同名对象大小相同,且目的端对象的最后修改时间不早于源端对象的最后修改时间,则代表该对象迁移成功。 crc64:目前仅支持华为/阿里/腾讯。迁移后,通过对比源端和目的端对象元数据中CRC64值是否相同,判断对象是否迁移完成。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用大小/最后修改时间校验方式来校验。 no_check:目前仅支持HTTP/HTTPS数据源。当源端对象无法通过标准http协议中content-length字段获取数据大小时,默认数据下载成功即迁移成功,不对数据做额外校验。当源端对象能正常通过标准http协议中content-length字段获取数据大小时,则采用大小/最后修改时间校验方式来校验。
|
659
|
+
|
660
|
+
:return: The consistency_check of this ShowSyncTaskResponse.
|
661
|
+
:rtype: str
|
662
|
+
"""
|
663
|
+
return self._consistency_check
|
664
|
+
|
665
|
+
@consistency_check.setter
|
666
|
+
def consistency_check(self, consistency_check):
|
667
|
+
r"""Sets the consistency_check of this ShowSyncTaskResponse.
|
668
|
+
|
669
|
+
迁移后对象一致性校验方式,用于迁移后校验对象是否一致,所有校验方式需满足源端/目的端对象的加密状态一致,具体校验方式和校验结果可通过对象列表查看。默认size_last_modified。 size_last_modified:默认配置。迁移后,通过对比源端和目的端对象大小和最后修改时间,判断对象迁移后数据是否完整。源端与目的端同名对象大小相同,且目的端对象的最后修改时间不早于源端对象的最后修改时间,则代表该对象迁移成功。 crc64:目前仅支持华为/阿里/腾讯。迁移后,通过对比源端和目的端对象元数据中CRC64值是否相同,判断对象是否迁移完成。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用大小/最后修改时间校验方式来校验。 no_check:目前仅支持HTTP/HTTPS数据源。当源端对象无法通过标准http协议中content-length字段获取数据大小时,默认数据下载成功即迁移成功,不对数据做额外校验。当源端对象能正常通过标准http协议中content-length字段获取数据大小时,则采用大小/最后修改时间校验方式来校验。
|
670
|
+
|
671
|
+
:param consistency_check: The consistency_check of this ShowSyncTaskResponse.
|
672
|
+
:type consistency_check: str
|
673
|
+
"""
|
674
|
+
self._consistency_check = consistency_check
|
675
|
+
|
676
|
+
def to_dict(self):
|
677
|
+
"""Returns the model properties as a dict"""
|
678
|
+
result = {}
|
679
|
+
|
680
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
681
|
+
value = getattr(self, attr)
|
682
|
+
if isinstance(value, list):
|
683
|
+
result[attr] = list(map(
|
684
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
685
|
+
value
|
686
|
+
))
|
687
|
+
elif hasattr(value, "to_dict"):
|
688
|
+
result[attr] = value.to_dict()
|
689
|
+
elif isinstance(value, dict):
|
690
|
+
result[attr] = dict(map(
|
691
|
+
lambda item: (item[0], item[1].to_dict())
|
692
|
+
if hasattr(item[1], "to_dict") else item,
|
693
|
+
value.items()
|
694
|
+
))
|
695
|
+
else:
|
696
|
+
if attr in self.sensitive_list:
|
697
|
+
result[attr] = "****"
|
698
|
+
else:
|
699
|
+
result[attr] = value
|
700
|
+
|
701
|
+
return result
|
702
|
+
|
703
|
+
def to_str(self):
|
704
|
+
"""Returns the string representation of the model"""
|
705
|
+
import simplejson as json
|
706
|
+
if six.PY2:
|
707
|
+
import sys
|
708
|
+
reload(sys)
|
709
|
+
sys.setdefaultencoding("utf-8")
|
710
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
711
|
+
|
712
|
+
def __repr__(self):
|
713
|
+
"""For `print`"""
|
714
|
+
return self.to_str()
|
715
|
+
|
716
|
+
def __eq__(self, other):
|
717
|
+
"""Returns true if both objects are equal"""
|
718
|
+
if not isinstance(other, ShowSyncTaskResponse):
|
719
|
+
return False
|
720
|
+
|
721
|
+
return self.__dict__ == other.__dict__
|
722
|
+
|
723
|
+
def __ne__(self, other):
|
724
|
+
"""Returns true if both objects are not equal"""
|
725
|
+
return not self == other
|