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