UNPKG

@microsoft/msgraph-beta-sdk-devicemanagement

Version:
52 lines 2.73 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} */ export function createGetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponseFromDiscriminatorValue(parseNode) { return deserializeIntoGetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse; } /** * The deserialization information for the current model * @returns {Record<string, (node: ParseNode) => void>} */ export function deserializeIntoGetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse(getOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse = {}) { return { "backingStoreEnabled": n => { getOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse.backingStoreEnabled = true; }, "value": n => { getOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse.value = n.getStringValue(); }, }; } /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ export function serializeGetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse(writer, getOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse = {}) { 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