SubscriptionDiagnosticSettingsOperations Class

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

Constructor

SubscriptionDiagnosticSettingsOperations(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

create_or_update

Creates or updates subscription diagnostic settings for the specified resource.

delete

Deletes existing subscription diagnostic settings for the specified resource.

get

Gets the active subscription diagnostic settings for the specified resource.

list

Gets the active subscription diagnostic settings list for the specified subscriptionId.

create_or_update

Creates or updates subscription diagnostic settings for the specified resource.

async create_or_update(name: str, parameters: azure.mgmt.monitor.v2021_05_01_preview.models._models_py3.SubscriptionDiagnosticSettingsResource, **kwargs: Any) -> azure.mgmt.monitor.v2021_05_01_preview.models._models_py3.SubscriptionDiagnosticSettingsResource

Parameters

name
str
Required

The name of the diagnostic setting.

parameters
<xref:$>(<xref:python-base-namespace>)SubscriptionDiagnosticSettingsResource
Required

Parameters supplied to the operation.

cls
callable

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

Returns

SubscriptionDiagnosticSettingsResource, or the result of cls(response)

Return type

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

Exceptions

delete

Deletes existing subscription diagnostic settings for the specified resource.

async delete(name: str, **kwargs: Any) -> None

Parameters

name
str
Required

The name of the diagnostic setting.

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

get

Gets the active subscription diagnostic settings for the specified resource.

async get(name: str, **kwargs: Any) -> azure.mgmt.monitor.v2021_05_01_preview.models._models_py3.SubscriptionDiagnosticSettingsResource

Parameters

name
str
Required

The name of the diagnostic setting.

cls
callable

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

Returns

SubscriptionDiagnosticSettingsResource, or the result of cls(response)

Return type

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

Exceptions

list

Gets the active subscription diagnostic settings list for the specified subscriptionId.

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

Parameters

cls
callable

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

Returns

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

Return type

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

Exceptions

Attributes

models

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