/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
// @ts-ignore
import { createCloudPcResizeValidationResultFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, serializeCloudPcResizeValidationResult } from '@microsoft/msgraph-beta-sdk/models/index.js';
// @ts-ignore
import { createODataErrorFromDiscriminatorValue } from '@microsoft/msgraph-beta-sdk/models/oDataErrors/index.js';
/**
 * 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}
 */
// @ts-ignore
export function createValidateBulkResizePostRequestBodyFromDiscriminatorValue(parseNode) {
    return deserializeIntoValidateBulkResizePostRequestBody;
}
/**
 * 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}
 */
// @ts-ignore
export function createValidateBulkResizePostResponseFromDiscriminatorValue(parseNode) {
    return deserializeIntoValidateBulkResizePostResponse;
}
/**
 * The deserialization information for the current model
 * @returns {Record<string, (node: ParseNode) => void>}
 */
// @ts-ignore
export function deserializeIntoValidateBulkResizePostRequestBody(validateBulkResizePostRequestBody = {}) {
    return {
        "backingStoreEnabled": n => { validateBulkResizePostRequestBody.backingStoreEnabled = true; },
        "cloudPcIds": n => { validateBulkResizePostRequestBody.cloudPcIds = n.getCollectionOfPrimitiveValues(); },
        "targetServicePlanId": n => { validateBulkResizePostRequestBody.targetServicePlanId = n.getStringValue(); },
    };
}
/**
 * The deserialization information for the current model
 * @returns {Record<string, (node: ParseNode) => void>}
 */
// @ts-ignore
export function deserializeIntoValidateBulkResizePostResponse(validateBulkResizePostResponse = {}) {
    return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(validateBulkResizePostResponse)), { "value": n => { validateBulkResizePostResponse.value = n.getCollectionOfObjectValues(createCloudPcResizeValidationResultFromDiscriminatorValue); } });
}
/**
 * Serializes information the current object
 * @param writer Serialization writer to use to serialize this model
 */
// @ts-ignore
export function serializeValidateBulkResizePostRequestBody(writer, validateBulkResizePostRequestBody = {}) {
    if (validateBulkResizePostRequestBody) {
        writer.writeCollectionOfPrimitiveValues("cloudPcIds", validateBulkResizePostRequestBody.cloudPcIds);
        writer.writeStringValue("targetServicePlanId", validateBulkResizePostRequestBody.targetServicePlanId);
        writer.writeAdditionalData(validateBulkResizePostRequestBody.additionalData);
    }
}
/**
 * Serializes information the current object
 * @param writer Serialization writer to use to serialize this model
 */
// @ts-ignore
export function serializeValidateBulkResizePostResponse(writer, validateBulkResizePostResponse = {}) {
    if (validateBulkResizePostResponse) {
        serializeBaseCollectionPaginationCountResponse(writer, validateBulkResizePostResponse);
        writer.writeCollectionOfObjectValues("value", validateBulkResizePostResponse.value, serializeCloudPcResizeValidationResult);
    }
}
/**
 * Uri template for the request builder.
 */
export const ValidateBulkResizeRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/cloudPCs/validateBulkResize";
/**
 * Metadata for all the requests in the request builder.
 */
export const ValidateBulkResizeRequestBuilderRequestsMetadata = {
    post: {
        uriTemplate: ValidateBulkResizeRequestBuilderUriTemplate,
        responseBodyContentType: "application/json",
        errorMappings: {
            XXX: createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "send",
        responseBodyFactory: createValidateBulkResizePostResponseFromDiscriminatorValue,
        requestBodyContentType: "application/json",
        requestBodySerializer: serializeValidateBulkResizePostRequestBody,
        requestInformationContentSetMethod: "setContentFromParsable",
    },
};
/* tslint:enable */
/* eslint-enable */
//# sourceMappingURL=index.js.map