UNPKG

@microsoft/msgraph-beta-sdk-devicemanagement

Version:
61 lines 3.25 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 {GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse} */ // @ts-ignore export function createGetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponseFromDiscriminatorValue(parseNode) { return deserializeIntoGetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse; } /** * The deserialization information for the current model * @param GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoGetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse(getOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse = {}) { return { "backingStoreEnabled": n => { getOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse.backingStoreEnabled = true; }, "value": n => { getOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse.value = n.getStringValue(); }, }; } /** * Serializes information the current object * @param GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse 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 serializeGetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse(writer, getOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse = {}, isSerializingDerivedType = false) { if (!getOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse || isSerializingDerivedType) { return; } writer.writeStringValue("value", getOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse.value); writer.writeAdditionalData(getOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse.additionalData); } /** * Uri template for the request builder. */ export const GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilderUriTemplate = "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/getOmaSettingPlainTextValue(secretReferenceValueId='{secretReferenceValueId}')"; /** * Metadata for all the requests in the request builder. */ export const GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilderRequestsMetadata = { get: { uriTemplate: GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilderUriTemplate, responseBodyContentType: "application/json", errorMappings: { XXX: createODataErrorFromDiscriminatorValue, }, adapterMethodName: "send", responseBodyFactory: createGetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponseFromDiscriminatorValue, }, }; /* tslint:enable */ /* eslint-enable */ //# sourceMappingURL=index.js.map