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