UNPKG

@microsoft/msgraph-beta-sdk-devicemanagement

Version:
71 lines 4.13 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 {GetDeviceInstallStatusReportPostRequestBody} */ export function createGetDeviceInstallStatusReportPostRequestBodyFromDiscriminatorValue(parseNode) { return deserializeIntoGetDeviceInstallStatusReportPostRequestBody; } /** * The deserialization information for the current model * @returns {Record<string, (node: ParseNode) => void>} */ export function deserializeIntoGetDeviceInstallStatusReportPostRequestBody(getDeviceInstallStatusReportPostRequestBody = {}) { return { "backingStoreEnabled": n => { getDeviceInstallStatusReportPostRequestBody.backingStoreEnabled = true; }, "filter": n => { getDeviceInstallStatusReportPostRequestBody.filter = n.getStringValue(); }, "groupBy": n => { getDeviceInstallStatusReportPostRequestBody.groupBy = n.getCollectionOfPrimitiveValues(); }, "name": n => { getDeviceInstallStatusReportPostRequestBody.name = n.getStringValue(); }, "orderBy": n => { getDeviceInstallStatusReportPostRequestBody.orderBy = n.getCollectionOfPrimitiveValues(); }, "search": n => { getDeviceInstallStatusReportPostRequestBody.search = n.getStringValue(); }, "select": n => { getDeviceInstallStatusReportPostRequestBody.select = n.getCollectionOfPrimitiveValues(); }, "sessionId": n => { getDeviceInstallStatusReportPostRequestBody.sessionId = n.getStringValue(); }, "skip": n => { getDeviceInstallStatusReportPostRequestBody.skip = n.getNumberValue(); }, "top": n => { getDeviceInstallStatusReportPostRequestBody.top = n.getNumberValue(); }, }; } /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ export function serializeGetDeviceInstallStatusReportPostRequestBody(writer, getDeviceInstallStatusReportPostRequestBody = {}) { writer.writeStringValue("filter", getDeviceInstallStatusReportPostRequestBody.filter); writer.writeCollectionOfPrimitiveValues("groupBy", getDeviceInstallStatusReportPostRequestBody.groupBy); writer.writeStringValue("name", getDeviceInstallStatusReportPostRequestBody.name); writer.writeCollectionOfPrimitiveValues("orderBy", getDeviceInstallStatusReportPostRequestBody.orderBy); writer.writeStringValue("search", getDeviceInstallStatusReportPostRequestBody.search); writer.writeCollectionOfPrimitiveValues("select", getDeviceInstallStatusReportPostRequestBody.select); writer.writeStringValue("sessionId", getDeviceInstallStatusReportPostRequestBody.sessionId); writer.writeNumberValue("skip", getDeviceInstallStatusReportPostRequestBody.skip); writer.writeNumberValue("top", getDeviceInstallStatusReportPostRequestBody.top); writer.writeAdditionalData(getDeviceInstallStatusReportPostRequestBody.additionalData); } /** * Uri template for the request builder. */ export const GetDeviceInstallStatusReportRequestBuilderUriTemplate = "{+baseurl}/deviceManagement/reports/getDeviceInstallStatusReport"; /** * Metadata for all the requests in the request builder. */ export const GetDeviceInstallStatusReportRequestBuilderRequestsMetadata = { post: { uriTemplate: GetDeviceInstallStatusReportRequestBuilderUriTemplate, responseBodyContentType: "application/octet-stream, application/json", errorMappings: { XXX: createODataErrorFromDiscriminatorValue, }, adapterMethodName: "sendPrimitive", responseBodyFactory: "ArrayBuffer", requestBodyContentType: "application/json", requestBodySerializer: serializeGetDeviceInstallStatusReportPostRequestBody, requestInformationContentSetMethod: "setContentFromParsable", }, }; /* tslint:enable */ /* eslint-enable */ //# sourceMappingURL=index.js.map