UNPKG

@microsoft/msgraph-beta-sdk-devicemanagement

Version:
88 lines 4.77 kB
import { type OperationApprovalRequest } from '@microsoft/msgraph-beta-sdk/models/index.js'; import { type ApproveRequestBuilder } from './approve/index.js'; import { type CancelApprovalRequestBuilder } from './cancelApproval/index.js'; import { type RejectRequestBuilder } from './reject/index.js'; import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Provides operations to manage the operationApprovalRequests property of the microsoft.graph.deviceManagement entity. */ export interface OperationApprovalRequestItemRequestBuilder extends BaseRequestBuilder<OperationApprovalRequestItemRequestBuilder> { /** * Provides operations to call the approve method. */ get approve(): ApproveRequestBuilder; /** * Provides operations to call the cancelApproval method. */ get cancelApproval(): CancelApprovalRequestBuilder; /** * Provides operations to call the reject method. */ get reject(): RejectRequestBuilder; /** * Delete navigation property operationApprovalRequests for deviceManagement * @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 Operation Approval Requests * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<OperationApprovalRequest>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ get(requestConfiguration?: RequestConfiguration<OperationApprovalRequestItemRequestBuilderGetQueryParameters> | undefined): Promise<OperationApprovalRequest | undefined>; /** * Update the navigation property operationApprovalRequests in deviceManagement * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<OperationApprovalRequest>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ patch(body: OperationApprovalRequest, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<OperationApprovalRequest | undefined>; /** * Delete navigation property operationApprovalRequests for deviceManagement * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; /** * The Operation Approval Requests * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<OperationApprovalRequestItemRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Update the navigation property operationApprovalRequests in deviceManagement * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPatchRequestInformation(body: OperationApprovalRequest, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * The Operation Approval Requests */ export interface OperationApprovalRequestItemRequestBuilderGetQueryParameters { /** * Expand related entities */ expand?: string[]; /** * Select properties to be returned */ select?: string[]; } /** * Uri template for the request builder. */ export declare const OperationApprovalRequestItemRequestBuilderUriTemplate = "{+baseurl}/deviceManagement/operationApprovalRequests/{operationApprovalRequest%2Did}{?%24expand,%24select}"; /** * Metadata for all the navigation properties in the request builder. */ export declare const OperationApprovalRequestItemRequestBuilderNavigationMetadata: Record<Exclude<keyof OperationApprovalRequestItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const OperationApprovalRequestItemRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map