azure.mgmt.servicebus.operations module

class azure.mgmt.servicebus.operations.Operations(client, config, serializer, deserializer)[source]

Bases: object

Operations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – Client API version. Constant value: “2017-04-01”.

list(custom_headers=None, raw=False, **operation_config)[source]

Lists all of the available ServiceBus REST API operations.

Parameters:
Return type:

OperationPaged

Raises:

ErrorResponseException

class azure.mgmt.servicebus.operations.NamespacesOperations(client, config, serializer, deserializer)[source]

Bases: object

NamespacesOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – Client API version. Constant value: “2017-04-01”.

check_name_availability_method(name, custom_headers=None, raw=False, **operation_config)[source]

Check the give namespace name availability.

Parameters:
  • name (str) – The Name to check the namespce name availability and The namespace name can contain only letters, numbers, and hyphens. The namespace must start with a letter, and it must end with a letter or number.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

CheckNameAvailabilityResult

Return type:

ClientRawResponse if raw=true

Raises:

ErrorResponseException

create_or_update(resource_group_name, namespace_name, parameters, custom_headers=None, raw=False, **operation_config)[source]

Creates or updates a service namespace. Once created, this namespace’s resource manifest is immutable. This operation is idempotent.

Parameters:
  • resource_group_name (str) – Name of the Resource group within the Azure subscription.
  • namespace_name (str) – The namespace name.
  • parameters (SBNamespace) – Parameters supplied to create a namespace resource.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns SBNamespace

Return type:

ClientRawResponse if raw=true

Raises:

ErrorResponseException

create_or_update_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, rights=None, custom_headers=None, raw=False, **operation_config)[source]

Creates or updates an authorization rule for a namespace.

Parameters:
  • resource_group_name (str) – Name of the Resource group within the Azure subscription.
  • namespace_name (str) – The namespace name
  • authorization_rule_name (str) – The authorizationrule name.
  • rights (list of str or AccessRights) – The rights associated with the rule.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

SBAuthorizationRule

Return type:

ClientRawResponse if raw=true

Raises:

ErrorResponseException

delete(resource_group_name, namespace_name, custom_headers=None, raw=False, **operation_config)[source]

Deletes an existing namespace. This operation also removes all associated resources under the namespace.

Parameters:
  • resource_group_name (str) – Name of the Resource group within the Azure subscription.
  • namespace_name (str) – The namespace name
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns None

Return type:

ClientRawResponse if raw=true

Raises:

ErrorResponseException

delete_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers=None, raw=False, **operation_config)[source]

Deletes a namespace authorization rule.

Parameters:
  • resource_group_name (str) – Name of the Resource group within the Azure subscription.
  • namespace_name (str) – The namespace name
  • authorization_rule_name (str) – The authorizationrule name.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

None

Return type:

ClientRawResponse if raw=true

Raises:

ErrorResponseException

get(resource_group_name, namespace_name, custom_headers=None, raw=False, **operation_config)[source]

Gets a description for the specified namespace.

Parameters:
  • resource_group_name (str) – Name of the Resource group within the Azure subscription.
  • namespace_name (str) – The namespace name
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

SBNamespace

Return type:

ClientRawResponse if raw=true

Raises:

ErrorResponseException

get_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers=None, raw=False, **operation_config)[source]

Gets an authorization rule for a namespace by rule name.

Parameters:
  • resource_group_name (str) – Name of the Resource group within the Azure subscription.
  • namespace_name (str) – The namespace name
  • authorization_rule_name (str) – The authorizationrule name.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

SBAuthorizationRule

Return type:

ClientRawResponse if raw=true

Raises:

ErrorResponseException

list(custom_headers=None, raw=False, **operation_config)[source]

Gets all the available namespaces within the subscription, irrespective of the resource groups.

Parameters:
Return type:

SBNamespacePaged

Raises:

ErrorResponseException

list_authorization_rules(resource_group_name, namespace_name, custom_headers=None, raw=False, **operation_config)[source]

Gets the authorization rules for a namespace.

Parameters:
  • resource_group_name (str) – Name of the Resource group within the Azure subscription.
  • namespace_name (str) – The namespace name
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

SBAuthorizationRulePaged

Raises:

ErrorResponseException

list_by_resource_group(resource_group_name, custom_headers=None, raw=False, **operation_config)[source]

Gets the available namespaces within a resource group.

Parameters:
  • resource_group_name (str) – Name of the Resource group within the Azure subscription.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

SBNamespacePaged

Raises:

ErrorResponseException

list_keys(resource_group_name, namespace_name, authorization_rule_name, custom_headers=None, raw=False, **operation_config)[source]

Gets the primary and secondary connection strings for the namespace.

Parameters:
  • resource_group_name (str) – Name of the Resource group within the Azure subscription.
  • namespace_name (str) – The namespace name
  • authorization_rule_name (str) – The authorizationrule name.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

AccessKeys

Return type:

ClientRawResponse if raw=true

Raises:

ErrorResponseException

regenerate_keys(resource_group_name, namespace_name, authorization_rule_name, key_type, key=None, custom_headers=None, raw=False, **operation_config)[source]

Regenerates the primary or secondary connection strings for the namespace.

Parameters:
  • resource_group_name (str) – Name of the Resource group within the Azure subscription.
  • namespace_name (str) – The namespace name
  • authorization_rule_name (str) – The authorizationrule name.
  • key_type (str or KeyType) – The access key to regenerate. Possible values include: ‘PrimaryKey’, ‘SecondaryKey’
  • key (str) – Optional, if the key value provided, is reset for KeyType value or autogenerate Key value set for keyType
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

AccessKeys

Return type:

ClientRawResponse if raw=true

Raises:

ErrorResponseException

update(resource_group_name, namespace_name, parameters, custom_headers=None, raw=False, **operation_config)[source]

Updates a service namespace. Once created, this namespace’s resource manifest is immutable. This operation is idempotent.

Parameters:
  • resource_group_name (str) – Name of the Resource group within the Azure subscription.
  • namespace_name (str) – The namespace name
  • parameters (SBNamespaceUpdateParameters) – Parameters supplied to update a namespace resource.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

SBNamespace

Return type:

ClientRawResponse if raw=true

Raises:

ErrorResponseException

class azure.mgmt.servicebus.operations.QueuesOperations(client, config, serializer, deserializer)[source]

Bases: object

QueuesOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – Client API version. Constant value: “2017-04-01”.

create_or_update(resource_group_name, namespace_name, queue_name, parameters, custom_headers=None, raw=False, **operation_config)[source]

Creates or updates a Service Bus queue. This operation is idempotent.

Parameters:
  • resource_group_name (str) – Name of the Resource group within the Azure subscription.
  • namespace_name (str) – The namespace name
  • queue_name (str) – The queue name.
  • parameters (SBQueue) – Parameters supplied to create or update a queue resource.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

SBQueue

Return type:

ClientRawResponse if raw=true

Raises:

ErrorResponseException

create_or_update_authorization_rule(resource_group_name, namespace_name, queue_name, authorization_rule_name, rights=None, custom_headers=None, raw=False, **operation_config)[source]

Creates an authorization rule for a queue.

Parameters:
  • resource_group_name (str) – Name of the Resource group within the Azure subscription.
  • namespace_name (str) – The namespace name
  • queue_name (str) – The queue name.
  • authorization_rule_name (str) – The authorizationrule name.
  • rights (list of str or AccessRights) – The rights associated with the rule.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

SBAuthorizationRule

Return type:

ClientRawResponse if raw=true

Raises:

ErrorResponseException

delete(resource_group_name, namespace_name, queue_name, custom_headers=None, raw=False, **operation_config)[source]

Deletes a queue from the specified namespace in a resource group.

Parameters:
  • resource_group_name (str) – Name of the Resource group within the Azure subscription.
  • namespace_name (str) – The namespace name
  • queue_name (str) – The queue name.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

None

Return type:

ClientRawResponse if raw=true

Raises:

ErrorResponseException

delete_authorization_rule(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers=None, raw=False, **operation_config)[source]

Deletes a queue authorization rule.

Parameters:
  • resource_group_name (str) – Name of the Resource group within the Azure subscription.
  • namespace_name (str) – The namespace name
  • queue_name (str) – The queue name.
  • authorization_rule_name (str) – The authorizationrule name.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

None

Return type:

ClientRawResponse if raw=true

Raises:

ErrorResponseException

get(resource_group_name, namespace_name, queue_name, custom_headers=None, raw=False, **operation_config)[source]

Returns a description for the specified queue.

Parameters:
  • resource_group_name (str) – Name of the Resource group within the Azure subscription.
  • namespace_name (str) – The namespace name
  • queue_name (str) – The queue name.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

SBQueue

Return type:

ClientRawResponse if raw=true

Raises:

ErrorResponseException

get_authorization_rule(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers=None, raw=False, **operation_config)[source]

Gets an authorization rule for a queue by rule name.

Parameters:
  • resource_group_name (str) – Name of the Resource group within the Azure subscription.
  • namespace_name (str) – The namespace name
  • queue_name (str) – The queue name.
  • authorization_rule_name (str) – The authorizationrule name.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

SBAuthorizationRule

Return type:

ClientRawResponse if raw=true

Raises:

ErrorResponseException

list_authorization_rules(resource_group_name, namespace_name, queue_name, custom_headers=None, raw=False, **operation_config)[source]

Gets all authorization rules for a queue.

Parameters:
  • resource_group_name (str) – Name of the Resource group within the Azure subscription.
  • namespace_name (str) – The namespace name
  • queue_name (str) – The queue name.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

SBAuthorizationRulePaged

Raises:

ErrorResponseException

list_by_namespace(resource_group_name, namespace_name, custom_headers=None, raw=False, **operation_config)[source]

Gets the queues within a namespace.

Parameters:
  • resource_group_name (str) – Name of the Resource group within the Azure subscription.
  • namespace_name (str) – The namespace name
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

SBQueuePaged

Raises:

ErrorResponseException

list_keys(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers=None, raw=False, **operation_config)[source]

Primary and secondary connection strings to the queue.

Parameters:
  • resource_group_name (str) – Name of the Resource group within the Azure subscription.
  • namespace_name (str) – The namespace name
  • queue_name (str) – The queue name.
  • authorization_rule_name (str) – The authorizationrule name.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

AccessKeys

Return type:

ClientRawResponse if raw=true

Raises:

ErrorResponseException

regenerate_keys(resource_group_name, namespace_name, queue_name, authorization_rule_name, key_type, key=None, custom_headers=None, raw=False, **operation_config)[source]

Regenerates the primary or secondary connection strings to the queue.

Parameters:
  • resource_group_name (str) – Name of the Resource group within the Azure subscription.
  • namespace_name (str) – The namespace name
  • queue_name (str) – The queue name.
  • authorization_rule_name (str) – The authorizationrule name.
  • key_type (str or KeyType) – The access key to regenerate. Possible values include: ‘PrimaryKey’, ‘SecondaryKey’
  • key (str) – Optional, if the key value provided, is reset for KeyType value or autogenerate Key value set for keyType
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

AccessKeys

Return type:

ClientRawResponse if raw=true

Raises:

ErrorResponseException

class azure.mgmt.servicebus.operations.TopicsOperations(client, config, serializer, deserializer)[source]

Bases: object

TopicsOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – Client API version. Constant value: “2017-04-01”.

create_or_update(resource_group_name, namespace_name, topic_name, parameters, custom_headers=None, raw=False, **operation_config)[source]

Creates a topic in the specified namespace.

Parameters:
  • resource_group_name (str) – Name of the Resource group within the Azure subscription.
  • namespace_name (str) – The namespace name
  • topic_name (str) – The topic name.
  • parameters (SBTopic) – Parameters supplied to create a topic resource.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

SBTopic

Return type:

ClientRawResponse if raw=true

Raises:

ErrorResponseException

create_or_update_authorization_rule(resource_group_name, namespace_name, topic_name, authorization_rule_name, rights=None, custom_headers=None, raw=False, **operation_config)[source]

Creates an authorizatio rule for the specified topic.

Parameters:
  • resource_group_name (str) – Name of the Resource group within the Azure subscription.
  • namespace_name (str) – The namespace name
  • topic_name (str) – The topic name.
  • authorization_rule_name (str) – The authorizationrule name.
  • rights (list of str or AccessRights) – The rights associated with the rule.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

SBAuthorizationRule

Return type:

ClientRawResponse if raw=true

Raises:

ErrorResponseException

delete(resource_group_name, namespace_name, topic_name, custom_headers=None, raw=False, **operation_config)[source]

Deletes a topic from the specified namespace and resource group.

Parameters:
  • resource_group_name (str) – Name of the Resource group within the Azure subscription.
  • namespace_name (str) – The namespace name
  • topic_name (str) – The topic name.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

None

Return type:

ClientRawResponse if raw=true

Raises:

ErrorResponseException

delete_authorization_rule(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers=None, raw=False, **operation_config)[source]

Deletes a topic authorization rule.

Parameters:
  • resource_group_name (str) – Name of the Resource group within the Azure subscription.
  • namespace_name (str) – The namespace name
  • topic_name (str) – The topic name.
  • authorization_rule_name (str) – The authorizationrule name.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

None

Return type:

ClientRawResponse if raw=true

Raises:

ErrorResponseException

get(resource_group_name, namespace_name, topic_name, custom_headers=None, raw=False, **operation_config)[source]

Returns a description for the specified topic.

Parameters:
  • resource_group_name (str) – Name of the Resource group within the Azure subscription.
  • namespace_name (str) – The namespace name
  • topic_name (str) – The topic name.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

SBTopic

Return type:

ClientRawResponse if raw=true

Raises:

ErrorResponseException

get_authorization_rule(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers=None, raw=False, **operation_config)[source]

Returns the specified authorization rule.

Parameters:
  • resource_group_name (str) – Name of the Resource group within the Azure subscription.
  • namespace_name (str) – The namespace name
  • topic_name (str) – The topic name.
  • authorization_rule_name (str) – The authorizationrule name.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

SBAuthorizationRule

Return type:

ClientRawResponse if raw=true

Raises:

ErrorResponseException

list_authorization_rules(resource_group_name, namespace_name, topic_name, custom_headers=None, raw=False, **operation_config)[source]

Gets authorization rules for a topic.

Parameters:
  • resource_group_name (str) – Name of the Resource group within the Azure subscription.
  • namespace_name (str) – The namespace name
  • topic_name (str) – The topic name.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

SBAuthorizationRulePaged

Raises:

ErrorResponseException

list_by_namespace(resource_group_name, namespace_name, custom_headers=None, raw=False, **operation_config)[source]

Gets all the topics in a namespace.

Parameters:
  • resource_group_name (str) – Name of the Resource group within the Azure subscription.
  • namespace_name (str) – The namespace name
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

SBTopicPaged

Raises:

ErrorResponseException

list_keys(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers=None, raw=False, **operation_config)[source]

Gets the primary and secondary connection strings for the topic.

Parameters:
  • resource_group_name (str) – Name of the Resource group within the Azure subscription.
  • namespace_name (str) – The namespace name
  • topic_name (str) – The topic name.
  • authorization_rule_name (str) – The authorizationrule name.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

AccessKeys

Return type:

ClientRawResponse if raw=true

Raises:

ErrorResponseException

regenerate_keys(resource_group_name, namespace_name, topic_name, authorization_rule_name, key_type, key=None, custom_headers=None, raw=False, **operation_config)[source]

Regenerates primary or secondary connection strings for the topic.

Parameters:
  • resource_group_name (str) – Name of the Resource group within the Azure subscription.
  • namespace_name (str) – The namespace name
  • topic_name (str) – The topic name.
  • authorization_rule_name (str) – The authorizationrule name.
  • key_type (str or KeyType) – The access key to regenerate. Possible values include: ‘PrimaryKey’, ‘SecondaryKey’
  • key (str) – Optional, if the key value provided, is reset for KeyType value or autogenerate Key value set for keyType
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

AccessKeys

Return type:

ClientRawResponse if raw=true

Raises:

ErrorResponseException

class azure.mgmt.servicebus.operations.SubscriptionsOperations(client, config, serializer, deserializer)[source]

Bases: object

SubscriptionsOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – Client API version. Constant value: “2017-04-01”.

create_or_update(resource_group_name, namespace_name, topic_name, subscription_name, parameters, custom_headers=None, raw=False, **operation_config)[source]

Creates a topic subscription.

Parameters:
  • resource_group_name (str) – Name of the Resource group within the Azure subscription.
  • namespace_name (str) – The namespace name
  • topic_name (str) – The topic name.
  • subscription_name (str) – The subscription name.
  • parameters (SBSubscription) – Parameters supplied to create a subscription resource.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

SBSubscription

Return type:

ClientRawResponse if raw=true

Raises:

ErrorResponseException

delete(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers=None, raw=False, **operation_config)[source]

Deletes a subscription from the specified topic.

Parameters:
  • resource_group_name (str) – Name of the Resource group within the Azure subscription.
  • namespace_name (str) – The namespace name
  • topic_name (str) – The topic name.
  • subscription_name (str) – The subscription name.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

None

Return type:

ClientRawResponse if raw=true

Raises:

ErrorResponseException

get(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers=None, raw=False, **operation_config)[source]

Returns a subscription description for the specified topic.

Parameters:
  • resource_group_name (str) – Name of the Resource group within the Azure subscription.
  • namespace_name (str) – The namespace name
  • topic_name (str) – The topic name.
  • subscription_name (str) – The subscription name.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

SBSubscription

Return type:

ClientRawResponse if raw=true

Raises:

ErrorResponseException

list_by_topic(resource_group_name, namespace_name, topic_name, custom_headers=None, raw=False, **operation_config)[source]

List all the subscriptions under a specified topic.

Parameters:
  • resource_group_name (str) – Name of the Resource group within the Azure subscription.
  • namespace_name (str) – The namespace name
  • topic_name (str) – The topic name.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

SBSubscriptionPaged

Raises:

ErrorResponseException

class azure.mgmt.servicebus.operations.RulesOperations(client, config, serializer, deserializer)[source]

Bases: object

RulesOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – Client API version. Constant value: “2017-04-01”.

create_or_update(resource_group_name, namespace_name, topic_name, subscription_name, rule_name, parameters, custom_headers=None, raw=False, **operation_config)[source]

Creates a new rule and updates an existing rule.

Parameters:
  • resource_group_name (str) – Name of the Resource group within the Azure subscription.
  • namespace_name (str) – The namespace name
  • topic_name (str) – The topic name.
  • subscription_name (str) – The subscription name.
  • rule_name (str) – The rule name.
  • parameters (Rule) – Parameters supplied to create a rule.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

Rule

Return type:

ClientRawResponse if raw=true

Raises:

ErrorResponseException

delete(resource_group_name, namespace_name, topic_name, subscription_name, rule_name, custom_headers=None, raw=False, **operation_config)[source]

Deletes an existing rule.

Parameters:
  • resource_group_name (str) – Name of the Resource group within the Azure subscription.
  • namespace_name (str) – The namespace name
  • topic_name (str) – The topic name.
  • subscription_name (str) – The subscription name.
  • rule_name (str) – The rule name.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

None

Return type:

ClientRawResponse if raw=true

Raises:

ErrorResponseException

get(resource_group_name, namespace_name, topic_name, subscription_name, rule_name, custom_headers=None, raw=False, **operation_config)[source]

Retrieves the description for the specified rule.

Parameters:
  • resource_group_name (str) – Name of the Resource group within the Azure subscription.
  • namespace_name (str) – The namespace name
  • topic_name (str) – The topic name.
  • subscription_name (str) – The subscription name.
  • rule_name (str) – The rule name.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

Rule

Return type:

ClientRawResponse if raw=true

Raises:

ErrorResponseException

list_by_subscriptions(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers=None, raw=False, **operation_config)[source]

List all the rules within given topic-subscription.

Parameters:
  • resource_group_name (str) – Name of the Resource group within the Azure subscription.
  • namespace_name (str) – The namespace name
  • topic_name (str) – The topic name.
  • subscription_name (str) – The subscription name.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

RulePaged

Raises:

ErrorResponseException