PartnerNamespacesOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

EventGridManagementClient's

<xref:partner_namespaces> attribute.

Constructor

PartnerNamespacesOperations(*args, **kwargs)

Methods

begin_create_or_update

Create a partner namespace.

Asynchronously creates a new partner namespace with the specified parameters.

begin_delete

Delete a partner namespace.

Delete existing partner namespace.

begin_update

Update a partner namespace.

Asynchronously updates a partner namespace with the specified parameters.

get

Get a partner namespace.

Get properties of a partner namespace.

list_by_resource_group

List partner namespaces under a resource group.

List all the partner namespaces under a resource group.

list_by_subscription

List partner namespaces under an Azure subscription.

List all the partner namespaces under an Azure subscription.

list_shared_access_keys

List keys for a partner namespace.

List the two keys used to publish to a partner namespace.

regenerate_key

Regenerate key for a partner namespace.

Regenerate a shared access key for a partner namespace.

begin_create_or_update

Create a partner namespace.

Asynchronously creates a new partner namespace with the specified parameters.

async begin_create_or_update(resource_group_name: str, partner_namespace_name: str, partner_namespace_info: _models.PartnerNamespace, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.PartnerNamespace]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

partner_namespace_name
Required
str

Name of the partner namespace. Required.

partner_namespace_info
Required
PartnerNamespace or <xref:JSON> or IO[bytes]

PartnerNamespace information. Is one of the following types: PartnerNamespace, JSON, IO[bytes] Required.

Returns

Type Description

An instance of AsyncLROPoller that returns PartnerNamespace. The PartnerNamespace is compatible with MutableMapping

Exceptions

Type Description

begin_delete

Delete a partner namespace.

Delete existing partner namespace.

async begin_delete(resource_group_name: str, partner_namespace_name: str, **kwargs: Any) -> AsyncLROPoller[None]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

partner_namespace_name
Required
str

Name of the partner namespace. Required.

Returns

Type Description

An instance of AsyncLROPoller that returns None

Exceptions

Type Description

begin_update

Update a partner namespace.

Asynchronously updates a partner namespace with the specified parameters.

async begin_update(resource_group_name: str, partner_namespace_name: str, partner_namespace_update_parameters: _models.PartnerNamespaceUpdateParameters, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.PartnerNamespace]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

partner_namespace_name
Required
str

Name of the partner namespace. Required.

partner_namespace_update_parameters
Required

Partner namespace update information. Is one of the following types: PartnerNamespaceUpdateParameters, JSON, IO[bytes] Required.

Returns

Type Description

An instance of AsyncLROPoller that returns PartnerNamespace. The PartnerNamespace is compatible with MutableMapping

Exceptions

Type Description

get

Get a partner namespace.

Get properties of a partner namespace.

async get(resource_group_name: str, partner_namespace_name: str, **kwargs: Any) -> PartnerNamespace

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

partner_namespace_name
Required
str

Name of the partner namespace. Required.

Returns

Type Description

PartnerNamespace. The PartnerNamespace is compatible with MutableMapping

Exceptions

Type Description

list_by_resource_group

List partner namespaces under a resource group.

List all the partner namespaces under a resource group.

list_by_resource_group(resource_group_name: str, *, filter: str | None = None, top: int | None = None, **kwargs: Any) -> AsyncItemPaged[PartnerNamespace]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

Keyword-Only Parameters

Name Description
filter
str

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
int

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 PartnerNamespace

Exceptions

Type Description

list_by_subscription

List partner namespaces under an Azure subscription.

List all the partner namespaces under an Azure subscription.

list_by_subscription(*, filter: str | None = None, top: int | None = None, **kwargs: Any) -> AsyncItemPaged[PartnerNamespace]

Keyword-Only Parameters

Name Description
filter
str

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
int

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 PartnerNamespace

Exceptions

Type Description

list_shared_access_keys

List keys for a partner namespace.

List the two keys used to publish to a partner namespace.

async list_shared_access_keys(resource_group_name: str, partner_namespace_name: str, **kwargs: Any) -> PartnerNamespaceSharedAccessKeys

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

partner_namespace_name
Required
str

Name of the partner namespace. Required.

Returns

Type Description

PartnerNamespaceSharedAccessKeys. The PartnerNamespaceSharedAccessKeys is compatible with MutableMapping

Exceptions

Type Description

regenerate_key

Regenerate key for a partner namespace.

Regenerate a shared access key for a partner namespace.

async regenerate_key(resource_group_name: str, partner_namespace_name: str, regenerate_key_request: _models.PartnerNamespaceRegenerateKeyRequest, *, content_type: str = 'application/json', **kwargs: Any) -> _models.PartnerNamespaceSharedAccessKeys

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

partner_namespace_name
Required
str

Name of the partner namespace. Required.

regenerate_key_request
Required

Request body to regenerate key. Is one of the following types: PartnerNamespaceRegenerateKeyRequest, JSON, IO[bytes] Required.

Returns

Type Description

PartnerNamespaceSharedAccessKeys. The PartnerNamespaceSharedAccessKeys is compatible with MutableMapping

Exceptions

Type Description