@microsoft/msgraph-beta-sdk-users
Version:
Users fluent API for Microsoft Graph
89 lines • 5.67 kB
TypeScript
import { type BaseCollectionPaginationCountResponse } from '@microsoft/msgraph-beta-sdk/models/index.js';
import { type ContentInfo, type DowngradeJustification, type InformationProtectionAction } 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 {EvaluateRemovalPostRequestBody}
*/
export declare function createEvaluateRemovalPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
/**
* 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 {EvaluateRemovalPostResponse}
*/
export declare function createEvaluateRemovalPostResponseFromDiscriminatorValue(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 deserializeIntoEvaluateRemovalPostRequestBody(evaluateRemovalPostRequestBody?: Partial<EvaluateRemovalPostRequestBody> | undefined): Record<string, (node: ParseNode) => void>;
/**
* The deserialization information for the current model
* @returns {Record<string, (node: ParseNode) => void>}
*/
export declare function deserializeIntoEvaluateRemovalPostResponse(evaluateRemovalPostResponse?: Partial<EvaluateRemovalPostResponse> | undefined): Record<string, (node: ParseNode) => void>;
export interface EvaluateRemovalPostRequestBody extends AdditionalDataHolder, BackedModel, Parsable {
/**
* Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
*/
additionalData?: Record<string, unknown>;
/**
* Stores model information.
*/
backingStoreEnabled?: boolean | null;
/**
* The contentInfo property
*/
contentInfo?: ContentInfo | null;
/**
* The downgradeJustification property
*/
downgradeJustification?: DowngradeJustification | null;
}
export interface EvaluateRemovalPostResponse extends BaseCollectionPaginationCountResponse, Parsable {
/**
* The value property
*/
value?: InformationProtectionAction[] | null;
}
/**
* Provides operations to call the evaluateRemoval method.
*/
export interface MicrosoftGraphSecurityEvaluateRemovalRequestBuilder extends BaseRequestBuilder<MicrosoftGraphSecurityEvaluateRemovalRequestBuilder> {
/**
* Indicate to the consuming application what actions it should take to remove the label information. Given contentInfo as an input, which includes existing content metadata key-value pairs, the API returns an informationProtectionAction that contains some combination of one or more of the following:
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<EvaluateRemovalPostResponse>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/security-sensitivitylabel-evaluateremoval?view=graph-rest-beta|Find more info here}
*/
post(body: EvaluateRemovalPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<EvaluateRemovalPostResponse | undefined>;
/**
* Indicate to the consuming application what actions it should take to remove the label information. Given contentInfo as an input, which includes existing content metadata key-value pairs, the API returns an informationProtectionAction that contains some combination of one or more of the following:
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toPostRequestInformation(body: EvaluateRemovalPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
}
/**
* Serializes information the current object
* @param writer Serialization writer to use to serialize this model
*/
export declare function serializeEvaluateRemovalPostRequestBody(writer: SerializationWriter, evaluateRemovalPostRequestBody?: Partial<EvaluateRemovalPostRequestBody> | undefined | null): void;
/**
* Serializes information the current object
* @param writer Serialization writer to use to serialize this model
*/
export declare function serializeEvaluateRemovalPostResponse(writer: SerializationWriter, evaluateRemovalPostResponse?: Partial<EvaluateRemovalPostResponse> | undefined | null): void;
/**
* Uri template for the request builder.
*/
export declare const MicrosoftGraphSecurityEvaluateRemovalRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/security/informationProtection/sensitivityLabels/microsoft.graph.security.evaluateRemoval";
/**
* Metadata for all the requests in the request builder.
*/
export declare const MicrosoftGraphSecurityEvaluateRemovalRequestBuilderRequestsMetadata: RequestsMetadata;
//# sourceMappingURL=index.d.ts.map