SubscriptionsOperations Class
SubscriptionsOperations 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.objectSubscriptionsOperations
Constructor
SubscriptionsOperations(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 subscription. |
| delete |
Deletes a subscription from the specified topic. |
| get |
Returns a subscription description for the specified topic. |
| list_by_topic |
List all the subscriptions under a specified topic. |
create_or_update
Creates a topic subscription.
async create_or_update(resource_group_name: str, namespace_name: str, topic_name: str, subscription_name: str, parameters: azure.mgmt.servicebus.v2017_04_01.models._models_py3.SBSubscription, **kwargs) -> azure.mgmt.servicebus.v2017_04_01.models._models_py3.SBSubscription
Parameters
- parameters
- <xref:azure.mgmt.servicebus.models.SBSubscription>
Parameters supplied to create a subscription resource.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
SBSubscription, or the result of cls(response)
Return type
Exceptions
delete
Deletes a subscription from the specified topic.
async delete(resource_group_name: str, namespace_name: str, topic_name: str, subscription_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 subscription description for the specified topic.
async get(resource_group_name: str, namespace_name: str, topic_name: str, subscription_name: str, **kwargs) -> azure.mgmt.servicebus.v2017_04_01.models._models_py3.SBSubscription
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
SBSubscription, or the result of cls(response)
Return type
Exceptions
list_by_topic
List all the subscriptions under a specified topic.
list_by_topic(resource_group_name: str, namespace_name: str, topic_name: str, skip: Optional[int] = None, top: Optional[int] = None, **kwargs) -> AsyncIterable[azure.mgmt.servicebus.v2017_04_01.models._models_py3.SBSubscriptionListResult]
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 SBSubscriptionListResult 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