NamespacesOperations Class 
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:namespaces> attribute.
Constructor
NamespacesOperations(*args, **kwargs)Methods
| begin_create_or_update | Create or update a namespace. Asynchronously creates or updates a new namespace with the specified parameters. | 
| begin_delete | Delete a namespace. Delete existing namespace. | 
| begin_regenerate_key | Regenerate key for a namespace. Regenerate a shared access key for a namespace. | 
| begin_update | Update a namespace. Asynchronously updates a namespace with the specified parameters. | 
| begin_validate_custom_domain_ownership | Validate ownership for all custom domains in a namespace. Performs ownership validation via checking TXT records for all custom domains in a namespace. | 
| get | Get a namespace. Get properties of a namespace. | 
| list_by_resource_group | List namespaces under a resource group. List all the namespaces under a resource group. | 
| list_by_subscription | List namespaces under an Azure subscription. List all the namespaces under an Azure subscription. | 
| list_shared_access_keys | List keys for a namespace. List the two keys used to publish to a namespace. | 
begin_create_or_update
Create or update a namespace.
Asynchronously creates or updates a new namespace with the specified parameters.
begin_create_or_update(resource_group_name: str, namespace_name: str, namespace_info: _models.Namespace, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.Namespace]Parameters
| Name | Description | 
|---|---|
| resource_group_name 
				Required
			 | The name of the resource group within the user's subscription. Required. | 
| namespace_name 
				Required
			 | Name of the namespace. Required. | 
| namespace_info 
				Required
			 | Namespace information. Is either a Namespace type or a IO[bytes] type. Required. | 
Returns
| Type | Description | 
|---|---|
| An instance of LROPoller that returns either Namespace or the result of cls(response) | 
Exceptions
| Type | Description | 
|---|---|
begin_delete
Delete a namespace.
Delete existing namespace.
begin_delete(resource_group_name: str, namespace_name: str, **kwargs: Any) -> LROPoller[None]Parameters
| Name | Description | 
|---|---|
| resource_group_name 
				Required
			 | The name of the resource group within the user's subscription. Required. | 
| namespace_name 
				Required
			 | Name of the namespace. Required. | 
Returns
| Type | Description | 
|---|---|
| An instance of LROPoller that returns either None or the result of cls(response) | 
Exceptions
| Type | Description | 
|---|---|
begin_regenerate_key
Regenerate key for a namespace.
Regenerate a shared access key for a namespace.
begin_regenerate_key(resource_group_name: str, namespace_name: str, regenerate_key_request: _models.NamespaceRegenerateKeyRequest, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.NamespaceSharedAccessKeys]Parameters
| Name | Description | 
|---|---|
| resource_group_name 
				Required
			 | The name of the resource group within the user's subscription. Required. | 
| namespace_name 
				Required
			 | Name of the Namespace. Required. | 
| regenerate_key_request 
				Required
			 | Request body to regenerate key. Is either a NamespaceRegenerateKeyRequest type or a IO[bytes] type. Required. | 
Returns
| Type | Description | 
|---|---|
| An instance of LROPoller that returns either NamespaceSharedAccessKeys or the result of cls(response) | 
Exceptions
| Type | Description | 
|---|---|
begin_update
Update a namespace.
Asynchronously updates a namespace with the specified parameters.
begin_update(resource_group_name: str, namespace_name: str, namespace_update_parameters: _models.NamespaceUpdateParameters, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.Namespace]Parameters
| Name | Description | 
|---|---|
| resource_group_name 
				Required
			 | The name of the resource group within the user's subscription. Required. | 
| namespace_name 
				Required
			 | Name of the namespace. Required. | 
| namespace_update_parameters 
				Required
			 | Namespace update information. Is either a NamespaceUpdateParameters type or a IO[bytes] type. Required. | 
Returns
| Type | Description | 
|---|---|
| An instance of LROPoller that returns either Namespace or the result of cls(response) | 
Exceptions
| Type | Description | 
|---|---|
begin_validate_custom_domain_ownership
Validate ownership for all custom domains in a namespace.
Performs ownership validation via checking TXT records for all custom domains in a namespace.
begin_validate_custom_domain_ownership(resource_group_name: str, namespace_name: str, **kwargs: Any) -> LROPoller[CustomDomainOwnershipValidationResult]Parameters
| Name | Description | 
|---|---|
| resource_group_name 
				Required
			 | The name of the resource group within the user's subscription. Required. | 
| namespace_name 
				Required
			 | Name of the Namespace. Required. | 
Returns
| Type | Description | 
|---|---|
| An instance of LROPoller that returns either CustomDomainOwnershipValidationResult or the result of cls(response) | 
Exceptions
| Type | Description | 
|---|---|
get
Get a namespace.
Get properties of a namespace.
get(resource_group_name: str, namespace_name: str, **kwargs: Any) -> NamespaceParameters
| Name | Description | 
|---|---|
| resource_group_name 
				Required
			 | The name of the resource group within the user's subscription. Required. | 
| namespace_name 
				Required
			 | Name of the namespace. Required. | 
Returns
| Type | Description | 
|---|---|
| Namespace or the result of cls(response) | 
Exceptions
| Type | Description | 
|---|---|
list_by_resource_group
List namespaces under a resource group.
List all the namespaces under a resource group.
list_by_resource_group(resource_group_name: str, filter: str | None = None, top: int | None = None, **kwargs: Any) -> ItemPaged[Namespace]Parameters
| Name | Description | 
|---|---|
| resource_group_name 
				Required
			 | The name of the resource group within the user's subscription. Required. | 
| filter | The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and with limited number of OData operations. These operations are: the 'contains' function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic operations are supported. The following is a valid filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location eq 'westus'. Default value is None. Default value: None | 
| top | The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified, the default number of results to be returned is 20 items per page. Default value is None. Default value: None | 
Returns
| Type | Description | 
|---|---|
| An iterator like instance of either Namespace or the result of cls(response) | 
Exceptions
| Type | Description | 
|---|---|
list_by_subscription
List namespaces under an Azure subscription.
List all the namespaces under an Azure subscription.
list_by_subscription(filter: str | None = None, top: int | None = None, **kwargs: Any) -> ItemPaged[Namespace]Parameters
| Name | Description | 
|---|---|
| filter | The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and with limited number of OData operations. These operations are: the 'contains' function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic operations are supported. The following is a valid filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location eq 'westus'. Default value is None. Default value: None | 
| top | The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified, the default number of results to be returned is 20 items per page. Default value is None. Default value: None | 
Returns
| Type | Description | 
|---|---|
| An iterator like instance of either Namespace or the result of cls(response) | 
Exceptions
| Type | Description | 
|---|---|
list_shared_access_keys
List keys for a namespace.
List the two keys used to publish to a namespace.
list_shared_access_keys(resource_group_name: str, namespace_name: str, **kwargs: Any) -> NamespaceSharedAccessKeysParameters
| Name | Description | 
|---|---|
| resource_group_name 
				Required
			 | The name of the resource group within the user's subscription. Required. | 
| namespace_name 
				Required
			 | Name of the namespace. Required. | 
Returns
| Type | Description | 
|---|---|
| NamespaceSharedAccessKeys or the result of cls(response) | 
Exceptions
| Type | Description | 
|---|---|
Attributes
models
models = <module 'azure.mgmt.eventgrid.models' from 'C:\\ToolCache\\Python\\3.11.9\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv137\\Lib\\site-packages\\azure\\mgmt\\eventgrid\\models\\__init__.py'>