UNPKG

@microsoft/msgraph-beta-sdk-users

Version:
88 lines 5.01 kB
import { type BaseCollectionPaginationCountResponse, type CloudPcResizeValidationResult } 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'; /** * 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 {ValidateBulkResizePostRequestBody} */ export declare function createValidateBulkResizePostRequestBodyFromDiscriminatorValue(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 {ValidateBulkResizePostResponse} */ export declare function createValidateBulkResizePostResponseFromDiscriminatorValue(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 deserializeIntoValidateBulkResizePostRequestBody(validateBulkResizePostRequestBody?: Partial<ValidateBulkResizePostRequestBody> | undefined): Record<string, (node: ParseNode) => void>; /** * The deserialization information for the current model * @returns {Record<string, (node: ParseNode) => void>} */ export declare function deserializeIntoValidateBulkResizePostResponse(validateBulkResizePostResponse?: Partial<ValidateBulkResizePostResponse> | undefined): Record<string, (node: ParseNode) => void>; /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ export declare function serializeValidateBulkResizePostRequestBody(writer: SerializationWriter, validateBulkResizePostRequestBody?: Partial<ValidateBulkResizePostRequestBody> | undefined | null): void; /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ export declare function serializeValidateBulkResizePostResponse(writer: SerializationWriter, validateBulkResizePostResponse?: Partial<ValidateBulkResizePostResponse> | undefined | null): void; export interface ValidateBulkResizePostRequestBody 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 cloudPcIds property */ cloudPcIds?: string[] | null; /** * The targetServicePlanId property */ targetServicePlanId?: string | null; } export interface ValidateBulkResizePostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** * The value property */ value?: CloudPcResizeValidationResult[] | null; } /** * Provides operations to call the validateBulkResize method. */ export interface ValidateBulkResizeRequestBuilder extends BaseRequestBuilder<ValidateBulkResizeRequestBuilder> { /** * Validate that a set of cloudPC devices meet the requirements to be bulk resized. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<ValidateBulkResizePostResponse>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/cloudpc-validatebulkresize?view=graph-rest-beta|Find more info here} */ post(body: ValidateBulkResizePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ValidateBulkResizePostResponse | undefined>; /** * Validate that a set of cloudPC devices meet the requirements to be bulk resized. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPostRequestInformation(body: ValidateBulkResizePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Uri template for the request builder. */ export declare const ValidateBulkResizeRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/cloudPCs/validateBulkResize"; /** * Metadata for all the requests in the request builder. */ export declare const ValidateBulkResizeRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map