AdvancedThreatProtectionOperations Class

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

Constructor

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

Creates or updates the Advanced Threat Protection settings on a specified resource.

get

Gets the Advanced Threat Protection settings for the specified resource.

create

Creates or updates the Advanced Threat Protection settings on a specified resource.

async create(resource_id: str, advanced_threat_protection_setting: azure.mgmt.security.models._models_py3.AdvancedThreatProtectionSetting, **kwargs) -> azure.mgmt.security.models._models_py3.AdvancedThreatProtectionSetting

Parameters

resource_id
str
Required

The identifier of the resource.

advanced_threat_protection_setting
AdvancedThreatProtectionSetting
Required

Advanced Threat Protection Settings.

cls
callable

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

Returns

AdvancedThreatProtectionSetting, or the result of cls(response)

Return type

Exceptions

get

Gets the Advanced Threat Protection settings for the specified resource.

async get(resource_id: str, **kwargs) -> azure.mgmt.security.models._models_py3.AdvancedThreatProtectionSetting

Parameters

resource_id
str
Required

The identifier of the resource.

cls
callable

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

Returns

AdvancedThreatProtectionSetting, or the result of cls(response)

Return type

Exceptions

Attributes

models

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