UNPKG

@microsoft/msgraph-beta-sdk-drives

Version:
135 lines 6.29 kB
import { type Drive } from '@microsoft/msgraph-beta-sdk/models/index.js'; import { type ActivitiesRequestBuilder } from './activities/index.js'; import { type BundlesRequestBuilder } from './bundles/index.js'; import { type CreatedByUserRequestBuilder } from './createdByUser/index.js'; import { type FollowingRequestBuilder } from './following/index.js'; import { type ItemsRequestBuilder } from './items/index.js'; import { type LastModifiedByUserRequestBuilder } from './lastModifiedByUser/index.js'; import { type ListRequestBuilder } from './list/index.js'; import { type RecentRequestBuilder } from './recent/index.js'; import { type RootRequestBuilder } from './root/index.js'; import { type SearchWithQRequestBuilder } from './searchWithQ/index.js'; import { type SharedWithMeRequestBuilder } from './sharedWithMe/index.js'; import { type SpecialRequestBuilder } from './special/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 DriveItemRequestBuilder extends BaseRequestBuilder<DriveItemRequestBuilder> { /** * Provides operations to manage the activities property of the microsoft.graph.drive entity. */ get activities(): ActivitiesRequestBuilder; /** * Provides operations to manage the bundles property of the microsoft.graph.drive entity. */ get bundles(): BundlesRequestBuilder; /** * Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. */ get createdByUser(): CreatedByUserRequestBuilder; /** * Provides operations to manage the following property of the microsoft.graph.drive entity. */ get following(): FollowingRequestBuilder; /** * Provides operations to manage the items property of the microsoft.graph.drive entity. */ get items(): ItemsRequestBuilder; /** * Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. */ get lastModifiedByUser(): LastModifiedByUserRequestBuilder; /** * Provides operations to manage the list property of the microsoft.graph.drive entity. */ get list(): ListRequestBuilder; /** * Provides operations to call the recent method. */ get recent(): RecentRequestBuilder; /** * Provides operations to manage the root property of the microsoft.graph.drive entity. */ get root(): RootRequestBuilder; /** * Provides operations to call the sharedWithMe method. */ get sharedWithMe(): SharedWithMeRequestBuilder; /** * Provides operations to manage the special property of the microsoft.graph.drive entity. */ get special(): SpecialRequestBuilder; /** * Delete entity from drives * @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>; /** * Get entity from drives by key * @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 */ get(requestConfiguration?: RequestConfiguration<DriveItemRequestBuilderGetQueryParameters> | undefined): Promise<Drive | undefined>; /** * Update entity in 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 */ patch(body: Drive, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Drive | undefined>; /** * Provides operations to call the search method. * @param q Usage: q='{q}' * @returns {SearchWithQRequestBuilder} */ searchWithQ(q: string | undefined): SearchWithQRequestBuilder; /** * Delete entity from drives * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; /** * Get entity from drives by key * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<DriveItemRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Update entity in drives * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPatchRequestInformation(body: Drive, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Get entity from drives by key */ export interface DriveItemRequestBuilderGetQueryParameters { /** * Expand related entities */ expand?: string[]; /** * Select properties to be returned */ select?: string[]; } /** * Uri template for the request builder. */ export declare const DriveItemRequestBuilderUriTemplate = "{+baseurl}/drives/{drive%2Did}{?%24expand,%24select}"; /** * Metadata for all the navigation properties in the request builder. */ export declare const DriveItemRequestBuilderNavigationMetadata: Record<Exclude<keyof DriveItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const DriveItemRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map