FirewallPolicyDraftsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:firewall_policy_drafts> attribute.
- Inheritance
-
builtins.objectFirewallPolicyDraftsOperations
Constructor
FirewallPolicyDraftsOperations(*args, **kwargs)
Methods
create_or_update |
Create or update a draft Firewall Policy. |
delete |
Delete a draft policy. |
get |
Get a draft Firewall Policy. |
create_or_update
Create or update a draft Firewall Policy.
create_or_update(resource_group_name: str, firewall_policy_name: str, parameters: _models.FirewallPolicyDraft, *, content_type: str = 'application/json', **kwargs: Any) -> _models.FirewallPolicyDraft
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
firewall_policy_name
Required
|
The name of the Firewall Policy. Required. |
parameters
Required
|
Parameters supplied to the create or update Firewall Policy Draft operation. Is either a FirewallPolicyDraft type or a IO[bytes] type. Required. |
Returns
Type | Description |
---|---|
FirewallPolicyDraft or the result of cls(response) |
Exceptions
Type | Description |
---|---|
delete
Delete a draft policy.
delete(resource_group_name: str, firewall_policy_name: str, **kwargs: Any) -> None
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
firewall_policy_name
Required
|
The name of the Firewall Policy. Required. |
Returns
Type | Description |
---|---|
None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
get
Get a draft Firewall Policy.
get(resource_group_name: str, firewall_policy_name: str, **kwargs: Any) -> FirewallPolicyDraft
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
firewall_policy_name
Required
|
The name of the Firewall Policy. Required. |
Returns
Type | Description |
---|---|
FirewallPolicyDraft 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