UNPKG

@microsoft/msgraph-beta-sdk-devicemanagement

Version:
61 lines 2.96 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 {GetGlobalScriptHighestAvailableVersionPostResponse} */ // @ts-ignore export function createGetGlobalScriptHighestAvailableVersionPostResponseFromDiscriminatorValue(parseNode) { return deserializeIntoGetGlobalScriptHighestAvailableVersionPostResponse; } /** * The deserialization information for the current model * @param GetGlobalScriptHighestAvailableVersionPostResponse The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoGetGlobalScriptHighestAvailableVersionPostResponse(getGlobalScriptHighestAvailableVersionPostResponse = {}) { return { "backingStoreEnabled": n => { getGlobalScriptHighestAvailableVersionPostResponse.backingStoreEnabled = true; }, "value": n => { getGlobalScriptHighestAvailableVersionPostResponse.value = n.getStringValue(); }, }; } /** * Serializes information the current object * @param GetGlobalScriptHighestAvailableVersionPostResponse 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 serializeGetGlobalScriptHighestAvailableVersionPostResponse(writer, getGlobalScriptHighestAvailableVersionPostResponse = {}, isSerializingDerivedType = false) { if (!getGlobalScriptHighestAvailableVersionPostResponse || isSerializingDerivedType) { return; } writer.writeStringValue("value", getGlobalScriptHighestAvailableVersionPostResponse.value); writer.writeAdditionalData(getGlobalScriptHighestAvailableVersionPostResponse.additionalData); } /** * Uri template for the request builder. */ export const GetGlobalScriptHighestAvailableVersionRequestBuilderUriTemplate = "{+baseurl}/deviceManagement/deviceHealthScripts/{deviceHealthScript%2Did}/getGlobalScriptHighestAvailableVersion"; /** * Metadata for all the requests in the request builder. */ export const GetGlobalScriptHighestAvailableVersionRequestBuilderRequestsMetadata = { post: { uriTemplate: GetGlobalScriptHighestAvailableVersionRequestBuilderUriTemplate, responseBodyContentType: "application/json", errorMappings: { XXX: createODataErrorFromDiscriminatorValue, }, adapterMethodName: "send", responseBodyFactory: createGetGlobalScriptHighestAvailableVersionPostResponseFromDiscriminatorValue, }, }; /* tslint:enable */ /* eslint-enable */ //# sourceMappingURL=index.js.map