QueuesOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:queues> attribute.
- Inheritance
-
builtins.objectQueuesOperations
Constructor
QueuesOperations(*args, **kwargs)
Methods
create_or_update |
Creates or updates a Service Bus queue. This operation is idempotent. |
create_or_update_authorization_rule |
Creates an authorization rule for a queue. |
delete |
Deletes a queue from the specified namespace in a resource group. |
delete_authorization_rule |
Deletes a queue authorization rule. |
get |
Returns a description for the specified queue. |
get_authorization_rule |
Gets an authorization rule for a queue by rule name. |
list_all |
Gets the queues within a namespace. |
list_authorization_rules |
Gets all authorization rules for a queue. |
list_keys |
Primary and secondary connection strings to the queue. |
post_authorization_rule |
Gets an authorization rule for a queue by rule name. |
regenerate_keys |
Regenerates the primary or secondary connection strings to the queue. |
create_or_update
Creates or updates a Service Bus queue. This operation is idempotent.
async create_or_update(resource_group_name: str, namespace_name: str, queue_name: str, parameters: _models.QueueCreateOrUpdateParameters, *, content_type: str = 'application/json', **kwargs: Any) -> _models.QueueResource
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
Name of the Resource group within the Azure subscription. Required. |
namespace_name
Required
|
The namespace name. Required. |
queue_name
Required
|
The queue name. Required. |
parameters
Required
|
Parameters supplied to create or update a queue resource. Is either a QueueCreateOrUpdateParameters type or a IO[bytes] type. Required. |
Returns
Type | Description |
---|---|
QueueResource or the result of cls(response) |
Exceptions
Type | Description |
---|---|
create_or_update_authorization_rule
Creates an authorization rule for a queue.
async create_or_update_authorization_rule(resource_group_name: str, namespace_name: str, queue_name: str, authorization_rule_name: str, parameters: _models.SharedAccessAuthorizationRuleCreateOrUpdateParameters, *, content_type: str = 'application/json', **kwargs: Any) -> _models.SharedAccessAuthorizationRuleResource
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
Name of the Resource group within the Azure subscription. Required. |
namespace_name
Required
|
The namespace name. Required. |
queue_name
Required
|
The queue name. Required. |
authorization_rule_name
Required
|
The authorization rule name. Required. |
parameters
Required
|
The shared access authorization rule. Is either a SharedAccessAuthorizationRuleCreateOrUpdateParameters type or a IO[bytes] type. Required. |
Returns
Type | Description |
---|---|
SharedAccessAuthorizationRuleResource or the result of cls(response) |
Exceptions
Type | Description |
---|---|
delete
Deletes a queue from the specified namespace in a resource group.
async delete(resource_group_name: str, namespace_name: str, queue_name: str, **kwargs: Any) -> None
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
Name of the Resource group within the Azure subscription. Required. |
namespace_name
Required
|
The namespace name. Required. |
queue_name
Required
|
The queue name. Required. |
Returns
Type | Description |
---|---|
None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
delete_authorization_rule
Deletes a queue authorization rule.
async delete_authorization_rule(resource_group_name: str, namespace_name: str, queue_name: str, authorization_rule_name: str, **kwargs: Any) -> None
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
Name of the Resource group within the Azure subscription. Required. |
namespace_name
Required
|
The namespace name. Required. |
queue_name
Required
|
The queue name. Required. |
authorization_rule_name
Required
|
The authorization rule name. Required. |
Returns
Type | Description |
---|---|
None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
get
Returns a description for the specified queue.
async get(resource_group_name: str, namespace_name: str, queue_name: str, **kwargs: Any) -> QueueResource
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
Name of the Resource group within the Azure subscription. Required. |
namespace_name
Required
|
The namespace name. Required. |
queue_name
Required
|
The queue name. Required. |
Returns
Type | Description |
---|---|
QueueResource or the result of cls(response) |
Exceptions
Type | Description |
---|---|
get_authorization_rule
Gets an authorization rule for a queue by rule name.
async get_authorization_rule(resource_group_name: str, namespace_name: str, queue_name: str, authorization_rule_name: str, **kwargs: Any) -> SharedAccessAuthorizationRuleResource
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
Name of the Resource group within the Azure subscription. Required. |
namespace_name
Required
|
The namespace name. Required. |
queue_name
Required
|
The queue name. Required. |
authorization_rule_name
Required
|
The authorization rule name. Required. |
Returns
Type | Description |
---|---|
SharedAccessAuthorizationRuleResource or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list_all
Gets the queues within a namespace.
list_all(resource_group_name: str, namespace_name: str, **kwargs: Any) -> AsyncIterable[QueueResource]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
Name of the Resource group within the Azure subscription. Required. |
namespace_name
Required
|
The namespace name. Required. |
Returns
Type | Description |
---|---|
An iterator like instance of either QueueResource or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list_authorization_rules
Gets all authorization rules for a queue.
list_authorization_rules(resource_group_name: str, namespace_name: str, queue_name: str, **kwargs: Any) -> AsyncIterable[SharedAccessAuthorizationRuleResource]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
Name of the Resource group within the Azure subscription. Required. |
namespace_name
Required
|
The namespace name. Required. |
queue_name
Required
|
The queue name. Required. |
Returns
Type | Description |
---|---|
An iterator like instance of either SharedAccessAuthorizationRuleResource or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list_keys
Primary and secondary connection strings to the queue.
async list_keys(resource_group_name: str, namespace_name: str, queue_name: str, authorization_rule_name: str, **kwargs: Any) -> ResourceListKeys
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
Name of the Resource group within the Azure subscription. Required. |
namespace_name
Required
|
The namespace name. Required. |
queue_name
Required
|
The queue name. Required. |
authorization_rule_name
Required
|
The authorization rule name. Required. |
Returns
Type | Description |
---|---|
ResourceListKeys or the result of cls(response) |
Exceptions
Type | Description |
---|---|
post_authorization_rule
Gets an authorization rule for a queue by rule name.
async post_authorization_rule(resource_group_name: str, namespace_name: str, queue_name: str, authorization_rule_name: str, **kwargs: Any) -> SharedAccessAuthorizationRuleResource
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
Name of the Resource group within the Azure subscription. Required. |
namespace_name
Required
|
The namespace name. Required. |
queue_name
Required
|
The queue name. Required. |
authorization_rule_name
Required
|
The authorization rule name. Required. |
Returns
Type | Description |
---|---|
SharedAccessAuthorizationRuleResource or the result of cls(response) |
Exceptions
Type | Description |
---|---|
regenerate_keys
Regenerates the primary or secondary connection strings to the queue.
async regenerate_keys(resource_group_name: str, namespace_name: str, queue_name: str, authorization_rule_name: str, parameters: _models.RegenerateKeysParameters, *, content_type: str = 'application/json', **kwargs: Any) -> _models.ResourceListKeys
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
Name of the Resource group within the Azure subscription. Required. |
namespace_name
Required
|
The namespace name. Required. |
queue_name
Required
|
The queue name. Required. |
authorization_rule_name
Required
|
The authorization rule name. Required. |
parameters
Required
|
Parameters supplied to regenerate the authorization rule. Is either a RegenerateKeysParameters type or a IO[bytes] type. Required. |
Returns
Type | Description |
---|---|
ResourceListKeys or the result of cls(response) |
Exceptions
Type | Description |
---|---|
Attributes
models
models = <module 'azure.mgmt.servicebus.v2015_08_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\servicebus\\v2015_08_01\\models\\__init__.py'>
Azure SDK for Python