Skip to content

Commit 1dcfef1

Browse files
authored
[ServiceBus] Prepare for release (Azure#19128)
* fix api shape * update sample readme link
1 parent 87faaad commit 1dcfef1

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ def __init__(self, body, **kwargs):
124124
self.partition_key = kwargs.pop("partition_key", None)
125125

126126
def __str__(self):
127+
# type: () -> str
127128
return str(self.raw_amqp_message)
128129

129130
def __repr__(self):
@@ -730,8 +731,6 @@ class ServiceBusReceivedMessage(ServiceBusMessage):
730731
"""
731732
A Service Bus Message received from service side.
732733
733-
:ivar raw_amqp_message: Advanced usage only. The internal AMQP message payload that is sent or received.
734-
:vartype raw_amqp_message: ~azure.servicebus.amqp.AmqpAnnotatedMessage
735734
:ivar auto_renew_error: Error when AutoLockRenewer is used and it fails to renew the message lock.
736735
:vartype auto_renew_error: ~azure.servicebus.AutoLockRenewTimeout or ~azure.servicebus.AutoLockRenewFailed
737736

sdk/servicebus/azure-servicebus/azure/servicebus/amqp/_amqp_message.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ def __init__(self, **kwargs):
152152
self._delivery_annotations = kwargs.get("delivery_annotations")
153153

154154
def __str__(self):
155+
# type: () -> str
155156
return str(self._message)
156157

157158
def __repr__(self):

sdk/servicebus/azure-servicebus/samples/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ Both [sync version](https://github.com/Azure/azure-sdk-for-python/tree/master/sd
3535
- Receive dead-lettered messages
3636
- [receive_iterator_queue.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/sync_samples/receive_iterator_queue.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/async_samples/receive_iterator_queue_async.py)) - Examples to receive messages from a service bus queue by iterating over ServiceBusReceiver:
3737
- Receive messages by iterating over ServiceBusReceiver
38+
- [send_and_receive_amqp_annotated_message.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/sync_samples/send_and_receive_amqp_annotated_message.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/async_samples/send_and_receive_amqp_annotated_message_async.py)) - Examples to send AMQPAnnotatedMessage to and receive messages from a service bus queue and parse the body:
39+
- Send AMQPAnnotatedMessage of different body types.
40+
- Receive messages and parse the body according to the body type.
3841
- [session_pool_receive.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/sync_samples/session_pool_receive.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/async_samples/session_pool_receive_async.py)) - Examples to receive messages from multiple available sessions in parallel with a thread pool:
3942
- Receive messages from multiple available sessions in parallel with a thread pool
4043
- Automatically renew the lock on the session through AutoLockRenewer

0 commit comments

Comments
 (0)