function constructPutResponse(params) {
    // FIXME: The main data locations array may eventually resemble
    // locations stored in replication info object, i.e. without
    // size/start for cloud locations, which could ease passing
    // standard location objects across services. For now let's just
    // create the location as they are usually stored in the
    // "locations" attribute, with size/start info.

    const location = [{
        dataStoreName: params.dataStoreName,
        dataStoreType: params.dataStoreType,
        key: params.key,
        start: 0,
        size: params.size,
        dataStoreETag: params.dataStoreETag,
        dataStoreVersionId: params.dataStoreVersionId,
    }];
    return {
        // TODO: Remove '' when versioning implemented for Azure.
        versionId: params.dataStoreVersionId || '',
        location,
    };
}
Helper to create the response object for putObject and completeMPU

@param {object} params - response info
@param {string} params.dataStoreName - name of location
@param {string} params.dataStoreType - location type (e.g. "aws_s3")
@param {string} params.key - object key
@param {number} params.size - total byte length
@param {string} params.dataStoreETag - object ETag
@param {string} [params.dataStoreVersionId] - object version ID, if
versioned
@return {object} - the response object to serialize and send back