Source code for azure.servicebus.amqp._constants

# ------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# -------------------------------------------------------------------------
from enum import Enum

from uamqp import MessageBodyType
from azure.core import CaseInsensitiveEnumMeta

[docs]class AmqpMessageBodyType(str, Enum, metaclass=CaseInsensitiveEnumMeta): DATA = "data" SEQUENCE = "sequence" VALUE = "value"
AMQP_MESSAGE_BODY_TYPE_MAP = { MessageBodyType.Data.value: AmqpMessageBodyType.DATA, MessageBodyType.Sequence.value: AmqpMessageBodyType.SEQUENCE, MessageBodyType.Value.value: AmqpMessageBodyType.VALUE, }