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.
Files changed (27) hide show
  1. huaweicloudsdkoms/v2/model/check_prefix_req.py +33 -4
  2. huaweicloudsdkoms/v2/model/create_sync_task_req.py +30 -1
  3. huaweicloudsdkoms/v2/model/create_task_group_req.py +30 -1
  4. huaweicloudsdkoms/v2/model/create_task_req.py +30 -1
  5. huaweicloudsdkoms/v2/model/list_buckets_req.py +33 -4
  6. huaweicloudsdkoms/v2/model/list_file.py +32 -3
  7. huaweicloudsdkoms/v2/model/retry_task_group_req.py +30 -1
  8. huaweicloudsdkoms/v2/model/show_bucket_region_req.py +33 -4
  9. huaweicloudsdkoms/v2/model/show_bucket_req.py +33 -4
  10. huaweicloudsdkoms/v2/model/show_sync_task_response.py +30 -30
  11. huaweicloudsdkoms/v2/model/show_task_group_response.py +30 -1
  12. huaweicloudsdkoms/v2/model/show_task_response.py +30 -1
  13. huaweicloudsdkoms/v2/model/smn_config.py +35 -6
  14. huaweicloudsdkoms/v2/model/src_node_req.py +33 -4
  15. huaweicloudsdkoms/v2/model/src_node_resp.py +3 -3
  16. huaweicloudsdkoms/v2/model/start_task_group_req.py +30 -1
  17. huaweicloudsdkoms/v2/model/start_task_req.py +30 -1
  18. huaweicloudsdkoms/v2/model/sync_task_info.py +55 -55
  19. huaweicloudsdkoms/v2/model/task_group_resp.py +30 -1
  20. huaweicloudsdkoms/v2/model/task_group_src_node.py +33 -4
  21. huaweicloudsdkoms/v2/model/task_group_src_node_resp.py +3 -3
  22. huaweicloudsdkoms/v2/model/task_resp.py +30 -1
  23. {huaweicloudsdkoms-3.1.79.dist-info → huaweicloudsdkoms-3.1.81.dist-info}/METADATA +2 -2
  24. {huaweicloudsdkoms-3.1.79.dist-info → huaweicloudsdkoms-3.1.81.dist-info}/RECORD +27 -27
  25. {huaweicloudsdkoms-3.1.79.dist-info → huaweicloudsdkoms-3.1.81.dist-info}/LICENSE +0 -0
  26. {huaweicloudsdkoms-3.1.79.dist-info → huaweicloudsdkoms-3.1.81.dist-info}/WHEEL +0 -0
  27. {huaweicloudsdkoms-3.1.79.dist-info → huaweicloudsdkoms-3.1.81.dist-info}/top_level.txt +0 -0
@@ -21,6 +21,7 @@ class SrcNodeReq:
21
21
  'region': 'str',
22
22
  'ak': 'str',
23
23
  'sk': 'str',
24
+ 'json_auth_file': 'str',
24
25
  'security_token': 'str',
25
26
  'app_id': 'str',
26
27
  'bucket': 'str',
@@ -33,6 +34,7 @@ class SrcNodeReq:
33
34
  'region': 'region',
34
35
  'ak': 'ak',
35
36
  'sk': 'sk',
37
+ 'json_auth_file': 'json_auth_file',
36
38
  'security_token': 'security_token',
37
39
  'app_id': 'app_id',
38
40
  'bucket': 'bucket',
@@ -40,12 +42,12 @@ class SrcNodeReq:
40
42
  'list_file': 'list_file'
41
43
  }
42
44
 
43
- def __init__(self, cloud_type=None, region=None, ak=None, sk=None, security_token=None, app_id=None, bucket=None, object_key=None, list_file=None):
45
+ def __init__(self, cloud_type=None, region=None, ak=None, sk=None, json_auth_file=None, security_token=None, app_id=None, bucket=None, object_key=None, list_file=None):
44
46
  """SrcNodeReq
45
47
 
46
48
  The model defined in huaweicloud sdk
47
49
 
48
- :param cloud_type: 源端云服务提供商,task_type为非url_list时,本参数为URLSource且必选。 可选值有AWS、Azure、Aliyun、Tencent、HuaweiCloud、QingCloud、KingsoftCloud、Baidu、Qiniu、URLSource或者UCloud。默认值为Aliyun。
50
+ :param cloud_type: 源端云服务提供商,task_type为非url_list时,本参数为URLSource 可选值有AWS、Azure、Aliyun、Tencent、HuaweiCloud、QingCloud、KingsoftCloud、Baidu、Qiniu、Google、URLSource或者UCloud。默认值为Aliyun。
49
51
  :type cloud_type: str
50
52
  :param region: 源端桶所处的区域,task_type为非url_list时,本参数为必选。
51
53
  :type region: str
@@ -53,6 +55,8 @@ class SrcNodeReq:
53
55
  :type ak: str
54
56
  :param sk: 源端桶的SK(最大长度100个字符),task_type为非url_list时,本参数为必选。
55
57
  :type sk: str
58
+ :param json_auth_file: 用于谷歌云Cloud Storage鉴权
59
+ :type json_auth_file: str
56
60
  :param security_token: 源端桶的临时Token(最大长度16384个字符)
57
61
  :type security_token: str
58
62
  :param app_id: 当源端为腾讯云时,需要填写此参数。
@@ -71,6 +75,7 @@ class SrcNodeReq:
71
75
  self._region = None
72
76
  self._ak = None
73
77
  self._sk = None
78
+ self._json_auth_file = None
74
79
  self._security_token = None
75
80
  self._app_id = None
76
81
  self._bucket = None
@@ -86,6 +91,8 @@ class SrcNodeReq:
86
91
  self.ak = ak
87
92
  if sk is not None:
88
93
  self.sk = sk
94
+ if json_auth_file is not None:
95
+ self.json_auth_file = json_auth_file
89
96
  if security_token is not None:
90
97
  self.security_token = security_token
91
98
  if app_id is not None:
@@ -101,7 +108,7 @@ class SrcNodeReq:
101
108
  def cloud_type(self):
102
109
  """Gets the cloud_type of this SrcNodeReq.
103
110
 
104
- 源端云服务提供商,task_type为非url_list时,本参数为URLSource且必选。 可选值有AWS、Azure、Aliyun、Tencent、HuaweiCloud、QingCloud、KingsoftCloud、Baidu、Qiniu、URLSource或者UCloud。默认值为Aliyun。
111
+ 源端云服务提供商,task_type为非url_list时,本参数为URLSource 可选值有AWS、Azure、Aliyun、Tencent、HuaweiCloud、QingCloud、KingsoftCloud、Baidu、Qiniu、Google、URLSource或者UCloud。默认值为Aliyun。
105
112
 
106
113
  :return: The cloud_type of this SrcNodeReq.
107
114
  :rtype: str
@@ -112,7 +119,7 @@ class SrcNodeReq:
112
119
  def cloud_type(self, cloud_type):
113
120
  """Sets the cloud_type of this SrcNodeReq.
114
121
 
115
- 源端云服务提供商,task_type为非url_list时,本参数为URLSource且必选。 可选值有AWS、Azure、Aliyun、Tencent、HuaweiCloud、QingCloud、KingsoftCloud、Baidu、Qiniu、URLSource或者UCloud。默认值为Aliyun。
122
+ 源端云服务提供商,task_type为非url_list时,本参数为URLSource 可选值有AWS、Azure、Aliyun、Tencent、HuaweiCloud、QingCloud、KingsoftCloud、Baidu、Qiniu、Google、URLSource或者UCloud。默认值为Aliyun。
116
123
 
117
124
  :param cloud_type: The cloud_type of this SrcNodeReq.
118
125
  :type cloud_type: str
@@ -185,6 +192,28 @@ class SrcNodeReq:
185
192
  """
186
193
  self._sk = sk
187
194
 
195
+ @property
196
+ def json_auth_file(self):
197
+ """Gets the json_auth_file of this SrcNodeReq.
198
+
199
+ 用于谷歌云Cloud Storage鉴权
200
+
201
+ :return: The json_auth_file of this SrcNodeReq.
202
+ :rtype: str
203
+ """
204
+ return self._json_auth_file
205
+
206
+ @json_auth_file.setter
207
+ def json_auth_file(self, json_auth_file):
208
+ """Sets the json_auth_file of this SrcNodeReq.
209
+
210
+ 用于谷歌云Cloud Storage鉴权
211
+
212
+ :param json_auth_file: The json_auth_file of this SrcNodeReq.
213
+ :type json_auth_file: str
214
+ """
215
+ self._json_auth_file = json_auth_file
216
+
188
217
  @property
189
218
  def security_token(self):
190
219
  """Gets the security_token of this SrcNodeReq.
@@ -41,7 +41,7 @@ class SrcNodeResp:
41
41
 
42
42
  :param bucket: 源端桶的名称。
43
43
  :type bucket: str
44
- :param cloud_type: 源端云服务提供商。 可选值有AWS、Azure、Aliyun、Tencent、HuaweiCloud、QingCloud、KingsoftCloud、Baidu、Qiniu、URLSource或者UCloud。默认值为Aliyun。
44
+ :param cloud_type: 源端云服务提供商。 可选值有AWS、Azure、Aliyun、Tencent、HuaweiCloud、QingCloud、KingsoftCloud、Baidu、Google、Qiniu、URLSource或者UCloud。默认值为Aliyun。
45
45
  :type cloud_type: str
46
46
  :param region: 源端桶所处的区域。
47
47
  :type region: str
@@ -102,7 +102,7 @@ class SrcNodeResp:
102
102
  def cloud_type(self):
103
103
  """Gets the cloud_type of this SrcNodeResp.
104
104
 
105
- 源端云服务提供商。 可选值有AWS、Azure、Aliyun、Tencent、HuaweiCloud、QingCloud、KingsoftCloud、Baidu、Qiniu、URLSource或者UCloud。默认值为Aliyun。
105
+ 源端云服务提供商。 可选值有AWS、Azure、Aliyun、Tencent、HuaweiCloud、QingCloud、KingsoftCloud、Baidu、Google、Qiniu、URLSource或者UCloud。默认值为Aliyun。
106
106
 
107
107
  :return: The cloud_type of this SrcNodeResp.
108
108
  :rtype: str
@@ -113,7 +113,7 @@ class SrcNodeResp:
113
113
  def cloud_type(self, cloud_type):
114
114
  """Sets the cloud_type of this SrcNodeResp.
115
115
 
116
- 源端云服务提供商。 可选值有AWS、Azure、Aliyun、Tencent、HuaweiCloud、QingCloud、KingsoftCloud、Baidu、Qiniu、URLSource或者UCloud。默认值为Aliyun。
116
+ 源端云服务提供商。 可选值有AWS、Azure、Aliyun、Tencent、HuaweiCloud、QingCloud、KingsoftCloud、Baidu、Google、Qiniu、URLSource或者UCloud。默认值为Aliyun。
117
117
 
118
118
  :param cloud_type: The cloud_type of this SrcNodeResp.
119
119
  :type cloud_type: str
@@ -19,6 +19,7 @@ class StartTaskGroupReq:
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'
@@ -27,12 +28,13 @@ class StartTaskGroupReq:
27
28
  attribute_map = {
28
29
  'src_ak': 'src_ak',
29
30
  'src_sk': 'src_sk',
31
+ 'json_auth_file': 'json_auth_file',
30
32
  'dst_ak': 'dst_ak',
31
33
  'dst_sk': 'dst_sk',
32
34
  'source_cdn_authentication_key': 'source_cdn_authentication_key'
33
35
  }
34
36
 
35
- def __init__(self, src_ak=None, src_sk=None, dst_ak=None, dst_sk=None, source_cdn_authentication_key=None):
37
+ def __init__(self, src_ak=None, src_sk=None, json_auth_file=None, dst_ak=None, dst_sk=None, source_cdn_authentication_key=None):
36
38
  """StartTaskGroupReq
37
39
 
38
40
  The model defined in huaweicloud sdk
@@ -41,6 +43,8 @@ class StartTaskGroupReq:
41
43
  :type src_ak: str
42
44
  :param src_sk: 源端节点SK(最大长度100个字符)。URL列表迁移任务不需要填写此参数。
43
45
  :type src_sk: str
46
+ :param json_auth_file: 用于谷歌云Cloud Storage鉴权
47
+ :type json_auth_file: str
44
48
  :param dst_ak: 目的端节点AK(最大长度100个字符)。
45
49
  :type dst_ak: str
46
50
  :param dst_sk: 目的端节点SK(最大长度100个字符)。
@@ -53,6 +57,7 @@ class StartTaskGroupReq:
53
57
 
54
58
  self._src_ak = None
55
59
  self._src_sk = None
60
+ self._json_auth_file = None
56
61
  self._dst_ak = None
57
62
  self._dst_sk = None
58
63
  self._source_cdn_authentication_key = None
@@ -62,6 +67,8 @@ class StartTaskGroupReq:
62
67
  self.src_ak = src_ak
63
68
  if src_sk is not None:
64
69
  self.src_sk = src_sk
70
+ if json_auth_file is not None:
71
+ self.json_auth_file = json_auth_file
65
72
  self.dst_ak = dst_ak
66
73
  self.dst_sk = dst_sk
67
74
  if source_cdn_authentication_key is not None:
@@ -111,6 +118,28 @@ class StartTaskGroupReq:
111
118
  """
112
119
  self._src_sk = src_sk
113
120
 
121
+ @property
122
+ def json_auth_file(self):
123
+ """Gets the json_auth_file of this StartTaskGroupReq.
124
+
125
+ 用于谷歌云Cloud Storage鉴权
126
+
127
+ :return: The json_auth_file of this StartTaskGroupReq.
128
+ :rtype: str
129
+ """
130
+ return self._json_auth_file
131
+
132
+ @json_auth_file.setter
133
+ def json_auth_file(self, json_auth_file):
134
+ """Sets the json_auth_file of this StartTaskGroupReq.
135
+
136
+ 用于谷歌云Cloud Storage鉴权
137
+
138
+ :param json_auth_file: The json_auth_file of this StartTaskGroupReq.
139
+ :type json_auth_file: str
140
+ """
141
+ self._json_auth_file = json_auth_file
142
+
114
143
  @property
115
144
  def dst_ak(self):
116
145
  """Gets the dst_ak of this StartTaskGroupReq.
@@ -19,6 +19,7 @@ class StartTaskReq:
19
19
  openapi_types = {
20
20
  'src_ak': 'str',
21
21
  'src_sk': 'str',
22
+ 'json_auth_file': 'str',
22
23
  'src_security_token': 'str',
23
24
  'dst_ak': 'str',
24
25
  'dst_sk': 'str',
@@ -30,6 +31,7 @@ class StartTaskReq:
30
31
  attribute_map = {
31
32
  'src_ak': 'src_ak',
32
33
  'src_sk': 'src_sk',
34
+ 'json_auth_file': 'json_auth_file',
33
35
  'src_security_token': 'src_security_token',
34
36
  'dst_ak': 'dst_ak',
35
37
  'dst_sk': 'dst_sk',
@@ -38,7 +40,7 @@ class StartTaskReq:
38
40
  'migrate_failed_object': 'migrate_failed_object'
39
41
  }
40
42
 
41
- def __init__(self, src_ak=None, src_sk=None, src_security_token=None, dst_ak=None, dst_sk=None, dst_security_token=None, source_cdn_authentication_key=None, migrate_failed_object=None):
43
+ def __init__(self, src_ak=None, src_sk=None, json_auth_file=None, src_security_token=None, dst_ak=None, dst_sk=None, dst_security_token=None, source_cdn_authentication_key=None, migrate_failed_object=None):
42
44
  """StartTaskReq
43
45
 
44
46
  The model defined in huaweicloud sdk
@@ -47,6 +49,8 @@ class StartTaskReq:
47
49
  :type src_ak: str
48
50
  :param src_sk: 源端节点SK(最大长度100个字符)。URL列表迁移任务不需要填写此参数。
49
51
  :type src_sk: str
52
+ :param json_auth_file: 用于谷歌云Cloud Storage鉴权
53
+ :type json_auth_file: str
50
54
  :param src_security_token: 源端节点临时Token
51
55
  :type src_security_token: str
52
56
  :param dst_ak: 目的端节点AK(最大长度100个字符)。
@@ -65,6 +69,7 @@ class StartTaskReq:
65
69
 
66
70
  self._src_ak = None
67
71
  self._src_sk = None
72
+ self._json_auth_file = None
68
73
  self._src_security_token = None
69
74
  self._dst_ak = None
70
75
  self._dst_sk = None
@@ -77,6 +82,8 @@ class StartTaskReq:
77
82
  self.src_ak = src_ak
78
83
  if src_sk is not None:
79
84
  self.src_sk = src_sk
85
+ if json_auth_file is not None:
86
+ self.json_auth_file = json_auth_file
80
87
  if src_security_token is not None:
81
88
  self.src_security_token = src_security_token
82
89
  self.dst_ak = dst_ak
@@ -132,6 +139,28 @@ class StartTaskReq:
132
139
  """
133
140
  self._src_sk = src_sk
134
141
 
142
+ @property
143
+ def json_auth_file(self):
144
+ """Gets the json_auth_file of this StartTaskReq.
145
+
146
+ 用于谷歌云Cloud Storage鉴权
147
+
148
+ :return: The json_auth_file of this StartTaskReq.
149
+ :rtype: str
150
+ """
151
+ return self._json_auth_file
152
+
153
+ @json_auth_file.setter
154
+ def json_auth_file(self, json_auth_file):
155
+ """Sets the json_auth_file of this StartTaskReq.
156
+
157
+ 用于谷歌云Cloud Storage鉴权
158
+
159
+ :param json_auth_file: The json_auth_file of this StartTaskReq.
160
+ :type json_auth_file: str
161
+ """
162
+ self._json_auth_file = json_auth_file
163
+
135
164
  @property
136
165
  def src_security_token(self):
137
166
  """Gets the src_security_token of this StartTaskReq.
@@ -30,10 +30,10 @@ class SyncTaskInfo:
30
30
  'enable_kms': 'bool',
31
31
  'enable_metadata_migration': 'bool',
32
32
  'enable_restore': 'bool',
33
- 'app_id': 'str',
34
- 'source_cdn': 'SourceCdnResp',
35
33
  'object_overwrite_mode': 'str',
36
34
  'dst_storage_policy': 'str',
35
+ 'app_id': 'str',
36
+ 'source_cdn': 'SourceCdnResp',
37
37
  'consistency_check': 'str'
38
38
  }
39
39
 
@@ -51,14 +51,14 @@ class SyncTaskInfo:
51
51
  'enable_kms': 'enable_kms',
52
52
  'enable_metadata_migration': 'enable_metadata_migration',
53
53
  'enable_restore': 'enable_restore',
54
- 'app_id': 'app_id',
55
- 'source_cdn': 'source_cdn',
56
54
  'object_overwrite_mode': 'object_overwrite_mode',
57
55
  'dst_storage_policy': 'dst_storage_policy',
56
+ 'app_id': 'app_id',
57
+ 'source_cdn': 'source_cdn',
58
58
  'consistency_check': 'consistency_check'
59
59
  }
60
60
 
61
- 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, app_id=None, source_cdn=None, object_overwrite_mode=None, dst_storage_policy=None, consistency_check=None):
61
+ 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, object_overwrite_mode=None, dst_storage_policy=None, app_id=None, source_cdn=None, consistency_check=None):
62
62
  """SyncTaskInfo
63
63
 
64
64
  The model defined in huaweicloud sdk
@@ -89,14 +89,14 @@ class SyncTaskInfo:
89
89
  :type enable_metadata_migration: bool
90
90
  :param enable_restore: 是否自动解冻归档数据,默认否。 开启后,如果遇到归档类型数据,会自动解冻再进行迁移。
91
91
  :type enable_restore: bool
92
- :param app_id: 当源端为腾讯云时,需要填写此参数。
93
- :type app_id: str
94
- :param source_cdn:
95
- :type source_cdn: :class:`huaweicloudsdkoms.v2.SourceCdnResp`
96
92
  :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:全覆盖。迁移前源端对象与目的端对象同名时,不做对比覆盖目的端。
97
93
  :type object_overwrite_mode: str
98
94
  :param dst_storage_policy: 目的端存储类型设置,当且仅当目的端为华为云OBS时需要,默认为标准存储 STANDARD:华为云OBS标准存储 IA:华为云OBS低频存储 ARCHIVE:华为云OBS归档存储 DEEP_ARCHIVE:华为云OBS深度归档存储 SRC_STORAGE_MAPPING:保留源端存储类型,将源端存储类型映射为华为云OBS存储类型
99
95
  :type dst_storage_policy: str
96
+ :param app_id: 当源端为腾讯云时,需要填写此参数。
97
+ :type app_id: str
98
+ :param source_cdn:
99
+ :type source_cdn: :class:`huaweicloudsdkoms.v2.SourceCdnResp`
100
100
  :param consistency_check: 迁移后对象一致性校验方式,用于迁移后校验对象是否一致,所有校验方式需满足源端/目的端对象的加密状态一致,具体校验方式和校验结果可通过对象列表查看。默认size_last_modified。 size_last_modified:默认配置。迁移后,通过对比源端和目的端对象大小和最后修改时间,判断对象迁移后数据是否完整。源端与目的端同名对象大小相同,且目的端对象的最后修改时间不早于源端对象的最后修改时间,则代表该对象迁移成功。 crc64:目前仅支持华为/阿里/腾讯。迁移后,通过对比源端和目的端对象元数据中CRC64值是否相同,判断对象是否迁移完成。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用大小/最后修改时间校验方式来校验。 no_check:目前仅支持HTTP/HTTPS数据源。当源端对象无法通过标准http协议中content-length字段获取数据大小时,默认数据下载成功即迁移成功,不对数据做额外校验。当源端对象能正常通过标准http协议中content-length字段获取数据大小时,则采用大小/最后修改时间校验方式来校验。
101
101
  :type consistency_check: str
102
102
  """
@@ -116,10 +116,10 @@ class SyncTaskInfo:
116
116
  self._enable_kms = None
117
117
  self._enable_metadata_migration = None
118
118
  self._enable_restore = None
119
- self._app_id = None
120
- self._source_cdn = None
121
119
  self._object_overwrite_mode = None
122
120
  self._dst_storage_policy = None
121
+ self._app_id = None
122
+ self._source_cdn = None
123
123
  self._consistency_check = None
124
124
  self.discriminator = None
125
125
 
@@ -149,14 +149,14 @@ class SyncTaskInfo:
149
149
  self.enable_metadata_migration = enable_metadata_migration
150
150
  if enable_restore is not None:
151
151
  self.enable_restore = enable_restore
152
- if app_id is not None:
153
- self.app_id = app_id
154
- if source_cdn is not None:
155
- self.source_cdn = source_cdn
156
152
  if object_overwrite_mode is not None:
157
153
  self.object_overwrite_mode = object_overwrite_mode
158
154
  if dst_storage_policy is not None:
159
155
  self.dst_storage_policy = dst_storage_policy
156
+ if app_id is not None:
157
+ self.app_id = app_id
158
+ if source_cdn is not None:
159
+ self.source_cdn = source_cdn
160
160
  if consistency_check is not None:
161
161
  self.consistency_check = consistency_check
162
162
 
@@ -446,46 +446,6 @@ class SyncTaskInfo:
446
446
  """
447
447
  self._enable_restore = enable_restore
448
448
 
449
- @property
450
- def app_id(self):
451
- """Gets the app_id of this SyncTaskInfo.
452
-
453
- 当源端为腾讯云时,需要填写此参数。
454
-
455
- :return: The app_id of this SyncTaskInfo.
456
- :rtype: str
457
- """
458
- return self._app_id
459
-
460
- @app_id.setter
461
- def app_id(self, app_id):
462
- """Sets the app_id of this SyncTaskInfo.
463
-
464
- 当源端为腾讯云时,需要填写此参数。
465
-
466
- :param app_id: The app_id of this SyncTaskInfo.
467
- :type app_id: str
468
- """
469
- self._app_id = app_id
470
-
471
- @property
472
- def source_cdn(self):
473
- """Gets the source_cdn of this SyncTaskInfo.
474
-
475
- :return: The source_cdn of this SyncTaskInfo.
476
- :rtype: :class:`huaweicloudsdkoms.v2.SourceCdnResp`
477
- """
478
- return self._source_cdn
479
-
480
- @source_cdn.setter
481
- def source_cdn(self, source_cdn):
482
- """Sets the source_cdn of this SyncTaskInfo.
483
-
484
- :param source_cdn: The source_cdn of this SyncTaskInfo.
485
- :type source_cdn: :class:`huaweicloudsdkoms.v2.SourceCdnResp`
486
- """
487
- self._source_cdn = source_cdn
488
-
489
449
  @property
490
450
  def object_overwrite_mode(self):
491
451
  """Gets the object_overwrite_mode of this SyncTaskInfo.
@@ -530,6 +490,46 @@ class SyncTaskInfo:
530
490
  """
531
491
  self._dst_storage_policy = dst_storage_policy
532
492
 
493
+ @property
494
+ def app_id(self):
495
+ """Gets the app_id of this SyncTaskInfo.
496
+
497
+ 当源端为腾讯云时,需要填写此参数。
498
+
499
+ :return: The app_id of this SyncTaskInfo.
500
+ :rtype: str
501
+ """
502
+ return self._app_id
503
+
504
+ @app_id.setter
505
+ def app_id(self, app_id):
506
+ """Sets the app_id of this SyncTaskInfo.
507
+
508
+ 当源端为腾讯云时,需要填写此参数。
509
+
510
+ :param app_id: The app_id of this SyncTaskInfo.
511
+ :type app_id: str
512
+ """
513
+ self._app_id = app_id
514
+
515
+ @property
516
+ def source_cdn(self):
517
+ """Gets the source_cdn of this SyncTaskInfo.
518
+
519
+ :return: The source_cdn of this SyncTaskInfo.
520
+ :rtype: :class:`huaweicloudsdkoms.v2.SourceCdnResp`
521
+ """
522
+ return self._source_cdn
523
+
524
+ @source_cdn.setter
525
+ def source_cdn(self, source_cdn):
526
+ """Sets the source_cdn of this SyncTaskInfo.
527
+
528
+ :param source_cdn: The source_cdn of this SyncTaskInfo.
529
+ :type source_cdn: :class:`huaweicloudsdkoms.v2.SourceCdnResp`
530
+ """
531
+ self._source_cdn = source_cdn
532
+
533
533
  @property
534
534
  def consistency_check(self):
535
535
  """Gets the consistency_check of this SyncTaskInfo.
@@ -52,6 +52,7 @@ class TaskGroupResp:
52
52
  'complete_size': 'int',
53
53
  'failed_object_record': 'FailedObjectRecordDto',
54
54
  'object_overwrite_mode': 'str',
55
+ 'dst_storage_policy': 'str',
55
56
  'consistency_check': 'str',
56
57
  'enable_requester_pays': 'bool'
57
58
  }
@@ -92,11 +93,12 @@ class TaskGroupResp:
92
93
  'complete_size': 'complete_size',
93
94
  'failed_object_record': 'failed_object_record',
94
95
  'object_overwrite_mode': 'object_overwrite_mode',
96
+ 'dst_storage_policy': 'dst_storage_policy',
95
97
  'consistency_check': 'consistency_check',
96
98
  'enable_requester_pays': 'enable_requester_pays'
97
99
  }
98
100
 
99
- def __init__(self, group_id=None, status=None, error_reason=None, 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, migrate_speed=None, total_time=None, start_time=None, total_task_num=None, create_task_num=None, failed_task_num=None, complete_task_num=None, paused_task_num=None, executing_task_num=None, waiting_task_num=None, total_num=None, create_complete_num=None, success_num=None, fail_num=None, skip_num=None, total_size=None, create_complete_size=None, complete_size=None, failed_object_record=None, object_overwrite_mode=None, consistency_check=None, enable_requester_pays=None):
101
+ def __init__(self, group_id=None, status=None, error_reason=None, 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, migrate_speed=None, total_time=None, start_time=None, total_task_num=None, create_task_num=None, failed_task_num=None, complete_task_num=None, paused_task_num=None, executing_task_num=None, waiting_task_num=None, total_num=None, create_complete_num=None, success_num=None, fail_num=None, skip_num=None, total_size=None, create_complete_size=None, complete_size=None, failed_object_record=None, object_overwrite_mode=None, dst_storage_policy=None, consistency_check=None, enable_requester_pays=None):
100
102
  """TaskGroupResp
101
103
 
102
104
  The model defined in huaweicloud sdk
@@ -171,6 +173,8 @@ class TaskGroupResp:
171
173
  :type failed_object_record: :class:`huaweicloudsdkoms.v2.FailedObjectRecordDto`
172
174
  :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:全覆盖。迁移前源端对象与目的端对象同名时,不做对比覆盖目的端。
173
175
  :type object_overwrite_mode: str
176
+ :param dst_storage_policy: 目的端存储类型设置,当且仅当目的端为华为云OBS时需要,默认为标准存储 STANDARD:华为云OBS标准存储 IA:华为云OBS低频存储 ARCHIVE:华为云OBS归档存储 DEEP_ARCHIVE:华为云OBS深度归档存储 SRC_STORAGE_MAPPING:保留源端存储类型,将源端存储类型映射为华为云OBS存储类型
177
+ :type dst_storage_policy: str
174
178
  :param consistency_check: 一致性校验方式,用于迁移前/后校验对象是否一致,所有校验方式需满足源端/目的端对象的加密状态一致,具体校验方式和校验结果可通过对象列表查看。默认size_last_modified。 size_last_modified:默认配置。迁移前后,通过对比源端和目的端对象大小+最后修改时间,判断对象是否已存在或迁移后数据是否完整。源端与目的端同名对象大小相同,且目的端对象的最后修改时间不早于源端对象的最后修改时间,则代表该对象已存在/迁移成功。 crc64:目前仅支持华为/阿里/腾讯。迁移前后,通过对比源端和目的端对象元数据中CRC64值是否相同,判断对象是否已存在/迁移完成。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用大小/最后修改时间校验方式来校验。 no_check:目前仅支持HTTP/HTTPS数据源。当源端对象无法通过标准http协议中content-length字段获取数据大小时,默认数据下载成功即迁移成功,不对数据做额外校验,且迁移时源端对象默认覆盖目的端同名对象。当源端对象能正常通过标准http协议中content-length字段获取数据大小时,则采用大小/最后修改时间校验方式来校验。
175
179
  :type consistency_check: str
176
180
  :param enable_requester_pays: 是否开启请求者付款,在启用后,请求者支付请求和数据传输费用。
@@ -214,6 +218,7 @@ class TaskGroupResp:
214
218
  self._complete_size = None
215
219
  self._failed_object_record = None
216
220
  self._object_overwrite_mode = None
221
+ self._dst_storage_policy = None
217
222
  self._consistency_check = None
218
223
  self._enable_requester_pays = None
219
224
  self.discriminator = None
@@ -288,6 +293,8 @@ class TaskGroupResp:
288
293
  self.failed_object_record = failed_object_record
289
294
  if object_overwrite_mode is not None:
290
295
  self.object_overwrite_mode = object_overwrite_mode
296
+ if dst_storage_policy is not None:
297
+ self.dst_storage_policy = dst_storage_policy
291
298
  if consistency_check is not None:
292
299
  self.consistency_check = consistency_check
293
300
  if enable_requester_pays is not None:
@@ -1039,6 +1046,28 @@ class TaskGroupResp:
1039
1046
  """
1040
1047
  self._object_overwrite_mode = object_overwrite_mode
1041
1048
 
1049
+ @property
1050
+ def dst_storage_policy(self):
1051
+ """Gets the dst_storage_policy of this TaskGroupResp.
1052
+
1053
+ 目的端存储类型设置,当且仅当目的端为华为云OBS时需要,默认为标准存储 STANDARD:华为云OBS标准存储 IA:华为云OBS低频存储 ARCHIVE:华为云OBS归档存储 DEEP_ARCHIVE:华为云OBS深度归档存储 SRC_STORAGE_MAPPING:保留源端存储类型,将源端存储类型映射为华为云OBS存储类型
1054
+
1055
+ :return: The dst_storage_policy of this TaskGroupResp.
1056
+ :rtype: str
1057
+ """
1058
+ return self._dst_storage_policy
1059
+
1060
+ @dst_storage_policy.setter
1061
+ def dst_storage_policy(self, dst_storage_policy):
1062
+ """Sets the dst_storage_policy of this TaskGroupResp.
1063
+
1064
+ 目的端存储类型设置,当且仅当目的端为华为云OBS时需要,默认为标准存储 STANDARD:华为云OBS标准存储 IA:华为云OBS低频存储 ARCHIVE:华为云OBS归档存储 DEEP_ARCHIVE:华为云OBS深度归档存储 SRC_STORAGE_MAPPING:保留源端存储类型,将源端存储类型映射为华为云OBS存储类型
1065
+
1066
+ :param dst_storage_policy: The dst_storage_policy of this TaskGroupResp.
1067
+ :type dst_storage_policy: str
1068
+ """
1069
+ self._dst_storage_policy = dst_storage_policy
1070
+
1042
1071
  @property
1043
1072
  def consistency_check(self):
1044
1073
  """Gets the consistency_check of this TaskGroupResp.
@@ -19,6 +19,7 @@ class TaskGroupSrcNode:
19
19
  openapi_types = {
20
20
  'ak': 'str',
21
21
  'sk': 'str',
22
+ 'json_auth_file': 'str',
22
23
  'app_id': 'str',
23
24
  'region': 'str',
24
25
  'object_key': 'list[str]',
@@ -30,6 +31,7 @@ class TaskGroupSrcNode:
30
31
  attribute_map = {
31
32
  'ak': 'ak',
32
33
  'sk': 'sk',
34
+ 'json_auth_file': 'json_auth_file',
33
35
  'app_id': 'app_id',
34
36
  'region': 'region',
35
37
  'object_key': 'object_key',
@@ -38,7 +40,7 @@ class TaskGroupSrcNode:
38
40
  'list_file': 'list_file'
39
41
  }
40
42
 
41
- def __init__(self, ak=None, sk=None, app_id=None, region=None, object_key=None, bucket=None, cloud_type=None, list_file=None):
43
+ def __init__(self, ak=None, sk=None, json_auth_file=None, app_id=None, region=None, object_key=None, bucket=None, cloud_type=None, list_file=None):
42
44
  """TaskGroupSrcNode
43
45
 
44
46
  The model defined in huaweicloud sdk
@@ -47,6 +49,8 @@ class TaskGroupSrcNode:
47
49
  :type ak: str
48
50
  :param sk: 源端桶的SK(最大长度100个字符),task_type为非url_list时,本参数为必选。
49
51
  :type sk: str
52
+ :param json_auth_file: 用于谷歌云Cloud Storage鉴权
53
+ :type json_auth_file: str
50
54
  :param app_id: 当源端为腾讯云时,需要填写此参数。
51
55
  :type app_id: str
52
56
  :param region: 源端桶所处的区域,task_type为非URL_LIST时,本参数为必选。
@@ -55,7 +59,7 @@ class TaskGroupSrcNode:
55
59
  :type object_key: list[str]
56
60
  :param bucket: 源端所在桶
57
61
  :type bucket: str
58
- :param cloud_type: 源端云服务提供商,当task_type为URL_LIST时,本参数为URLSource且必选。可选值有AWS、Azure、Aliyun、Tencent、HuaweiCloud、QingCloud、KingsoftCloud、Baidu、Qiniu、URLSource或者UCloud。默认值为Aliyun。
62
+ :param cloud_type: 源端云服务提供商,当task_type为URL_LIST时,本参数为URLSource且必选。可选值有AWS、Azure、Aliyun、Tencent、HuaweiCloud、QingCloud、KingsoftCloud、Baidu、Qiniu、URLSource、Google或者UCloud。默认值为Aliyun。
59
63
  :type cloud_type: str
60
64
  :param list_file:
61
65
  :type list_file: :class:`huaweicloudsdkoms.v2.ListFile`
@@ -65,6 +69,7 @@ class TaskGroupSrcNode:
65
69
 
66
70
  self._ak = None
67
71
  self._sk = None
72
+ self._json_auth_file = None
68
73
  self._app_id = None
69
74
  self._region = None
70
75
  self._object_key = None
@@ -77,6 +82,8 @@ class TaskGroupSrcNode:
77
82
  self.ak = ak
78
83
  if sk is not None:
79
84
  self.sk = sk
85
+ if json_auth_file is not None:
86
+ self.json_auth_file = json_auth_file
80
87
  if app_id is not None:
81
88
  self.app_id = app_id
82
89
  if region is not None:
@@ -134,6 +141,28 @@ class TaskGroupSrcNode:
134
141
  """
135
142
  self._sk = sk
136
143
 
144
+ @property
145
+ def json_auth_file(self):
146
+ """Gets the json_auth_file of this TaskGroupSrcNode.
147
+
148
+ 用于谷歌云Cloud Storage鉴权
149
+
150
+ :return: The json_auth_file of this TaskGroupSrcNode.
151
+ :rtype: str
152
+ """
153
+ return self._json_auth_file
154
+
155
+ @json_auth_file.setter
156
+ def json_auth_file(self, json_auth_file):
157
+ """Sets the json_auth_file of this TaskGroupSrcNode.
158
+
159
+ 用于谷歌云Cloud Storage鉴权
160
+
161
+ :param json_auth_file: The json_auth_file of this TaskGroupSrcNode.
162
+ :type json_auth_file: str
163
+ """
164
+ self._json_auth_file = json_auth_file
165
+
137
166
  @property
138
167
  def app_id(self):
139
168
  """Gets the app_id of this TaskGroupSrcNode.
@@ -226,7 +255,7 @@ class TaskGroupSrcNode:
226
255
  def cloud_type(self):
227
256
  """Gets the cloud_type of this TaskGroupSrcNode.
228
257
 
229
- 源端云服务提供商,当task_type为URL_LIST时,本参数为URLSource且必选。可选值有AWS、Azure、Aliyun、Tencent、HuaweiCloud、QingCloud、KingsoftCloud、Baidu、Qiniu、URLSource或者UCloud。默认值为Aliyun。
258
+ 源端云服务提供商,当task_type为URL_LIST时,本参数为URLSource且必选。可选值有AWS、Azure、Aliyun、Tencent、HuaweiCloud、QingCloud、KingsoftCloud、Baidu、Qiniu、URLSource、Google或者UCloud。默认值为Aliyun。
230
259
 
231
260
  :return: The cloud_type of this TaskGroupSrcNode.
232
261
  :rtype: str
@@ -237,7 +266,7 @@ class TaskGroupSrcNode:
237
266
  def cloud_type(self, cloud_type):
238
267
  """Sets the cloud_type of this TaskGroupSrcNode.
239
268
 
240
- 源端云服务提供商,当task_type为URL_LIST时,本参数为URLSource且必选。可选值有AWS、Azure、Aliyun、Tencent、HuaweiCloud、QingCloud、KingsoftCloud、Baidu、Qiniu、URLSource或者UCloud。默认值为Aliyun。
269
+ 源端云服务提供商,当task_type为URL_LIST时,本参数为URLSource且必选。可选值有AWS、Azure、Aliyun、Tencent、HuaweiCloud、QingCloud、KingsoftCloud、Baidu、Qiniu、URLSource、Google或者UCloud。默认值为Aliyun。
241
270
 
242
271
  :param cloud_type: The cloud_type of this TaskGroupSrcNode.
243
272
  :type cloud_type: str