TopicsOperations Class
TopicsOperations async operations.
You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.
- Inheritance
-
builtins.objectTopicsOperations
Constructor
TopicsOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
An object model deserializer.
Variables
- models
Alias to model classes used in this operation group.
Methods
| create_or_update |
Creates a topic in the specified namespace. |
| create_or_update_authorization_rule |
Creates an authorization rule for the specified topic. |
| delete |
Deletes a topic from the specified namespace and resource group. |
| delete_authorization_rule |
Deletes a topic authorization rule. |
| get |
Returns a description for the specified topic. |
| get_authorization_rule |
Returns the specified authorization rule. |
| list_authorization_rules |
Gets authorization rules for a topic. |
| list_by_namespace |
Gets all the topics in a namespace. |
| list_keys |
Gets the primary and secondary connection strings for the topic. |
| regenerate_keys |
Regenerates primary or secondary connection strings for the topic. |
create_or_update
Creates a topic in the specified namespace.
async create_or_update(resource_group_name: str, namespace_name: str, topic_name: str, parameters: azure.mgmt.servicebus.v2017_04_01.models._models_py3.SBTopic, **kwargs) -> azure.mgmt.servicebus.v2017_04_01.models._models_py3.SBTopic
Parameters
- parameters
- <xref:azure.mgmt.servicebus.models.SBTopic>
Parameters supplied to create a topic resource.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
SBTopic, or the result of cls(response)
Return type
Exceptions
create_or_update_authorization_rule
Creates an authorization rule for the specified topic.
async create_or_update_authorization_rule(resource_group_name: str, namespace_name: str, topic_name: str, authorization_rule_name: str, parameters: azure.mgmt.servicebus.v2017_04_01.models._models_py3.SBAuthorizationRule, **kwargs) -> azure.mgmt.servicebus.v2017_04_01.models._models_py3.SBAuthorizationRule
Parameters
- parameters
- <xref:azure.mgmt.servicebus.models.SBAuthorizationRule>
The shared access authorization rule.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
SBAuthorizationRule, or the result of cls(response)
Return type
Exceptions
delete
Deletes a topic from the specified namespace and resource group.
async delete(resource_group_name: str, namespace_name: str, topic_name: str, **kwargs) -> None
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
None, or the result of cls(response)
Return type
Exceptions
delete_authorization_rule
Deletes a topic authorization rule.
async delete_authorization_rule(resource_group_name: str, namespace_name: str, topic_name: str, authorization_rule_name: str, **kwargs) -> None
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
None, or the result of cls(response)
Return type
Exceptions
get
Returns a description for the specified topic.
async get(resource_group_name: str, namespace_name: str, topic_name: str, **kwargs) -> azure.mgmt.servicebus.v2017_04_01.models._models_py3.SBTopic
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
SBTopic, or the result of cls(response)
Return type
Exceptions
get_authorization_rule
Returns the specified authorization rule.
async get_authorization_rule(resource_group_name: str, namespace_name: str, topic_name: str, authorization_rule_name: str, **kwargs) -> azure.mgmt.servicebus.v2017_04_01.models._models_py3.SBAuthorizationRule
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
SBAuthorizationRule, or the result of cls(response)
Return type
Exceptions
list_authorization_rules
Gets authorization rules for a topic.
list_authorization_rules(resource_group_name: str, namespace_name: str, topic_name: str, **kwargs) -> AsyncIterable[azure.mgmt.servicebus.v2017_04_01.models._models_py3.SBAuthorizationRuleListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either SBAuthorizationRuleListResult or the result of cls(response)
Return type
Exceptions
list_by_namespace
Gets all the topics in a namespace.
list_by_namespace(resource_group_name: str, namespace_name: str, skip: Optional[int] = None, top: Optional[int] = None, **kwargs) -> AsyncIterable[azure.mgmt.servicebus.v2017_04_01.models._models_py3.SBTopicListResult]
Parameters
- skip
- int
Skip is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skip parameter that specifies a starting point to use for subsequent calls.
- top
- int
May be used to limit the number of results to the most recent N usageDetails.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either SBTopicListResult or the result of cls(response)
Return type
Exceptions
list_keys
Gets the primary and secondary connection strings for the topic.
async list_keys(resource_group_name: str, namespace_name: str, topic_name: str, authorization_rule_name: str, **kwargs) -> azure.mgmt.servicebus.v2017_04_01.models._models_py3.AccessKeys
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
AccessKeys, or the result of cls(response)
Return type
Exceptions
regenerate_keys
Regenerates primary or secondary connection strings for the topic.
async regenerate_keys(resource_group_name: str, namespace_name: str, topic_name: str, authorization_rule_name: str, parameters: azure.mgmt.servicebus.v2017_04_01.models._models_py3.RegenerateAccessKeyParameters, **kwargs) -> azure.mgmt.servicebus.v2017_04_01.models._models_py3.AccessKeys
Parameters
- parameters
- <xref:azure.mgmt.servicebus.models.RegenerateAccessKeyParameters>
Parameters supplied to regenerate the authorization rule.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
AccessKeys, or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.servicebus.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\servicebus\\models.py'>
Feedback
Submit and view feedback for