7.0.0b6 (2020-09-10)
New Features
renew_lock()
now returns the UTC datetime that the lock is set to expire at.receive_deferred_messages()
can now take a single sequence number as well as a list of sequence numbers.- Messages can now be sent twice in succession.
- Connection strings used with
from_connection_string
methods now support using theSharedAccessSignature
key in leiu ofsharedaccesskey
andsharedaccesskeyname
, taking the string of the properly constructed token as value. - Internal AMQP message properties (header, footer, annotations, properties, etc) are now exposed via
Message.amqp_message
Breaking Changes
- Renamed
prefetch
toprefetch_count
. - Renamed
ReceiveSettleMode
enum toReceiveMode
, and respectively themode
parameter toreceive_mode
. retry_total
,retry_backoff_factor
andretry_backoff_max
are now defined at theServiceBusClient
level and inherited by senders and receivers created from it.- No longer export
NEXT_AVAILABLE
inazure.servicebus
module. A nullsession_id
will suffice. - Renamed parameter
message_count
tomax_message_count
as fewer messages may be present for methodpeek_messages()
andreceive_messages()
. - Renamed
PeekMessage
toPeekedMessage
. - Renamed
get_session_state()
andset_session_state()
toget_state()
andset_state()
accordingly. - Renamed parameter
description
toerror_description
for methoddead_letter()
. - Renamed properties
created_time
andmodified_time
tocreated_at_utc
andmodified_at_utc
withinAuthorizationRule
andNamespaceProperties
. - Removed parameter
requires_preprocessing
fromSqlRuleFilter
andSqlRuleAction
. - Removed property
namespace_type
fromNamespaceProperties
. - Rename
ServiceBusManagementClient
toServiceBusAdministrationClient
- Attempting to call
send_messages
on something not aMessage
,BatchMessage
, or list ofMessage
s, will now throw aTypeError
instead ofValueError
- Sending a message twice will no longer result in a MessageAlreadySettled exception.
ServiceBusClient.close()
now closes spawned senders and receivers.- Attempting to initialize a sender or receiver with a different connection string entity and specified entity (e.g.
queue_name
) will result in an AuthenticationError - Remove
is_anonymous_accessible
from management entities. - Remove
support_ordering
fromcreate_queue
andQueueProperties
- Remove
enable_subscription_partitioning
fromcreate_topic
andTopicProperties
get_dead_letter_[queue,subscription]_receiver()
has been removed. To connect to a dead letter queue, utilize thesub_queue
parameter ofget_[queue,subscription]_receiver()
provided with a value from theSubQueue
enum- No longer export
ServiceBusSharedKeyCredential
- Rename
entity_availability_status
toavailability_status