UNPKG

@microsoft/msgraph-beta-sdk-devicemanagement

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