Compartilhar via


DdosCustomPoliciesOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

NetworkManagementClient's

<xref:ddos_custom_policies> attribute.

Inheritance
builtins.object
DdosCustomPoliciesOperations

Constructor

DdosCustomPoliciesOperations(*args, **kwargs)

Methods

begin_create_or_update

Creates or updates a DDoS custom policy.

begin_delete

Deletes the specified DDoS custom policy.

get

Gets information about the specified DDoS custom policy.

update_tags

Update a DDoS custom policy tags.

begin_create_or_update

Creates or updates a DDoS custom policy.

async begin_create_or_update(resource_group_name: str, ddos_custom_policy_name: str, parameters: _models.DdosCustomPolicy, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.DdosCustomPolicy]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

ddos_custom_policy_name
Required
str

The name of the DDoS custom policy. Required.

parameters
Required

Parameters supplied to the create or update operation. Is either a DdosCustomPolicy type or a IO[bytes] type. Required.

Returns

Type Description

An instance of AsyncLROPoller that returns either DdosCustomPolicy or the result of cls(response)

Exceptions

Type Description

begin_delete

Deletes the specified DDoS custom policy.

async begin_delete(resource_group_name: str, ddos_custom_policy_name: str, **kwargs: Any) -> AsyncLROPoller[None]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

ddos_custom_policy_name
Required
str

The name of the DDoS custom policy. Required.

Returns

Type Description

An instance of AsyncLROPoller that returns either None or the result of cls(response)

Exceptions

Type Description

get

Gets information about the specified DDoS custom policy.

async get(resource_group_name: str, ddos_custom_policy_name: str, **kwargs: Any) -> DdosCustomPolicy

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

ddos_custom_policy_name
Required
str

The name of the DDoS custom policy. Required.

Returns

Type Description

DdosCustomPolicy or the result of cls(response)

Exceptions

Type Description

update_tags

Update a DDoS custom policy tags.

async update_tags(resource_group_name: str, ddos_custom_policy_name: str, parameters: _models.TagsObject, *, content_type: str = 'application/json', **kwargs: Any) -> _models.DdosCustomPolicy

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

ddos_custom_policy_name
Required
str

The name of the DDoS custom policy. Required.

parameters
Required

Parameters supplied to update DDoS custom policy resource tags. Is either a TagsObject type or a IO[bytes] type. Required.

Returns

Type Description

DdosCustomPolicy or the result of cls(response)

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.network.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\network\\models\\__init__.py'>