UNPKG

@microsoft/msgraph-beta-sdk-drives

Version:
61 lines 2.52 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 {GetVapidPublicKeyGetResponse} */ // @ts-ignore export function createGetVapidPublicKeyGetResponseFromDiscriminatorValue(parseNode) { return deserializeIntoGetVapidPublicKeyGetResponse; } /** * The deserialization information for the current model * @param GetVapidPublicKeyGetResponse The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoGetVapidPublicKeyGetResponse(getVapidPublicKeyGetResponse = {}) { return { "backingStoreEnabled": n => { getVapidPublicKeyGetResponse.backingStoreEnabled = true; }, "value": n => { getVapidPublicKeyGetResponse.value = n.getStringValue(); }, }; } /** * Serializes information the current object * @param GetVapidPublicKeyGetResponse 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 serializeGetVapidPublicKeyGetResponse(writer, getVapidPublicKeyGetResponse = {}, isSerializingDerivedType = false) { if (!getVapidPublicKeyGetResponse || isSerializingDerivedType) { return; } writer.writeStringValue("value", getVapidPublicKeyGetResponse.value); writer.writeAdditionalData(getVapidPublicKeyGetResponse.additionalData); } /** * Uri template for the request builder. */ export const GetVapidPublicKeyRequestBuilderUriTemplate = "{+baseurl}/drives/{drive%2Did}/list/subscriptions/getVapidPublicKey()"; /** * Metadata for all the requests in the request builder. */ export const GetVapidPublicKeyRequestBuilderRequestsMetadata = { get: { uriTemplate: GetVapidPublicKeyRequestBuilderUriTemplate, responseBodyContentType: "application/json", errorMappings: { XXX: createODataErrorFromDiscriminatorValue, }, adapterMethodName: "send", responseBodyFactory: createGetVapidPublicKeyGetResponseFromDiscriminatorValue, }, }; /* tslint:enable */ /* eslint-enable */ //# sourceMappingURL=index.js.map