PrivateLinkScopesOperations Class

PrivateLinkScopesOperations 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
PrivateLinkScopesOperations

Constructor

PrivateLinkScopesOperations(client, config, serializer, deserializer)

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_delete

Deletes a Azure Monitor PrivateLinkScope.

create_or_update

Creates (or updates) a Azure Monitor PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.

get

Returns a Azure Monitor PrivateLinkScope.

list

Gets a list of all Azure Monitor PrivateLinkScopes within a subscription.

list_by_resource_group

Gets a list of Azure Monitor PrivateLinkScopes within a resource group.

update_tags

Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method.

begin_delete

Deletes a Azure Monitor PrivateLinkScope.

async begin_delete(resource_group_name: str, scope_name: str, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[None]

Parameters

resource_group_name
str
Required

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

scope_name
str
Required

The name of the Azure Monitor PrivateLinkScope 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 None or the result of cls(response)

Return type

Exceptions

create_or_update

Creates (or updates) a Azure Monitor PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.

async create_or_update(resource_group_name: str, scope_name: str, azure_monitor_private_link_scope_payload: azure.mgmt.monitor.v2019_10_17.models._models_py3.AzureMonitorPrivateLinkScope, **kwargs: Any) -> azure.mgmt.monitor.v2019_10_17.models._models_py3.AzureMonitorPrivateLinkScope

Parameters

resource_group_name
str
Required

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

scope_name
str
Required

The name of the Azure Monitor PrivateLinkScope resource.

azure_monitor_private_link_scope_payload
<xref:$>(<xref:python-base-namespace>)AzureMonitorPrivateLinkScope
Required

Properties that need to be specified to create or update a Azure Monitor PrivateLinkScope.

cls
callable

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

Returns

AzureMonitorPrivateLinkScope, or the result of cls(response)

Return type

<xref:$>(<xref:python-base-namespace>)AzureMonitorPrivateLinkScope

Exceptions

get

Returns a Azure Monitor PrivateLinkScope.

async get(resource_group_name: str, scope_name: str, **kwargs: Any) -> azure.mgmt.monitor.v2019_10_17.models._models_py3.AzureMonitorPrivateLinkScope

Parameters

resource_group_name
str
Required

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

scope_name
str
Required

The name of the Azure Monitor PrivateLinkScope resource.

cls
callable

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

Returns

AzureMonitorPrivateLinkScope, or the result of cls(response)

Return type

<xref:$>(<xref:python-base-namespace>)AzureMonitorPrivateLinkScope

Exceptions

list

Gets a list of all Azure Monitor PrivateLinkScopes within a subscription.

list(**kwargs: Any) -> AsyncIterable[azure.mgmt.monitor.v2019_10_17.models._models_py3.AzureMonitorPrivateLinkScopeListResult]

Parameters

cls
callable

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

Returns

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

Return type

AsyncItemPaged[<xref:$>(<xref:python-base-namespace>)AzureMonitorPrivateLinkScopeListResult]

Exceptions

list_by_resource_group

Gets a list of Azure Monitor PrivateLinkScopes within a resource group.

list_by_resource_group(resource_group_name: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.monitor.v2019_10_17.models._models_py3.AzureMonitorPrivateLinkScopeListResult]

Parameters

resource_group_name
str
Required

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

cls
callable

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

Returns

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

Return type

AsyncItemPaged[<xref:$>(<xref:python-base-namespace>)AzureMonitorPrivateLinkScopeListResult]

Exceptions

update_tags

Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method.

async update_tags(resource_group_name: str, scope_name: str, private_link_scope_tags: azure.mgmt.monitor.v2019_10_17.models._models_py3.TagsResource, **kwargs: Any) -> azure.mgmt.monitor.v2019_10_17.models._models_py3.AzureMonitorPrivateLinkScope

Parameters

resource_group_name
str
Required

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

scope_name
str
Required

The name of the Azure Monitor PrivateLinkScope resource.

private_link_scope_tags
<xref:$>(<xref:python-base-namespace>)TagsResource
Required

Updated tag information to set into the PrivateLinkScope instance.

cls
callable

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

Returns

AzureMonitorPrivateLinkScope, or the result of cls(response)

Return type

<xref:$>(<xref:python-base-namespace>)AzureMonitorPrivateLinkScope

Exceptions

Attributes

models

models = <module 'azure.mgmt.monitor.v2019_10_17.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\monitor\\v2019_10_17\\models\\__init__.py'>