ConsumerGroupsOperations Class
ConsumerGroupsOperations 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.objectConsumerGroupsOperations
Constructor
ConsumerGroupsOperations(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 or updates an Event Hubs consumer group as a nested resource within a Namespace. |
| delete |
Deletes a consumer group from the specified Event Hub and resource group. |
| get |
Gets a description for the specified consumer group. |
| list_by_event_hub |
Gets all the consumer groups in a Namespace. An empty feed is returned if no consumer group exists in the Namespace. |
create_or_update
Creates or updates an Event Hubs consumer group as a nested resource within a Namespace.
create_or_update(resource_group_name: str, namespace_name: str, event_hub_name: str, consumer_group_name: str, parameters: azure.mgmt.eventhub.v2021_06_01_preview.models._models_py3.ConsumerGroup, **kwargs: Any) -> azure.mgmt.eventhub.v2021_06_01_preview.models._models_py3.ConsumerGroup
Parameters
- parameters
- ConsumerGroup
Parameters supplied to create or update a consumer group resource.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
ConsumerGroup, or the result of cls(response)
Return type
Exceptions
delete
Deletes a consumer group from the specified Event Hub and resource group.
delete(resource_group_name: str, namespace_name: str, event_hub_name: str, consumer_group_name: str, **kwargs: Any) -> 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
Gets a description for the specified consumer group.
get(resource_group_name: str, namespace_name: str, event_hub_name: str, consumer_group_name: str, **kwargs: Any) -> azure.mgmt.eventhub.v2021_06_01_preview.models._models_py3.ConsumerGroup
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
ConsumerGroup, or the result of cls(response)
Return type
Exceptions
list_by_event_hub
Gets all the consumer groups in a Namespace. An empty feed is returned if no consumer group exists in the Namespace.
list_by_event_hub(resource_group_name: str, namespace_name: str, event_hub_name: str, skip: Optional[int] = None, top: Optional[int] = None, **kwargs: Any) -> Iterable[azure.mgmt.eventhub.v2021_06_01_preview.models._models_py3.ConsumerGroupListResult]
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. Default value is None.
- top
- int
May be used to limit the number of results to the most recent N usageDetails. Default value is None.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either ConsumerGroupListResult or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.eventhub.v2021_06_01_preview.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\eventhub\\v2021_06_01_preview\\models\\__init__.py'>
Feedback
Submit and view feedback for