UNPKG

@microsoft/msgraph-beta-sdk-devicemanagement

Version:
52 lines 2.29 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 {ScopedForResourceWithResourceGetResponse} */ export function createScopedForResourceWithResourceGetResponseFromDiscriminatorValue(parseNode) { return deserializeIntoScopedForResourceWithResourceGetResponse; } /** * The deserialization information for the current model * @returns {Record<string, (node: ParseNode) => void>} */ export function deserializeIntoScopedForResourceWithResourceGetResponse(scopedForResourceWithResourceGetResponse = {}) { return { "backingStoreEnabled": n => { scopedForResourceWithResourceGetResponse.backingStoreEnabled = true; }, "value": n => { scopedForResourceWithResourceGetResponse.value = n.getBooleanValue(); }, }; } /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ export function serializeScopedForResourceWithResourceGetResponse(writer, scopedForResourceWithResourceGetResponse = {}) { writer.writeBooleanValue("value", scopedForResourceWithResourceGetResponse.value); writer.writeAdditionalData(scopedForResourceWithResourceGetResponse.additionalData); } /** * Uri template for the request builder. */ export const ScopedForResourceWithResourceRequestBuilderUriTemplate = "{+baseurl}/deviceManagement/scopedForResource(resource='{resource}')"; /** * Metadata for all the requests in the request builder. */ export const ScopedForResourceWithResourceRequestBuilderRequestsMetadata = { get: { uriTemplate: ScopedForResourceWithResourceRequestBuilderUriTemplate, responseBodyContentType: "application/json", errorMappings: { XXX: createODataErrorFromDiscriminatorValue, }, adapterMethodName: "send", responseBodyFactory: createScopedForResourceWithResourceGetResponseFromDiscriminatorValue, }, }; /* tslint:enable */ /* eslint-enable */ //# sourceMappingURL=index.js.map