@microsoft/msgraph-beta-sdk-security
Version:
Security fluent API for Microsoft Graph
69 lines • 4.26 kB
TypeScript
import { Action, IdentityProvider, type InvokeActionResult } 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 {InvokeActionPostRequestBody}
*/
export declare function createInvokeActionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
/**
* The deserialization information for the current model
* @param InvokeActionPostRequestBody The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
export declare function deserializeIntoInvokeActionPostRequestBody(invokeActionPostRequestBody?: Partial<InvokeActionPostRequestBody> | undefined): Record<string, (node: ParseNode) => void>;
export interface InvokeActionPostRequestBody extends AdditionalDataHolder, BackedModel, Parsable {
/**
* The accountId property
*/
accountId?: string | null;
/**
* The action property
*/
action?: Action | null;
/**
* Stores model information.
*/
backingStoreEnabled?: boolean | null;
/**
* The identityProvider property
*/
identityProvider?: IdentityProvider | null;
}
/**
* Provides operations to call the invokeAction method.
*/
export interface MicrosoftGraphSecurityInvokeActionRequestBuilder extends BaseRequestBuilder<MicrosoftGraphSecurityInvokeActionRequestBuilder> {
/**
* Perform actions such as revoking accounts and forcing password reset for identity accounts that are observed in Microsoft Defender for Identity. This action allows reading and performing identity security actions on behalf of the signed-in identity.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<InvokeActionResult>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/security-identityaccounts-invokeaction?view=graph-rest-beta|Find more info here}
*/
post(body: InvokeActionPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<InvokeActionResult | undefined>;
/**
* Perform actions such as revoking accounts and forcing password reset for identity accounts that are observed in Microsoft Defender for Identity. This action allows reading and performing identity security actions on behalf of the signed-in identity.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toPostRequestInformation(body: InvokeActionPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
}
/**
* Serializes information the current object
* @param InvokeActionPostRequestBody The instance to serialize from.
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
* @param writer Serialization writer to use to serialize this model
*/
export declare function serializeInvokeActionPostRequestBody(writer: SerializationWriter, invokeActionPostRequestBody?: Partial<InvokeActionPostRequestBody> | undefined | null, isSerializingDerivedType?: boolean): void;
/**
* Uri template for the request builder.
*/
export declare const MicrosoftGraphSecurityInvokeActionRequestBuilderUriTemplate = "{+baseurl}/security/identities/identityAccounts/{identityAccounts%2Did}/microsoft.graph.security.invokeAction";
/**
* Metadata for all the requests in the request builder.
*/
export declare const MicrosoftGraphSecurityInvokeActionRequestBuilderRequestsMetadata: RequestsMetadata;
//# sourceMappingURL=index.d.ts.map