NamespacesOperations Class

NamespacesOperations 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.object
NamespacesOperations

Constructor

NamespacesOperations(client, config, serializer, deserializer) -> None

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

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.

delete_authorization_rule

Deletes an AuthorizationRule for a Namespace.

get

Gets the description of the specified namespace.

get_authorization_rule

Gets an AuthorizationRule for a Namespace by rule name.

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_by_subscription

Lists all the available Namespaces within a subscription, irrespective of the resource groups.

list_keys

Gets the primary and secondary connection strings for the 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.v2015_08_01.models._models_py3.NamespaceCreateOrUpdateParameters, **kwargs: typing.Any) -> azure.core.polling._async_poller.AsyncLROPoller[_ForwardRef('_models.NamespaceResource')]

Parameters

resource_group_name
str
Required

Name of the resource group within the azure subscription.

namespace_name
str
Required

The Namespace name.

parameters
NamespaceCreateOrUpdateParameters
Required

Parameters for creating a namespace resource.

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 AsyncPollingMethod

By default, your polling method will be AsyncARMPolling. 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 AsyncLROPoller that returns either NamespaceResource or the result of cls(response)

Return type

Exceptions

~azure.core.exceptions.HttpResponseError

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: typing.Any) -> azure.core.polling._async_poller.AsyncLROPoller[NoneType]

Parameters

resource_group_name
str
Required

Name of the resource group within the azure subscription.

namespace_name
str
Required

The Namespace name.

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 AsyncPollingMethod

By default, your polling method will be AsyncARMPolling. 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 AsyncLROPoller that returns either None or the result of cls(response)

Return type

Exceptions

~azure.core.exceptions.HttpResponseError

check_name_availability

Check the give Namespace name availability.

check_name_availability(parameters: azure.mgmt.eventhub.v2015_08_01.models._models_py3.CheckNameAvailabilityParameter, **kwargs: typing.Any) -> azure.mgmt.eventhub.v2015_08_01.models._models_py3.CheckNameAvailabilityResult

Parameters

parameters
CheckNameAvailabilityParameter
Required

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

~azure.core.exceptions.HttpResponseError

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.v2015_08_01.models._models_py3.SharedAccessAuthorizationRuleCreateOrUpdateParameters, **kwargs: typing.Any) -> azure.mgmt.eventhub.v2015_08_01.models._models_py3.SharedAccessAuthorizationRuleResource

Parameters

resource_group_name
str
Required

Name of the resource group within the azure subscription.

namespace_name
str
Required

The Namespace name.

authorization_rule_name
str
Required

The authorization rule name.

parameters
SharedAccessAuthorizationRuleCreateOrUpdateParameters
Required

The shared access AuthorizationRule.

cls
callable

A custom type or function that will be passed the direct response

Returns

SharedAccessAuthorizationRuleResource, or the result of cls(response)

Return type

Exceptions

~azure.core.exceptions.HttpResponseError

delete_authorization_rule

Deletes an AuthorizationRule for a Namespace.

delete_authorization_rule(resource_group_name: str, namespace_name: str, authorization_rule_name: str, **kwargs: typing.Any) -> None

Parameters

resource_group_name
str
Required

Name of the resource group within the azure subscription.

namespace_name
str
Required

The Namespace name.

authorization_rule_name
str
Required

The authorization rule name.

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

~azure.core.exceptions.HttpResponseError

get

Gets the description of the specified namespace.

get(resource_group_name: str, namespace_name: str, **kwargs: typing.Any) -> azure.mgmt.eventhub.v2015_08_01.models._models_py3.NamespaceResource

Parameters

resource_group_name
str
Required

Name of the resource group within the azure subscription.

namespace_name
str
Required

The Namespace name.

cls
callable

A custom type or function that will be passed the direct response

Returns

NamespaceResource, or the result of cls(response)

Return type

Exceptions

~azure.core.exceptions.HttpResponseError

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: typing.Any) -> azure.mgmt.eventhub.v2015_08_01.models._models_py3.SharedAccessAuthorizationRuleResource

Parameters

resource_group_name
str
Required

Name of the resource group within the azure subscription.

namespace_name
str
Required

The Namespace name.

authorization_rule_name
str
Required

The authorization rule name.

cls
callable

A custom type or function that will be passed the direct response

Returns

SharedAccessAuthorizationRuleResource, or the result of cls(response)

Return type

Exceptions

~azure.core.exceptions.HttpResponseError

list_authorization_rules

Gets a list of authorization rules for a Namespace.

list_authorization_rules(resource_group_name: str, namespace_name: str, **kwargs: typing.Any) -> typing.AsyncIterable[_ForwardRef('_models.SharedAccessAuthorizationRuleListResult')]

Parameters

resource_group_name
str
Required

Name of the resource group within the azure subscription.

namespace_name
str
Required

The Namespace name.

cls
callable

A custom type or function that will be passed the direct response

Returns

An iterator like instance of either SharedAccessAuthorizationRuleListResult or the result of cls(response)

Return type

Exceptions

~azure.core.exceptions.HttpResponseError

list_by_resource_group

Lists the available Namespaces within a resource group.

list_by_resource_group(resource_group_name: str, **kwargs: typing.Any) -> typing.AsyncIterable[_ForwardRef('_models.NamespaceListResult')]

Parameters

resource_group_name
str
Required

Name of the resource group within the azure subscription.

cls
callable

A custom type or function that will be passed the direct response

Returns

An iterator like instance of either NamespaceListResult or the result of cls(response)

Return type

Exceptions

~azure.core.exceptions.HttpResponseError

list_by_subscription

Lists all the available Namespaces within a subscription, irrespective of the resource groups.

list_by_subscription(**kwargs: typing.Any) -> typing.AsyncIterable[_ForwardRef('_models.NamespaceListResult')]

Parameters

cls
callable

A custom type or function that will be passed the direct response

Returns

An iterator like instance of either NamespaceListResult or the result of cls(response)

Return type

Exceptions

~azure.core.exceptions.HttpResponseError

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: typing.Any) -> azure.mgmt.eventhub.v2015_08_01.models._models_py3.ResourceListKeys

Parameters

resource_group_name
str
Required

Name of the resource group within the azure subscription.

namespace_name
str
Required

The Namespace name.

authorization_rule_name
str
Required

The authorization rule name.

cls
callable

A custom type or function that will be passed the direct response

Returns

ResourceListKeys, or the result of cls(response)

Return type

Exceptions

~azure.core.exceptions.HttpResponseError

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.v2015_08_01.models._models_py3.RegenerateKeysParameters, **kwargs: typing.Any) -> azure.mgmt.eventhub.v2015_08_01.models._models_py3.ResourceListKeys

Parameters

resource_group_name
str
Required

Name of the resource group within the azure subscription.

namespace_name
str
Required

The Namespace name.

authorization_rule_name
str
Required

The authorization rule name.

parameters
RegenerateKeysParameters
Required

Parameters required to regenerate the connection string.

cls
callable

A custom type or function that will be passed the direct response

Returns

ResourceListKeys, or the result of cls(response)

Return type

Exceptions

~azure.core.exceptions.HttpResponseError

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.v2015_08_01.models._models_py3.NamespaceUpdateParameter, **kwargs: typing.Any) -> typing.Union[_ForwardRef('_models.NamespaceResource'), NoneType]

Parameters

resource_group_name
str
Required

Name of the resource group within the azure subscription.

namespace_name
str
Required

The Namespace name.

parameters
NamespaceUpdateParameter
Required

Parameters for updating a namespace resource.

cls
callable

A custom type or function that will be passed the direct response

Returns

NamespaceResource, or the result of cls(response)

Return type

Exceptions

~azure.core.exceptions.HttpResponseError

Attributes

models

models = <module 'azure.mgmt.eventhub.v2015_08_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.6.8\\x64\\lib\\site-packages\\azure\\mgmt\\eventhub\\v2015_08_01\\models\\__init__.py'>