@microsoft/msgraph-sdk-drives
Version:
Drives fluent API for Microsoft Graph
88 lines • 3.63 kB
TypeScript
import { type Drive, type DriveCollectionResponse } from '@microsoft/msgraph-sdk/models/index.js';
import { type DriveItemRequestBuilder } from './item/index.js';
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
/**
* Provides operations to manage the collection of drive entities.
*/
export interface DrivesRequestBuilder extends BaseRequestBuilder<DrivesRequestBuilder> {
/**
* Provides operations to manage the collection of drive entities.
* @param driveId The unique identifier of drive
* @returns {DriveItemRequestBuilder}
*/
byDriveId(driveId: string): DriveItemRequestBuilder;
/**
* Get entities from drives
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<DriveCollectionResponse>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
*/
get(requestConfiguration?: RequestConfiguration<DrivesRequestBuilderGetQueryParameters> | undefined): Promise<DriveCollectionResponse | undefined>;
/**
* Add new entity to drives
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<Drive>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
*/
post(body: Drive, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Drive | undefined>;
/**
* Get entities from drives
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<DrivesRequestBuilderGetQueryParameters> | undefined): RequestInformation;
/**
* Add new entity to drives
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toPostRequestInformation(body: Drive, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
}
/**
* Get entities from drives
*/
export interface DrivesRequestBuilderGetQueryParameters {
/**
* Expand related entities
*/
expand?: string[];
/**
* Filter items by property values
*/
filter?: string;
/**
* Order items by property values
*/
orderby?: string[];
/**
* Search items by search phrases
*/
search?: string;
/**
* Select properties to be returned
*/
select?: string[];
/**
* Skip the first n items
*/
skip?: number;
/**
* Show only the first n items
*/
top?: number;
}
/**
* Uri template for the request builder.
*/
export declare const DrivesRequestBuilderUriTemplate = "{+baseurl}/drives{?%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
/**
* Metadata for all the navigation properties in the request builder.
*/
export declare const DrivesRequestBuilderNavigationMetadata: Record<Exclude<keyof DrivesRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
/**
* Metadata for all the requests in the request builder.
*/
export declare const DrivesRequestBuilderRequestsMetadata: RequestsMetadata;
//# sourceMappingURL=index.d.ts.map