7.0.0b5 (2020-08-10)
New Features
- Added new properties to Message, PeekMessage and ReceivedMessage:
content_type
,correlation_id
,label
,
message_id
,reply_to
,reply_to_session_id
andto
. Please refer to the docstring for further information. - Added new properties to PeekedMessaged and ReceivedMessage:
enqueued_sequence_number
,dead_letter_error_description
,
dead_letter_reason
,dead_letter_source
,delivery_count
andexpires_at_utc
. Please refer to the docstring for further information. - Added support for sending received messages via
ServiceBusSender.send_messages
. - Added
on_lock_renew_failure
as a parameter toAutoLockRenew.register
, taking a callback for when the lock is lost non-intentially (e.g. not via settling, shutdown, or autolockrenew duration completion). - Added new supported value types int, float, datetime and timedelta for
CorrelationFilter.properties
. - Added new properties
parameters
andrequires_preprocessing
toSqlRuleFilter
andSqlRuleAction
. - Added an explicit method to fetch the continuous receiving iterator,
get_streaming_message_iter()
such thatmax_wait_time
can be specified as an override.
Breaking Changes
- Removed/Renamed several properties and instance variables on Message (the changes applied to the inherited Message type PeekMessage and ReceivedMessage).
- Renamed property
user_properties
toproperties
- The original instance variable
properties
which represents the AMQP properties now becomes an internal instance variable_amqp_properties
.
- The original instance variable
- Removed property
enqueue_sequence_number
. - Removed property
annotations
. - Removed instance variable
header
.
- Renamed property
- Removed several properties and instance variables on PeekMessage and ReceivedMessage.
- Removed property
partition_id
on both type. - Removed property
settled
on both type. - Removed instance variable
received_timestamp_utc
on both type. - Removed property
settled
onPeekMessage
. - Removed property
expired
onReceivedMessage
.
- Removed property
AutoLockRenew.sleep_time
andAutoLockRenew.renew_period
have been made internal as_sleep_time
and_renew_period
respectively, as it is not expected a user will have to interact with them.AutoLockRenew.shutdown
is nowAutoLockRenew.close
to normalize with other equivalent behaviors.- Renamed
QueueDescription
,TopicDescription
,SubscriptionDescription
andRuleDescription
toQueueProperties
,TopicProperties
,SubscriptionProperties
, andRuleProperties
. - Renamed
QueueRuntimeInfo
,TopicRuntimeInfo
, andSubscriptionRuntimeInfo
toQueueRuntimeProperties
,TopicRuntimeProperties
, andSubscriptionRuntimeProperties
. - Removed param
queue
fromcreate_queue
,topic
fromcreate_topic
,subscription
fromcreate_subscription
andrule
fromcreate_rule
ofServiceBusManagementClient
. Added paramname
to them and keyword arguments for queue properties, topic properties, subscription properties and rule properties. - Removed model class attributes related keyword arguments from
update_queue
andupdate_topic
ofServiceBusManagementClient
. This is to encourage utilizing the model class instance instead as returned from a create_*, list_* or get_* operation to ensure it is properly populated. Properties may still be modified. - Model classes
QueueProperties
,TopicProperties
,SubscriptionProperties
andRuleProperties
require all arguments to be present for creation. This is to protect against lack of partial updates by requiring all properties to be specified. - Renamed
idle_timeout
inget_<queue/subscription>_receiver()
tomax_wait_time
to normalize with naming elsewhere. - Updated uAMQP dependency to 1.2.10 such that the receiver does not shut down when generator times out, and can be received from again.