@microsoft/msgraph-sdk-drives
Version:
Drives fluent API for Microsoft Graph
51 lines • 2.31 kB
TypeScript
import { type DriveItem } from '@microsoft/msgraph-sdk/models/index.js';
import { type ContentRequestBuilder } from './content/index.js';
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
/**
* Provides operations to manage the root property of the microsoft.graph.drive entity.
*/
export interface RootRequestBuilder extends BaseRequestBuilder<RootRequestBuilder> {
/**
* Provides operations to manage the media for the drive entity.
*/
get content(): ContentRequestBuilder;
/**
* The root folder of the drive. Read-only.
* @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
*/
get(requestConfiguration?: RequestConfiguration<RootRequestBuilderGetQueryParameters> | undefined): Promise<DriveItem | undefined>;
/**
* The root folder of the drive. Read-only.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<RootRequestBuilderGetQueryParameters> | undefined): RequestInformation;
}
/**
* The root folder of the drive. Read-only.
*/
export interface RootRequestBuilderGetQueryParameters {
/**
* Expand related entities
*/
expand?: string[];
/**
* Select properties to be returned
*/
select?: string[];
}
/**
* Uri template for the request builder.
*/
export declare const RootRequestBuilderUriTemplate = "{+baseurl}/drives/{drive%2Did}/root{?%24expand,%24select}";
/**
* Metadata for all the navigation properties in the request builder.
*/
export declare const RootRequestBuilderNavigationMetadata: Record<Exclude<keyof RootRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
/**
* Metadata for all the requests in the request builder.
*/
export declare const RootRequestBuilderRequestsMetadata: RequestsMetadata;
//# sourceMappingURL=index.d.ts.map