UNPKG

@microsoft/msgraph-sdk-security

Version:
41 lines 2.35 kB
import { type AlertComment } from '@microsoft/msgraph-sdk/models/security/index.js'; import { type CountRequestBuilder } from './count/index.js'; import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Builds and executes requests for operations under /security/alerts_v2/{alert-id}/comments */ export interface CommentsRequestBuilder extends BaseRequestBuilder<CommentsRequestBuilder> { /** * Provides operations to count the resources in the collection. */ get count(): CountRequestBuilder; /** * Create a comment for an existing alert based on the specified alert id property. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<AlertComment[]>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/security-alert-post-comments?view=graph-rest-1.0|Find more info here} */ post(body: AlertComment[], requestConfiguration?: RequestConfiguration<object> | undefined): Promise<AlertComment[] | undefined>; /** * Create a comment for an existing alert based on the specified alert id property. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPostRequestInformation(body: AlertComment[], requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Uri template for the request builder. */ export declare const CommentsRequestBuilderUriTemplate = "{+baseurl}/security/alerts_v2/{alert%2Did}/comments"; /** * Metadata for all the navigation properties in the request builder. */ export declare const CommentsRequestBuilderNavigationMetadata: Record<Exclude<keyof CommentsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const CommentsRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map