in oss2/xml_utils.py [0:0]
def parse_get_bucket_data_redundancy_transition(result, body):
root = ElementTree.fromstring(body)
if root.find('Bucket') is not None:
result.bucket = _find_tag_with_default(root, 'Bucket', None)
if root.find('TaskId') is not None:
result.task_id = _find_tag_with_default(root, 'TaskId', None)
if root.find('Status') is not None:
result.transition_status = _find_tag_with_default(root, 'Status', None)
if root.find('CreateTime') is not None:
result.create_time = _find_tag_with_default(root, 'CreateTime', None)
if root.find('StartTime') is not None:
result.start_time = _find_tag_with_default(root, 'StartTime', None)
if root.find('EndTime') is not None:
result.end_time = _find_tag_with_default(root, 'EndTime', None)
if root.find('EstimatedRemainingTime') is not None:
result.estimated_remaining_time = _find_int(root, 'EstimatedRemainingTime')
if root.find('ProcessPercentage') is not None:
result.process_percentage = _find_int(root, 'ProcessPercentage')