NamespacesOperations Class
NamespacesOperations 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.objectNamespacesOperations
Constructor
NamespacesOperations(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
| begin_create_or_update |
Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. |
| begin_delete |
Deletes an existing namespace. This operation also removes all associated resources under the namespace. |
| check_name_availability |
Check the give Namespace name availability. |
| create_or_update_authorization_rule |
Creates or updates an AuthorizationRule for a Namespace. |
| create_or_update_ip_filter_rule |
Creates or updates an IpFilterRule for a Namespace. |
| create_or_update_network_rule_set |
Create or update NetworkRuleSet for a Namespace. |
| create_or_update_virtual_network_rule |
Creates or updates an VirtualNetworkRule for a Namespace. |
| delete_authorization_rule |
Deletes an AuthorizationRule for a Namespace. |
| delete_ip_filter_rule |
Deletes an IpFilterRule for a Namespace. |
| delete_virtual_network_rule |
Deletes an VirtualNetworkRule for a Namespace. |
| get |
Gets the description of the specified namespace. |
| get_authorization_rule |
Gets an AuthorizationRule for a Namespace by rule name. |
| get_ip_filter_rule |
Gets an IpFilterRule for a Namespace by rule name. |
| get_network_rule_set |
Gets NetworkRuleSet for a Namespace. |
| get_virtual_network_rule |
Gets an VirtualNetworkRule for a Namespace by rule name. |
| list |
Lists all the available Namespaces within a subscription, irrespective of the resource groups. |
| list_authorization_rules |
Gets a list of authorization rules for a Namespace. |
| list_by_resource_group |
Lists the available Namespaces within a resource group. |
| list_ip_filter_rules |
Gets a list of IP Filter rules for a Namespace. |
| list_keys |
Gets the primary and secondary connection strings for the Namespace. |
| list_virtual_network_rules |
Gets a list of VirtualNetwork rules for a Namespace. |
| regenerate_keys |
Regenerates the primary or secondary connection strings for the specified Namespace. |
| update |
Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. |
begin_create_or_update
Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent.
begin_create_or_update(resource_group_name: str, namespace_name: str, parameters: azure.mgmt.eventhub.v2018_01_01_preview.models._models_py3.EHNamespace, **kwargs: Any) -> azure.core.polling._poller.LROPoller[azure.mgmt.eventhub.v2018_01_01_preview.models._models_py3.EHNamespace]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
- continuation_token
- str
A continuation token to restart a poller from a saved state.
- polling
- bool or PollingMethod
By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
- polling_interval
- int
Default waiting time between two polls for LRO operations if no Retry-After header is present.
Returns
An instance of LROPoller that returns either EHNamespace or the result of cls(response)
Return type
Exceptions
begin_delete
Deletes an existing namespace. This operation also removes all associated resources under the namespace.
begin_delete(resource_group_name: str, namespace_name: str, **kwargs: Any) -> azure.core.polling._poller.LROPoller[None]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
- continuation_token
- str
A continuation token to restart a poller from a saved state.
- polling
- bool or PollingMethod
By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
- polling_interval
- int
Default waiting time between two polls for LRO operations if no Retry-After header is present.
Returns
An instance of LROPoller that returns either None or the result of cls(response)
Return type
Exceptions
check_name_availability
Check the give Namespace name availability.
check_name_availability(parameters: azure.mgmt.eventhub.v2018_01_01_preview.models._models_py3.CheckNameAvailabilityParameter, **kwargs: Any) -> azure.mgmt.eventhub.v2018_01_01_preview.models._models_py3.CheckNameAvailabilityResult
Parameters
- parameters
- CheckNameAvailabilityParameter
Parameters to check availability of the given Namespace name.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
CheckNameAvailabilityResult, or the result of cls(response)
Return type
Exceptions
create_or_update_authorization_rule
Creates or updates an AuthorizationRule for a Namespace.
create_or_update_authorization_rule(resource_group_name: str, namespace_name: str, authorization_rule_name: str, parameters: azure.mgmt.eventhub.v2018_01_01_preview.models._models_py3.AuthorizationRule, **kwargs: Any) -> azure.mgmt.eventhub.v2018_01_01_preview.models._models_py3.AuthorizationRule
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
AuthorizationRule, or the result of cls(response)
Return type
Exceptions
create_or_update_ip_filter_rule
Creates or updates an IpFilterRule for a Namespace.
create_or_update_ip_filter_rule(resource_group_name: str, namespace_name: str, ip_filter_rule_name: str, parameters: azure.mgmt.eventhub.v2018_01_01_preview.models._models_py3.IpFilterRule, **kwargs: Any) -> azure.mgmt.eventhub.v2018_01_01_preview.models._models_py3.IpFilterRule
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
IpFilterRule, or the result of cls(response)
Return type
Exceptions
create_or_update_network_rule_set
Create or update NetworkRuleSet for a Namespace.
create_or_update_network_rule_set(resource_group_name: str, namespace_name: str, parameters: azure.mgmt.eventhub.v2018_01_01_preview.models._models_py3.NetworkRuleSet, **kwargs: Any) -> azure.mgmt.eventhub.v2018_01_01_preview.models._models_py3.NetworkRuleSet
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
NetworkRuleSet, or the result of cls(response)
Return type
Exceptions
create_or_update_virtual_network_rule
Creates or updates an VirtualNetworkRule for a Namespace.
create_or_update_virtual_network_rule(resource_group_name: str, namespace_name: str, virtual_network_rule_name: str, parameters: azure.mgmt.eventhub.v2018_01_01_preview.models._models_py3.VirtualNetworkRule, **kwargs: Any) -> azure.mgmt.eventhub.v2018_01_01_preview.models._models_py3.VirtualNetworkRule
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
VirtualNetworkRule, or the result of cls(response)
Return type
Exceptions
delete_authorization_rule
Deletes an AuthorizationRule for a Namespace.
delete_authorization_rule(resource_group_name: str, namespace_name: str, authorization_rule_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
delete_ip_filter_rule
Deletes an IpFilterRule for a Namespace.
delete_ip_filter_rule(resource_group_name: str, namespace_name: str, ip_filter_rule_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
delete_virtual_network_rule
Deletes an VirtualNetworkRule for a Namespace.
delete_virtual_network_rule(resource_group_name: str, namespace_name: str, virtual_network_rule_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 the description of the specified namespace.
get(resource_group_name: str, namespace_name: str, **kwargs: Any) -> azure.mgmt.eventhub.v2018_01_01_preview.models._models_py3.EHNamespace
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
EHNamespace, or the result of cls(response)
Return type
Exceptions
get_authorization_rule
Gets an AuthorizationRule for a Namespace by rule name.
get_authorization_rule(resource_group_name: str, namespace_name: str, authorization_rule_name: str, **kwargs: Any) -> azure.mgmt.eventhub.v2018_01_01_preview.models._models_py3.AuthorizationRule
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
AuthorizationRule, or the result of cls(response)
Return type
Exceptions
get_ip_filter_rule
Gets an IpFilterRule for a Namespace by rule name.
get_ip_filter_rule(resource_group_name: str, namespace_name: str, ip_filter_rule_name: str, **kwargs: Any) -> azure.mgmt.eventhub.v2018_01_01_preview.models._models_py3.IpFilterRule
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
IpFilterRule, or the result of cls(response)
Return type
Exceptions
get_network_rule_set
Gets NetworkRuleSet for a Namespace.
get_network_rule_set(resource_group_name: str, namespace_name: str, **kwargs: Any) -> azure.mgmt.eventhub.v2018_01_01_preview.models._models_py3.NetworkRuleSet
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
NetworkRuleSet, or the result of cls(response)
Return type
Exceptions
get_virtual_network_rule
Gets an VirtualNetworkRule for a Namespace by rule name.
get_virtual_network_rule(resource_group_name: str, namespace_name: str, virtual_network_rule_name: str, **kwargs: Any) -> azure.mgmt.eventhub.v2018_01_01_preview.models._models_py3.VirtualNetworkRule
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
VirtualNetworkRule, or the result of cls(response)
Return type
Exceptions
list
Lists all the available Namespaces within a subscription, irrespective of the resource groups.
list(**kwargs: Any) -> Iterable[azure.mgmt.eventhub.v2018_01_01_preview.models._models_py3.EHNamespaceListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either EHNamespaceListResult or the result of cls(response)
Return type
Exceptions
list_authorization_rules
Gets a list of authorization rules for a Namespace.
list_authorization_rules(resource_group_name: str, namespace_name: str, **kwargs: Any) -> Iterable[azure.mgmt.eventhub.v2018_01_01_preview.models._models_py3.AuthorizationRuleListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either AuthorizationRuleListResult or the result of cls(response)
Return type
Exceptions
list_by_resource_group
Lists the available Namespaces within a resource group.
list_by_resource_group(resource_group_name: str, **kwargs: Any) -> Iterable[azure.mgmt.eventhub.v2018_01_01_preview.models._models_py3.EHNamespaceListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either EHNamespaceListResult or the result of cls(response)
Return type
Exceptions
list_ip_filter_rules
Gets a list of IP Filter rules for a Namespace.
list_ip_filter_rules(resource_group_name: str, namespace_name: str, **kwargs: Any) -> Iterable[azure.mgmt.eventhub.v2018_01_01_preview.models._models_py3.IpFilterRuleListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either IpFilterRuleListResult or the result of cls(response)
Return type
Exceptions
list_keys
Gets the primary and secondary connection strings for the Namespace.
list_keys(resource_group_name: str, namespace_name: str, authorization_rule_name: str, **kwargs: Any) -> azure.mgmt.eventhub.v2018_01_01_preview.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
list_virtual_network_rules
Gets a list of VirtualNetwork rules for a Namespace.
list_virtual_network_rules(resource_group_name: str, namespace_name: str, **kwargs: Any) -> Iterable[azure.mgmt.eventhub.v2018_01_01_preview.models._models_py3.VirtualNetworkRuleListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either VirtualNetworkRuleListResult or the result of cls(response)
Return type
Exceptions
regenerate_keys
Regenerates the primary or secondary connection strings for the specified Namespace.
regenerate_keys(resource_group_name: str, namespace_name: str, authorization_rule_name: str, parameters: azure.mgmt.eventhub.v2018_01_01_preview.models._models_py3.RegenerateAccessKeyParameters, **kwargs: Any) -> azure.mgmt.eventhub.v2018_01_01_preview.models._models_py3.AccessKeys
Parameters
- parameters
- RegenerateAccessKeyParameters
Parameters required to regenerate the connection string.
- 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
update
Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent.
update(resource_group_name: str, namespace_name: str, parameters: azure.mgmt.eventhub.v2018_01_01_preview.models._models_py3.EHNamespace, **kwargs: Any) -> Optional[azure.mgmt.eventhub.v2018_01_01_preview.models._models_py3.EHNamespace]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
EHNamespace, or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.eventhub.v2018_01_01_preview.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\eventhub\\v2018_01_01_preview\\models\\__init__.py'>
Feedback
Submit and view feedback for