huaweicloudsdkoms 3.1.69__py2.py3-none-any.whl → 3.1.72__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.
@@ -6,6 +6,9 @@ from huaweicloudsdkoms.v2.oms_client import OmsClient
6
6
  from huaweicloudsdkoms.v2.oms_async_client import OmsAsyncClient
7
7
 
8
8
  from huaweicloudsdkoms.v2.model.bandwidth_policy_dto import BandwidthPolicyDto
9
+ from huaweicloudsdkoms.v2.model.batch_update_tasks_req import BatchUpdateTasksReq
10
+ from huaweicloudsdkoms.v2.model.batch_update_tasks_request import BatchUpdateTasksRequest
11
+ from huaweicloudsdkoms.v2.model.batch_update_tasks_response import BatchUpdateTasksResponse
9
12
  from huaweicloudsdkoms.v2.model.check_prefix_req import CheckPrefixReq
10
13
  from huaweicloudsdkoms.v2.model.check_prefix_request import CheckPrefixRequest
11
14
  from huaweicloudsdkoms.v2.model.check_prefix_response import CheckPrefixResponse
@@ -4,6 +4,9 @@ from __future__ import absolute_import
4
4
 
5
5
  # import models into model package
6
6
  from huaweicloudsdkoms.v2.model.bandwidth_policy_dto import BandwidthPolicyDto
7
+ from huaweicloudsdkoms.v2.model.batch_update_tasks_req import BatchUpdateTasksReq
8
+ from huaweicloudsdkoms.v2.model.batch_update_tasks_request import BatchUpdateTasksRequest
9
+ from huaweicloudsdkoms.v2.model.batch_update_tasks_response import BatchUpdateTasksResponse
7
10
  from huaweicloudsdkoms.v2.model.check_prefix_req import CheckPrefixReq
8
11
  from huaweicloudsdkoms.v2.model.check_prefix_request import CheckPrefixRequest
9
12
  from huaweicloudsdkoms.v2.model.check_prefix_response import CheckPrefixResponse
@@ -0,0 +1,201 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class BatchUpdateTasksReq:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'group_id': 'str',
21
+ 'ids': 'list[int]',
22
+ 'bandwidth_policy': 'list[BandwidthPolicyDto]',
23
+ 'task_priority': 'str'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'group_id': 'group_id',
28
+ 'ids': 'ids',
29
+ 'bandwidth_policy': 'bandwidth_policy',
30
+ 'task_priority': 'task_priority'
31
+ }
32
+
33
+ def __init__(self, group_id=None, ids=None, bandwidth_policy=None, task_priority=None):
34
+ """BatchUpdateTasksReq
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param group_id: 迁移任务组ID,表示批量更新该任务组下所有任务。 group_id和ids为二选一参数,不可同时存在或同时缺失。
39
+ :type group_id: str
40
+ :param ids: 迁移任务id数组,包含所有需要批量更新操作的任务id。 group_id和ids为二选一参数,不可同时存在或同时缺失。
41
+ :type ids: list[int]
42
+ :param bandwidth_policy: 配置流量控制策略。数组中一个元素对应一个时段的最大带宽,最多允许5个时段,且时段不能重叠。
43
+ :type bandwidth_policy: list[:class:`huaweicloudsdkoms.v2.BandwidthPolicyDto`]
44
+ :param task_priority: 任务优先级配置,存在高中低三个优先级档次,限制仅在等待中、已暂停、已失败的任务进行修改 HIGH:高优先级 MEDIUM:中优先级 LOW:低优先级
45
+ :type task_priority: str
46
+ """
47
+
48
+
49
+
50
+ self._group_id = None
51
+ self._ids = None
52
+ self._bandwidth_policy = None
53
+ self._task_priority = None
54
+ self.discriminator = None
55
+
56
+ if group_id is not None:
57
+ self.group_id = group_id
58
+ if ids is not None:
59
+ self.ids = ids
60
+ self.bandwidth_policy = bandwidth_policy
61
+ if task_priority is not None:
62
+ self.task_priority = task_priority
63
+
64
+ @property
65
+ def group_id(self):
66
+ """Gets the group_id of this BatchUpdateTasksReq.
67
+
68
+ 迁移任务组ID,表示批量更新该任务组下所有任务。 group_id和ids为二选一参数,不可同时存在或同时缺失。
69
+
70
+ :return: The group_id of this BatchUpdateTasksReq.
71
+ :rtype: str
72
+ """
73
+ return self._group_id
74
+
75
+ @group_id.setter
76
+ def group_id(self, group_id):
77
+ """Sets the group_id of this BatchUpdateTasksReq.
78
+
79
+ 迁移任务组ID,表示批量更新该任务组下所有任务。 group_id和ids为二选一参数,不可同时存在或同时缺失。
80
+
81
+ :param group_id: The group_id of this BatchUpdateTasksReq.
82
+ :type group_id: str
83
+ """
84
+ self._group_id = group_id
85
+
86
+ @property
87
+ def ids(self):
88
+ """Gets the ids of this BatchUpdateTasksReq.
89
+
90
+ 迁移任务id数组,包含所有需要批量更新操作的任务id。 group_id和ids为二选一参数,不可同时存在或同时缺失。
91
+
92
+ :return: The ids of this BatchUpdateTasksReq.
93
+ :rtype: list[int]
94
+ """
95
+ return self._ids
96
+
97
+ @ids.setter
98
+ def ids(self, ids):
99
+ """Sets the ids of this BatchUpdateTasksReq.
100
+
101
+ 迁移任务id数组,包含所有需要批量更新操作的任务id。 group_id和ids为二选一参数,不可同时存在或同时缺失。
102
+
103
+ :param ids: The ids of this BatchUpdateTasksReq.
104
+ :type ids: list[int]
105
+ """
106
+ self._ids = ids
107
+
108
+ @property
109
+ def bandwidth_policy(self):
110
+ """Gets the bandwidth_policy of this BatchUpdateTasksReq.
111
+
112
+ 配置流量控制策略。数组中一个元素对应一个时段的最大带宽,最多允许5个时段,且时段不能重叠。
113
+
114
+ :return: The bandwidth_policy of this BatchUpdateTasksReq.
115
+ :rtype: list[:class:`huaweicloudsdkoms.v2.BandwidthPolicyDto`]
116
+ """
117
+ return self._bandwidth_policy
118
+
119
+ @bandwidth_policy.setter
120
+ def bandwidth_policy(self, bandwidth_policy):
121
+ """Sets the bandwidth_policy of this BatchUpdateTasksReq.
122
+
123
+ 配置流量控制策略。数组中一个元素对应一个时段的最大带宽,最多允许5个时段,且时段不能重叠。
124
+
125
+ :param bandwidth_policy: The bandwidth_policy of this BatchUpdateTasksReq.
126
+ :type bandwidth_policy: list[:class:`huaweicloudsdkoms.v2.BandwidthPolicyDto`]
127
+ """
128
+ self._bandwidth_policy = bandwidth_policy
129
+
130
+ @property
131
+ def task_priority(self):
132
+ """Gets the task_priority of this BatchUpdateTasksReq.
133
+
134
+ 任务优先级配置,存在高中低三个优先级档次,限制仅在等待中、已暂停、已失败的任务进行修改 HIGH:高优先级 MEDIUM:中优先级 LOW:低优先级
135
+
136
+ :return: The task_priority of this BatchUpdateTasksReq.
137
+ :rtype: str
138
+ """
139
+ return self._task_priority
140
+
141
+ @task_priority.setter
142
+ def task_priority(self, task_priority):
143
+ """Sets the task_priority of this BatchUpdateTasksReq.
144
+
145
+ 任务优先级配置,存在高中低三个优先级档次,限制仅在等待中、已暂停、已失败的任务进行修改 HIGH:高优先级 MEDIUM:中优先级 LOW:低优先级
146
+
147
+ :param task_priority: The task_priority of this BatchUpdateTasksReq.
148
+ :type task_priority: str
149
+ """
150
+ self._task_priority = task_priority
151
+
152
+ def to_dict(self):
153
+ """Returns the model properties as a dict"""
154
+ result = {}
155
+
156
+ for attr, _ in six.iteritems(self.openapi_types):
157
+ value = getattr(self, attr)
158
+ if isinstance(value, list):
159
+ result[attr] = list(map(
160
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
161
+ value
162
+ ))
163
+ elif hasattr(value, "to_dict"):
164
+ result[attr] = value.to_dict()
165
+ elif isinstance(value, dict):
166
+ result[attr] = dict(map(
167
+ lambda item: (item[0], item[1].to_dict())
168
+ if hasattr(item[1], "to_dict") else item,
169
+ value.items()
170
+ ))
171
+ else:
172
+ if attr in self.sensitive_list:
173
+ result[attr] = "****"
174
+ else:
175
+ result[attr] = value
176
+
177
+ return result
178
+
179
+ def to_str(self):
180
+ """Returns the string representation of the model"""
181
+ import simplejson as json
182
+ if six.PY2:
183
+ import sys
184
+ reload(sys)
185
+ sys.setdefaultencoding("utf-8")
186
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
187
+
188
+ def __repr__(self):
189
+ """For `print`"""
190
+ return self.to_str()
191
+
192
+ def __eq__(self, other):
193
+ """Returns true if both objects are equal"""
194
+ if not isinstance(other, BatchUpdateTasksReq):
195
+ return False
196
+
197
+ return self.__dict__ == other.__dict__
198
+
199
+ def __ne__(self, other):
200
+ """Returns true if both objects are not equal"""
201
+ return not self == other
@@ -0,0 +1,111 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class BatchUpdateTasksRequest:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'body': 'BatchUpdateTasksReq'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'body': 'body'
25
+ }
26
+
27
+ def __init__(self, body=None):
28
+ """BatchUpdateTasksRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param body: Body of the BatchUpdateTasksRequest
33
+ :type body: :class:`huaweicloudsdkoms.v2.BatchUpdateTasksReq`
34
+ """
35
+
36
+
37
+
38
+ self._body = None
39
+ self.discriminator = None
40
+
41
+ if body is not None:
42
+ self.body = body
43
+
44
+ @property
45
+ def body(self):
46
+ """Gets the body of this BatchUpdateTasksRequest.
47
+
48
+ :return: The body of this BatchUpdateTasksRequest.
49
+ :rtype: :class:`huaweicloudsdkoms.v2.BatchUpdateTasksReq`
50
+ """
51
+ return self._body
52
+
53
+ @body.setter
54
+ def body(self, body):
55
+ """Sets the body of this BatchUpdateTasksRequest.
56
+
57
+ :param body: The body of this BatchUpdateTasksRequest.
58
+ :type body: :class:`huaweicloudsdkoms.v2.BatchUpdateTasksReq`
59
+ """
60
+ self._body = body
61
+
62
+ def to_dict(self):
63
+ """Returns the model properties as a dict"""
64
+ result = {}
65
+
66
+ for attr, _ in six.iteritems(self.openapi_types):
67
+ value = getattr(self, attr)
68
+ if isinstance(value, list):
69
+ result[attr] = list(map(
70
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
71
+ value
72
+ ))
73
+ elif hasattr(value, "to_dict"):
74
+ result[attr] = value.to_dict()
75
+ elif isinstance(value, dict):
76
+ result[attr] = dict(map(
77
+ lambda item: (item[0], item[1].to_dict())
78
+ if hasattr(item[1], "to_dict") else item,
79
+ value.items()
80
+ ))
81
+ else:
82
+ if attr in self.sensitive_list:
83
+ result[attr] = "****"
84
+ else:
85
+ result[attr] = value
86
+
87
+ return result
88
+
89
+ def to_str(self):
90
+ """Returns the string representation of the model"""
91
+ import simplejson as json
92
+ if six.PY2:
93
+ import sys
94
+ reload(sys)
95
+ sys.setdefaultencoding("utf-8")
96
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
97
+
98
+ def __repr__(self):
99
+ """For `print`"""
100
+ return self.to_str()
101
+
102
+ def __eq__(self, other):
103
+ """Returns true if both objects are equal"""
104
+ if not isinstance(other, BatchUpdateTasksRequest):
105
+ return False
106
+
107
+ return self.__dict__ == other.__dict__
108
+
109
+ def __ne__(self, other):
110
+ """Returns true if both objects are not equal"""
111
+ return not self == other
@@ -0,0 +1,85 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.sdk_response import SdkResponse
6
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
+
8
+
9
+ class BatchUpdateTasksResponse(SdkResponse):
10
+
11
+ """
12
+ Attributes:
13
+ openapi_types (dict): The key is attribute name
14
+ and the value is attribute type.
15
+ attribute_map (dict): The key is attribute name
16
+ and the value is json key in definition.
17
+ """
18
+ sensitive_list = []
19
+
20
+ openapi_types = {
21
+ }
22
+
23
+ attribute_map = {
24
+ }
25
+
26
+ def __init__(self):
27
+ """BatchUpdateTasksResponse
28
+
29
+ The model defined in huaweicloud sdk
30
+
31
+ """
32
+
33
+ super(BatchUpdateTasksResponse, self).__init__()
34
+ self.discriminator = None
35
+
36
+ def to_dict(self):
37
+ """Returns the model properties as a dict"""
38
+ result = {}
39
+
40
+ for attr, _ in six.iteritems(self.openapi_types):
41
+ value = getattr(self, attr)
42
+ if isinstance(value, list):
43
+ result[attr] = list(map(
44
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
45
+ value
46
+ ))
47
+ elif hasattr(value, "to_dict"):
48
+ result[attr] = value.to_dict()
49
+ elif isinstance(value, dict):
50
+ result[attr] = dict(map(
51
+ lambda item: (item[0], item[1].to_dict())
52
+ if hasattr(item[1], "to_dict") else item,
53
+ value.items()
54
+ ))
55
+ else:
56
+ if attr in self.sensitive_list:
57
+ result[attr] = "****"
58
+ else:
59
+ result[attr] = value
60
+
61
+ return result
62
+
63
+ def to_str(self):
64
+ """Returns the string representation of the model"""
65
+ import simplejson as json
66
+ if six.PY2:
67
+ import sys
68
+ reload(sys)
69
+ sys.setdefaultencoding("utf-8")
70
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
71
+
72
+ def __repr__(self):
73
+ """For `print`"""
74
+ return self.to_str()
75
+
76
+ def __eq__(self, other):
77
+ """Returns true if both objects are equal"""
78
+ if not isinstance(other, BatchUpdateTasksResponse):
79
+ return False
80
+
81
+ return self.__dict__ == other.__dict__
82
+
83
+ def __ne__(self, other):
84
+ """Returns true if both objects are not equal"""
85
+ return not self == other
@@ -37,6 +37,8 @@ class ShowSyncTaskResponse(SdkResponse):
37
37
  'monthly_failure_object': 'int',
38
38
  'monthly_skip_object': 'int',
39
39
  'monthly_size': 'int',
40
+ 'object_overwrite_mode': 'str',
41
+ 'dst_storage_policy': 'str',
40
42
  'consistency_check': 'str'
41
43
  }
42
44
 
@@ -60,10 +62,12 @@ class ShowSyncTaskResponse(SdkResponse):
60
62
  'monthly_failure_object': 'monthly_failure_object',
61
63
  'monthly_skip_object': 'monthly_skip_object',
62
64
  'monthly_size': 'monthly_size',
65
+ 'object_overwrite_mode': 'object_overwrite_mode',
66
+ 'dst_storage_policy': 'dst_storage_policy',
63
67
  'consistency_check': 'consistency_check'
64
68
  }
65
69
 
66
- 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, monthly_acceptance_request=None, monthly_success_object=None, monthly_failure_object=None, monthly_skip_object=None, monthly_size=None, consistency_check=None):
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, 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, dst_storage_policy=None, consistency_check=None):
67
71
  """ShowSyncTaskResponse
68
72
 
69
73
  The model defined in huaweicloud sdk
@@ -106,7 +110,11 @@ class ShowSyncTaskResponse(SdkResponse):
106
110
  :type monthly_skip_object: int
107
111
  :param monthly_size: 当月同步对象容量大小(Byte)。
108
112
  :type monthly_size: int
109
- :param consistency_check: 一致性校验方式,用于迁移前/后校验对象是否一致,所有校验方式需满足源端/目的端对象的加密状态一致,具体校验方式和校验结果可通过对象列表查看。默认size_last_modifiedsize_last_modified:默认配置。迁移前后,通过对比源端和目的端对象大小+最后修改时间,判断对象是否已存在或迁移后数据是否完整。源端与目的端同名对象大小相同,且目的端对象的最后修改时间不早于源端对象的最后修改时间,则代表该对象已存在/迁移成功。 crc64:目前仅支持华为/阿里/腾讯。迁移前后,通过对比源端和目的端对象元数据中CRC64值是否相同,判断对象是否已存在/迁移完成。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用大小/最后修改时间校验方式来校验。 no_check:目前仅支持HTTP/HTTPS数据源。当源端对象无法通过标准http协议中content-length字段获取数据大小时,默认数据下载成功即迁移成功,不对数据做额外校验,且迁移时源端对象默认覆盖目的端同名对象。当源端对象能正常通过标准http协议中content-length字段获取数据大小时,则采用大小/最后修改时间校验方式来校验。
113
+ :param object_overwrite_mode: 迁移前同名对象覆盖方式,用于迁移前判断源端与目的端有同名对象时,覆盖目的端或跳过迁移。默认SIZE_LAST_MODIFIED_COMPARISON_OVERWRITENO_OVERWRITE:不覆盖。迁移前源端对象与目的端对象同名时,不做对比直接跳过迁移。 SIZE_LAST_MODIFIED_COMPARISON_OVERWRITE:大小/最后修改时间对比覆盖。默认配置。迁移前源端对象与目的端对象同名时,通过对比源端和目的端对象大小和最后修改时间,判断是否覆盖目的端,需满足源端/目的端对象的加密状态一致。源端与目的端同名对象大小不相同,或目的端对象的最后修改时间晚于源端对象的最后修改时间(源端较新),覆盖目的端。 CRC64_COMPARISON_OVERWRITE:CRC64对比覆盖。目前仅支持华为/阿里/腾讯。迁移前源端对象与目的端对象同名时,通过对比源端和目的端对象元数据中CRC64值是否相同,判断是否覆盖目的端,需满足源端/目的端对象的加密状态一致。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用SIZE_LAST_MODIFIED_COMPARISON_OVERWRITE(大小/最后修改时间对比覆盖)来对比进行覆盖判断。 FULL_OVERWRITE:全覆盖。迁移前源端对象与目的端对象同名时,不做对比覆盖目的端。
114
+ :type object_overwrite_mode: str
115
+ :param dst_storage_policy: 目的端存储类型设置,当且仅当目的端为华为云OBS时需要,默认为标准存储 STANDARD:华为云OBS标准存储 IA:华为云OBS低频存储 ARCHIVE:华为云OBS归档存储 DEEP_ARCHIVE:华为云OBS深度归档存储 SRC_STORAGE_MAPPING:保留源端存储类型,将源端存储类型映射为华为云OBS存储类型
116
+ :type dst_storage_policy: str
117
+ :param consistency_check: 迁移后对象一致性校验方式,用于迁移后校验对象是否一致,所有校验方式需满足源端/目的端对象的加密状态一致,具体校验方式和校验结果可通过对象列表查看。默认size_last_modified。 size_last_modified:默认配置。迁移后,通过对比源端和目的端对象大小和最后修改时间,判断对象迁移后数据是否完整。源端与目的端同名对象大小相同,且目的端对象的最后修改时间不早于源端对象的最后修改时间,则代表该对象迁移成功。 crc64:目前仅支持华为/阿里/腾讯。迁移后,通过对比源端和目的端对象元数据中CRC64值是否相同,判断对象是否迁移完成。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用大小/最后修改时间校验方式来校验。 no_check:目前仅支持HTTP/HTTPS数据源。当源端对象无法通过标准http协议中content-length字段获取数据大小时,默认数据下载成功即迁移成功,不对数据做额外校验。当源端对象能正常通过标准http协议中content-length字段获取数据大小时,则采用大小/最后修改时间校验方式来校验。
110
118
  :type consistency_check: str
111
119
  """
112
120
 
@@ -131,6 +139,8 @@ class ShowSyncTaskResponse(SdkResponse):
131
139
  self._monthly_failure_object = None
132
140
  self._monthly_skip_object = None
133
141
  self._monthly_size = None
142
+ self._object_overwrite_mode = None
143
+ self._dst_storage_policy = None
134
144
  self._consistency_check = None
135
145
  self.discriminator = None
136
146
 
@@ -172,6 +182,10 @@ class ShowSyncTaskResponse(SdkResponse):
172
182
  self.monthly_skip_object = monthly_skip_object
173
183
  if monthly_size is not None:
174
184
  self.monthly_size = monthly_size
185
+ if object_overwrite_mode is not None:
186
+ self.object_overwrite_mode = object_overwrite_mode
187
+ if dst_storage_policy is not None:
188
+ self.dst_storage_policy = dst_storage_policy
175
189
  if consistency_check is not None:
176
190
  self.consistency_check = consistency_check
177
191
 
@@ -593,11 +607,55 @@ class ShowSyncTaskResponse(SdkResponse):
593
607
  """
594
608
  self._monthly_size = monthly_size
595
609
 
610
+ @property
611
+ def object_overwrite_mode(self):
612
+ """Gets the object_overwrite_mode of this ShowSyncTaskResponse.
613
+
614
+ 迁移前同名对象覆盖方式,用于迁移前判断源端与目的端有同名对象时,覆盖目的端或跳过迁移。默认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:全覆盖。迁移前源端对象与目的端对象同名时,不做对比覆盖目的端。
615
+
616
+ :return: The object_overwrite_mode of this ShowSyncTaskResponse.
617
+ :rtype: str
618
+ """
619
+ return self._object_overwrite_mode
620
+
621
+ @object_overwrite_mode.setter
622
+ def object_overwrite_mode(self, object_overwrite_mode):
623
+ """Sets the object_overwrite_mode of this ShowSyncTaskResponse.
624
+
625
+ 迁移前同名对象覆盖方式,用于迁移前判断源端与目的端有同名对象时,覆盖目的端或跳过迁移。默认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:全覆盖。迁移前源端对象与目的端对象同名时,不做对比覆盖目的端。
626
+
627
+ :param object_overwrite_mode: The object_overwrite_mode of this ShowSyncTaskResponse.
628
+ :type object_overwrite_mode: str
629
+ """
630
+ self._object_overwrite_mode = object_overwrite_mode
631
+
632
+ @property
633
+ def dst_storage_policy(self):
634
+ """Gets the dst_storage_policy of this ShowSyncTaskResponse.
635
+
636
+ 目的端存储类型设置,当且仅当目的端为华为云OBS时需要,默认为标准存储 STANDARD:华为云OBS标准存储 IA:华为云OBS低频存储 ARCHIVE:华为云OBS归档存储 DEEP_ARCHIVE:华为云OBS深度归档存储 SRC_STORAGE_MAPPING:保留源端存储类型,将源端存储类型映射为华为云OBS存储类型
637
+
638
+ :return: The dst_storage_policy of this ShowSyncTaskResponse.
639
+ :rtype: str
640
+ """
641
+ return self._dst_storage_policy
642
+
643
+ @dst_storage_policy.setter
644
+ def dst_storage_policy(self, dst_storage_policy):
645
+ """Sets the dst_storage_policy of this ShowSyncTaskResponse.
646
+
647
+ 目的端存储类型设置,当且仅当目的端为华为云OBS时需要,默认为标准存储 STANDARD:华为云OBS标准存储 IA:华为云OBS低频存储 ARCHIVE:华为云OBS归档存储 DEEP_ARCHIVE:华为云OBS深度归档存储 SRC_STORAGE_MAPPING:保留源端存储类型,将源端存储类型映射为华为云OBS存储类型
648
+
649
+ :param dst_storage_policy: The dst_storage_policy of this ShowSyncTaskResponse.
650
+ :type dst_storage_policy: str
651
+ """
652
+ self._dst_storage_policy = dst_storage_policy
653
+
596
654
  @property
597
655
  def consistency_check(self):
598
656
  """Gets the consistency_check of this ShowSyncTaskResponse.
599
657
 
600
- 一致性校验方式,用于迁移前/后校验对象是否一致,所有校验方式需满足源端/目的端对象的加密状态一致,具体校验方式和校验结果可通过对象列表查看。默认size_last_modified。 size_last_modified:默认配置。迁移前后,通过对比源端和目的端对象大小+最后修改时间,判断对象是否已存在或迁移后数据是否完整。源端与目的端同名对象大小相同,且目的端对象的最后修改时间不早于源端对象的最后修改时间,则代表该对象已存在/迁移成功。 crc64:目前仅支持华为/阿里/腾讯。迁移前后,通过对比源端和目的端对象元数据中CRC64值是否相同,判断对象是否已存在/迁移完成。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用大小/最后修改时间校验方式来校验。 no_check:目前仅支持HTTP/HTTPS数据源。当源端对象无法通过标准http协议中content-length字段获取数据大小时,默认数据下载成功即迁移成功,不对数据做额外校验,且迁移时源端对象默认覆盖目的端同名对象。当源端对象能正常通过标准http协议中content-length字段获取数据大小时,则采用大小/最后修改时间校验方式来校验。
658
+ 迁移后对象一致性校验方式,用于迁移后校验对象是否一致,所有校验方式需满足源端/目的端对象的加密状态一致,具体校验方式和校验结果可通过对象列表查看。默认size_last_modified。 size_last_modified:默认配置。迁移后,通过对比源端和目的端对象大小和最后修改时间,判断对象迁移后数据是否完整。源端与目的端同名对象大小相同,且目的端对象的最后修改时间不早于源端对象的最后修改时间,则代表该对象迁移成功。 crc64:目前仅支持华为/阿里/腾讯。迁移后,通过对比源端和目的端对象元数据中CRC64值是否相同,判断对象是否迁移完成。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用大小/最后修改时间校验方式来校验。 no_check:目前仅支持HTTP/HTTPS数据源。当源端对象无法通过标准http协议中content-length字段获取数据大小时,默认数据下载成功即迁移成功,不对数据做额外校验。当源端对象能正常通过标准http协议中content-length字段获取数据大小时,则采用大小/最后修改时间校验方式来校验。
601
659
 
602
660
  :return: The consistency_check of this ShowSyncTaskResponse.
603
661
  :rtype: str
@@ -608,7 +666,7 @@ class ShowSyncTaskResponse(SdkResponse):
608
666
  def consistency_check(self, consistency_check):
609
667
  """Sets the consistency_check of this ShowSyncTaskResponse.
610
668
 
611
- 一致性校验方式,用于迁移前/后校验对象是否一致,所有校验方式需满足源端/目的端对象的加密状态一致,具体校验方式和校验结果可通过对象列表查看。默认size_last_modified。 size_last_modified:默认配置。迁移前后,通过对比源端和目的端对象大小+最后修改时间,判断对象是否已存在或迁移后数据是否完整。源端与目的端同名对象大小相同,且目的端对象的最后修改时间不早于源端对象的最后修改时间,则代表该对象已存在/迁移成功。 crc64:目前仅支持华为/阿里/腾讯。迁移前后,通过对比源端和目的端对象元数据中CRC64值是否相同,判断对象是否已存在/迁移完成。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用大小/最后修改时间校验方式来校验。 no_check:目前仅支持HTTP/HTTPS数据源。当源端对象无法通过标准http协议中content-length字段获取数据大小时,默认数据下载成功即迁移成功,不对数据做额外校验,且迁移时源端对象默认覆盖目的端同名对象。当源端对象能正常通过标准http协议中content-length字段获取数据大小时,则采用大小/最后修改时间校验方式来校验。
669
+ 迁移后对象一致性校验方式,用于迁移后校验对象是否一致,所有校验方式需满足源端/目的端对象的加密状态一致,具体校验方式和校验结果可通过对象列表查看。默认size_last_modified。 size_last_modified:默认配置。迁移后,通过对比源端和目的端对象大小和最后修改时间,判断对象迁移后数据是否完整。源端与目的端同名对象大小相同,且目的端对象的最后修改时间不早于源端对象的最后修改时间,则代表该对象迁移成功。 crc64:目前仅支持华为/阿里/腾讯。迁移后,通过对比源端和目的端对象元数据中CRC64值是否相同,判断对象是否迁移完成。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用大小/最后修改时间校验方式来校验。 no_check:目前仅支持HTTP/HTTPS数据源。当源端对象无法通过标准http协议中content-length字段获取数据大小时,默认数据下载成功即迁移成功,不对数据做额外校验。当源端对象能正常通过标准http协议中content-length字段获取数据大小时,则采用大小/最后修改时间校验方式来校验。
612
670
 
613
671
  :param consistency_check: The consistency_check of this ShowSyncTaskResponse.
614
672
  :type consistency_check: str
@@ -32,6 +32,8 @@ class SyncTaskInfo:
32
32
  'enable_restore': 'bool',
33
33
  'app_id': 'str',
34
34
  'source_cdn': 'SourceCdnResp',
35
+ 'object_overwrite_mode': 'str',
36
+ 'dst_storage_policy': 'str',
35
37
  'consistency_check': 'str'
36
38
  }
37
39
 
@@ -51,10 +53,12 @@ class SyncTaskInfo:
51
53
  'enable_restore': 'enable_restore',
52
54
  'app_id': 'app_id',
53
55
  'source_cdn': 'source_cdn',
56
+ 'object_overwrite_mode': 'object_overwrite_mode',
57
+ 'dst_storage_policy': 'dst_storage_policy',
54
58
  'consistency_check': 'consistency_check'
55
59
  }
56
60
 
57
- 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, 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, app_id=None, source_cdn=None, object_overwrite_mode=None, dst_storage_policy=None, consistency_check=None):
58
62
  """SyncTaskInfo
59
63
 
60
64
  The model defined in huaweicloud sdk
@@ -89,7 +93,11 @@ class SyncTaskInfo:
89
93
  :type app_id: str
90
94
  :param source_cdn:
91
95
  :type source_cdn: :class:`huaweicloudsdkoms.v2.SourceCdnResp`
92
- :param consistency_check: 一致性校验方式,用于迁移前/后校验对象是否一致,所有校验方式需满足源端/目的端对象的加密状态一致,具体校验方式和校验结果可通过对象列表查看。默认size_last_modifiedsize_last_modified:默认配置。迁移前后,通过对比源端和目的端对象大小+最后修改时间,判断对象是否已存在或迁移后数据是否完整。源端与目的端同名对象大小相同,且目的端对象的最后修改时间不早于源端对象的最后修改时间,则代表该对象已存在/迁移成功。 crc64:目前仅支持华为/阿里/腾讯。迁移前后,通过对比源端和目的端对象元数据中CRC64值是否相同,判断对象是否已存在/迁移完成。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用大小/最后修改时间校验方式来校验。 no_check:目前仅支持HTTP/HTTPS数据源。当源端对象无法通过标准http协议中content-length字段获取数据大小时,默认数据下载成功即迁移成功,不对数据做额外校验,且迁移时源端对象默认覆盖目的端同名对象。当源端对象能正常通过标准http协议中content-length字段获取数据大小时,则采用大小/最后修改时间校验方式来校验。
96
+ :param object_overwrite_mode: 迁移前同名对象覆盖方式,用于迁移前判断源端与目的端有同名对象时,覆盖目的端或跳过迁移。默认SIZE_LAST_MODIFIED_COMPARISON_OVERWRITENO_OVERWRITE:不覆盖。迁移前源端对象与目的端对象同名时,不做对比直接跳过迁移。 SIZE_LAST_MODIFIED_COMPARISON_OVERWRITE:大小/最后修改时间对比覆盖。默认配置。迁移前源端对象与目的端对象同名时,通过对比源端和目的端对象大小和最后修改时间,判断是否覆盖目的端,需满足源端/目的端对象的加密状态一致。源端与目的端同名对象大小不相同,或目的端对象的最后修改时间晚于源端对象的最后修改时间(源端较新),覆盖目的端。 CRC64_COMPARISON_OVERWRITE:CRC64对比覆盖。目前仅支持华为/阿里/腾讯。迁移前源端对象与目的端对象同名时,通过对比源端和目的端对象元数据中CRC64值是否相同,判断是否覆盖目的端,需满足源端/目的端对象的加密状态一致。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用SIZE_LAST_MODIFIED_COMPARISON_OVERWRITE(大小/最后修改时间对比覆盖)来对比进行覆盖判断。 FULL_OVERWRITE:全覆盖。迁移前源端对象与目的端对象同名时,不做对比覆盖目的端。
97
+ :type object_overwrite_mode: str
98
+ :param dst_storage_policy: 目的端存储类型设置,当且仅当目的端为华为云OBS时需要,默认为标准存储 STANDARD:华为云OBS标准存储 IA:华为云OBS低频存储 ARCHIVE:华为云OBS归档存储 DEEP_ARCHIVE:华为云OBS深度归档存储 SRC_STORAGE_MAPPING:保留源端存储类型,将源端存储类型映射为华为云OBS存储类型
99
+ :type dst_storage_policy: str
100
+ :param consistency_check: 迁移后对象一致性校验方式,用于迁移后校验对象是否一致,所有校验方式需满足源端/目的端对象的加密状态一致,具体校验方式和校验结果可通过对象列表查看。默认size_last_modified。 size_last_modified:默认配置。迁移后,通过对比源端和目的端对象大小和最后修改时间,判断对象迁移后数据是否完整。源端与目的端同名对象大小相同,且目的端对象的最后修改时间不早于源端对象的最后修改时间,则代表该对象迁移成功。 crc64:目前仅支持华为/阿里/腾讯。迁移后,通过对比源端和目的端对象元数据中CRC64值是否相同,判断对象是否迁移完成。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用大小/最后修改时间校验方式来校验。 no_check:目前仅支持HTTP/HTTPS数据源。当源端对象无法通过标准http协议中content-length字段获取数据大小时,默认数据下载成功即迁移成功,不对数据做额外校验。当源端对象能正常通过标准http协议中content-length字段获取数据大小时,则采用大小/最后修改时间校验方式来校验。
93
101
  :type consistency_check: str
94
102
  """
95
103
 
@@ -110,6 +118,8 @@ class SyncTaskInfo:
110
118
  self._enable_restore = None
111
119
  self._app_id = None
112
120
  self._source_cdn = None
121
+ self._object_overwrite_mode = None
122
+ self._dst_storage_policy = None
113
123
  self._consistency_check = None
114
124
  self.discriminator = None
115
125
 
@@ -143,6 +153,10 @@ class SyncTaskInfo:
143
153
  self.app_id = app_id
144
154
  if source_cdn is not None:
145
155
  self.source_cdn = source_cdn
156
+ if object_overwrite_mode is not None:
157
+ self.object_overwrite_mode = object_overwrite_mode
158
+ if dst_storage_policy is not None:
159
+ self.dst_storage_policy = dst_storage_policy
146
160
  if consistency_check is not None:
147
161
  self.consistency_check = consistency_check
148
162
 
@@ -472,11 +486,55 @@ class SyncTaskInfo:
472
486
  """
473
487
  self._source_cdn = source_cdn
474
488
 
489
+ @property
490
+ def object_overwrite_mode(self):
491
+ """Gets the object_overwrite_mode of this SyncTaskInfo.
492
+
493
+ 迁移前同名对象覆盖方式,用于迁移前判断源端与目的端有同名对象时,覆盖目的端或跳过迁移。默认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:全覆盖。迁移前源端对象与目的端对象同名时,不做对比覆盖目的端。
494
+
495
+ :return: The object_overwrite_mode of this SyncTaskInfo.
496
+ :rtype: str
497
+ """
498
+ return self._object_overwrite_mode
499
+
500
+ @object_overwrite_mode.setter
501
+ def object_overwrite_mode(self, object_overwrite_mode):
502
+ """Sets the object_overwrite_mode of this SyncTaskInfo.
503
+
504
+ 迁移前同名对象覆盖方式,用于迁移前判断源端与目的端有同名对象时,覆盖目的端或跳过迁移。默认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:全覆盖。迁移前源端对象与目的端对象同名时,不做对比覆盖目的端。
505
+
506
+ :param object_overwrite_mode: The object_overwrite_mode of this SyncTaskInfo.
507
+ :type object_overwrite_mode: str
508
+ """
509
+ self._object_overwrite_mode = object_overwrite_mode
510
+
511
+ @property
512
+ def dst_storage_policy(self):
513
+ """Gets the dst_storage_policy of this SyncTaskInfo.
514
+
515
+ 目的端存储类型设置,当且仅当目的端为华为云OBS时需要,默认为标准存储 STANDARD:华为云OBS标准存储 IA:华为云OBS低频存储 ARCHIVE:华为云OBS归档存储 DEEP_ARCHIVE:华为云OBS深度归档存储 SRC_STORAGE_MAPPING:保留源端存储类型,将源端存储类型映射为华为云OBS存储类型
516
+
517
+ :return: The dst_storage_policy of this SyncTaskInfo.
518
+ :rtype: str
519
+ """
520
+ return self._dst_storage_policy
521
+
522
+ @dst_storage_policy.setter
523
+ def dst_storage_policy(self, dst_storage_policy):
524
+ """Sets the dst_storage_policy of this SyncTaskInfo.
525
+
526
+ 目的端存储类型设置,当且仅当目的端为华为云OBS时需要,默认为标准存储 STANDARD:华为云OBS标准存储 IA:华为云OBS低频存储 ARCHIVE:华为云OBS归档存储 DEEP_ARCHIVE:华为云OBS深度归档存储 SRC_STORAGE_MAPPING:保留源端存储类型,将源端存储类型映射为华为云OBS存储类型
527
+
528
+ :param dst_storage_policy: The dst_storage_policy of this SyncTaskInfo.
529
+ :type dst_storage_policy: str
530
+ """
531
+ self._dst_storage_policy = dst_storage_policy
532
+
475
533
  @property
476
534
  def consistency_check(self):
477
535
  """Gets the consistency_check of this SyncTaskInfo.
478
536
 
479
- 一致性校验方式,用于迁移前/后校验对象是否一致,所有校验方式需满足源端/目的端对象的加密状态一致,具体校验方式和校验结果可通过对象列表查看。默认size_last_modified。 size_last_modified:默认配置。迁移前后,通过对比源端和目的端对象大小+最后修改时间,判断对象是否已存在或迁移后数据是否完整。源端与目的端同名对象大小相同,且目的端对象的最后修改时间不早于源端对象的最后修改时间,则代表该对象已存在/迁移成功。 crc64:目前仅支持华为/阿里/腾讯。迁移前后,通过对比源端和目的端对象元数据中CRC64值是否相同,判断对象是否已存在/迁移完成。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用大小/最后修改时间校验方式来校验。 no_check:目前仅支持HTTP/HTTPS数据源。当源端对象无法通过标准http协议中content-length字段获取数据大小时,默认数据下载成功即迁移成功,不对数据做额外校验,且迁移时源端对象默认覆盖目的端同名对象。当源端对象能正常通过标准http协议中content-length字段获取数据大小时,则采用大小/最后修改时间校验方式来校验。
537
+ 迁移后对象一致性校验方式,用于迁移后校验对象是否一致,所有校验方式需满足源端/目的端对象的加密状态一致,具体校验方式和校验结果可通过对象列表查看。默认size_last_modified。 size_last_modified:默认配置。迁移后,通过对比源端和目的端对象大小和最后修改时间,判断对象迁移后数据是否完整。源端与目的端同名对象大小相同,且目的端对象的最后修改时间不早于源端对象的最后修改时间,则代表该对象迁移成功。 crc64:目前仅支持华为/阿里/腾讯。迁移后,通过对比源端和目的端对象元数据中CRC64值是否相同,判断对象是否迁移完成。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用大小/最后修改时间校验方式来校验。 no_check:目前仅支持HTTP/HTTPS数据源。当源端对象无法通过标准http协议中content-length字段获取数据大小时,默认数据下载成功即迁移成功,不对数据做额外校验。当源端对象能正常通过标准http协议中content-length字段获取数据大小时,则采用大小/最后修改时间校验方式来校验。
480
538
 
481
539
  :return: The consistency_check of this SyncTaskInfo.
482
540
  :rtype: str
@@ -487,7 +545,7 @@ class SyncTaskInfo:
487
545
  def consistency_check(self, consistency_check):
488
546
  """Sets the consistency_check of this SyncTaskInfo.
489
547
 
490
- 一致性校验方式,用于迁移前/后校验对象是否一致,所有校验方式需满足源端/目的端对象的加密状态一致,具体校验方式和校验结果可通过对象列表查看。默认size_last_modified。 size_last_modified:默认配置。迁移前后,通过对比源端和目的端对象大小+最后修改时间,判断对象是否已存在或迁移后数据是否完整。源端与目的端同名对象大小相同,且目的端对象的最后修改时间不早于源端对象的最后修改时间,则代表该对象已存在/迁移成功。 crc64:目前仅支持华为/阿里/腾讯。迁移前后,通过对比源端和目的端对象元数据中CRC64值是否相同,判断对象是否已存在/迁移完成。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用大小/最后修改时间校验方式来校验。 no_check:目前仅支持HTTP/HTTPS数据源。当源端对象无法通过标准http协议中content-length字段获取数据大小时,默认数据下载成功即迁移成功,不对数据做额外校验,且迁移时源端对象默认覆盖目的端同名对象。当源端对象能正常通过标准http协议中content-length字段获取数据大小时,则采用大小/最后修改时间校验方式来校验。
548
+ 迁移后对象一致性校验方式,用于迁移后校验对象是否一致,所有校验方式需满足源端/目的端对象的加密状态一致,具体校验方式和校验结果可通过对象列表查看。默认size_last_modified。 size_last_modified:默认配置。迁移后,通过对比源端和目的端对象大小和最后修改时间,判断对象迁移后数据是否完整。源端与目的端同名对象大小相同,且目的端对象的最后修改时间不早于源端对象的最后修改时间,则代表该对象迁移成功。 crc64:目前仅支持华为/阿里/腾讯。迁移后,通过对比源端和目的端对象元数据中CRC64值是否相同,判断对象是否迁移完成。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用大小/最后修改时间校验方式来校验。 no_check:目前仅支持HTTP/HTTPS数据源。当源端对象无法通过标准http协议中content-length字段获取数据大小时,默认数据下载成功即迁移成功,不对数据做额外校验。当源端对象能正常通过标准http协议中content-length字段获取数据大小时,则采用大小/最后修改时间校验方式来校验。
491
549
 
492
550
  :param consistency_check: The consistency_check of this SyncTaskInfo.
493
551
  :type consistency_check: str
@@ -32,6 +32,71 @@ class OmsAsyncClient(Client):
32
32
 
33
33
  return client_builder
34
34
 
35
+ def batch_update_tasks_async(self, request):
36
+ """批量更新任务
37
+
38
+ 批量更新迁移任务,可指定单个迁移任务组下所有的迁移任务或通过迁移任务ID来执行。
39
+
40
+ Please refer to HUAWEI cloud API Explorer for details.
41
+
42
+
43
+ :param request: Request instance for BatchUpdateTasks
44
+ :type request: :class:`huaweicloudsdkoms.v2.BatchUpdateTasksRequest`
45
+ :rtype: :class:`huaweicloudsdkoms.v2.BatchUpdateTasksResponse`
46
+ """
47
+ http_info = self._batch_update_tasks_http_info(request)
48
+ return self._call_api(**http_info)
49
+
50
+ def batch_update_tasks_async_invoker(self, request):
51
+ http_info = self._batch_update_tasks_http_info(request)
52
+ return AsyncInvoker(self, http_info)
53
+
54
+ def _batch_update_tasks_http_info(self, request):
55
+ http_info = {
56
+ "method": "POST",
57
+ "resource_path": "/v2/{project_id}/tasks/batch-update",
58
+ "request_type": request.__class__.__name__,
59
+ "response_type": "BatchUpdateTasksResponse"
60
+ }
61
+
62
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
63
+
64
+ cname = None
65
+
66
+ collection_formats = {}
67
+
68
+ path_params = {}
69
+
70
+ query_params = []
71
+
72
+ header_params = {}
73
+
74
+ form_params = {}
75
+
76
+ body = None
77
+ if 'body' in local_var_params:
78
+ body = local_var_params['body']
79
+ if isinstance(request, SdkStreamRequest):
80
+ body = request.get_file_stream()
81
+
82
+ response_headers = []
83
+
84
+ header_params['Content-Type'] = http_utils.select_header_content_type(
85
+ ['application/json;charset=UTF-8'])
86
+
87
+ auth_settings = []
88
+
89
+ http_info["cname"] = cname
90
+ http_info["collection_formats"] = collection_formats
91
+ http_info["path_params"] = path_params
92
+ http_info["query_params"] = query_params
93
+ http_info["header_params"] = header_params
94
+ http_info["post_params"] = form_params
95
+ http_info["body"] = body
96
+ http_info["response_headers"] = response_headers
97
+
98
+ return http_info
99
+
35
100
  def check_prefix_async(self, request):
36
101
  """检查前缀是否在源端桶中存在
37
102
 
@@ -363,7 +428,7 @@ class OmsAsyncClient(Client):
363
428
  """删除同步任务
364
429
 
365
430
  调用该接口删除同步任务。
366
- 正在同步的任务不允许删除,如果删除会返回失败;若要删除,请先行暂停任务(目前只支持华北-北京四、华东-上海一地区)。
431
+ 正在同步的任务不允许删除,如果删除会返回失败;若要删除,请先行暂停任务。
367
432
 
368
433
  Please refer to HUAWEI cloud API Explorer for details.
369
434
 
@@ -631,7 +696,7 @@ class OmsAsyncClient(Client):
631
696
  def list_sync_tasks_async(self, request):
632
697
  """查询同步任务列表
633
698
 
634
- 查询用户名下所有同步任务信息(目前只支持华北-北京四、华东-上海一地区)。
699
+ 查询用户名下所有同步任务信息
635
700
 
636
701
  Please refer to HUAWEI cloud API Explorer for details.
637
702
 
@@ -1295,7 +1360,7 @@ class OmsAsyncClient(Client):
1295
1360
  def show_sync_task_async(self, request):
1296
1361
  """查询指定ID的同步任务详情
1297
1362
 
1298
- 查询指定ID的同步任务详情(目前只支持华北-北京四、华东-上海一地区)。
1363
+ 查询指定ID的同步任务详情。
1299
1364
 
1300
1365
  Please refer to HUAWEI cloud API Explorer for details.
1301
1366
 
@@ -32,6 +32,71 @@ class OmsClient(Client):
32
32
 
33
33
  return client_builder
34
34
 
35
+ def batch_update_tasks(self, request):
36
+ """批量更新任务
37
+
38
+ 批量更新迁移任务,可指定单个迁移任务组下所有的迁移任务或通过迁移任务ID来执行。
39
+
40
+ Please refer to HUAWEI cloud API Explorer for details.
41
+
42
+ :param request: Request instance for BatchUpdateTasks
43
+ :type request: :class:`huaweicloudsdkoms.v2.BatchUpdateTasksRequest`
44
+ :rtype: :class:`huaweicloudsdkoms.v2.BatchUpdateTasksResponse`
45
+ """
46
+ http_info = self._batch_update_tasks_http_info(request)
47
+ return self._call_api(**http_info)
48
+
49
+ def batch_update_tasks_invoker(self, request):
50
+ http_info = self._batch_update_tasks_http_info(request)
51
+ return SyncInvoker(self, http_info)
52
+
53
+ @classmethod
54
+ def _batch_update_tasks_http_info(cls, request):
55
+ http_info = {
56
+ "method": "POST",
57
+ "resource_path": "/v2/{project_id}/tasks/batch-update",
58
+ "request_type": request.__class__.__name__,
59
+ "response_type": "BatchUpdateTasksResponse"
60
+ }
61
+
62
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
63
+
64
+ cname = None
65
+
66
+ collection_formats = {}
67
+
68
+ path_params = {}
69
+
70
+ query_params = []
71
+
72
+ header_params = {}
73
+
74
+ form_params = {}
75
+
76
+ body = None
77
+ if 'body' in local_var_params:
78
+ body = local_var_params['body']
79
+ if isinstance(request, SdkStreamRequest):
80
+ body = request.get_file_stream()
81
+
82
+ response_headers = []
83
+
84
+ header_params['Content-Type'] = http_utils.select_header_content_type(
85
+ ['application/json;charset=UTF-8'])
86
+
87
+ auth_settings = []
88
+
89
+ http_info["cname"] = cname
90
+ http_info["collection_formats"] = collection_formats
91
+ http_info["path_params"] = path_params
92
+ http_info["query_params"] = query_params
93
+ http_info["header_params"] = header_params
94
+ http_info["post_params"] = form_params
95
+ http_info["body"] = body
96
+ http_info["response_headers"] = response_headers
97
+
98
+ return http_info
99
+
35
100
  def check_prefix(self, request):
36
101
  """检查前缀是否在源端桶中存在
37
102
 
@@ -363,7 +428,7 @@ class OmsClient(Client):
363
428
  """删除同步任务
364
429
 
365
430
  调用该接口删除同步任务。
366
- 正在同步的任务不允许删除,如果删除会返回失败;若要删除,请先行暂停任务(目前只支持华北-北京四、华东-上海一地区)。
431
+ 正在同步的任务不允许删除,如果删除会返回失败;若要删除,请先行暂停任务。
367
432
 
368
433
  Please refer to HUAWEI cloud API Explorer for details.
369
434
 
@@ -631,7 +696,7 @@ class OmsClient(Client):
631
696
  def list_sync_tasks(self, request):
632
697
  """查询同步任务列表
633
698
 
634
- 查询用户名下所有同步任务信息(目前只支持华北-北京四、华东-上海一地区)。
699
+ 查询用户名下所有同步任务信息
635
700
 
636
701
  Please refer to HUAWEI cloud API Explorer for details.
637
702
 
@@ -1295,7 +1360,7 @@ class OmsClient(Client):
1295
1360
  def show_sync_task(self, request):
1296
1361
  """查询指定ID的同步任务详情
1297
1362
 
1298
- 查询指定ID的同步任务详情(目前只支持华北-北京四、华东-上海一地区)。
1363
+ 查询指定ID的同步任务详情。
1299
1364
 
1300
1365
  Please refer to HUAWEI cloud API Explorer for details.
1301
1366
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: huaweicloudsdkoms
3
- Version: 3.1.69
3
+ Version: 3.1.72
4
4
  Summary: OMS
5
5
  Home-page: https://github.com/huaweicloud/huaweicloud-sdk-python-v3
6
6
  Author: HuaweiCloud SDK
@@ -22,6 +22,6 @@ Classifier: Topic :: Software Development
22
22
  Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*
23
23
  Description-Content-Type: text/markdown
24
24
  License-File: LICENSE
25
- Requires-Dist: huaweicloudsdkcore >=3.1.69
25
+ Requires-Dist: huaweicloudsdkcore >=3.1.72
26
26
 
27
27
  See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
@@ -1,9 +1,12 @@
1
1
  huaweicloudsdkoms/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- huaweicloudsdkoms/v2/__init__.py,sha256=uv7xZOg9Cg3HjGw7njTimZGhXCwItiAd7BdeXNovdMI,8607
3
- huaweicloudsdkoms/v2/oms_async_client.py,sha256=-A-pH7d-lpc1Or1wBCCeUGMzNKbvnYchbyPx9j7XssQ,72825
4
- huaweicloudsdkoms/v2/oms_client.py,sha256=hNWWVw6C115vWsSZH5-Vt0ohXfd5IgXvIT6OVKDYCtc,72784
5
- huaweicloudsdkoms/v2/model/__init__.py,sha256=xIAOXxNbashXpCBOiuBQdSCfAfncrOAUxe9bSbeVlTQ,8521
2
+ huaweicloudsdkoms/v2/__init__.py,sha256=vW6aDOtb3lKWLV9o0_7FpCM7x3s1bCWKotQjMdY9CQE,8871
3
+ huaweicloudsdkoms/v2/oms_async_client.py,sha256=CrGfxj32LU-CUovcNksT9m1MtGlxCKJ584dh1UOJbcA,74799
4
+ huaweicloudsdkoms/v2/oms_client.py,sha256=OPcnBXaN6CIbBXfo_eawkvisxH0Wnd7_u49YS3fmq-o,74760
5
+ huaweicloudsdkoms/v2/model/__init__.py,sha256=BjewjBhikz7XyTfUsBjjkKYMQRmOL4HVgkV6RxQlvA4,8785
6
6
  huaweicloudsdkoms/v2/model/bandwidth_policy_dto.py,sha256=SvzxY-dKdLSVwEbgSY3UaqeQkla_7GmDNK7b0nXRwdE,5346
7
+ huaweicloudsdkoms/v2/model/batch_update_tasks_req.py,sha256=ra4WaBv2hDAVEqrXVUMoAJrqioSFgmC9zoxKlNgChNY,7368
8
+ huaweicloudsdkoms/v2/model/batch_update_tasks_request.py,sha256=g2GaX0Pcvv8efZGM1sxJlDRwhBEVS7TttK48Gw4BAvI,3143
9
+ huaweicloudsdkoms/v2/model/batch_update_tasks_response.py,sha256=kDoXinQuGLfVzbgMyBxpTjngfVws57qkeNcrYps8Yf4,2447
7
10
  huaweicloudsdkoms/v2/model/check_prefix_req.py,sha256=Qs_0EN0R8is8_kj4Ate_o5SfEBdDSFZfscf7rN55uCU,9365
8
11
  huaweicloudsdkoms/v2/model/check_prefix_request.py,sha256=k-Ff9qDPRyQ6nzOptxXHWjdouTX2lc3MsPsOEHwjhJg,3083
9
12
  huaweicloudsdkoms/v2/model/check_prefix_response.py,sha256=EbQZPSf0H-5HMbaOZGMKeawKoxbDnBwkyE7dcZdTT9I,3121
@@ -67,7 +70,7 @@ huaweicloudsdkoms/v2/model/show_region_info_request.py,sha256=A3K1_bAYaB0HU4t5uO
67
70
  huaweicloudsdkoms/v2/model/show_region_info_resp.py,sha256=wHb1hHISvAmDUCPXC-tzcJoYhw66ub4T9nEg2GUEiQU,4125
68
71
  huaweicloudsdkoms/v2/model/show_region_info_response.py,sha256=fvf2goWvGgGKgrUQM5H5usTt9GsABMZGYn3fpeW5sak,3236
69
72
  huaweicloudsdkoms/v2/model/show_sync_task_request.py,sha256=QKMcr9cQWPd7SEX5gyV39w2WkISEVPIr10JYxJ6zbSU,4158
70
- huaweicloudsdkoms/v2/model/show_sync_task_response.py,sha256=R5INH7X3KCaLe9OmO41K_4QFhVeL44dIUBlWxOtcdko,26762
73
+ huaweicloudsdkoms/v2/model/show_sync_task_response.py,sha256=cPnClARHZCP4CGQznLy5EyGworDVWN5iWpMm2M-v9Dc,33572
71
74
  huaweicloudsdkoms/v2/model/show_task_group_request.py,sha256=GsSZZ8V6tnVRVCifEon-l1K9T8fEuRJFN-SYU_r5eQE,3041
72
75
  huaweicloudsdkoms/v2/model/show_task_group_response.py,sha256=cHSiqyTtuka8j8fgCQsSDTjaDoxbfl8OmKHCOw0hoEs,49407
73
76
  huaweicloudsdkoms/v2/model/show_task_request.py,sha256=T1d1CQtRj28pAq95ebMgt2tVzU-hQT59rmmmaDq-F94,2975
@@ -96,7 +99,7 @@ huaweicloudsdkoms/v2/model/stop_task_group_response.py,sha256=VimnpHsCmzrsYpmYSI
96
99
  huaweicloudsdkoms/v2/model/stop_task_request.py,sha256=4Kmv5z0GGVqrpomkv0a0UYBhBGTesR-n1bfRH1ochk0,3002
97
100
  huaweicloudsdkoms/v2/model/stop_task_response.py,sha256=UGqm5MinrjyhkhRf6suJkq15Xvzpp8xbFDDBUMg9uEw,2415
98
101
  huaweicloudsdkoms/v2/model/sync_object_req.py,sha256=sdq_dNp0M3d72ENwhya_LwfhMMfxQyHxyArcJB9BWq0,3388
99
- huaweicloudsdkoms/v2/model/sync_task_info.py,sha256=udht5_kS8oUlegRz_TmwabvneeKNPf3aBLsicr2ZE7Y,21487
102
+ huaweicloudsdkoms/v2/model/sync_task_info.py,sha256=ZR8Ld_ezwYvXv6oaUlfItNEOHUfkJ99Vmmnl5mlnsIE,28233
100
103
  huaweicloudsdkoms/v2/model/task_group_dst_node.py,sha256=WhC15zU3V_NRWWchxGvMf11uoBfstRGuBwumJPTSWpk,7228
101
104
  huaweicloudsdkoms/v2/model/task_group_dst_node_resp.py,sha256=bgZ4z_hs62iXrRQMwZVvvODnTIOePaxLcM5ESkHJkq0,4971
102
105
  huaweicloudsdkoms/v2/model/task_group_resp.py,sha256=yLf6vTm7Y5E0H0D6kaqNBvrTdJ-LQUpVRWMGXaLTrg0,48085
@@ -111,8 +114,8 @@ huaweicloudsdkoms/v2/model/update_task_group_response.py,sha256=Fk_zKwSqvnOXV_GG
111
114
  huaweicloudsdkoms/v2/model/version.py,sha256=VRMrvqLo-oAav1V81uotDLd9Rmk0g_K3Vx09MRBqYg0,5914
112
115
  huaweicloudsdkoms/v2/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
113
116
  huaweicloudsdkoms/v2/region/oms_region.py,sha256=MrH-T0TcxeBxaWHXjsAyBHITUMB2tDLcBVmPiAuBz74,3227
114
- huaweicloudsdkoms-3.1.69.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
115
- huaweicloudsdkoms-3.1.69.dist-info/METADATA,sha256=7Kbv8dWyGNN6j0EcF6dR-3zyvtVXVX_qKhObZ9qwQCk,1134
116
- huaweicloudsdkoms-3.1.69.dist-info/WHEEL,sha256=P2T-6epvtXQ2cBOE_U1K4_noqlJFN3tj15djMgEu4NM,110
117
- huaweicloudsdkoms-3.1.69.dist-info/top_level.txt,sha256=JgMrA43i26V20q-8LlegokLMS7RtmBCQ79whMDpgjME,18
118
- huaweicloudsdkoms-3.1.69.dist-info/RECORD,,
117
+ huaweicloudsdkoms-3.1.72.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
118
+ huaweicloudsdkoms-3.1.72.dist-info/METADATA,sha256=MVXmpvPkUKKwJvh3Uh-nuDWhvyTMWVER2t_h1XoFQkw,1134
119
+ huaweicloudsdkoms-3.1.72.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
120
+ huaweicloudsdkoms-3.1.72.dist-info/top_level.txt,sha256=JgMrA43i26V20q-8LlegokLMS7RtmBCQ79whMDpgjME,18
121
+ huaweicloudsdkoms-3.1.72.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.41.3)
2
+ Generator: bdist_wheel (0.42.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py2-none-any
5
5
  Tag: py3-none-any