Interface PoliciesClient
public interface PoliciesClient
An instance of this class provides access to all the operations defined in PoliciesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<WebApplicationFirewallPolicyInner>,WebApplicationFirewallPolicyInner> beginCreateOrUpdate(String resourceGroupName, String policyName, WebApplicationFirewallPolicyInner parameters) Create or update policy with specified rule set name within a resource group.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<WebApplicationFirewallPolicyInner>,WebApplicationFirewallPolicyInner> beginCreateOrUpdate(String resourceGroupName, String policyName, WebApplicationFirewallPolicyInner parameters, com.azure.core.util.Context context) Create or update policy with specified rule set name within a resource group.beginDelete(String resourceGroupName, String policyName) Deletes Policy.beginDelete(String resourceGroupName, String policyName, com.azure.core.util.Context context) Deletes Policy.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<WebApplicationFirewallPolicyInner>,WebApplicationFirewallPolicyInner> beginUpdate(String resourceGroupName, String policyName, TagsObject parameters) Patch a specific frontdoor webApplicationFirewall policy for tags update under the specified subscription and resource group.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<WebApplicationFirewallPolicyInner>,WebApplicationFirewallPolicyInner> beginUpdate(String resourceGroupName, String policyName, TagsObject parameters, com.azure.core.util.Context context) Patch a specific frontdoor webApplicationFirewall policy for tags update under the specified subscription and resource group.createOrUpdate(String resourceGroupName, String policyName, WebApplicationFirewallPolicyInner parameters) Create or update policy with specified rule set name within a resource group.createOrUpdate(String resourceGroupName, String policyName, WebApplicationFirewallPolicyInner parameters, com.azure.core.util.Context context) Create or update policy with specified rule set name within a resource group.voidDeletes Policy.voidDeletes Policy.getByResourceGroup(String resourceGroupName, String policyName) Retrieve protection policy with specified name within a resource group.com.azure.core.http.rest.Response<WebApplicationFirewallPolicyInner>getByResourceGroupWithResponse(String resourceGroupName, String policyName, com.azure.core.util.Context context) Retrieve protection policy with specified name within a resource group.com.azure.core.http.rest.PagedIterable<WebApplicationFirewallPolicyInner>list()Lists all of the protection policies within a subscription.com.azure.core.http.rest.PagedIterable<WebApplicationFirewallPolicyInner>list(com.azure.core.util.Context context) Lists all of the protection policies within a subscription.com.azure.core.http.rest.PagedIterable<WebApplicationFirewallPolicyInner>listByResourceGroup(String resourceGroupName) Lists all of the protection policies within a resource group.com.azure.core.http.rest.PagedIterable<WebApplicationFirewallPolicyInner>listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Lists all of the protection policies within a resource group.update(String resourceGroupName, String policyName, TagsObject parameters) Patch a specific frontdoor webApplicationFirewall policy for tags update under the specified subscription and resource group.update(String resourceGroupName, String policyName, TagsObject parameters, com.azure.core.util.Context context) Patch a specific frontdoor webApplicationFirewall policy for tags update under the specified subscription and resource group.
-
Method Details
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<WebApplicationFirewallPolicyInner> listByResourceGroup(String resourceGroupName) Lists all of the protection policies within a resource group.- Parameters:
resourceGroupName- Name of the Resource group within the Azure subscription.- Returns:
- defines a list of WebApplicationFirewallPolicies as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<WebApplicationFirewallPolicyInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Lists all of the protection policies within a resource group.- Parameters:
resourceGroupName- Name of the Resource group within the Azure subscription.context- The context to associate with this operation.- Returns:
- defines a list of WebApplicationFirewallPolicies as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<WebApplicationFirewallPolicyInner> list()Lists all of the protection policies within a subscription.- Returns:
- defines a list of WebApplicationFirewallPolicies as paginated response with
PagedIterable. - Throws:
com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<WebApplicationFirewallPolicyInner> list(com.azure.core.util.Context context) Lists all of the protection policies within a subscription.- Parameters:
context- The context to associate with this operation.- Returns:
- defines a list of WebApplicationFirewallPolicies as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<WebApplicationFirewallPolicyInner> getByResourceGroupWithResponse(String resourceGroupName, String policyName, com.azure.core.util.Context context) Retrieve protection policy with specified name within a resource group.- Parameters:
resourceGroupName- Name of the Resource group within the Azure subscription.policyName- The name of the Web Application Firewall Policy.context- The context to associate with this operation.- Returns:
- defines web application firewall policy along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroup
Retrieve protection policy with specified name within a resource group.- Parameters:
resourceGroupName- Name of the Resource group within the Azure subscription.policyName- The name of the Web Application Firewall Policy.- Returns:
- defines web application firewall policy.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<WebApplicationFirewallPolicyInner>,WebApplicationFirewallPolicyInner> beginCreateOrUpdate(String resourceGroupName, String policyName, WebApplicationFirewallPolicyInner parameters) Create or update policy with specified rule set name within a resource group.- Parameters:
resourceGroupName- Name of the Resource group within the Azure subscription.policyName- The name of the Web Application Firewall Policy.parameters- Policy to be created.- Returns:
- the
SyncPollerfor polling of defines web application firewall policy. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<WebApplicationFirewallPolicyInner>,WebApplicationFirewallPolicyInner> beginCreateOrUpdate(String resourceGroupName, String policyName, WebApplicationFirewallPolicyInner parameters, com.azure.core.util.Context context) Create or update policy with specified rule set name within a resource group.- Parameters:
resourceGroupName- Name of the Resource group within the Azure subscription.policyName- The name of the Web Application Firewall Policy.parameters- Policy to be created.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of defines web application firewall policy. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
WebApplicationFirewallPolicyInner createOrUpdate(String resourceGroupName, String policyName, WebApplicationFirewallPolicyInner parameters) Create or update policy with specified rule set name within a resource group.- Parameters:
resourceGroupName- Name of the Resource group within the Azure subscription.policyName- The name of the Web Application Firewall Policy.parameters- Policy to be created.- Returns:
- defines web application firewall policy.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
WebApplicationFirewallPolicyInner createOrUpdate(String resourceGroupName, String policyName, WebApplicationFirewallPolicyInner parameters, com.azure.core.util.Context context) Create or update policy with specified rule set name within a resource group.- Parameters:
resourceGroupName- Name of the Resource group within the Azure subscription.policyName- The name of the Web Application Firewall Policy.parameters- Policy to be created.context- The context to associate with this operation.- Returns:
- defines web application firewall policy.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<WebApplicationFirewallPolicyInner>,WebApplicationFirewallPolicyInner> beginUpdate(String resourceGroupName, String policyName, TagsObject parameters) Patch a specific frontdoor webApplicationFirewall policy for tags update under the specified subscription and resource group.- Parameters:
resourceGroupName- Name of the Resource group within the Azure subscription.policyName- The name of the Web Application Firewall Policy.parameters- FrontdoorWebApplicationFirewallPolicy parameters to be patched.- Returns:
- the
SyncPollerfor polling of defines web application firewall policy. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<WebApplicationFirewallPolicyInner>,WebApplicationFirewallPolicyInner> beginUpdate(String resourceGroupName, String policyName, TagsObject parameters, com.azure.core.util.Context context) Patch a specific frontdoor webApplicationFirewall policy for tags update under the specified subscription and resource group.- Parameters:
resourceGroupName- Name of the Resource group within the Azure subscription.policyName- The name of the Web Application Firewall Policy.parameters- FrontdoorWebApplicationFirewallPolicy parameters to be patched.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of defines web application firewall policy. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
update
WebApplicationFirewallPolicyInner update(String resourceGroupName, String policyName, TagsObject parameters) Patch a specific frontdoor webApplicationFirewall policy for tags update under the specified subscription and resource group.- Parameters:
resourceGroupName- Name of the Resource group within the Azure subscription.policyName- The name of the Web Application Firewall Policy.parameters- FrontdoorWebApplicationFirewallPolicy parameters to be patched.- Returns:
- defines web application firewall policy.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
update
WebApplicationFirewallPolicyInner update(String resourceGroupName, String policyName, TagsObject parameters, com.azure.core.util.Context context) Patch a specific frontdoor webApplicationFirewall policy for tags update under the specified subscription and resource group.- Parameters:
resourceGroupName- Name of the Resource group within the Azure subscription.policyName- The name of the Web Application Firewall Policy.parameters- FrontdoorWebApplicationFirewallPolicy parameters to be patched.context- The context to associate with this operation.- Returns:
- defines web application firewall policy.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String policyName) Deletes Policy.- Parameters:
resourceGroupName- Name of the Resource group within the Azure subscription.policyName- The name of the Web Application Firewall Policy.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String policyName, com.azure.core.util.Context context) Deletes Policy.- Parameters:
resourceGroupName- Name of the Resource group within the Azure subscription.policyName- The name of the Web Application Firewall Policy.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Deletes Policy.- Parameters:
resourceGroupName- Name of the Resource group within the Azure subscription.policyName- The name of the Web Application Firewall Policy.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Deletes Policy.- Parameters:
resourceGroupName- Name of the Resource group within the Azure subscription.policyName- The name of the Web Application Firewall Policy.context- The context to associate with this operation.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-