ServiceDiagnosticSettingsOperations Class

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

Constructor

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

Create or update new diagnostic settings for the specified resource. WARNING: This method will be deprecated in future releases.

get

Gets the active diagnostic settings for the specified resource. WARNING: This method will be deprecated in future releases.

update

Updates an existing ServiceDiagnosticSettingsResource. To update other fields use the CreateOrUpdate method. WARNING: This method will be deprecated in future releases.

create_or_update

Create or update new diagnostic settings for the specified resource. WARNING: This method will be deprecated in future releases.

async create_or_update(resource_uri: str, parameters: azure.mgmt.monitor.v2016_09_01.models._models_py3.ServiceDiagnosticSettingsResource, **kwargs: Any) -> azure.mgmt.monitor.v2016_09_01.models._models_py3.ServiceDiagnosticSettingsResource

Parameters

resource_uri
str
Required

The identifier of the resource.

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

Parameters supplied to the operation.

cls
callable

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

Returns

ServiceDiagnosticSettingsResource, or the result of cls(response)

Return type

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

Exceptions

get

Gets the active diagnostic settings for the specified resource. WARNING: This method will be deprecated in future releases.

async get(resource_uri: str, **kwargs: Any) -> azure.mgmt.monitor.v2016_09_01.models._models_py3.ServiceDiagnosticSettingsResource

Parameters

resource_uri
str
Required

The identifier of the resource.

cls
callable

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

Returns

ServiceDiagnosticSettingsResource, or the result of cls(response)

Return type

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

Exceptions

update

Updates an existing ServiceDiagnosticSettingsResource. To update other fields use the CreateOrUpdate method. WARNING: This method will be deprecated in future releases.

async update(resource_uri: str, service_diagnostic_settings_resource: azure.mgmt.monitor.v2016_09_01.models._models_py3.ServiceDiagnosticSettingsResourcePatch, **kwargs: Any) -> azure.mgmt.monitor.v2016_09_01.models._models_py3.ServiceDiagnosticSettingsResource

Parameters

resource_uri
str
Required

The identifier of the resource.

service_diagnostic_settings_resource
<xref:$>(<xref:python-base-namespace>)ServiceDiagnosticSettingsResourcePatch
Required

Parameters supplied to the operation.

cls
callable

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

Returns

ServiceDiagnosticSettingsResource, or the result of cls(response)

Return type

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

Exceptions

Attributes

models

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