UNPKG

@microsoft/msgraph-beta-sdk-security

Version:
81 lines 4.77 kB
import { RemediationAction, RemediationSeverity, type AnalyzedEmail } from '@microsoft/msgraph-beta-sdk/models/security/index.js'; import { type AdditionalDataHolder, type BackedModel, type BaseRequestBuilder, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions'; /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {RemediatePostRequestBody} */ export declare function createRemediatePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>); /** * The deserialization information for the current model * @returns {Record<string, (node: ParseNode) => void>} */ export declare function deserializeIntoRemediatePostRequestBody(remediatePostRequestBody?: Partial<RemediatePostRequestBody> | undefined): Record<string, (node: ParseNode) => void>; /** * Provides operations to call the remediate method. */ export interface MicrosoftGraphSecurityRemediateRequestBuilder extends BaseRequestBuilder<MicrosoftGraphSecurityRemediateRequestBuilder> { /** * Remove a potential threat from end users' mailboxes. Remediation means to take prescribed action against a threat. This API can trigger email purge actions like move to junk, move to deleted items, soft delete, hard delete, or move to Inbox. This API enables scenarios and use cases such as SOAR integration, playbooks, and automations. For more information read email remediation, trigger action and track actions. If there is false positives admins can take move to inbox action. * @param body The request body * @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 * @see {@link https://learn.microsoft.com/graph/api/security-analyzedemail-remediate?view=graph-rest-beta|Find more info here} */ post(body: RemediatePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>; /** * Remove a potential threat from end users' mailboxes. Remediation means to take prescribed action against a threat. This API can trigger email purge actions like move to junk, move to deleted items, soft delete, hard delete, or move to Inbox. This API enables scenarios and use cases such as SOAR integration, playbooks, and automations. For more information read email remediation, trigger action and track actions. If there is false positives admins can take move to inbox action. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPostRequestInformation(body: RemediatePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } export interface RemediatePostRequestBody extends AdditionalDataHolder, BackedModel, Parsable { /** * The action property */ action?: RemediationAction | null; /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ additionalData?: Record<string, unknown>; /** * The analyzedEmails property */ analyzedEmails?: AnalyzedEmail[] | null; /** * Stores model information. */ backingStoreEnabled?: boolean | null; /** * The description property */ description?: string | null; /** * The displayName property */ displayName?: string | null; /** * The remediateSendersCopy property */ remediateSendersCopy?: boolean | null; /** * The severity property */ severity?: RemediationSeverity | null; } /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ export declare function serializeRemediatePostRequestBody(writer: SerializationWriter, remediatePostRequestBody?: Partial<RemediatePostRequestBody> | undefined | null): void; /** * Uri template for the request builder. */ export declare const MicrosoftGraphSecurityRemediateRequestBuilderUriTemplate = "{+baseurl}/security/collaboration/analyzedEmails/microsoft.graph.security.remediate"; /** * Metadata for all the requests in the request builder. */ export declare const MicrosoftGraphSecurityRemediateRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map