'Expand tar files into a Swift cluster.
To extract containers and objects on Swift cluster from
uploaded archived file. For More information please check:
https://docs.openstack.org/swift/latest/middleware.html#module-swift.common.middleware.bulk'

def upload_archive(self, upload_path, data, archive_file_format='tar', headers=None):

    url = ('%s?extract-archive=%s' % (upload_path, archive_file_format))
    if (headers is None):
        headers = {}
    (resp, body) = self.put(url, data, headers)
    self.expected_success(200, resp.status)
    return rest_client.ResponseBodyData(resp, body)
