UNPKG

@microsoft/msgraph-beta-sdk-solutions

Version:
58 lines 2.54 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 {SetExternalEventInformationPostRequestBody} */ // @ts-ignore export function createSetExternalEventInformationPostRequestBodyFromDiscriminatorValue(parseNode) { return deserializeIntoSetExternalEventInformationPostRequestBody; } /** * The deserialization information for the current model * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoSetExternalEventInformationPostRequestBody(setExternalEventInformationPostRequestBody = {}) { return { "backingStoreEnabled": n => { setExternalEventInformationPostRequestBody.backingStoreEnabled = true; }, "externalEventId": n => { setExternalEventInformationPostRequestBody.externalEventId = n.getStringValue(); }, }; } /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ // @ts-ignore export function serializeSetExternalEventInformationPostRequestBody(writer, setExternalEventInformationPostRequestBody = {}) { if (setExternalEventInformationPostRequestBody) { writer.writeStringValue("externalEventId", setExternalEventInformationPostRequestBody.externalEventId); writer.writeAdditionalData(setExternalEventInformationPostRequestBody.additionalData); } } /** * Uri template for the request builder. */ export const SetExternalEventInformationRequestBuilderUriTemplate = "{+baseurl}/solutions/virtualEvents/events/{virtualEvent%2Did}/setExternalEventInformation"; /** * Metadata for all the requests in the request builder. */ export const SetExternalEventInformationRequestBuilderRequestsMetadata = { post: { uriTemplate: SetExternalEventInformationRequestBuilderUriTemplate, errorMappings: { XXX: createODataErrorFromDiscriminatorValue, }, adapterMethodName: "sendNoResponseContent", requestBodyContentType: "application/json", requestBodySerializer: serializeSetExternalEventInformationPostRequestBody, requestInformationContentSetMethod: "setContentFromParsable", }, }; /* tslint:enable */ /* eslint-enable */ //# sourceMappingURL=index.js.map