DdosCustomPoliciesOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:ddos_custom_policies> attribute.
- Inheritance
-
builtins.objectDdosCustomPoliciesOperations
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.
begin_create_or_update(resource_group_name: str, ddos_custom_policy_name: str, parameters: _models.DdosCustomPolicy, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.DdosCustomPolicy]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
ddos_custom_policy_name
Required
|
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 LROPoller that returns either DdosCustomPolicy or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_delete
Deletes the specified DDoS custom policy.
begin_delete(resource_group_name: str, ddos_custom_policy_name: str, **kwargs: Any) -> LROPoller[None]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
ddos_custom_policy_name
Required
|
The name of the DDoS custom policy. Required. |
Returns
Type | Description |
---|---|
An instance of LROPoller that returns either None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
get
Gets information about the specified DDoS custom policy.
get(resource_group_name: str, ddos_custom_policy_name: str, **kwargs: Any) -> DdosCustomPolicy
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
ddos_custom_policy_name
Required
|
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.
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
|
The name of the resource group. Required. |
ddos_custom_policy_name
Required
|
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'>
Azure SDK for Python