UNPKG

@microsoft/msgraph-sdk-drives

Version:
65 lines 3.4 kB
import { type DriveItem } from '@microsoft/msgraph-sdk/models/index.js'; import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Provides operations to manage the media for the drive entity. */ export interface ContentRequestBuilder extends BaseRequestBuilder<ContentRequestBuilder> { /** * The content stream, if the item represents a file. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>; /** * The content stream, if the item represents a file. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<ArrayBuffer>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ get(requestConfiguration?: RequestConfiguration<ContentRequestBuilderGetQueryParameters> | undefined): Promise<ArrayBuffer | undefined>; /** * The content stream, if the item represents a file. * @param body Binary request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<DriveItem>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ put(body: ArrayBuffer | undefined, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<DriveItem | undefined>; /** * The content stream, if the item represents a file. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; /** * The content stream, if the item represents a file. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<ContentRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * The content stream, if the item represents a file. * @param body Binary request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPutRequestInformation(body: ArrayBuffer | undefined, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * The content stream, if the item represents a file. */ export interface ContentRequestBuilderGetQueryParameters { /** * Format of the content */ format?: string; } /** * Uri template for the request builder. */ export declare const ContentRequestBuilderUriTemplate = "{+baseurl}/drives/{drive%2Did}/root/content{?%24format*}"; /** * Metadata for all the requests in the request builder. */ export declare const ContentRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map