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.objectLogProfilesOperations
Constructor
LogProfilesOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
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
- parameters
- <xref:$>(<xref:python-base-namespace>)LogProfileResource
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
Exceptions
delete
Deletes the log profile.
async delete(log_profile_name: str, **kwargs: Any) -> None
Parameters
- 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
- cls
- callable
A custom type or function that will be passed the direct response
Returns
LogProfileResource, or the result of cls(response)
Return type
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
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_profiles_resource
- <xref:$>(<xref:python-base-namespace>)LogProfileResourcePatch
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
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'>
Feedback
Submit and view feedback for