UNPKG

@microsoft/msgraph-beta-sdk-security

Version:
101 lines 5.22 kB
import { PolicyPivotProperty, type BaseCollectionPaginationCountResponse, type DeviceMetadata, type IntegratedApplicationMetadata, type PolicyLocation, type PolicyTenantScope, UserActivityTypes } from '@microsoft/msgraph-beta-sdk/models/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'; export interface ComputePostRequestBody extends AdditionalDataHolder, BackedModel, Parsable { /** * The activities property */ activities?: UserActivityTypes[] | null; /** * Stores model information. */ backingStoreEnabled?: boolean | null; /** * The deviceMetadata property */ deviceMetadata?: DeviceMetadata | null; /** * The integratedAppMetadata property */ integratedAppMetadata?: IntegratedApplicationMetadata | null; /** * The locations property */ locations?: PolicyLocation[] | null; /** * The pivotOn property */ pivotOn?: PolicyPivotProperty | null; } export interface ComputePostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** * The value property */ value?: PolicyTenantScope[] | null; } /** * Provides operations to call the compute method. */ export interface ComputeRequestBuilder extends BaseRequestBuilder<ComputeRequestBuilder> { /** * Invoke action compute * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<ComputePostResponse>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ post(body: ComputePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ComputePostResponse | undefined>; /** * Invoke action compute * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPostRequestInformation(body: ComputePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * 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 {ComputePostRequestBody} */ export declare function createComputePostRequestBodyFromDiscriminatorValue(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 {ComputePostResponse} */ export declare function createComputePostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>); /** * The deserialization information for the current model * @param ComputePostRequestBody The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ export declare function deserializeIntoComputePostRequestBody(computePostRequestBody?: Partial<ComputePostRequestBody> | undefined): Record<string, (node: ParseNode) => void>; /** * The deserialization information for the current model * @param ComputePostResponse The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ export declare function deserializeIntoComputePostResponse(computePostResponse?: Partial<ComputePostResponse> | undefined): Record<string, (node: ParseNode) => void>; /** * Serializes information the current object * @param ComputePostRequestBody 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 serializeComputePostRequestBody(writer: SerializationWriter, computePostRequestBody?: Partial<ComputePostRequestBody> | undefined | null, isSerializingDerivedType?: boolean): void; /** * Serializes information the current object * @param ComputePostResponse 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 serializeComputePostResponse(writer: SerializationWriter, computePostResponse?: Partial<ComputePostResponse> | undefined | null, isSerializingDerivedType?: boolean): void; /** * Uri template for the request builder. */ export declare const ComputeRequestBuilderUriTemplate = "{+baseurl}/security/dataSecurityAndGovernance/protectionScopes/compute"; /** * Metadata for all the requests in the request builder. */ export declare const ComputeRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map