@azure/storage-blob
Version: 
Microsoft Azure Storage SDK for JavaScript - Blob
49 lines • 1.26 kB
TypeScript
import type { BatchSubRequest } from "./BlobBatch.js";
import type { HttpHeadersLike } from "@azure/core-http-compat";
/**
 * The response data associated with a single request within a batch operation.
 */
export interface BatchSubResponse {
    /**
     * The status code of the sub operation.
     */
    status: number;
    /**
     * The status message of the sub operation.
     */
    statusMessage: string;
    /**
     * The error code of the sub operation, if the sub operation failed.
     */
    errorCode?: string;
    /**
     * The HTTP response headers.
     */
    headers: HttpHeadersLike;
    /**
     * The body as text.
     */
    bodyAsText?: string;
    /**
     * The batch sub request corresponding to the sub response.
     */
    _request: BatchSubRequest;
}
/**
 * The multipart/mixed response which contains the response for each subrequest.
 */
export interface ParsedBatchResponse {
    /**
     * The parsed sub responses.
     */
    subResponses: BatchSubResponse[];
    /**
     * The succeeded executed sub responses' count;
     */
    subResponsesSucceededCount: number;
    /**
     * The failed executed sub responses' count;
     */
    subResponsesFailedCount: number;
}
//# sourceMappingURL=BatchResponse.d.ts.map