UNPKG

@microsoft/msgraph-beta-sdk-devicemanagement

Version:
80 lines 4.21 kB
/* tslint:disable */ /* eslint-disable */ // Generated by Microsoft Kiota // @ts-ignore import { CloudPcReportNameObject } 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 {GetFrontlineReportPostRequestBody} */ // @ts-ignore export function createGetFrontlineReportPostRequestBodyFromDiscriminatorValue(parseNode) { return deserializeIntoGetFrontlineReportPostRequestBody; } /** * The deserialization information for the current model * @param GetFrontlineReportPostRequestBody The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoGetFrontlineReportPostRequestBody(getFrontlineReportPostRequestBody = {}) { return { "backingStoreEnabled": n => { getFrontlineReportPostRequestBody.backingStoreEnabled = true; }, "filter": n => { getFrontlineReportPostRequestBody.filter = n.getStringValue(); }, "groupBy": n => { getFrontlineReportPostRequestBody.groupBy = n.getCollectionOfPrimitiveValues(); }, "orderBy": n => { getFrontlineReportPostRequestBody.orderBy = n.getCollectionOfPrimitiveValues(); }, "reportName": n => { getFrontlineReportPostRequestBody.reportName = n.getEnumValue(CloudPcReportNameObject); }, "search": n => { getFrontlineReportPostRequestBody.search = n.getStringValue(); }, "select": n => { getFrontlineReportPostRequestBody.select = n.getCollectionOfPrimitiveValues(); }, "skip": n => { getFrontlineReportPostRequestBody.skip = n.getNumberValue(); }, "top": n => { getFrontlineReportPostRequestBody.top = n.getNumberValue(); }, }; } /** * Serializes information the current object * @param GetFrontlineReportPostRequestBody 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 */ // @ts-ignore export function serializeGetFrontlineReportPostRequestBody(writer, getFrontlineReportPostRequestBody = {}, isSerializingDerivedType = false) { if (!getFrontlineReportPostRequestBody || isSerializingDerivedType) { return; } writer.writeStringValue("filter", getFrontlineReportPostRequestBody.filter); writer.writeCollectionOfPrimitiveValues("groupBy", getFrontlineReportPostRequestBody.groupBy); writer.writeCollectionOfPrimitiveValues("orderBy", getFrontlineReportPostRequestBody.orderBy); writer.writeEnumValue("reportName", getFrontlineReportPostRequestBody.reportName); writer.writeStringValue("search", getFrontlineReportPostRequestBody.search); writer.writeCollectionOfPrimitiveValues("select", getFrontlineReportPostRequestBody.select); writer.writeNumberValue("skip", getFrontlineReportPostRequestBody.skip); writer.writeNumberValue("top", getFrontlineReportPostRequestBody.top); writer.writeAdditionalData(getFrontlineReportPostRequestBody.additionalData); } /** * Uri template for the request builder. */ export const GetFrontlineReportRequestBuilderUriTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/reports/getFrontlineReport"; /** * Metadata for all the requests in the request builder. */ export const GetFrontlineReportRequestBuilderRequestsMetadata = { post: { uriTemplate: GetFrontlineReportRequestBuilderUriTemplate, responseBodyContentType: "application/octet-stream, application/json", errorMappings: { XXX: createODataErrorFromDiscriminatorValue, }, adapterMethodName: "sendPrimitive", responseBodyFactory: "ArrayBuffer", requestBodyContentType: "application/json", requestBodySerializer: serializeGetFrontlineReportPostRequestBody, requestInformationContentSetMethod: "setContentFromParsable", }, }; /* tslint:enable */ /* eslint-enable */ //# sourceMappingURL=index.js.map