huaweicloudsdkoms 3.1.160__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. huaweicloudsdkoms/__init__.py +0 -0
  2. huaweicloudsdkoms/v2/__init__.py +117 -0
  3. huaweicloudsdkoms/v2/model/__init__.py +114 -0
  4. huaweicloudsdkoms/v2/model/bandwidth_policy_dto.py +170 -0
  5. huaweicloudsdkoms/v2/model/batch_update_tasks_req.py +201 -0
  6. huaweicloudsdkoms/v2/model/batch_update_tasks_request.py +111 -0
  7. huaweicloudsdkoms/v2/model/batch_update_tasks_response.py +85 -0
  8. huaweicloudsdkoms/v2/model/check_prefix_req.py +343 -0
  9. huaweicloudsdkoms/v2/model/check_prefix_request.py +111 -0
  10. huaweicloudsdkoms/v2/model/check_prefix_response.py +116 -0
  11. huaweicloudsdkoms/v2/model/checked_key.py +173 -0
  12. huaweicloudsdkoms/v2/model/create_sync_events_request.py +139 -0
  13. huaweicloudsdkoms/v2/model/create_sync_events_response.py +85 -0
  14. huaweicloudsdkoms/v2/model/create_sync_task_req.py +567 -0
  15. huaweicloudsdkoms/v2/model/create_sync_task_request.py +111 -0
  16. huaweicloudsdkoms/v2/model/create_sync_task_response.py +116 -0
  17. huaweicloudsdkoms/v2/model/create_task_group_req.py +531 -0
  18. huaweicloudsdkoms/v2/model/create_task_group_request.py +111 -0
  19. huaweicloudsdkoms/v2/model/create_task_group_response.py +116 -0
  20. huaweicloudsdkoms/v2/model/create_task_req.py +561 -0
  21. huaweicloudsdkoms/v2/model/create_task_request.py +111 -0
  22. huaweicloudsdkoms/v2/model/create_task_response.py +145 -0
  23. huaweicloudsdkoms/v2/model/delete_sync_task_request.py +114 -0
  24. huaweicloudsdkoms/v2/model/delete_sync_task_response.py +85 -0
  25. huaweicloudsdkoms/v2/model/delete_task_group_request.py +114 -0
  26. huaweicloudsdkoms/v2/model/delete_task_group_response.py +85 -0
  27. huaweicloudsdkoms/v2/model/delete_task_request.py +114 -0
  28. huaweicloudsdkoms/v2/model/delete_task_response.py +85 -0
  29. huaweicloudsdkoms/v2/model/dst_node_req.py +256 -0
  30. huaweicloudsdkoms/v2/model/dst_node_resp.py +173 -0
  31. huaweicloudsdkoms/v2/model/error_reason_resp.py +144 -0
  32. huaweicloudsdkoms/v2/model/failed_object_record_dto.py +173 -0
  33. huaweicloudsdkoms/v2/model/link.py +144 -0
  34. huaweicloudsdkoms/v2/model/list_api_versions_request.py +84 -0
  35. huaweicloudsdkoms/v2/model/list_api_versions_response.py +116 -0
  36. huaweicloudsdkoms/v2/model/list_buckets_req.py +230 -0
  37. huaweicloudsdkoms/v2/model/list_file.py +171 -0
  38. huaweicloudsdkoms/v2/model/list_sync_task_statistic_request.py +198 -0
  39. huaweicloudsdkoms/v2/model/list_sync_task_statistic_response.py +174 -0
  40. huaweicloudsdkoms/v2/model/list_sync_tasks_request.py +173 -0
  41. huaweicloudsdkoms/v2/model/list_sync_tasks_response.py +145 -0
  42. huaweicloudsdkoms/v2/model/list_task_group_request.py +173 -0
  43. huaweicloudsdkoms/v2/model/list_task_group_response.py +145 -0
  44. huaweicloudsdkoms/v2/model/list_tasks_request.py +202 -0
  45. huaweicloudsdkoms/v2/model/list_tasks_response.py +145 -0
  46. huaweicloudsdkoms/v2/model/prefix_key_info.py +114 -0
  47. huaweicloudsdkoms/v2/model/region_info.py +173 -0
  48. huaweicloudsdkoms/v2/model/retry_task_group_req.py +289 -0
  49. huaweicloudsdkoms/v2/model/retry_task_group_request.py +139 -0
  50. huaweicloudsdkoms/v2/model/retry_task_group_response.py +85 -0
  51. huaweicloudsdkoms/v2/model/show_api_info_request.py +114 -0
  52. huaweicloudsdkoms/v2/model/show_api_info_response.py +203 -0
  53. huaweicloudsdkoms/v2/model/show_bucket_list_request.py +111 -0
  54. huaweicloudsdkoms/v2/model/show_bucket_list_response.py +112 -0
  55. huaweicloudsdkoms/v2/model/show_bucket_objects_request.py +111 -0
  56. huaweicloudsdkoms/v2/model/show_bucket_objects_response.py +174 -0
  57. huaweicloudsdkoms/v2/model/show_bucket_record.py +144 -0
  58. huaweicloudsdkoms/v2/model/show_bucket_region_req.py +258 -0
  59. huaweicloudsdkoms/v2/model/show_bucket_region_request.py +111 -0
  60. huaweicloudsdkoms/v2/model/show_bucket_region_response.py +174 -0
  61. huaweicloudsdkoms/v2/model/show_bucket_req.py +370 -0
  62. huaweicloudsdkoms/v2/model/show_cdn_info_req.py +304 -0
  63. huaweicloudsdkoms/v2/model/show_cdn_info_request.py +111 -0
  64. huaweicloudsdkoms/v2/model/show_cdn_info_response.py +174 -0
  65. huaweicloudsdkoms/v2/model/show_cloud_type_request.py +114 -0
  66. huaweicloudsdkoms/v2/model/show_cloud_type_response.py +112 -0
  67. huaweicloudsdkoms/v2/model/show_region_info_request.py +84 -0
  68. huaweicloudsdkoms/v2/model/show_region_info_resp.py +144 -0
  69. huaweicloudsdkoms/v2/model/show_region_info_response.py +112 -0
  70. huaweicloudsdkoms/v2/model/show_sync_task_request.py +142 -0
  71. huaweicloudsdkoms/v2/model/show_sync_task_response.py +725 -0
  72. huaweicloudsdkoms/v2/model/show_task_group_request.py +114 -0
  73. huaweicloudsdkoms/v2/model/show_task_group_response.py +1165 -0
  74. huaweicloudsdkoms/v2/model/show_task_request.py +114 -0
  75. huaweicloudsdkoms/v2/model/show_task_response.py +1194 -0
  76. huaweicloudsdkoms/v2/model/smn_config.py +200 -0
  77. huaweicloudsdkoms/v2/model/smn_info.py +173 -0
  78. huaweicloudsdkoms/v2/model/source_cdn_req.py +199 -0
  79. huaweicloudsdkoms/v2/model/source_cdn_resp.py +171 -0
  80. huaweicloudsdkoms/v2/model/src_node_req.py +372 -0
  81. huaweicloudsdkoms/v2/model/src_node_resp.py +256 -0
  82. huaweicloudsdkoms/v2/model/start_sync_task_req.py +227 -0
  83. huaweicloudsdkoms/v2/model/start_sync_task_request.py +139 -0
  84. huaweicloudsdkoms/v2/model/start_sync_task_response.py +85 -0
  85. huaweicloudsdkoms/v2/model/start_task_group_req.py +258 -0
  86. huaweicloudsdkoms/v2/model/start_task_group_request.py +139 -0
  87. huaweicloudsdkoms/v2/model/start_task_group_response.py +85 -0
  88. huaweicloudsdkoms/v2/model/start_task_req.py +345 -0
  89. huaweicloudsdkoms/v2/model/start_task_request.py +139 -0
  90. huaweicloudsdkoms/v2/model/start_task_response.py +85 -0
  91. huaweicloudsdkoms/v2/model/statistic_data.py +144 -0
  92. huaweicloudsdkoms/v2/model/statistic_type_data.py +144 -0
  93. huaweicloudsdkoms/v2/model/stop_sync_task_request.py +114 -0
  94. huaweicloudsdkoms/v2/model/stop_sync_task_response.py +85 -0
  95. huaweicloudsdkoms/v2/model/stop_task_group_request.py +114 -0
  96. huaweicloudsdkoms/v2/model/stop_task_group_response.py +85 -0
  97. huaweicloudsdkoms/v2/model/stop_task_request.py +114 -0
  98. huaweicloudsdkoms/v2/model/stop_task_response.py +85 -0
  99. huaweicloudsdkoms/v2/model/sync_object_req.py +114 -0
  100. huaweicloudsdkoms/v2/model/sync_task_info.py +604 -0
  101. huaweicloudsdkoms/v2/model/task_group_dst_node.py +256 -0
  102. huaweicloudsdkoms/v2/model/task_group_dst_node_resp.py +173 -0
  103. huaweicloudsdkoms/v2/model/task_group_resp.py +1164 -0
  104. huaweicloudsdkoms/v2/model/task_group_src_node.py +343 -0
  105. huaweicloudsdkoms/v2/model/task_group_src_node_resp.py +256 -0
  106. huaweicloudsdkoms/v2/model/task_resp.py +1193 -0
  107. huaweicloudsdkoms/v2/model/update_bandwidth_policy_req.py +114 -0
  108. huaweicloudsdkoms/v2/model/update_bandwidth_policy_request.py +139 -0
  109. huaweicloudsdkoms/v2/model/update_bandwidth_policy_response.py +85 -0
  110. huaweicloudsdkoms/v2/model/update_task_group_request.py +139 -0
  111. huaweicloudsdkoms/v2/model/update_task_group_response.py +85 -0
  112. huaweicloudsdkoms/v2/model/version.py +202 -0
  113. huaweicloudsdkoms/v2/oms_async_client.py +2263 -0
  114. huaweicloudsdkoms/v2/oms_client.py +2260 -0
  115. huaweicloudsdkoms/v2/region/__init__.py +0 -0
  116. huaweicloudsdkoms/v2/region/oms_region.py +91 -0
  117. huaweicloudsdkoms-3.1.160.dist-info/LICENSE +13 -0
  118. huaweicloudsdkoms-3.1.160.dist-info/METADATA +26 -0
  119. huaweicloudsdkoms-3.1.160.dist-info/RECORD +121 -0
  120. huaweicloudsdkoms-3.1.160.dist-info/WHEEL +5 -0
  121. huaweicloudsdkoms-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,1164 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class TaskGroupResp:
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
+ 'status': 'int',
22
+ 'error_reason': 'ErrorReasonResp',
23
+ 'src_node': 'TaskGroupSrcNodeResp',
24
+ 'description': 'str',
25
+ 'dst_node': 'TaskGroupDstNodeResp',
26
+ 'enable_metadata_migration': 'bool',
27
+ 'enable_failed_object_recording': 'bool',
28
+ 'enable_restore': 'bool',
29
+ 'enable_kms': 'bool',
30
+ 'task_type': 'str',
31
+ 'bandwidth_policy': 'list[BandwidthPolicyDto]',
32
+ 'smn_config': 'SmnInfo',
33
+ 'source_cdn': 'SourceCdnResp',
34
+ 'migrate_since': 'int',
35
+ 'migrate_speed': 'int',
36
+ 'total_time': 'int',
37
+ 'start_time': 'int',
38
+ 'total_task_num': 'int',
39
+ 'create_task_num': 'int',
40
+ 'failed_task_num': 'int',
41
+ 'complete_task_num': 'int',
42
+ 'paused_task_num': 'int',
43
+ 'executing_task_num': 'int',
44
+ 'waiting_task_num': 'int',
45
+ 'total_num': 'int',
46
+ 'create_complete_num': 'int',
47
+ 'success_num': 'int',
48
+ 'fail_num': 'int',
49
+ 'skip_num': 'int',
50
+ 'total_size': 'int',
51
+ 'create_complete_size': 'int',
52
+ 'complete_size': 'int',
53
+ 'failed_object_record': 'FailedObjectRecordDto',
54
+ 'object_overwrite_mode': 'str',
55
+ 'dst_storage_policy': 'str',
56
+ 'consistency_check': 'str',
57
+ 'enable_requester_pays': 'bool'
58
+ }
59
+
60
+ attribute_map = {
61
+ 'group_id': 'group_id',
62
+ 'status': 'status',
63
+ 'error_reason': 'error_reason',
64
+ 'src_node': 'src_node',
65
+ 'description': 'description',
66
+ 'dst_node': 'dst_node',
67
+ 'enable_metadata_migration': 'enable_metadata_migration',
68
+ 'enable_failed_object_recording': 'enable_failed_object_recording',
69
+ 'enable_restore': 'enable_restore',
70
+ 'enable_kms': 'enable_kms',
71
+ 'task_type': 'task_type',
72
+ 'bandwidth_policy': 'bandwidth_policy',
73
+ 'smn_config': 'smn_config',
74
+ 'source_cdn': 'source_cdn',
75
+ 'migrate_since': 'migrate_since',
76
+ 'migrate_speed': 'migrate_speed',
77
+ 'total_time': 'total_time',
78
+ 'start_time': 'start_time',
79
+ 'total_task_num': 'total_task_num',
80
+ 'create_task_num': 'create_task_num',
81
+ 'failed_task_num': 'failed_task_num',
82
+ 'complete_task_num': 'complete_task_num',
83
+ 'paused_task_num': 'paused_task_num',
84
+ 'executing_task_num': 'executing_task_num',
85
+ 'waiting_task_num': 'waiting_task_num',
86
+ 'total_num': 'total_num',
87
+ 'create_complete_num': 'create_complete_num',
88
+ 'success_num': 'success_num',
89
+ 'fail_num': 'fail_num',
90
+ 'skip_num': 'skip_num',
91
+ 'total_size': 'total_size',
92
+ 'create_complete_size': 'create_complete_size',
93
+ 'complete_size': 'complete_size',
94
+ 'failed_object_record': 'failed_object_record',
95
+ 'object_overwrite_mode': 'object_overwrite_mode',
96
+ 'dst_storage_policy': 'dst_storage_policy',
97
+ 'consistency_check': 'consistency_check',
98
+ 'enable_requester_pays': 'enable_requester_pays'
99
+ }
100
+
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):
102
+ r"""TaskGroupResp
103
+
104
+ The model defined in huaweicloud sdk
105
+
106
+ :param group_id: 任务组id
107
+ :type group_id: str
108
+ :param status: 迁移组任务状态。 0 – 等待中 1 – 执行中/创建中 2 – 监控任务执行 3 – 暂停 4 – 创建任务失败 5 – 迁移失败 6 – 迁移完成 7 – 暂停中 8 – 等待删除中 9 – 删除
109
+ :type status: int
110
+ :param error_reason:
111
+ :type error_reason: :class:`huaweicloudsdkoms.v2.ErrorReasonResp`
112
+ :param src_node:
113
+ :type src_node: :class:`huaweicloudsdkoms.v2.TaskGroupSrcNodeResp`
114
+ :param description: 任务描述,不能超过255个字符,且不能包含^<>&\"'等特殊字符。
115
+ :type description: str
116
+ :param dst_node:
117
+ :type dst_node: :class:`huaweicloudsdkoms.v2.TaskGroupDstNodeResp`
118
+ :param enable_metadata_migration: 是否启用元数据迁移,默认否。不启用时,为保证迁移任务正常运行,仍将为您迁移ContentType元数据。
119
+ :type enable_metadata_migration: bool
120
+ :param enable_failed_object_recording: 是否开启记录失败对象
121
+ :type enable_failed_object_recording: bool
122
+ :param enable_restore: 是否自动解冻归档数据,(由于对象存储解冻需要源端存储等待一定时间,开启自动解冻会对迁移速度有较大影响,建议先完成归档存储数据解冻后再启动迁移)。 开启后,如果遇到归档类型数据,会自动解冻再进行迁移;如果遇到归档类型的对象直接跳过相应对象,系统默认对象迁移失败并记录相关信息到失败对象列表中。
123
+ :type enable_restore: bool
124
+ :param enable_kms: 存储入OBS时是否使用KMS加密。
125
+ :type enable_kms: bool
126
+ :param task_type: 任务类型,默认为PREFIX。 LIST:对象列表迁移 URL_LIST:URL列表迁移, PREFIX:对象前缀迁移
127
+ :type task_type: str
128
+ :param bandwidth_policy: 配置流量控制策略。数组中一个元素对应一个时段的最大带宽,最多允许5个时段,且时段不能重叠。
129
+ :type bandwidth_policy: list[:class:`huaweicloudsdkoms.v2.BandwidthPolicyDto`]
130
+ :param smn_config:
131
+ :type smn_config: :class:`huaweicloudsdkoms.v2.SmnInfo`
132
+ :param source_cdn:
133
+ :type source_cdn: :class:`huaweicloudsdkoms.v2.SourceCdnResp`
134
+ :param migrate_since: 迁移指定时间(时间戳,毫秒),表示仅迁移在指定时间之后修改的源端待迁移对象。默认为0,表示不设置迁移指定时间。
135
+ :type migrate_since: int
136
+ :param migrate_speed: 任务组迁移速度(Byte/s)
137
+ :type migrate_speed: int
138
+ :param total_time: 迁移任务组总耗时(毫秒)
139
+ :type total_time: int
140
+ :param start_time: 迁移任务组的启动时间(Unix时间戳,毫秒)
141
+ :type start_time: int
142
+ :param total_task_num: 任务组包含的迁移任务总数
143
+ :type total_task_num: int
144
+ :param create_task_num: 已创建的迁移任务数
145
+ :type create_task_num: int
146
+ :param failed_task_num: 失败的迁移任务数
147
+ :type failed_task_num: int
148
+ :param complete_task_num: 已完成的迁移任务数
149
+ :type complete_task_num: int
150
+ :param paused_task_num: 暂停的迁移任务数
151
+ :type paused_task_num: int
152
+ :param executing_task_num: 正在运行的迁移任务数
153
+ :type executing_task_num: int
154
+ :param waiting_task_num: 等待中的迁移任务数
155
+ :type waiting_task_num: int
156
+ :param total_num: 迁移任务组包含的对象总数量
157
+ :type total_num: int
158
+ :param create_complete_num: 已完成任务创建的对象总数量
159
+ :type create_complete_num: int
160
+ :param success_num: 成功的对象数量
161
+ :type success_num: int
162
+ :param fail_num: 失败的对象数量
163
+ :type fail_num: int
164
+ :param skip_num: 忽略的对象数量
165
+ :type skip_num: int
166
+ :param total_size: 任务迁移总大小(Byte)
167
+ :type total_size: int
168
+ :param create_complete_size: 已创建迁移任务包含的对象总大小(Byte)
169
+ :type create_complete_size: int
170
+ :param complete_size: 已迁移成功的对象总大小(Byte)
171
+ :type complete_size: int
172
+ :param failed_object_record:
173
+ :type failed_object_record: :class:`huaweicloudsdkoms.v2.FailedObjectRecordDto`
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:全覆盖。迁移前源端对象与目的端对象同名时,不做对比覆盖目的端。
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
178
+ :param consistency_check: 一致性校验方式,用于迁移前/后校验对象是否一致,所有校验方式需满足源端/目的端对象的加密状态一致,具体校验方式和校验结果可通过对象列表查看。默认size_last_modified。 size_last_modified:默认配置。迁移前后,通过对比源端和目的端对象大小+最后修改时间,判断对象是否已存在或迁移后数据是否完整。源端与目的端同名对象大小相同,且目的端对象的最后修改时间不早于源端对象的最后修改时间,则代表该对象已存在/迁移成功。 crc64:目前仅支持华为/阿里/腾讯。迁移前后,通过对比源端和目的端对象元数据中CRC64值是否相同,判断对象是否已存在/迁移完成。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用大小/最后修改时间校验方式来校验。 no_check:目前仅支持HTTP/HTTPS数据源。当源端对象无法通过标准http协议中content-length字段获取数据大小时,默认数据下载成功即迁移成功,不对数据做额外校验,且迁移时源端对象默认覆盖目的端同名对象。当源端对象能正常通过标准http协议中content-length字段获取数据大小时,则采用大小/最后修改时间校验方式来校验。
179
+ :type consistency_check: str
180
+ :param enable_requester_pays: 是否开启请求者付款,在启用后,请求者支付请求和数据传输费用。
181
+ :type enable_requester_pays: bool
182
+ """
183
+
184
+
185
+
186
+ self._group_id = None
187
+ self._status = None
188
+ self._error_reason = None
189
+ self._src_node = None
190
+ self._description = None
191
+ self._dst_node = None
192
+ self._enable_metadata_migration = None
193
+ self._enable_failed_object_recording = None
194
+ self._enable_restore = None
195
+ self._enable_kms = None
196
+ self._task_type = None
197
+ self._bandwidth_policy = None
198
+ self._smn_config = None
199
+ self._source_cdn = None
200
+ self._migrate_since = None
201
+ self._migrate_speed = None
202
+ self._total_time = None
203
+ self._start_time = None
204
+ self._total_task_num = None
205
+ self._create_task_num = None
206
+ self._failed_task_num = None
207
+ self._complete_task_num = None
208
+ self._paused_task_num = None
209
+ self._executing_task_num = None
210
+ self._waiting_task_num = None
211
+ self._total_num = None
212
+ self._create_complete_num = None
213
+ self._success_num = None
214
+ self._fail_num = None
215
+ self._skip_num = None
216
+ self._total_size = None
217
+ self._create_complete_size = None
218
+ self._complete_size = None
219
+ self._failed_object_record = None
220
+ self._object_overwrite_mode = None
221
+ self._dst_storage_policy = None
222
+ self._consistency_check = None
223
+ self._enable_requester_pays = None
224
+ self.discriminator = None
225
+
226
+ if group_id is not None:
227
+ self.group_id = group_id
228
+ if status is not None:
229
+ self.status = status
230
+ if error_reason is not None:
231
+ self.error_reason = error_reason
232
+ if src_node is not None:
233
+ self.src_node = src_node
234
+ if description is not None:
235
+ self.description = description
236
+ if dst_node is not None:
237
+ self.dst_node = dst_node
238
+ if enable_metadata_migration is not None:
239
+ self.enable_metadata_migration = enable_metadata_migration
240
+ if enable_failed_object_recording is not None:
241
+ self.enable_failed_object_recording = enable_failed_object_recording
242
+ if enable_restore is not None:
243
+ self.enable_restore = enable_restore
244
+ if enable_kms is not None:
245
+ self.enable_kms = enable_kms
246
+ if task_type is not None:
247
+ self.task_type = task_type
248
+ if bandwidth_policy is not None:
249
+ self.bandwidth_policy = bandwidth_policy
250
+ if smn_config is not None:
251
+ self.smn_config = smn_config
252
+ if source_cdn is not None:
253
+ self.source_cdn = source_cdn
254
+ if migrate_since is not None:
255
+ self.migrate_since = migrate_since
256
+ if migrate_speed is not None:
257
+ self.migrate_speed = migrate_speed
258
+ if total_time is not None:
259
+ self.total_time = total_time
260
+ if start_time is not None:
261
+ self.start_time = start_time
262
+ if total_task_num is not None:
263
+ self.total_task_num = total_task_num
264
+ if create_task_num is not None:
265
+ self.create_task_num = create_task_num
266
+ if failed_task_num is not None:
267
+ self.failed_task_num = failed_task_num
268
+ if complete_task_num is not None:
269
+ self.complete_task_num = complete_task_num
270
+ if paused_task_num is not None:
271
+ self.paused_task_num = paused_task_num
272
+ if executing_task_num is not None:
273
+ self.executing_task_num = executing_task_num
274
+ if waiting_task_num is not None:
275
+ self.waiting_task_num = waiting_task_num
276
+ if total_num is not None:
277
+ self.total_num = total_num
278
+ if create_complete_num is not None:
279
+ self.create_complete_num = create_complete_num
280
+ if success_num is not None:
281
+ self.success_num = success_num
282
+ if fail_num is not None:
283
+ self.fail_num = fail_num
284
+ if skip_num is not None:
285
+ self.skip_num = skip_num
286
+ if total_size is not None:
287
+ self.total_size = total_size
288
+ if create_complete_size is not None:
289
+ self.create_complete_size = create_complete_size
290
+ if complete_size is not None:
291
+ self.complete_size = complete_size
292
+ if failed_object_record is not None:
293
+ self.failed_object_record = failed_object_record
294
+ if object_overwrite_mode is not None:
295
+ self.object_overwrite_mode = object_overwrite_mode
296
+ if dst_storage_policy is not None:
297
+ self.dst_storage_policy = dst_storage_policy
298
+ if consistency_check is not None:
299
+ self.consistency_check = consistency_check
300
+ if enable_requester_pays is not None:
301
+ self.enable_requester_pays = enable_requester_pays
302
+
303
+ @property
304
+ def group_id(self):
305
+ r"""Gets the group_id of this TaskGroupResp.
306
+
307
+ 任务组id
308
+
309
+ :return: The group_id of this TaskGroupResp.
310
+ :rtype: str
311
+ """
312
+ return self._group_id
313
+
314
+ @group_id.setter
315
+ def group_id(self, group_id):
316
+ r"""Sets the group_id of this TaskGroupResp.
317
+
318
+ 任务组id
319
+
320
+ :param group_id: The group_id of this TaskGroupResp.
321
+ :type group_id: str
322
+ """
323
+ self._group_id = group_id
324
+
325
+ @property
326
+ def status(self):
327
+ r"""Gets the status of this TaskGroupResp.
328
+
329
+ 迁移组任务状态。 0 – 等待中 1 – 执行中/创建中 2 – 监控任务执行 3 – 暂停 4 – 创建任务失败 5 – 迁移失败 6 – 迁移完成 7 – 暂停中 8 – 等待删除中 9 – 删除
330
+
331
+ :return: The status of this TaskGroupResp.
332
+ :rtype: int
333
+ """
334
+ return self._status
335
+
336
+ @status.setter
337
+ def status(self, status):
338
+ r"""Sets the status of this TaskGroupResp.
339
+
340
+ 迁移组任务状态。 0 – 等待中 1 – 执行中/创建中 2 – 监控任务执行 3 – 暂停 4 – 创建任务失败 5 – 迁移失败 6 – 迁移完成 7 – 暂停中 8 – 等待删除中 9 – 删除
341
+
342
+ :param status: The status of this TaskGroupResp.
343
+ :type status: int
344
+ """
345
+ self._status = status
346
+
347
+ @property
348
+ def error_reason(self):
349
+ r"""Gets the error_reason of this TaskGroupResp.
350
+
351
+ :return: The error_reason of this TaskGroupResp.
352
+ :rtype: :class:`huaweicloudsdkoms.v2.ErrorReasonResp`
353
+ """
354
+ return self._error_reason
355
+
356
+ @error_reason.setter
357
+ def error_reason(self, error_reason):
358
+ r"""Sets the error_reason of this TaskGroupResp.
359
+
360
+ :param error_reason: The error_reason of this TaskGroupResp.
361
+ :type error_reason: :class:`huaweicloudsdkoms.v2.ErrorReasonResp`
362
+ """
363
+ self._error_reason = error_reason
364
+
365
+ @property
366
+ def src_node(self):
367
+ r"""Gets the src_node of this TaskGroupResp.
368
+
369
+ :return: The src_node of this TaskGroupResp.
370
+ :rtype: :class:`huaweicloudsdkoms.v2.TaskGroupSrcNodeResp`
371
+ """
372
+ return self._src_node
373
+
374
+ @src_node.setter
375
+ def src_node(self, src_node):
376
+ r"""Sets the src_node of this TaskGroupResp.
377
+
378
+ :param src_node: The src_node of this TaskGroupResp.
379
+ :type src_node: :class:`huaweicloudsdkoms.v2.TaskGroupSrcNodeResp`
380
+ """
381
+ self._src_node = src_node
382
+
383
+ @property
384
+ def description(self):
385
+ r"""Gets the description of this TaskGroupResp.
386
+
387
+ 任务描述,不能超过255个字符,且不能包含^<>&\"'等特殊字符。
388
+
389
+ :return: The description of this TaskGroupResp.
390
+ :rtype: str
391
+ """
392
+ return self._description
393
+
394
+ @description.setter
395
+ def description(self, description):
396
+ r"""Sets the description of this TaskGroupResp.
397
+
398
+ 任务描述,不能超过255个字符,且不能包含^<>&\"'等特殊字符。
399
+
400
+ :param description: The description of this TaskGroupResp.
401
+ :type description: str
402
+ """
403
+ self._description = description
404
+
405
+ @property
406
+ def dst_node(self):
407
+ r"""Gets the dst_node of this TaskGroupResp.
408
+
409
+ :return: The dst_node of this TaskGroupResp.
410
+ :rtype: :class:`huaweicloudsdkoms.v2.TaskGroupDstNodeResp`
411
+ """
412
+ return self._dst_node
413
+
414
+ @dst_node.setter
415
+ def dst_node(self, dst_node):
416
+ r"""Sets the dst_node of this TaskGroupResp.
417
+
418
+ :param dst_node: The dst_node of this TaskGroupResp.
419
+ :type dst_node: :class:`huaweicloudsdkoms.v2.TaskGroupDstNodeResp`
420
+ """
421
+ self._dst_node = dst_node
422
+
423
+ @property
424
+ def enable_metadata_migration(self):
425
+ r"""Gets the enable_metadata_migration of this TaskGroupResp.
426
+
427
+ 是否启用元数据迁移,默认否。不启用时,为保证迁移任务正常运行,仍将为您迁移ContentType元数据。
428
+
429
+ :return: The enable_metadata_migration of this TaskGroupResp.
430
+ :rtype: bool
431
+ """
432
+ return self._enable_metadata_migration
433
+
434
+ @enable_metadata_migration.setter
435
+ def enable_metadata_migration(self, enable_metadata_migration):
436
+ r"""Sets the enable_metadata_migration of this TaskGroupResp.
437
+
438
+ 是否启用元数据迁移,默认否。不启用时,为保证迁移任务正常运行,仍将为您迁移ContentType元数据。
439
+
440
+ :param enable_metadata_migration: The enable_metadata_migration of this TaskGroupResp.
441
+ :type enable_metadata_migration: bool
442
+ """
443
+ self._enable_metadata_migration = enable_metadata_migration
444
+
445
+ @property
446
+ def enable_failed_object_recording(self):
447
+ r"""Gets the enable_failed_object_recording of this TaskGroupResp.
448
+
449
+ 是否开启记录失败对象
450
+
451
+ :return: The enable_failed_object_recording of this TaskGroupResp.
452
+ :rtype: bool
453
+ """
454
+ return self._enable_failed_object_recording
455
+
456
+ @enable_failed_object_recording.setter
457
+ def enable_failed_object_recording(self, enable_failed_object_recording):
458
+ r"""Sets the enable_failed_object_recording of this TaskGroupResp.
459
+
460
+ 是否开启记录失败对象
461
+
462
+ :param enable_failed_object_recording: The enable_failed_object_recording of this TaskGroupResp.
463
+ :type enable_failed_object_recording: bool
464
+ """
465
+ self._enable_failed_object_recording = enable_failed_object_recording
466
+
467
+ @property
468
+ def enable_restore(self):
469
+ r"""Gets the enable_restore of this TaskGroupResp.
470
+
471
+ 是否自动解冻归档数据,(由于对象存储解冻需要源端存储等待一定时间,开启自动解冻会对迁移速度有较大影响,建议先完成归档存储数据解冻后再启动迁移)。 开启后,如果遇到归档类型数据,会自动解冻再进行迁移;如果遇到归档类型的对象直接跳过相应对象,系统默认对象迁移失败并记录相关信息到失败对象列表中。
472
+
473
+ :return: The enable_restore of this TaskGroupResp.
474
+ :rtype: bool
475
+ """
476
+ return self._enable_restore
477
+
478
+ @enable_restore.setter
479
+ def enable_restore(self, enable_restore):
480
+ r"""Sets the enable_restore of this TaskGroupResp.
481
+
482
+ 是否自动解冻归档数据,(由于对象存储解冻需要源端存储等待一定时间,开启自动解冻会对迁移速度有较大影响,建议先完成归档存储数据解冻后再启动迁移)。 开启后,如果遇到归档类型数据,会自动解冻再进行迁移;如果遇到归档类型的对象直接跳过相应对象,系统默认对象迁移失败并记录相关信息到失败对象列表中。
483
+
484
+ :param enable_restore: The enable_restore of this TaskGroupResp.
485
+ :type enable_restore: bool
486
+ """
487
+ self._enable_restore = enable_restore
488
+
489
+ @property
490
+ def enable_kms(self):
491
+ r"""Gets the enable_kms of this TaskGroupResp.
492
+
493
+ 存储入OBS时是否使用KMS加密。
494
+
495
+ :return: The enable_kms of this TaskGroupResp.
496
+ :rtype: bool
497
+ """
498
+ return self._enable_kms
499
+
500
+ @enable_kms.setter
501
+ def enable_kms(self, enable_kms):
502
+ r"""Sets the enable_kms of this TaskGroupResp.
503
+
504
+ 存储入OBS时是否使用KMS加密。
505
+
506
+ :param enable_kms: The enable_kms of this TaskGroupResp.
507
+ :type enable_kms: bool
508
+ """
509
+ self._enable_kms = enable_kms
510
+
511
+ @property
512
+ def task_type(self):
513
+ r"""Gets the task_type of this TaskGroupResp.
514
+
515
+ 任务类型,默认为PREFIX。 LIST:对象列表迁移 URL_LIST:URL列表迁移, PREFIX:对象前缀迁移
516
+
517
+ :return: The task_type of this TaskGroupResp.
518
+ :rtype: str
519
+ """
520
+ return self._task_type
521
+
522
+ @task_type.setter
523
+ def task_type(self, task_type):
524
+ r"""Sets the task_type of this TaskGroupResp.
525
+
526
+ 任务类型,默认为PREFIX。 LIST:对象列表迁移 URL_LIST:URL列表迁移, PREFIX:对象前缀迁移
527
+
528
+ :param task_type: The task_type of this TaskGroupResp.
529
+ :type task_type: str
530
+ """
531
+ self._task_type = task_type
532
+
533
+ @property
534
+ def bandwidth_policy(self):
535
+ r"""Gets the bandwidth_policy of this TaskGroupResp.
536
+
537
+ 配置流量控制策略。数组中一个元素对应一个时段的最大带宽,最多允许5个时段,且时段不能重叠。
538
+
539
+ :return: The bandwidth_policy of this TaskGroupResp.
540
+ :rtype: list[:class:`huaweicloudsdkoms.v2.BandwidthPolicyDto`]
541
+ """
542
+ return self._bandwidth_policy
543
+
544
+ @bandwidth_policy.setter
545
+ def bandwidth_policy(self, bandwidth_policy):
546
+ r"""Sets the bandwidth_policy of this TaskGroupResp.
547
+
548
+ 配置流量控制策略。数组中一个元素对应一个时段的最大带宽,最多允许5个时段,且时段不能重叠。
549
+
550
+ :param bandwidth_policy: The bandwidth_policy of this TaskGroupResp.
551
+ :type bandwidth_policy: list[:class:`huaweicloudsdkoms.v2.BandwidthPolicyDto`]
552
+ """
553
+ self._bandwidth_policy = bandwidth_policy
554
+
555
+ @property
556
+ def smn_config(self):
557
+ r"""Gets the smn_config of this TaskGroupResp.
558
+
559
+ :return: The smn_config of this TaskGroupResp.
560
+ :rtype: :class:`huaweicloudsdkoms.v2.SmnInfo`
561
+ """
562
+ return self._smn_config
563
+
564
+ @smn_config.setter
565
+ def smn_config(self, smn_config):
566
+ r"""Sets the smn_config of this TaskGroupResp.
567
+
568
+ :param smn_config: The smn_config of this TaskGroupResp.
569
+ :type smn_config: :class:`huaweicloudsdkoms.v2.SmnInfo`
570
+ """
571
+ self._smn_config = smn_config
572
+
573
+ @property
574
+ def source_cdn(self):
575
+ r"""Gets the source_cdn of this TaskGroupResp.
576
+
577
+ :return: The source_cdn of this TaskGroupResp.
578
+ :rtype: :class:`huaweicloudsdkoms.v2.SourceCdnResp`
579
+ """
580
+ return self._source_cdn
581
+
582
+ @source_cdn.setter
583
+ def source_cdn(self, source_cdn):
584
+ r"""Sets the source_cdn of this TaskGroupResp.
585
+
586
+ :param source_cdn: The source_cdn of this TaskGroupResp.
587
+ :type source_cdn: :class:`huaweicloudsdkoms.v2.SourceCdnResp`
588
+ """
589
+ self._source_cdn = source_cdn
590
+
591
+ @property
592
+ def migrate_since(self):
593
+ r"""Gets the migrate_since of this TaskGroupResp.
594
+
595
+ 迁移指定时间(时间戳,毫秒),表示仅迁移在指定时间之后修改的源端待迁移对象。默认为0,表示不设置迁移指定时间。
596
+
597
+ :return: The migrate_since of this TaskGroupResp.
598
+ :rtype: int
599
+ """
600
+ return self._migrate_since
601
+
602
+ @migrate_since.setter
603
+ def migrate_since(self, migrate_since):
604
+ r"""Sets the migrate_since of this TaskGroupResp.
605
+
606
+ 迁移指定时间(时间戳,毫秒),表示仅迁移在指定时间之后修改的源端待迁移对象。默认为0,表示不设置迁移指定时间。
607
+
608
+ :param migrate_since: The migrate_since of this TaskGroupResp.
609
+ :type migrate_since: int
610
+ """
611
+ self._migrate_since = migrate_since
612
+
613
+ @property
614
+ def migrate_speed(self):
615
+ r"""Gets the migrate_speed of this TaskGroupResp.
616
+
617
+ 任务组迁移速度(Byte/s)
618
+
619
+ :return: The migrate_speed of this TaskGroupResp.
620
+ :rtype: int
621
+ """
622
+ return self._migrate_speed
623
+
624
+ @migrate_speed.setter
625
+ def migrate_speed(self, migrate_speed):
626
+ r"""Sets the migrate_speed of this TaskGroupResp.
627
+
628
+ 任务组迁移速度(Byte/s)
629
+
630
+ :param migrate_speed: The migrate_speed of this TaskGroupResp.
631
+ :type migrate_speed: int
632
+ """
633
+ self._migrate_speed = migrate_speed
634
+
635
+ @property
636
+ def total_time(self):
637
+ r"""Gets the total_time of this TaskGroupResp.
638
+
639
+ 迁移任务组总耗时(毫秒)
640
+
641
+ :return: The total_time of this TaskGroupResp.
642
+ :rtype: int
643
+ """
644
+ return self._total_time
645
+
646
+ @total_time.setter
647
+ def total_time(self, total_time):
648
+ r"""Sets the total_time of this TaskGroupResp.
649
+
650
+ 迁移任务组总耗时(毫秒)
651
+
652
+ :param total_time: The total_time of this TaskGroupResp.
653
+ :type total_time: int
654
+ """
655
+ self._total_time = total_time
656
+
657
+ @property
658
+ def start_time(self):
659
+ r"""Gets the start_time of this TaskGroupResp.
660
+
661
+ 迁移任务组的启动时间(Unix时间戳,毫秒)
662
+
663
+ :return: The start_time of this TaskGroupResp.
664
+ :rtype: int
665
+ """
666
+ return self._start_time
667
+
668
+ @start_time.setter
669
+ def start_time(self, start_time):
670
+ r"""Sets the start_time of this TaskGroupResp.
671
+
672
+ 迁移任务组的启动时间(Unix时间戳,毫秒)
673
+
674
+ :param start_time: The start_time of this TaskGroupResp.
675
+ :type start_time: int
676
+ """
677
+ self._start_time = start_time
678
+
679
+ @property
680
+ def total_task_num(self):
681
+ r"""Gets the total_task_num of this TaskGroupResp.
682
+
683
+ 任务组包含的迁移任务总数
684
+
685
+ :return: The total_task_num of this TaskGroupResp.
686
+ :rtype: int
687
+ """
688
+ return self._total_task_num
689
+
690
+ @total_task_num.setter
691
+ def total_task_num(self, total_task_num):
692
+ r"""Sets the total_task_num of this TaskGroupResp.
693
+
694
+ 任务组包含的迁移任务总数
695
+
696
+ :param total_task_num: The total_task_num of this TaskGroupResp.
697
+ :type total_task_num: int
698
+ """
699
+ self._total_task_num = total_task_num
700
+
701
+ @property
702
+ def create_task_num(self):
703
+ r"""Gets the create_task_num of this TaskGroupResp.
704
+
705
+ 已创建的迁移任务数
706
+
707
+ :return: The create_task_num of this TaskGroupResp.
708
+ :rtype: int
709
+ """
710
+ return self._create_task_num
711
+
712
+ @create_task_num.setter
713
+ def create_task_num(self, create_task_num):
714
+ r"""Sets the create_task_num of this TaskGroupResp.
715
+
716
+ 已创建的迁移任务数
717
+
718
+ :param create_task_num: The create_task_num of this TaskGroupResp.
719
+ :type create_task_num: int
720
+ """
721
+ self._create_task_num = create_task_num
722
+
723
+ @property
724
+ def failed_task_num(self):
725
+ r"""Gets the failed_task_num of this TaskGroupResp.
726
+
727
+ 失败的迁移任务数
728
+
729
+ :return: The failed_task_num of this TaskGroupResp.
730
+ :rtype: int
731
+ """
732
+ return self._failed_task_num
733
+
734
+ @failed_task_num.setter
735
+ def failed_task_num(self, failed_task_num):
736
+ r"""Sets the failed_task_num of this TaskGroupResp.
737
+
738
+ 失败的迁移任务数
739
+
740
+ :param failed_task_num: The failed_task_num of this TaskGroupResp.
741
+ :type failed_task_num: int
742
+ """
743
+ self._failed_task_num = failed_task_num
744
+
745
+ @property
746
+ def complete_task_num(self):
747
+ r"""Gets the complete_task_num of this TaskGroupResp.
748
+
749
+ 已完成的迁移任务数
750
+
751
+ :return: The complete_task_num of this TaskGroupResp.
752
+ :rtype: int
753
+ """
754
+ return self._complete_task_num
755
+
756
+ @complete_task_num.setter
757
+ def complete_task_num(self, complete_task_num):
758
+ r"""Sets the complete_task_num of this TaskGroupResp.
759
+
760
+ 已完成的迁移任务数
761
+
762
+ :param complete_task_num: The complete_task_num of this TaskGroupResp.
763
+ :type complete_task_num: int
764
+ """
765
+ self._complete_task_num = complete_task_num
766
+
767
+ @property
768
+ def paused_task_num(self):
769
+ r"""Gets the paused_task_num of this TaskGroupResp.
770
+
771
+ 暂停的迁移任务数
772
+
773
+ :return: The paused_task_num of this TaskGroupResp.
774
+ :rtype: int
775
+ """
776
+ return self._paused_task_num
777
+
778
+ @paused_task_num.setter
779
+ def paused_task_num(self, paused_task_num):
780
+ r"""Sets the paused_task_num of this TaskGroupResp.
781
+
782
+ 暂停的迁移任务数
783
+
784
+ :param paused_task_num: The paused_task_num of this TaskGroupResp.
785
+ :type paused_task_num: int
786
+ """
787
+ self._paused_task_num = paused_task_num
788
+
789
+ @property
790
+ def executing_task_num(self):
791
+ r"""Gets the executing_task_num of this TaskGroupResp.
792
+
793
+ 正在运行的迁移任务数
794
+
795
+ :return: The executing_task_num of this TaskGroupResp.
796
+ :rtype: int
797
+ """
798
+ return self._executing_task_num
799
+
800
+ @executing_task_num.setter
801
+ def executing_task_num(self, executing_task_num):
802
+ r"""Sets the executing_task_num of this TaskGroupResp.
803
+
804
+ 正在运行的迁移任务数
805
+
806
+ :param executing_task_num: The executing_task_num of this TaskGroupResp.
807
+ :type executing_task_num: int
808
+ """
809
+ self._executing_task_num = executing_task_num
810
+
811
+ @property
812
+ def waiting_task_num(self):
813
+ r"""Gets the waiting_task_num of this TaskGroupResp.
814
+
815
+ 等待中的迁移任务数
816
+
817
+ :return: The waiting_task_num of this TaskGroupResp.
818
+ :rtype: int
819
+ """
820
+ return self._waiting_task_num
821
+
822
+ @waiting_task_num.setter
823
+ def waiting_task_num(self, waiting_task_num):
824
+ r"""Sets the waiting_task_num of this TaskGroupResp.
825
+
826
+ 等待中的迁移任务数
827
+
828
+ :param waiting_task_num: The waiting_task_num of this TaskGroupResp.
829
+ :type waiting_task_num: int
830
+ """
831
+ self._waiting_task_num = waiting_task_num
832
+
833
+ @property
834
+ def total_num(self):
835
+ r"""Gets the total_num of this TaskGroupResp.
836
+
837
+ 迁移任务组包含的对象总数量
838
+
839
+ :return: The total_num of this TaskGroupResp.
840
+ :rtype: int
841
+ """
842
+ return self._total_num
843
+
844
+ @total_num.setter
845
+ def total_num(self, total_num):
846
+ r"""Sets the total_num of this TaskGroupResp.
847
+
848
+ 迁移任务组包含的对象总数量
849
+
850
+ :param total_num: The total_num of this TaskGroupResp.
851
+ :type total_num: int
852
+ """
853
+ self._total_num = total_num
854
+
855
+ @property
856
+ def create_complete_num(self):
857
+ r"""Gets the create_complete_num of this TaskGroupResp.
858
+
859
+ 已完成任务创建的对象总数量
860
+
861
+ :return: The create_complete_num of this TaskGroupResp.
862
+ :rtype: int
863
+ """
864
+ return self._create_complete_num
865
+
866
+ @create_complete_num.setter
867
+ def create_complete_num(self, create_complete_num):
868
+ r"""Sets the create_complete_num of this TaskGroupResp.
869
+
870
+ 已完成任务创建的对象总数量
871
+
872
+ :param create_complete_num: The create_complete_num of this TaskGroupResp.
873
+ :type create_complete_num: int
874
+ """
875
+ self._create_complete_num = create_complete_num
876
+
877
+ @property
878
+ def success_num(self):
879
+ r"""Gets the success_num of this TaskGroupResp.
880
+
881
+ 成功的对象数量
882
+
883
+ :return: The success_num of this TaskGroupResp.
884
+ :rtype: int
885
+ """
886
+ return self._success_num
887
+
888
+ @success_num.setter
889
+ def success_num(self, success_num):
890
+ r"""Sets the success_num of this TaskGroupResp.
891
+
892
+ 成功的对象数量
893
+
894
+ :param success_num: The success_num of this TaskGroupResp.
895
+ :type success_num: int
896
+ """
897
+ self._success_num = success_num
898
+
899
+ @property
900
+ def fail_num(self):
901
+ r"""Gets the fail_num of this TaskGroupResp.
902
+
903
+ 失败的对象数量
904
+
905
+ :return: The fail_num of this TaskGroupResp.
906
+ :rtype: int
907
+ """
908
+ return self._fail_num
909
+
910
+ @fail_num.setter
911
+ def fail_num(self, fail_num):
912
+ r"""Sets the fail_num of this TaskGroupResp.
913
+
914
+ 失败的对象数量
915
+
916
+ :param fail_num: The fail_num of this TaskGroupResp.
917
+ :type fail_num: int
918
+ """
919
+ self._fail_num = fail_num
920
+
921
+ @property
922
+ def skip_num(self):
923
+ r"""Gets the skip_num of this TaskGroupResp.
924
+
925
+ 忽略的对象数量
926
+
927
+ :return: The skip_num of this TaskGroupResp.
928
+ :rtype: int
929
+ """
930
+ return self._skip_num
931
+
932
+ @skip_num.setter
933
+ def skip_num(self, skip_num):
934
+ r"""Sets the skip_num of this TaskGroupResp.
935
+
936
+ 忽略的对象数量
937
+
938
+ :param skip_num: The skip_num of this TaskGroupResp.
939
+ :type skip_num: int
940
+ """
941
+ self._skip_num = skip_num
942
+
943
+ @property
944
+ def total_size(self):
945
+ r"""Gets the total_size of this TaskGroupResp.
946
+
947
+ 任务迁移总大小(Byte)
948
+
949
+ :return: The total_size of this TaskGroupResp.
950
+ :rtype: int
951
+ """
952
+ return self._total_size
953
+
954
+ @total_size.setter
955
+ def total_size(self, total_size):
956
+ r"""Sets the total_size of this TaskGroupResp.
957
+
958
+ 任务迁移总大小(Byte)
959
+
960
+ :param total_size: The total_size of this TaskGroupResp.
961
+ :type total_size: int
962
+ """
963
+ self._total_size = total_size
964
+
965
+ @property
966
+ def create_complete_size(self):
967
+ r"""Gets the create_complete_size of this TaskGroupResp.
968
+
969
+ 已创建迁移任务包含的对象总大小(Byte)
970
+
971
+ :return: The create_complete_size of this TaskGroupResp.
972
+ :rtype: int
973
+ """
974
+ return self._create_complete_size
975
+
976
+ @create_complete_size.setter
977
+ def create_complete_size(self, create_complete_size):
978
+ r"""Sets the create_complete_size of this TaskGroupResp.
979
+
980
+ 已创建迁移任务包含的对象总大小(Byte)
981
+
982
+ :param create_complete_size: The create_complete_size of this TaskGroupResp.
983
+ :type create_complete_size: int
984
+ """
985
+ self._create_complete_size = create_complete_size
986
+
987
+ @property
988
+ def complete_size(self):
989
+ r"""Gets the complete_size of this TaskGroupResp.
990
+
991
+ 已迁移成功的对象总大小(Byte)
992
+
993
+ :return: The complete_size of this TaskGroupResp.
994
+ :rtype: int
995
+ """
996
+ return self._complete_size
997
+
998
+ @complete_size.setter
999
+ def complete_size(self, complete_size):
1000
+ r"""Sets the complete_size of this TaskGroupResp.
1001
+
1002
+ 已迁移成功的对象总大小(Byte)
1003
+
1004
+ :param complete_size: The complete_size of this TaskGroupResp.
1005
+ :type complete_size: int
1006
+ """
1007
+ self._complete_size = complete_size
1008
+
1009
+ @property
1010
+ def failed_object_record(self):
1011
+ r"""Gets the failed_object_record of this TaskGroupResp.
1012
+
1013
+ :return: The failed_object_record of this TaskGroupResp.
1014
+ :rtype: :class:`huaweicloudsdkoms.v2.FailedObjectRecordDto`
1015
+ """
1016
+ return self._failed_object_record
1017
+
1018
+ @failed_object_record.setter
1019
+ def failed_object_record(self, failed_object_record):
1020
+ r"""Sets the failed_object_record of this TaskGroupResp.
1021
+
1022
+ :param failed_object_record: The failed_object_record of this TaskGroupResp.
1023
+ :type failed_object_record: :class:`huaweicloudsdkoms.v2.FailedObjectRecordDto`
1024
+ """
1025
+ self._failed_object_record = failed_object_record
1026
+
1027
+ @property
1028
+ def object_overwrite_mode(self):
1029
+ r"""Gets the object_overwrite_mode of this TaskGroupResp.
1030
+
1031
+ 迁移前同名对象覆盖方式,用于迁移前判断源端与目的端有同名对象时,覆盖目的端或跳过迁移。默认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:全覆盖。迁移前源端对象与目的端对象同名时,不做对比覆盖目的端。
1032
+
1033
+ :return: The object_overwrite_mode of this TaskGroupResp.
1034
+ :rtype: str
1035
+ """
1036
+ return self._object_overwrite_mode
1037
+
1038
+ @object_overwrite_mode.setter
1039
+ def object_overwrite_mode(self, object_overwrite_mode):
1040
+ r"""Sets the object_overwrite_mode of this TaskGroupResp.
1041
+
1042
+ 迁移前同名对象覆盖方式,用于迁移前判断源端与目的端有同名对象时,覆盖目的端或跳过迁移。默认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:全覆盖。迁移前源端对象与目的端对象同名时,不做对比覆盖目的端。
1043
+
1044
+ :param object_overwrite_mode: The object_overwrite_mode of this TaskGroupResp.
1045
+ :type object_overwrite_mode: str
1046
+ """
1047
+ self._object_overwrite_mode = object_overwrite_mode
1048
+
1049
+ @property
1050
+ def dst_storage_policy(self):
1051
+ r"""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
+ r"""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
+
1071
+ @property
1072
+ def consistency_check(self):
1073
+ r"""Gets the consistency_check of this TaskGroupResp.
1074
+
1075
+ 一致性校验方式,用于迁移前/后校验对象是否一致,所有校验方式需满足源端/目的端对象的加密状态一致,具体校验方式和校验结果可通过对象列表查看。默认size_last_modified。 size_last_modified:默认配置。迁移前后,通过对比源端和目的端对象大小+最后修改时间,判断对象是否已存在或迁移后数据是否完整。源端与目的端同名对象大小相同,且目的端对象的最后修改时间不早于源端对象的最后修改时间,则代表该对象已存在/迁移成功。 crc64:目前仅支持华为/阿里/腾讯。迁移前后,通过对比源端和目的端对象元数据中CRC64值是否相同,判断对象是否已存在/迁移完成。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用大小/最后修改时间校验方式来校验。 no_check:目前仅支持HTTP/HTTPS数据源。当源端对象无法通过标准http协议中content-length字段获取数据大小时,默认数据下载成功即迁移成功,不对数据做额外校验,且迁移时源端对象默认覆盖目的端同名对象。当源端对象能正常通过标准http协议中content-length字段获取数据大小时,则采用大小/最后修改时间校验方式来校验。
1076
+
1077
+ :return: The consistency_check of this TaskGroupResp.
1078
+ :rtype: str
1079
+ """
1080
+ return self._consistency_check
1081
+
1082
+ @consistency_check.setter
1083
+ def consistency_check(self, consistency_check):
1084
+ r"""Sets the consistency_check of this TaskGroupResp.
1085
+
1086
+ 一致性校验方式,用于迁移前/后校验对象是否一致,所有校验方式需满足源端/目的端对象的加密状态一致,具体校验方式和校验结果可通过对象列表查看。默认size_last_modified。 size_last_modified:默认配置。迁移前后,通过对比源端和目的端对象大小+最后修改时间,判断对象是否已存在或迁移后数据是否完整。源端与目的端同名对象大小相同,且目的端对象的最后修改时间不早于源端对象的最后修改时间,则代表该对象已存在/迁移成功。 crc64:目前仅支持华为/阿里/腾讯。迁移前后,通过对比源端和目的端对象元数据中CRC64值是否相同,判断对象是否已存在/迁移完成。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用大小/最后修改时间校验方式来校验。 no_check:目前仅支持HTTP/HTTPS数据源。当源端对象无法通过标准http协议中content-length字段获取数据大小时,默认数据下载成功即迁移成功,不对数据做额外校验,且迁移时源端对象默认覆盖目的端同名对象。当源端对象能正常通过标准http协议中content-length字段获取数据大小时,则采用大小/最后修改时间校验方式来校验。
1087
+
1088
+ :param consistency_check: The consistency_check of this TaskGroupResp.
1089
+ :type consistency_check: str
1090
+ """
1091
+ self._consistency_check = consistency_check
1092
+
1093
+ @property
1094
+ def enable_requester_pays(self):
1095
+ r"""Gets the enable_requester_pays of this TaskGroupResp.
1096
+
1097
+ 是否开启请求者付款,在启用后,请求者支付请求和数据传输费用。
1098
+
1099
+ :return: The enable_requester_pays of this TaskGroupResp.
1100
+ :rtype: bool
1101
+ """
1102
+ return self._enable_requester_pays
1103
+
1104
+ @enable_requester_pays.setter
1105
+ def enable_requester_pays(self, enable_requester_pays):
1106
+ r"""Sets the enable_requester_pays of this TaskGroupResp.
1107
+
1108
+ 是否开启请求者付款,在启用后,请求者支付请求和数据传输费用。
1109
+
1110
+ :param enable_requester_pays: The enable_requester_pays of this TaskGroupResp.
1111
+ :type enable_requester_pays: bool
1112
+ """
1113
+ self._enable_requester_pays = enable_requester_pays
1114
+
1115
+ def to_dict(self):
1116
+ """Returns the model properties as a dict"""
1117
+ result = {}
1118
+
1119
+ for attr, _ in six.iteritems(self.openapi_types):
1120
+ value = getattr(self, attr)
1121
+ if isinstance(value, list):
1122
+ result[attr] = list(map(
1123
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
1124
+ value
1125
+ ))
1126
+ elif hasattr(value, "to_dict"):
1127
+ result[attr] = value.to_dict()
1128
+ elif isinstance(value, dict):
1129
+ result[attr] = dict(map(
1130
+ lambda item: (item[0], item[1].to_dict())
1131
+ if hasattr(item[1], "to_dict") else item,
1132
+ value.items()
1133
+ ))
1134
+ else:
1135
+ if attr in self.sensitive_list:
1136
+ result[attr] = "****"
1137
+ else:
1138
+ result[attr] = value
1139
+
1140
+ return result
1141
+
1142
+ def to_str(self):
1143
+ """Returns the string representation of the model"""
1144
+ import simplejson as json
1145
+ if six.PY2:
1146
+ import sys
1147
+ reload(sys)
1148
+ sys.setdefaultencoding("utf-8")
1149
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
1150
+
1151
+ def __repr__(self):
1152
+ """For `print`"""
1153
+ return self.to_str()
1154
+
1155
+ def __eq__(self, other):
1156
+ """Returns true if both objects are equal"""
1157
+ if not isinstance(other, TaskGroupResp):
1158
+ return False
1159
+
1160
+ return self.__dict__ == other.__dict__
1161
+
1162
+ def __ne__(self, other):
1163
+ """Returns true if both objects are not equal"""
1164
+ return not self == other