azure.servicebus.models module

class azure.servicebus.models.AuthorizationRule(claim_type=None, claim_value=None, rights=None, key_name=None, primary_key=None, secondary_key=None)[source]

Bases: azure.servicebus._common_models.WindowsAzureData

exception azure.servicebus.models.AzureServiceBusPeekLockError[source]

Bases: azure.common.AzureException

Indicates that peek-lock is required for this operation.

exception azure.servicebus.models.AzureServiceBusResourceNotFound[source]

Bases: azure.common.AzureException

Indicates that the resource doesn’t exist.

class azure.servicebus.models.EventHub(message_retention_in_days=None, status=None, user_metadata=None, partition_count=None)[source]

Bases: azure.servicebus._common_models.WindowsAzureData

class azure.servicebus.models.Message(body=None, service_bus_service=None, location=None, custom_properties=None, type='application/atom+xml;type=entry;charset=utf-8', broker_properties=None)[source]

Bases: azure.servicebus._common_models.WindowsAzureData

Message class that used in send message/get mesage apis.

add_headers(request)[source]

add addtional headers to request for message request.

as_batch_body()[source]

return the current message as expected by batch body format

delete()[source]

Deletes itself if find queue name or topic name and subscription name.

renew_lock()[source]

Renew lock on itself if find queue name or topic name and subscription name.

unlock()[source]

Unlocks itself if find queue name or topic name and subscription name.

class azure.servicebus.models.Queue(lock_duration=None, max_size_in_megabytes=None, requires_duplicate_detection=None, requires_session=None, default_message_time_to_live=None, dead_lettering_on_message_expiration=None, duplicate_detection_history_time_window=None, max_delivery_count=None, enable_batched_operations=None, size_in_bytes=None, message_count=None)[source]

Bases: azure.servicebus._common_models.WindowsAzureData

Queue class corresponding to Queue Description: http://msdn.microsoft.com/en-us/library/windowsazure/hh780773

class azure.servicebus.models.Rule(filter_type=None, filter_expression=None, action_type=None, action_expression=None)[source]

Bases: azure.servicebus._common_models.WindowsAzureData

Rule class corresponding to Rule Description: http://msdn.microsoft.com/en-us/library/windowsazure/hh780753.

class azure.servicebus.models.Subscription(lock_duration=None, requires_session=None, default_message_time_to_live=None, dead_lettering_on_message_expiration=None, dead_lettering_on_filter_evaluation_exceptions=None, enable_batched_operations=None, max_delivery_count=None, message_count=None)[source]

Bases: azure.servicebus._common_models.WindowsAzureData

Subscription class corresponding to Subscription Description: http://msdn.microsoft.com/en-us/library/windowsazure/hh780763.

class azure.servicebus.models.Topic(default_message_time_to_live=None, max_size_in_megabytes=None, requires_duplicate_detection=None, duplicate_detection_history_time_window=None, enable_batched_operations=None, size_in_bytes=None)[source]

Bases: azure.servicebus._common_models.WindowsAzureData

Topic class corresponding to Topic Description: http://msdn.microsoft.com/en-us/library/windowsazure/hh780749.

max_size_in_mega_bytes