huaweicloudsdkoms 3.1.79__py2.py3-none-any.whl → 3.1.81__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- huaweicloudsdkoms/v2/model/check_prefix_req.py +33 -4
- huaweicloudsdkoms/v2/model/create_sync_task_req.py +30 -1
- huaweicloudsdkoms/v2/model/create_task_group_req.py +30 -1
- huaweicloudsdkoms/v2/model/create_task_req.py +30 -1
- huaweicloudsdkoms/v2/model/list_buckets_req.py +33 -4
- huaweicloudsdkoms/v2/model/list_file.py +32 -3
- huaweicloudsdkoms/v2/model/retry_task_group_req.py +30 -1
- huaweicloudsdkoms/v2/model/show_bucket_region_req.py +33 -4
- huaweicloudsdkoms/v2/model/show_bucket_req.py +33 -4
- huaweicloudsdkoms/v2/model/show_sync_task_response.py +30 -30
- huaweicloudsdkoms/v2/model/show_task_group_response.py +30 -1
- huaweicloudsdkoms/v2/model/show_task_response.py +30 -1
- huaweicloudsdkoms/v2/model/smn_config.py +35 -6
- huaweicloudsdkoms/v2/model/src_node_req.py +33 -4
- huaweicloudsdkoms/v2/model/src_node_resp.py +3 -3
- huaweicloudsdkoms/v2/model/start_task_group_req.py +30 -1
- huaweicloudsdkoms/v2/model/start_task_req.py +30 -1
- huaweicloudsdkoms/v2/model/sync_task_info.py +55 -55
- huaweicloudsdkoms/v2/model/task_group_resp.py +30 -1
- huaweicloudsdkoms/v2/model/task_group_src_node.py +33 -4
- huaweicloudsdkoms/v2/model/task_group_src_node_resp.py +3 -3
- huaweicloudsdkoms/v2/model/task_resp.py +30 -1
- {huaweicloudsdkoms-3.1.79.dist-info → huaweicloudsdkoms-3.1.81.dist-info}/METADATA +2 -2
- {huaweicloudsdkoms-3.1.79.dist-info → huaweicloudsdkoms-3.1.81.dist-info}/RECORD +27 -27
- {huaweicloudsdkoms-3.1.79.dist-info → huaweicloudsdkoms-3.1.81.dist-info}/LICENSE +0 -0
- {huaweicloudsdkoms-3.1.79.dist-info → huaweicloudsdkoms-3.1.81.dist-info}/WHEEL +0 -0
- {huaweicloudsdkoms-3.1.79.dist-info → huaweicloudsdkoms-3.1.81.dist-info}/top_level.txt +0 -0
@@ -20,6 +20,7 @@ class CheckPrefixReq:
|
|
20
20
|
'cloud_type': 'str',
|
21
21
|
'ak': 'str',
|
22
22
|
'sk': 'str',
|
23
|
+
'json_auth_file': 'str',
|
23
24
|
'app_id': 'str',
|
24
25
|
'bucket_name': 'str',
|
25
26
|
'file_name': 'str',
|
@@ -31,6 +32,7 @@ class CheckPrefixReq:
|
|
31
32
|
'cloud_type': 'cloud_type',
|
32
33
|
'ak': 'ak',
|
33
34
|
'sk': 'sk',
|
35
|
+
'json_auth_file': 'json_auth_file',
|
34
36
|
'app_id': 'app_id',
|
35
37
|
'bucket_name': 'bucket_name',
|
36
38
|
'file_name': 'file_name',
|
@@ -38,17 +40,19 @@ class CheckPrefixReq:
|
|
38
40
|
'security_token': 'security_token'
|
39
41
|
}
|
40
42
|
|
41
|
-
def __init__(self, cloud_type=None, ak=None, sk=None, app_id=None, bucket_name=None, file_name=None, data_center=None, security_token=None):
|
43
|
+
def __init__(self, cloud_type=None, ak=None, sk=None, json_auth_file=None, app_id=None, bucket_name=None, file_name=None, data_center=None, security_token=None):
|
42
44
|
"""CheckPrefixReq
|
43
45
|
|
44
46
|
The model defined in huaweicloud sdk
|
45
47
|
|
46
|
-
:param cloud_type: 云类型 AWS:亚马逊 Aliyun:阿里云 Qiniu:七牛云 QingCloud:青云 Tencent:腾讯云 Baidu:百度云 KingsoftCloud:金山云 Azure:微软云 UCloud:优刻得 HuaweiCloud:华为云 URLSource:URL HEC:HEC
|
48
|
+
:param cloud_type: 云类型 AWS:亚马逊 Aliyun:阿里云 Qiniu:七牛云 QingCloud:青云 Tencent:腾讯云 Baidu:百度云 KingsoftCloud:金山云 Azure:微软云 UCloud:优刻得 HuaweiCloud:华为云 Google: 谷歌云 URLSource:URL HEC:HEC
|
47
49
|
:type cloud_type: str
|
48
50
|
:param ak: 源端桶的AK(最大长度100个字符),task_type为非url_list时,本参数为必选。
|
49
51
|
:type ak: str
|
50
52
|
:param sk: 源端桶的SK(最大长度100个字符),task_type为非url_list时,本参数为必选。
|
51
53
|
:type sk: str
|
54
|
+
:param json_auth_file: 用于谷歌云Cloud Storage鉴权
|
55
|
+
:type json_auth_file: str
|
52
56
|
:param app_id: 当源端为腾讯云时,会返回此参数。
|
53
57
|
:type app_id: str
|
54
58
|
:param bucket_name: 桶名
|
@@ -66,6 +70,7 @@ class CheckPrefixReq:
|
|
66
70
|
self._cloud_type = None
|
67
71
|
self._ak = None
|
68
72
|
self._sk = None
|
73
|
+
self._json_auth_file = None
|
69
74
|
self._app_id = None
|
70
75
|
self._bucket_name = None
|
71
76
|
self._file_name = None
|
@@ -78,6 +83,8 @@ class CheckPrefixReq:
|
|
78
83
|
self.ak = ak
|
79
84
|
if sk is not None:
|
80
85
|
self.sk = sk
|
86
|
+
if json_auth_file is not None:
|
87
|
+
self.json_auth_file = json_auth_file
|
81
88
|
if app_id is not None:
|
82
89
|
self.app_id = app_id
|
83
90
|
self.bucket_name = bucket_name
|
@@ -90,7 +97,7 @@ class CheckPrefixReq:
|
|
90
97
|
def cloud_type(self):
|
91
98
|
"""Gets the cloud_type of this CheckPrefixReq.
|
92
99
|
|
93
|
-
云类型 AWS:亚马逊 Aliyun:阿里云 Qiniu:七牛云 QingCloud:青云 Tencent:腾讯云 Baidu:百度云 KingsoftCloud:金山云 Azure:微软云 UCloud:优刻得 HuaweiCloud:华为云 URLSource:URL HEC:HEC
|
100
|
+
云类型 AWS:亚马逊 Aliyun:阿里云 Qiniu:七牛云 QingCloud:青云 Tencent:腾讯云 Baidu:百度云 KingsoftCloud:金山云 Azure:微软云 UCloud:优刻得 HuaweiCloud:华为云 Google: 谷歌云 URLSource:URL HEC:HEC
|
94
101
|
|
95
102
|
:return: The cloud_type of this CheckPrefixReq.
|
96
103
|
:rtype: str
|
@@ -101,7 +108,7 @@ class CheckPrefixReq:
|
|
101
108
|
def cloud_type(self, cloud_type):
|
102
109
|
"""Sets the cloud_type of this CheckPrefixReq.
|
103
110
|
|
104
|
-
云类型 AWS:亚马逊 Aliyun:阿里云 Qiniu:七牛云 QingCloud:青云 Tencent:腾讯云 Baidu:百度云 KingsoftCloud:金山云 Azure:微软云 UCloud:优刻得 HuaweiCloud:华为云 URLSource:URL HEC:HEC
|
111
|
+
云类型 AWS:亚马逊 Aliyun:阿里云 Qiniu:七牛云 QingCloud:青云 Tencent:腾讯云 Baidu:百度云 KingsoftCloud:金山云 Azure:微软云 UCloud:优刻得 HuaweiCloud:华为云 Google: 谷歌云 URLSource:URL HEC:HEC
|
105
112
|
|
106
113
|
:param cloud_type: The cloud_type of this CheckPrefixReq.
|
107
114
|
:type cloud_type: str
|
@@ -152,6 +159,28 @@ class CheckPrefixReq:
|
|
152
159
|
"""
|
153
160
|
self._sk = sk
|
154
161
|
|
162
|
+
@property
|
163
|
+
def json_auth_file(self):
|
164
|
+
"""Gets the json_auth_file of this CheckPrefixReq.
|
165
|
+
|
166
|
+
用于谷歌云Cloud Storage鉴权
|
167
|
+
|
168
|
+
:return: The json_auth_file of this CheckPrefixReq.
|
169
|
+
:rtype: str
|
170
|
+
"""
|
171
|
+
return self._json_auth_file
|
172
|
+
|
173
|
+
@json_auth_file.setter
|
174
|
+
def json_auth_file(self, json_auth_file):
|
175
|
+
"""Sets the json_auth_file of this CheckPrefixReq.
|
176
|
+
|
177
|
+
用于谷歌云Cloud Storage鉴权
|
178
|
+
|
179
|
+
:param json_auth_file: The json_auth_file of this CheckPrefixReq.
|
180
|
+
:type json_auth_file: str
|
181
|
+
"""
|
182
|
+
self._json_auth_file = json_auth_file
|
183
|
+
|
155
184
|
@property
|
156
185
|
def app_id(self):
|
157
186
|
"""Gets the app_id of this CheckPrefixReq.
|
@@ -30,6 +30,7 @@ class CreateSyncTaskReq:
|
|
30
30
|
'enable_metadata_migration': 'bool',
|
31
31
|
'enable_kms': 'bool',
|
32
32
|
'enable_restore': 'bool',
|
33
|
+
'dst_storage_policy': 'str',
|
33
34
|
'app_id': 'str',
|
34
35
|
'source_cdn': 'SourceCdnReq',
|
35
36
|
'consistency_check': 'str'
|
@@ -49,12 +50,13 @@ class CreateSyncTaskReq:
|
|
49
50
|
'enable_metadata_migration': 'enable_metadata_migration',
|
50
51
|
'enable_kms': 'enable_kms',
|
51
52
|
'enable_restore': 'enable_restore',
|
53
|
+
'dst_storage_policy': 'dst_storage_policy',
|
52
54
|
'app_id': 'app_id',
|
53
55
|
'source_cdn': 'source_cdn',
|
54
56
|
'consistency_check': 'consistency_check'
|
55
57
|
}
|
56
58
|
|
57
|
-
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, app_id=None, source_cdn=None, consistency_check=None):
|
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):
|
58
60
|
"""CreateSyncTaskReq
|
59
61
|
|
60
62
|
The model defined in huaweicloud sdk
|
@@ -85,6 +87,8 @@ class CreateSyncTaskReq:
|
|
85
87
|
:type enable_kms: bool
|
86
88
|
:param enable_restore: 是否自动解冻归档数据,默认否。 开启后,如果遇到归档类型数据,会自动解冻再进行迁移。
|
87
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
|
88
92
|
:param app_id: 当源端为腾讯云时,需要填写此参数。
|
89
93
|
:type app_id: str
|
90
94
|
:param source_cdn:
|
@@ -108,6 +112,7 @@ class CreateSyncTaskReq:
|
|
108
112
|
self._enable_metadata_migration = None
|
109
113
|
self._enable_kms = None
|
110
114
|
self._enable_restore = None
|
115
|
+
self._dst_storage_policy = None
|
111
116
|
self._app_id = None
|
112
117
|
self._source_cdn = None
|
113
118
|
self._consistency_check = None
|
@@ -131,6 +136,8 @@ class CreateSyncTaskReq:
|
|
131
136
|
self.enable_kms = enable_kms
|
132
137
|
if enable_restore is not None:
|
133
138
|
self.enable_restore = enable_restore
|
139
|
+
if dst_storage_policy is not None:
|
140
|
+
self.dst_storage_policy = dst_storage_policy
|
134
141
|
if app_id is not None:
|
135
142
|
self.app_id = app_id
|
136
143
|
if source_cdn is not None:
|
@@ -424,6 +431,28 @@ class CreateSyncTaskReq:
|
|
424
431
|
"""
|
425
432
|
self._enable_restore = enable_restore
|
426
433
|
|
434
|
+
@property
|
435
|
+
def dst_storage_policy(self):
|
436
|
+
"""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
|
+
"""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
|
+
|
427
456
|
@property
|
428
457
|
def app_id(self):
|
429
458
|
"""Gets the app_id of this CreateSyncTaskReq.
|
@@ -30,6 +30,7 @@ class CreateTaskGroupReq:
|
|
30
30
|
'source_cdn': 'SourceCdnReq',
|
31
31
|
'migrate_since': 'int',
|
32
32
|
'object_overwrite_mode': 'str',
|
33
|
+
'dst_storage_policy': 'str',
|
33
34
|
'consistency_check': 'str',
|
34
35
|
'enable_requester_pays': 'bool'
|
35
36
|
}
|
@@ -48,11 +49,12 @@ class CreateTaskGroupReq:
|
|
48
49
|
'source_cdn': 'source_cdn',
|
49
50
|
'migrate_since': 'migrate_since',
|
50
51
|
'object_overwrite_mode': 'object_overwrite_mode',
|
52
|
+
'dst_storage_policy': 'dst_storage_policy',
|
51
53
|
'consistency_check': 'consistency_check',
|
52
54
|
'enable_requester_pays': 'enable_requester_pays'
|
53
55
|
}
|
54
56
|
|
55
|
-
def __init__(self, src_node=None, description=None, dst_node=None, enable_metadata_migration=None, enable_failed_object_recording=None, enable_restore=None, enable_kms=None, task_type=None, bandwidth_policy=None, smn_config=None, source_cdn=None, migrate_since=None, object_overwrite_mode=None, consistency_check=None, enable_requester_pays=None):
|
57
|
+
def __init__(self, src_node=None, description=None, dst_node=None, enable_metadata_migration=None, enable_failed_object_recording=None, enable_restore=None, enable_kms=None, task_type=None, bandwidth_policy=None, smn_config=None, source_cdn=None, migrate_since=None, object_overwrite_mode=None, dst_storage_policy=None, consistency_check=None, enable_requester_pays=None):
|
56
58
|
"""CreateTaskGroupReq
|
57
59
|
|
58
60
|
The model defined in huaweicloud sdk
|
@@ -83,6 +85,8 @@ class CreateTaskGroupReq:
|
|
83
85
|
:type migrate_since: int
|
84
86
|
: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:全覆盖。迁移前源端对象与目的端对象同名时,不做对比覆盖目的端。
|
85
87
|
:type object_overwrite_mode: str
|
88
|
+
:param dst_storage_policy: 目的端存储类型设置,当且仅当目的端为华为云OBS时需要,默认为标准存储 STANDARD:华为云OBS标准存储 IA:华为云OBS低频存储 ARCHIVE:华为云OBS归档存储 DEEP_ARCHIVE:华为云OBS深度归档存储 SRC_STORAGE_MAPPING:保留源端存储类型,将源端存储类型映射为华为云OBS存储类型
|
89
|
+
:type dst_storage_policy: str
|
86
90
|
:param consistency_check: 一致性校验方式,用于迁移前/后校验对象是否一致,所有校验方式需满足源端/目的端对象的加密状态一致,具体校验方式和校验结果可通过对象列表查看。默认size_last_modified。 size_last_modified:默认配置。迁移前后,通过对比源端和目的端对象大小+最后修改时间,判断对象是否已存在或迁移后数据是否完整。源端与目的端同名对象大小相同,且目的端对象的最后修改时间不早于源端对象的最后修改时间,则代表该对象已存在/迁移成功。 crc64:目前仅支持华为/阿里/腾讯。迁移前后,通过对比源端和目的端对象元数据中CRC64值是否相同,判断对象是否已存在/迁移完成。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用大小/最后修改时间校验方式来校验。 no_check:目前仅支持HTTP/HTTPS数据源。当源端对象无法通过标准http协议中content-length字段获取数据大小时,默认数据下载成功即迁移成功,不对数据做额外校验,且迁移时源端对象默认覆盖目的端同名对象。当源端对象能正常通过标准http协议中content-length字段获取数据大小时,则采用大小/最后修改时间校验方式来校验。
|
87
91
|
:type consistency_check: str
|
88
92
|
:param enable_requester_pays: 是否开启请求者付款,在启用后,请求者支付请求和数据传输费用。
|
@@ -104,6 +108,7 @@ class CreateTaskGroupReq:
|
|
104
108
|
self._source_cdn = None
|
105
109
|
self._migrate_since = None
|
106
110
|
self._object_overwrite_mode = None
|
111
|
+
self._dst_storage_policy = None
|
107
112
|
self._consistency_check = None
|
108
113
|
self._enable_requester_pays = None
|
109
114
|
self.discriminator = None
|
@@ -131,6 +136,8 @@ class CreateTaskGroupReq:
|
|
131
136
|
self.migrate_since = migrate_since
|
132
137
|
if object_overwrite_mode is not None:
|
133
138
|
self.object_overwrite_mode = object_overwrite_mode
|
139
|
+
if dst_storage_policy is not None:
|
140
|
+
self.dst_storage_policy = dst_storage_policy
|
134
141
|
if consistency_check is not None:
|
135
142
|
self.consistency_check = consistency_check
|
136
143
|
if enable_requester_pays is not None:
|
@@ -406,6 +413,28 @@ class CreateTaskGroupReq:
|
|
406
413
|
"""
|
407
414
|
self._object_overwrite_mode = object_overwrite_mode
|
408
415
|
|
416
|
+
@property
|
417
|
+
def dst_storage_policy(self):
|
418
|
+
"""Gets the dst_storage_policy of this CreateTaskGroupReq.
|
419
|
+
|
420
|
+
目的端存储类型设置,当且仅当目的端为华为云OBS时需要,默认为标准存储 STANDARD:华为云OBS标准存储 IA:华为云OBS低频存储 ARCHIVE:华为云OBS归档存储 DEEP_ARCHIVE:华为云OBS深度归档存储 SRC_STORAGE_MAPPING:保留源端存储类型,将源端存储类型映射为华为云OBS存储类型
|
421
|
+
|
422
|
+
:return: The dst_storage_policy of this CreateTaskGroupReq.
|
423
|
+
:rtype: str
|
424
|
+
"""
|
425
|
+
return self._dst_storage_policy
|
426
|
+
|
427
|
+
@dst_storage_policy.setter
|
428
|
+
def dst_storage_policy(self, dst_storage_policy):
|
429
|
+
"""Sets the dst_storage_policy of this CreateTaskGroupReq.
|
430
|
+
|
431
|
+
目的端存储类型设置,当且仅当目的端为华为云OBS时需要,默认为标准存储 STANDARD:华为云OBS标准存储 IA:华为云OBS低频存储 ARCHIVE:华为云OBS归档存储 DEEP_ARCHIVE:华为云OBS深度归档存储 SRC_STORAGE_MAPPING:保留源端存储类型,将源端存储类型映射为华为云OBS存储类型
|
432
|
+
|
433
|
+
:param dst_storage_policy: The dst_storage_policy of this CreateTaskGroupReq.
|
434
|
+
:type dst_storage_policy: str
|
435
|
+
"""
|
436
|
+
self._dst_storage_policy = dst_storage_policy
|
437
|
+
|
409
438
|
@property
|
410
439
|
def consistency_check(self):
|
411
440
|
"""Gets the consistency_check of this CreateTaskGroupReq.
|
@@ -30,6 +30,7 @@ class CreateTaskReq:
|
|
30
30
|
'enable_restore': 'bool',
|
31
31
|
'enable_failed_object_recording': 'bool',
|
32
32
|
'object_overwrite_mode': 'str',
|
33
|
+
'dst_storage_policy': 'str',
|
33
34
|
'consistency_check': 'str',
|
34
35
|
'enable_requester_pays': 'bool'
|
35
36
|
}
|
@@ -48,11 +49,12 @@ class CreateTaskReq:
|
|
48
49
|
'enable_restore': 'enable_restore',
|
49
50
|
'enable_failed_object_recording': 'enable_failed_object_recording',
|
50
51
|
'object_overwrite_mode': 'object_overwrite_mode',
|
52
|
+
'dst_storage_policy': 'dst_storage_policy',
|
51
53
|
'consistency_check': 'consistency_check',
|
52
54
|
'enable_requester_pays': 'enable_requester_pays'
|
53
55
|
}
|
54
56
|
|
55
|
-
def __init__(self, task_type=None, src_node=None, dst_node=None, enable_kms=None, description=None, migrate_since=None, bandwidth_policy=None, source_cdn=None, smn_config=None, enable_metadata_migration=None, enable_restore=None, enable_failed_object_recording=None, object_overwrite_mode=None, consistency_check=None, enable_requester_pays=None):
|
57
|
+
def __init__(self, task_type=None, src_node=None, dst_node=None, enable_kms=None, description=None, migrate_since=None, bandwidth_policy=None, source_cdn=None, smn_config=None, enable_metadata_migration=None, enable_restore=None, enable_failed_object_recording=None, object_overwrite_mode=None, dst_storage_policy=None, consistency_check=None, enable_requester_pays=None):
|
56
58
|
"""CreateTaskReq
|
57
59
|
|
58
60
|
The model defined in huaweicloud sdk
|
@@ -83,6 +85,8 @@ class CreateTaskReq:
|
|
83
85
|
:type enable_failed_object_recording: bool
|
84
86
|
: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:全覆盖。迁移前源端对象与目的端对象同名时,不做对比覆盖目的端。
|
85
87
|
:type object_overwrite_mode: str
|
88
|
+
:param dst_storage_policy: 目的端存储类型设置,当且仅当目的端为华为云OBS时需要,默认为标准存储 STANDARD:华为云OBS标准存储 IA:华为云OBS低频存储 ARCHIVE:华为云OBS归档存储 DEEP_ARCHIVE:华为云OBS深度归档存储 SRC_STORAGE_MAPPING:保留源端存储类型,将源端存储类型映射为华为云OBS存储类型
|
89
|
+
:type dst_storage_policy: str
|
86
90
|
:param consistency_check: 一致性校验方式,用于迁移前/后校验对象是否一致,所有校验方式需满足源端/目的端对象的加密状态一致,具体校验方式和校验结果可通过对象列表查看。默认size_last_modified。 size_last_modified:默认配置。迁移前后,通过对比源端和目的端对象大小+最后修改时间,判断对象是否已存在或迁移后数据是否完整。源端与目的端同名对象大小相同,且目的端对象的最后修改时间不早于源端对象的最后修改时间,则代表该对象已存在/迁移成功。 crc64:目前仅支持华为/阿里/腾讯。迁移前后,通过对比源端和目的端对象元数据中CRC64值是否相同,判断对象是否已存在/迁移完成。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用大小/最后修改时间校验方式来校验。 no_check:目前仅支持HTTP/HTTPS数据源。当源端对象无法通过标准http协议中content-length字段获取数据大小时,默认数据下载成功即迁移成功,不对数据做额外校验,且迁移时源端对象默认覆盖目的端同名对象。当源端对象能正常通过标准http协议中content-length字段获取数据大小时,则采用大小/最后修改时间校验方式来校验。
|
87
91
|
:type consistency_check: str
|
88
92
|
:param enable_requester_pays: 是否开启请求者付款,在启用后,请求者支付请求和数据传输费用。
|
@@ -104,6 +108,7 @@ class CreateTaskReq:
|
|
104
108
|
self._enable_restore = None
|
105
109
|
self._enable_failed_object_recording = None
|
106
110
|
self._object_overwrite_mode = None
|
111
|
+
self._dst_storage_policy = None
|
107
112
|
self._consistency_check = None
|
108
113
|
self._enable_requester_pays = None
|
109
114
|
self.discriminator = None
|
@@ -132,6 +137,8 @@ class CreateTaskReq:
|
|
132
137
|
self.enable_failed_object_recording = enable_failed_object_recording
|
133
138
|
if object_overwrite_mode is not None:
|
134
139
|
self.object_overwrite_mode = object_overwrite_mode
|
140
|
+
if dst_storage_policy is not None:
|
141
|
+
self.dst_storage_policy = dst_storage_policy
|
135
142
|
if consistency_check is not None:
|
136
143
|
self.consistency_check = consistency_check
|
137
144
|
if enable_requester_pays is not None:
|
@@ -407,6 +414,28 @@ class CreateTaskReq:
|
|
407
414
|
"""
|
408
415
|
self._object_overwrite_mode = object_overwrite_mode
|
409
416
|
|
417
|
+
@property
|
418
|
+
def dst_storage_policy(self):
|
419
|
+
"""Gets the dst_storage_policy of this CreateTaskReq.
|
420
|
+
|
421
|
+
目的端存储类型设置,当且仅当目的端为华为云OBS时需要,默认为标准存储 STANDARD:华为云OBS标准存储 IA:华为云OBS低频存储 ARCHIVE:华为云OBS归档存储 DEEP_ARCHIVE:华为云OBS深度归档存储 SRC_STORAGE_MAPPING:保留源端存储类型,将源端存储类型映射为华为云OBS存储类型
|
422
|
+
|
423
|
+
:return: The dst_storage_policy of this CreateTaskReq.
|
424
|
+
:rtype: str
|
425
|
+
"""
|
426
|
+
return self._dst_storage_policy
|
427
|
+
|
428
|
+
@dst_storage_policy.setter
|
429
|
+
def dst_storage_policy(self, dst_storage_policy):
|
430
|
+
"""Sets the dst_storage_policy of this CreateTaskReq.
|
431
|
+
|
432
|
+
目的端存储类型设置,当且仅当目的端为华为云OBS时需要,默认为标准存储 STANDARD:华为云OBS标准存储 IA:华为云OBS低频存储 ARCHIVE:华为云OBS归档存储 DEEP_ARCHIVE:华为云OBS深度归档存储 SRC_STORAGE_MAPPING:保留源端存储类型,将源端存储类型映射为华为云OBS存储类型
|
433
|
+
|
434
|
+
:param dst_storage_policy: The dst_storage_policy of this CreateTaskReq.
|
435
|
+
:type dst_storage_policy: str
|
436
|
+
"""
|
437
|
+
self._dst_storage_policy = dst_storage_policy
|
438
|
+
|
410
439
|
@property
|
411
440
|
def consistency_check(self):
|
412
441
|
"""Gets the consistency_check of this CreateTaskReq.
|
@@ -20,6 +20,7 @@ class ListBucketsReq:
|
|
20
20
|
'cloud_type': 'str',
|
21
21
|
'ak': 'str',
|
22
22
|
'sk': 'str',
|
23
|
+
'json_auth_file': 'str',
|
23
24
|
'app_id': 'str'
|
24
25
|
}
|
25
26
|
|
@@ -27,20 +28,23 @@ class ListBucketsReq:
|
|
27
28
|
'cloud_type': 'cloud_type',
|
28
29
|
'ak': 'ak',
|
29
30
|
'sk': 'sk',
|
31
|
+
'json_auth_file': 'json_auth_file',
|
30
32
|
'app_id': 'app_id'
|
31
33
|
}
|
32
34
|
|
33
|
-
def __init__(self, cloud_type=None, ak=None, sk=None, app_id=None):
|
35
|
+
def __init__(self, cloud_type=None, ak=None, sk=None, json_auth_file=None, app_id=None):
|
34
36
|
"""ListBucketsReq
|
35
37
|
|
36
38
|
The model defined in huaweicloud sdk
|
37
39
|
|
38
|
-
:param cloud_type: 云类型 AWS:亚马逊 Aliyun:阿里云 Qiniu:七牛云 QingCloud:青云 Tencent:腾讯云 Baidu:百度云 KingsoftCloud:金山云 Azure:微软云 UCloud:优刻得 HuaweiCloud:华为云 URLSource:URL HEC:HEC
|
40
|
+
:param cloud_type: 云类型 AWS:亚马逊 Aliyun:阿里云 Qiniu:七牛云 QingCloud:青云 Tencent:腾讯云 Baidu:百度云 KingsoftCloud:金山云 Azure:微软云 UCloud:优刻得 HuaweiCloud:华为云 Google: 谷歌云 URLSource:URL HEC:HEC
|
39
41
|
:type cloud_type: str
|
40
42
|
:param ak: 源端桶的AK(最大长度100个字符),task_type为非url_list时,本参数为必选。
|
41
43
|
:type ak: str
|
42
44
|
:param sk: 源端桶的SK(最大长度100个字符),task_type为非url_list时,本参数为必选。
|
43
45
|
:type sk: str
|
46
|
+
:param json_auth_file: 用于谷歌云Cloud Storage鉴权
|
47
|
+
:type json_auth_file: str
|
44
48
|
:param app_id: 当源端为腾讯云时,会返回此参数。
|
45
49
|
:type app_id: str
|
46
50
|
"""
|
@@ -50,6 +54,7 @@ class ListBucketsReq:
|
|
50
54
|
self._cloud_type = None
|
51
55
|
self._ak = None
|
52
56
|
self._sk = None
|
57
|
+
self._json_auth_file = None
|
53
58
|
self._app_id = None
|
54
59
|
self.discriminator = None
|
55
60
|
|
@@ -58,6 +63,8 @@ class ListBucketsReq:
|
|
58
63
|
self.ak = ak
|
59
64
|
if sk is not None:
|
60
65
|
self.sk = sk
|
66
|
+
if json_auth_file is not None:
|
67
|
+
self.json_auth_file = json_auth_file
|
61
68
|
if app_id is not None:
|
62
69
|
self.app_id = app_id
|
63
70
|
|
@@ -65,7 +72,7 @@ class ListBucketsReq:
|
|
65
72
|
def cloud_type(self):
|
66
73
|
"""Gets the cloud_type of this ListBucketsReq.
|
67
74
|
|
68
|
-
云类型 AWS:亚马逊 Aliyun:阿里云 Qiniu:七牛云 QingCloud:青云 Tencent:腾讯云 Baidu:百度云 KingsoftCloud:金山云 Azure:微软云 UCloud:优刻得 HuaweiCloud:华为云 URLSource:URL HEC:HEC
|
75
|
+
云类型 AWS:亚马逊 Aliyun:阿里云 Qiniu:七牛云 QingCloud:青云 Tencent:腾讯云 Baidu:百度云 KingsoftCloud:金山云 Azure:微软云 UCloud:优刻得 HuaweiCloud:华为云 Google: 谷歌云 URLSource:URL HEC:HEC
|
69
76
|
|
70
77
|
:return: The cloud_type of this ListBucketsReq.
|
71
78
|
:rtype: str
|
@@ -76,7 +83,7 @@ class ListBucketsReq:
|
|
76
83
|
def cloud_type(self, cloud_type):
|
77
84
|
"""Sets the cloud_type of this ListBucketsReq.
|
78
85
|
|
79
|
-
云类型 AWS:亚马逊 Aliyun:阿里云 Qiniu:七牛云 QingCloud:青云 Tencent:腾讯云 Baidu:百度云 KingsoftCloud:金山云 Azure:微软云 UCloud:优刻得 HuaweiCloud:华为云 URLSource:URL HEC:HEC
|
86
|
+
云类型 AWS:亚马逊 Aliyun:阿里云 Qiniu:七牛云 QingCloud:青云 Tencent:腾讯云 Baidu:百度云 KingsoftCloud:金山云 Azure:微软云 UCloud:优刻得 HuaweiCloud:华为云 Google: 谷歌云 URLSource:URL HEC:HEC
|
80
87
|
|
81
88
|
:param cloud_type: The cloud_type of this ListBucketsReq.
|
82
89
|
:type cloud_type: str
|
@@ -127,6 +134,28 @@ class ListBucketsReq:
|
|
127
134
|
"""
|
128
135
|
self._sk = sk
|
129
136
|
|
137
|
+
@property
|
138
|
+
def json_auth_file(self):
|
139
|
+
"""Gets the json_auth_file of this ListBucketsReq.
|
140
|
+
|
141
|
+
用于谷歌云Cloud Storage鉴权
|
142
|
+
|
143
|
+
:return: The json_auth_file of this ListBucketsReq.
|
144
|
+
:rtype: str
|
145
|
+
"""
|
146
|
+
return self._json_auth_file
|
147
|
+
|
148
|
+
@json_auth_file.setter
|
149
|
+
def json_auth_file(self, json_auth_file):
|
150
|
+
"""Sets the json_auth_file of this ListBucketsReq.
|
151
|
+
|
152
|
+
用于谷歌云Cloud Storage鉴权
|
153
|
+
|
154
|
+
:param json_auth_file: The json_auth_file of this ListBucketsReq.
|
155
|
+
:type json_auth_file: str
|
156
|
+
"""
|
157
|
+
self._json_auth_file = json_auth_file
|
158
|
+
|
130
159
|
@property
|
131
160
|
def app_id(self):
|
132
161
|
"""Gets the app_id of this ListBucketsReq.
|
@@ -18,15 +18,17 @@ class ListFile:
|
|
18
18
|
|
19
19
|
openapi_types = {
|
20
20
|
'list_file_key': 'str',
|
21
|
-
'obs_bucket': 'str'
|
21
|
+
'obs_bucket': 'str',
|
22
|
+
'list_file_num': 'str'
|
22
23
|
}
|
23
24
|
|
24
25
|
attribute_map = {
|
25
26
|
'list_file_key': 'list_file_key',
|
26
|
-
'obs_bucket': 'obs_bucket'
|
27
|
+
'obs_bucket': 'obs_bucket',
|
28
|
+
'list_file_num': 'list_file_num'
|
27
29
|
}
|
28
30
|
|
29
|
-
def __init__(self, list_file_key=None, obs_bucket=None):
|
31
|
+
def __init__(self, list_file_key=None, obs_bucket=None, list_file_num=None):
|
30
32
|
"""ListFile
|
31
33
|
|
32
34
|
The model defined in huaweicloud sdk
|
@@ -35,16 +37,21 @@ class ListFile:
|
|
35
37
|
:type list_file_key: str
|
36
38
|
:param obs_bucket: 存放对象列表文件的OBS桶名。 请确保与目的端桶处于同一区域,否则将导致任务创建失败。
|
37
39
|
:type obs_bucket: str
|
40
|
+
:param list_file_num: 存放对象列表文件的数量
|
41
|
+
:type list_file_num: str
|
38
42
|
"""
|
39
43
|
|
40
44
|
|
41
45
|
|
42
46
|
self._list_file_key = None
|
43
47
|
self._obs_bucket = None
|
48
|
+
self._list_file_num = None
|
44
49
|
self.discriminator = None
|
45
50
|
|
46
51
|
self.list_file_key = list_file_key
|
47
52
|
self.obs_bucket = obs_bucket
|
53
|
+
if list_file_num is not None:
|
54
|
+
self.list_file_num = list_file_num
|
48
55
|
|
49
56
|
@property
|
50
57
|
def list_file_key(self):
|
@@ -90,6 +97,28 @@ class ListFile:
|
|
90
97
|
"""
|
91
98
|
self._obs_bucket = obs_bucket
|
92
99
|
|
100
|
+
@property
|
101
|
+
def list_file_num(self):
|
102
|
+
"""Gets the list_file_num of this ListFile.
|
103
|
+
|
104
|
+
存放对象列表文件的数量
|
105
|
+
|
106
|
+
:return: The list_file_num of this ListFile.
|
107
|
+
:rtype: str
|
108
|
+
"""
|
109
|
+
return self._list_file_num
|
110
|
+
|
111
|
+
@list_file_num.setter
|
112
|
+
def list_file_num(self, list_file_num):
|
113
|
+
"""Sets the list_file_num of this ListFile.
|
114
|
+
|
115
|
+
存放对象列表文件的数量
|
116
|
+
|
117
|
+
:param list_file_num: The list_file_num of this ListFile.
|
118
|
+
:type list_file_num: str
|
119
|
+
"""
|
120
|
+
self._list_file_num = list_file_num
|
121
|
+
|
93
122
|
def to_dict(self):
|
94
123
|
"""Returns the model properties as a dict"""
|
95
124
|
result = {}
|
@@ -19,6 +19,7 @@ class RetryTaskGroupReq:
|
|
19
19
|
openapi_types = {
|
20
20
|
'src_ak': 'str',
|
21
21
|
'src_sk': 'str',
|
22
|
+
'json_auth_file': 'str',
|
22
23
|
'dst_ak': 'str',
|
23
24
|
'dst_sk': 'str',
|
24
25
|
'source_cdn_authentication_key': 'str',
|
@@ -28,13 +29,14 @@ class RetryTaskGroupReq:
|
|
28
29
|
attribute_map = {
|
29
30
|
'src_ak': 'src_ak',
|
30
31
|
'src_sk': 'src_sk',
|
32
|
+
'json_auth_file': 'json_auth_file',
|
31
33
|
'dst_ak': 'dst_ak',
|
32
34
|
'dst_sk': 'dst_sk',
|
33
35
|
'source_cdn_authentication_key': 'source_cdn_authentication_key',
|
34
36
|
'migrate_failed_object': 'migrate_failed_object'
|
35
37
|
}
|
36
38
|
|
37
|
-
def __init__(self, src_ak=None, src_sk=None, dst_ak=None, dst_sk=None, source_cdn_authentication_key=None, migrate_failed_object=None):
|
39
|
+
def __init__(self, src_ak=None, src_sk=None, json_auth_file=None, dst_ak=None, dst_sk=None, source_cdn_authentication_key=None, migrate_failed_object=None):
|
38
40
|
"""RetryTaskGroupReq
|
39
41
|
|
40
42
|
The model defined in huaweicloud sdk
|
@@ -43,6 +45,8 @@ class RetryTaskGroupReq:
|
|
43
45
|
:type src_ak: str
|
44
46
|
:param src_sk: 源端sk(最大长度100个字符)
|
45
47
|
:type src_sk: str
|
48
|
+
:param json_auth_file: 用于谷歌云Cloud Storage鉴权
|
49
|
+
:type json_auth_file: str
|
46
50
|
:param dst_ak: 目的端ak(最大长度100个字符)
|
47
51
|
:type dst_ak: str
|
48
52
|
:param dst_sk: 目的端sk(最大长度100个字符)
|
@@ -57,6 +61,7 @@ class RetryTaskGroupReq:
|
|
57
61
|
|
58
62
|
self._src_ak = None
|
59
63
|
self._src_sk = None
|
64
|
+
self._json_auth_file = None
|
60
65
|
self._dst_ak = None
|
61
66
|
self._dst_sk = None
|
62
67
|
self._source_cdn_authentication_key = None
|
@@ -67,6 +72,8 @@ class RetryTaskGroupReq:
|
|
67
72
|
self.src_ak = src_ak
|
68
73
|
if src_sk is not None:
|
69
74
|
self.src_sk = src_sk
|
75
|
+
if json_auth_file is not None:
|
76
|
+
self.json_auth_file = json_auth_file
|
70
77
|
if dst_ak is not None:
|
71
78
|
self.dst_ak = dst_ak
|
72
79
|
if dst_sk is not None:
|
@@ -120,6 +127,28 @@ class RetryTaskGroupReq:
|
|
120
127
|
"""
|
121
128
|
self._src_sk = src_sk
|
122
129
|
|
130
|
+
@property
|
131
|
+
def json_auth_file(self):
|
132
|
+
"""Gets the json_auth_file of this RetryTaskGroupReq.
|
133
|
+
|
134
|
+
用于谷歌云Cloud Storage鉴权
|
135
|
+
|
136
|
+
:return: The json_auth_file of this RetryTaskGroupReq.
|
137
|
+
:rtype: str
|
138
|
+
"""
|
139
|
+
return self._json_auth_file
|
140
|
+
|
141
|
+
@json_auth_file.setter
|
142
|
+
def json_auth_file(self, json_auth_file):
|
143
|
+
"""Sets the json_auth_file of this RetryTaskGroupReq.
|
144
|
+
|
145
|
+
用于谷歌云Cloud Storage鉴权
|
146
|
+
|
147
|
+
:param json_auth_file: The json_auth_file of this RetryTaskGroupReq.
|
148
|
+
:type json_auth_file: str
|
149
|
+
"""
|
150
|
+
self._json_auth_file = json_auth_file
|
151
|
+
|
123
152
|
@property
|
124
153
|
def dst_ak(self):
|
125
154
|
"""Gets the dst_ak of this RetryTaskGroupReq.
|