@microsoft/msgraph-beta-sdk-devicemanagement
Version:
DeviceManagement fluent API for Microsoft Graph
119 lines • 5.71 kB
TypeScript
import { type OperationApprovalRequest, type OperationApprovalRequestCollectionResponse } from '@microsoft/msgraph-beta-sdk/models/index.js';
import { type CancelMyRequestRequestBuilder } from './cancelMyRequest/index.js';
import { type CountRequestBuilder } from './count/index.js';
import { type OperationApprovalRequestItemRequestBuilder } from './item/index.js';
import { type RetrieveMyRequestByIdWithIdRequestBuilder } from './retrieveMyRequestByIdWithId/index.js';
import { type RetrieveMyRequestsRequestBuilder } from './retrieveMyRequests/index.js';
import { type RetrieveRequestStatusRequestBuilder } from './retrieveRequestStatus/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 OperationApprovalRequestsRequestBuilder extends BaseRequestBuilder<OperationApprovalRequestsRequestBuilder> {
/**
* Provides operations to call the cancelMyRequest method.
*/
get cancelMyRequest(): CancelMyRequestRequestBuilder;
/**
* Provides operations to count the resources in the collection.
*/
get count(): CountRequestBuilder;
/**
* Provides operations to call the retrieveMyRequests method.
*/
get retrieveMyRequests(): RetrieveMyRequestsRequestBuilder;
/**
* Provides operations to call the retrieveRequestStatus method.
*/
get retrieveRequestStatus(): RetrieveRequestStatusRequestBuilder;
/**
* Provides operations to manage the operationApprovalRequests property of the microsoft.graph.deviceManagement entity.
* @param operationApprovalRequestId The unique identifier of operationApprovalRequest
* @returns {OperationApprovalRequestItemRequestBuilder}
*/
byOperationApprovalRequestId(operationApprovalRequestId: string): OperationApprovalRequestItemRequestBuilder;
/**
* The Operation Approval Requests
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<OperationApprovalRequestCollectionResponse>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
*/
get(requestConfiguration?: RequestConfiguration<OperationApprovalRequestsRequestBuilderGetQueryParameters> | undefined): Promise<OperationApprovalRequestCollectionResponse | undefined>;
/**
* Create new navigation property to operationApprovalRequests for 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
*/
post(body: OperationApprovalRequest, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<OperationApprovalRequest | undefined>;
/**
* Provides operations to call the retrieveMyRequestById method.
* @param id Usage: id='{id}'
* @returns {RetrieveMyRequestByIdWithIdRequestBuilder}
*/
retrieveMyRequestByIdWithId(id: string | undefined): RetrieveMyRequestByIdWithIdRequestBuilder;
/**
* The Operation Approval Requests
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<OperationApprovalRequestsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
/**
* Create new navigation property to operationApprovalRequests for deviceManagement
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toPostRequestInformation(body: OperationApprovalRequest, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
}
/**
* The Operation Approval Requests
*/
export interface OperationApprovalRequestsRequestBuilderGetQueryParameters {
/**
* Include count of items
*/
count?: boolean;
/**
* 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 OperationApprovalRequestsRequestBuilderUriTemplate = "{+baseurl}/deviceManagement/operationApprovalRequests{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
/**
* Metadata for all the navigation properties in the request builder.
*/
export declare const OperationApprovalRequestsRequestBuilderNavigationMetadata: Record<Exclude<keyof OperationApprovalRequestsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
/**
* Metadata for all the requests in the request builder.
*/
export declare const OperationApprovalRequestsRequestBuilderRequestsMetadata: RequestsMetadata;
//# sourceMappingURL=index.d.ts.map