PartnerNamespacesOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:partner_namespaces> attribute.
- Inheritance
-
builtins.objectPartnerNamespacesOperations
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.
begin_create_or_update(resource_group_name: str, partner_namespace_name: str, partner_namespace_info: _models.PartnerNamespace, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.PartnerNamespace]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group within the user's subscription. Required. |
partner_namespace_name
Required
|
Name of the partner namespace. Required. |
partner_namespace_info
Required
|
PartnerNamespace information. Is either a PartnerNamespace type or a IO[bytes] type. Required. |
Returns
Type | Description |
---|---|
An instance of LROPoller that returns either PartnerNamespace or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_delete
Delete a partner namespace.
Delete existing partner namespace.
begin_delete(resource_group_name: str, partner_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. |
partner_namespace_name
Required
|
Name of the partner namespace. Required. |
Returns
Type | Description |
---|---|
An instance of LROPoller that returns either None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_update
Update a partner namespace.
Asynchronously updates a partner namespace with the specified parameters.
begin_update(resource_group_name: str, partner_namespace_name: str, partner_namespace_update_parameters: _models.PartnerNamespaceUpdateParameters, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.PartnerNamespace]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group within the user's subscription. Required. |
partner_namespace_name
Required
|
Name of the partner namespace. Required. |
partner_namespace_update_parameters
Required
|
Partner namespace update information. Is either a PartnerNamespaceUpdateParameters type or a IO[bytes] type. Required. |
Returns
Type | Description |
---|---|
An instance of LROPoller that returns either PartnerNamespace or the result of cls(response) |
Exceptions
Type | Description |
---|---|
get
Get a partner namespace.
Get properties of a partner namespace.
get(resource_group_name: str, partner_namespace_name: str, **kwargs: Any) -> PartnerNamespace
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group within the user's subscription. Required. |
partner_namespace_name
Required
|
Name of the partner namespace. Required. |
Returns
Type | Description |
---|---|
PartnerNamespace or the result of cls(response) |
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) -> Iterable[PartnerNamespace]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group within the user's subscription. Required. |
filter
Required
|
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. |
top
Required
|
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. |
Returns
Type | Description |
---|---|
An iterator like instance of either PartnerNamespace or the result of cls(response) |
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) -> Iterable[PartnerNamespace]
Parameters
Name | Description |
---|---|
filter
Required
|
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. |
top
Required
|
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. |
Returns
Type | Description |
---|---|
An iterator like instance of either PartnerNamespace or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list_shared_access_keys
List keys for a partner namespace.
List the two keys used to publish to a partner namespace.
list_shared_access_keys(resource_group_name: str, partner_namespace_name: str, **kwargs: Any) -> PartnerNamespaceSharedAccessKeys
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group within the user's subscription. Required. |
partner_namespace_name
Required
|
Name of the partner namespace. Required. |
Returns
Type | Description |
---|---|
PartnerNamespaceSharedAccessKeys or the result of cls(response) |
Exceptions
Type | Description |
---|---|
regenerate_key
Regenerate key for a partner namespace.
Regenerate a shared access key for a partner namespace.
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
|
The name of the resource group within the user's subscription. Required. |
partner_namespace_name
Required
|
Name of the partner namespace. Required. |
regenerate_key_request
Required
|
Request body to regenerate key. Is either a PartnerNamespaceRegenerateKeyRequest type or a IO[bytes] type. Required. |
Returns
Type | Description |
---|---|
PartnerNamespaceSharedAccessKeys or the result of cls(response) |
Exceptions
Type | Description |
---|---|
Attributes
models
models = <module 'azure.mgmt.eventgrid.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\eventgrid\\models\\__init__.py'>
Azure SDK for Python