UNPKG

@microsoft/msgraph-beta-sdk-commands

Version:
78 lines 3.9 kB
import { type Command } from '@microsoft/msgraph-beta-sdk/models/index.js'; import { type ResponsepayloadRequestBuilder } from './responsepayload/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 command entities. */ export interface CommandItemRequestBuilder extends BaseRequestBuilder<CommandItemRequestBuilder> { /** * Provides operations to manage the responsepayload property of the microsoft.graph.command entity. */ get responsepayload(): ResponsepayloadRequestBuilder; /** * Delete entity from commands * @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 commands by key * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<Command>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ get(requestConfiguration?: RequestConfiguration<CommandItemRequestBuilderGetQueryParameters> | undefined): Promise<Command | undefined>; /** * Update entity in commands * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<Command>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ patch(body: Command, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Command | undefined>; /** * Delete entity from commands * @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 commands by key * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<CommandItemRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Update entity in commands * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPatchRequestInformation(body: Command, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Get entity from commands by key */ export interface CommandItemRequestBuilderGetQueryParameters { /** * Expand related entities */ expand?: string[]; /** * Select properties to be returned */ select?: string[]; } /** * Uri template for the request builder. */ export declare const CommandItemRequestBuilderUriTemplate = "{+baseurl}/commands/{command%2Did}{?%24expand,%24select}"; /** * Metadata for all the navigation properties in the request builder. */ export declare const CommandItemRequestBuilderNavigationMetadata: Record<Exclude<keyof CommandItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const CommandItemRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map