/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
// @ts-ignore
import { createCloudPcRemoteActionResultFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, serializeCloudPcRemoteActionResult } 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 {BulkResizePostRequestBody}
 */
// @ts-ignore
export function createBulkResizePostRequestBodyFromDiscriminatorValue(parseNode) {
    return deserializeIntoBulkResizePostRequestBody;
}
/**
 * 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 {BulkResizePostResponse}
 */
// @ts-ignore
export function createBulkResizePostResponseFromDiscriminatorValue(parseNode) {
    return deserializeIntoBulkResizePostResponse;
}
/**
 * The deserialization information for the current model
 * @returns {Record<string, (node: ParseNode) => void>}
 */
// @ts-ignore
export function deserializeIntoBulkResizePostRequestBody(bulkResizePostRequestBody = {}) {
    return {
        "backingStoreEnabled": n => { bulkResizePostRequestBody.backingStoreEnabled = true; },
        "cloudPcIds": n => { bulkResizePostRequestBody.cloudPcIds = n.getCollectionOfPrimitiveValues(); },
        "targetServicePlanId": n => { bulkResizePostRequestBody.targetServicePlanId = n.getStringValue(); },
    };
}
/**
 * The deserialization information for the current model
 * @returns {Record<string, (node: ParseNode) => void>}
 */
// @ts-ignore
export function deserializeIntoBulkResizePostResponse(bulkResizePostResponse = {}) {
    return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(bulkResizePostResponse)), { "value": n => { bulkResizePostResponse.value = n.getCollectionOfObjectValues(createCloudPcRemoteActionResultFromDiscriminatorValue); } });
}
/**
 * Serializes information the current object
 * @param writer Serialization writer to use to serialize this model
 */
// @ts-ignore
export function serializeBulkResizePostRequestBody(writer, bulkResizePostRequestBody = {}) {
    if (bulkResizePostRequestBody) {
        writer.writeCollectionOfPrimitiveValues("cloudPcIds", bulkResizePostRequestBody.cloudPcIds);
        writer.writeStringValue("targetServicePlanId", bulkResizePostRequestBody.targetServicePlanId);
        writer.writeAdditionalData(bulkResizePostRequestBody.additionalData);
    }
}
/**
 * Serializes information the current object
 * @param writer Serialization writer to use to serialize this model
 */
// @ts-ignore
export function serializeBulkResizePostResponse(writer, bulkResizePostResponse = {}) {
    if (bulkResizePostResponse) {
        serializeBaseCollectionPaginationCountResponse(writer, bulkResizePostResponse);
        writer.writeCollectionOfObjectValues("value", bulkResizePostResponse.value, serializeCloudPcRemoteActionResult);
    }
}
/**
 * Uri template for the request builder.
 */
export const BulkResizeRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/cloudPCs/bulkResize";
/**
 * Metadata for all the requests in the request builder.
 */
export const BulkResizeRequestBuilderRequestsMetadata = {
    post: {
        uriTemplate: BulkResizeRequestBuilderUriTemplate,
        responseBodyContentType: "application/json",
        errorMappings: {
            XXX: createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "send",
        responseBodyFactory: createBulkResizePostResponseFromDiscriminatorValue,
        requestBodyContentType: "application/json",
        requestBodySerializer: serializeBulkResizePostRequestBody,
        requestInformationContentSetMethod: "setContentFromParsable",
    },
};
/* tslint:enable */
/* eslint-enable */
//# sourceMappingURL=index.js.map