LogProfilesOperations Class

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

Constructor

LogProfilesOperations(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 a log profile in Azure Monitoring REST API.

delete

Deletes the log profile.

get

Gets the log profile.

list

List the log profiles.

update

Updates an existing LogProfilesResource. To update other fields use the CreateOrUpdate method.

create_or_update

Create or update a log profile in Azure Monitoring REST API.

async create_or_update(log_profile_name: str, parameters: azure.mgmt.monitor.v2016_03_01.models._models_py3.LogProfileResource, **kwargs: Any) -> azure.mgmt.monitor.v2016_03_01.models._models_py3.LogProfileResource

Parameters

log_profile_name
str
Required

The name of the log profile.

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

Parameters supplied to the operation.

cls
callable

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

Returns

LogProfileResource, or the result of cls(response)

Return type

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

Exceptions

delete

Deletes the log profile.

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

Parameters

log_profile_name
str
Required

The name of the log profile.

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 log profile.

async get(log_profile_name: str, **kwargs: Any) -> azure.mgmt.monitor.v2016_03_01.models._models_py3.LogProfileResource

Parameters

log_profile_name
str
Required

The name of the log profile.

cls
callable

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

Returns

LogProfileResource, or the result of cls(response)

Return type

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

Exceptions

list

List the log profiles.

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

Parameters

cls
callable

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

Returns

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

Return type

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

Exceptions

update

Updates an existing LogProfilesResource. To update other fields use the CreateOrUpdate method.

async update(log_profile_name: str, log_profiles_resource: azure.mgmt.monitor.v2016_03_01.models._models_py3.LogProfileResourcePatch, **kwargs: Any) -> azure.mgmt.monitor.v2016_03_01.models._models_py3.LogProfileResource

Parameters

log_profile_name
str
Required

The name of the log profile.

log_profiles_resource
<xref:$>(<xref:python-base-namespace>)LogProfileResourcePatch
Required

Parameters supplied to the operation.

cls
callable

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

Returns

LogProfileResource, or the result of cls(response)

Return type

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

Exceptions

Attributes

models

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