@@ -170,10 +170,13 @@ def _from_amqp_message(self, message):
170
170
171
171
@property
172
172
def body (self ) -> Any :
173
- """The body of the Message. The format may vary depending on the body type:
174
- For ~azure.eventhub.AmqpMessageBodyType.DATA, the body could be bytes or Iterable[bytes]
175
- For ~azure.eventhub.AmqpMessageBodyType.SEQUENCE, the body could be List or Iterable[List]
176
- For ~azure.eventhub.AmqpMessageBodyType.VALUE, the body could be any type.
173
+ """
174
+ The body of the Message. The format may vary depending on the body type:
175
+
176
+ For AmqpMessageBodyType.DATA, the body could be bytes or Iterable[bytes].
177
+ For AmqpMessageBodyType.SEQUENCE, the body could be List or Iterable[List].
178
+ For AmqpMessageBodyType.VALUE, the body could be any type.
179
+
177
180
:rtype: Any
178
181
"""
179
182
if self ._body_type == AmqpMessageBodyType .DATA : # pylint:disable=no-else-return
@@ -186,15 +189,18 @@ def body(self) -> Any:
186
189
187
190
@property
188
191
def body_type (self ) -> AmqpMessageBodyType :
189
- """The body type of the underlying AMQP message.
190
- rtype: ~azure.eventhub.amqp.AmqpMessageBodyType
192
+ """
193
+ The body type of the underlying AMQP message.
194
+
195
+ :rtype: ~azure.eventhub.amqp.AmqpMessageBodyType
191
196
"""
192
197
return self ._body_type
193
198
194
199
@property
195
200
def properties (self ) -> Optional [AmqpMessageProperties ]:
196
201
"""
197
202
Properties to add to the message.
203
+
198
204
:rtype: Optional[~azure.eventhub.amqp.AmqpMessageProperties]
199
205
"""
200
206
return self ._properties
@@ -247,6 +253,7 @@ def delivery_annotations(self, value: Optional[Dict[Union[str, bytes], Any]]) ->
247
253
def header (self ) -> Optional [AmqpMessageHeader ]:
248
254
"""
249
255
The message header.
256
+
250
257
:rtype: Optional[~azure.eventhub.amqp.AmqpMessageHeader]
251
258
"""
252
259
return self ._header
0 commit comments