Interface WebApplicationFirewallPoliciesClient
- All Superinterfaces:
InnerSupportsDelete<Void>,InnerSupportsGet<WebApplicationFirewallPolicyInner>,InnerSupportsListing<WebApplicationFirewallPolicyInner>
public interface WebApplicationFirewallPoliciesClient
extends InnerSupportsGet<WebApplicationFirewallPolicyInner>, InnerSupportsListing<WebApplicationFirewallPolicyInner>, InnerSupportsDelete<Void>
An instance of this class provides access to all the operations defined in WebApplicationFirewallPoliciesClient.
-
Method Summary
Modifier and TypeMethodDescriptionbeginDelete(String resourceGroupName, String policyName) Deletes Policy.beginDelete(String resourceGroupName, String policyName, com.azure.core.util.Context context) Deletes Policy.beginDeleteAsync(String resourceGroupName, String policyName) Deletes Policy.createOrUpdate(String resourceGroupName, String policyName, WebApplicationFirewallPolicyInner parameters) Creates or update policy with specified rule set name within a resource group.createOrUpdateAsync(String resourceGroupName, String policyName, WebApplicationFirewallPolicyInner parameters) Creates or update policy with specified rule set name within a resource group.com.azure.core.http.rest.Response<WebApplicationFirewallPolicyInner> createOrUpdateWithResponse(String resourceGroupName, String policyName, WebApplicationFirewallPolicyInner parameters, com.azure.core.util.Context context) Creates or update policy with specified rule set name within a resource group.Mono<com.azure.core.http.rest.Response<WebApplicationFirewallPolicyInner>> createOrUpdateWithResponseAsync(String resourceGroupName, String policyName, WebApplicationFirewallPolicyInner parameters) Creates or update policy with specified rule set name within a resource group.voidDeletes Policy.voidDeletes Policy.deleteAsync(String resourceGroupName, String policyName) Deletes Policy.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String policyName) Deletes Policy.getByResourceGroup(String resourceGroupName, String policyName) Retrieve protection policy with specified name within a resource group.getByResourceGroupAsync(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.Mono<com.azure.core.http.rest.Response<WebApplicationFirewallPolicyInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String policyName) Retrieve protection policy with specified name within a resource group.com.azure.core.http.rest.PagedIterable<WebApplicationFirewallPolicyInner> list()Gets all the WAF policies in a subscription.com.azure.core.http.rest.PagedIterable<WebApplicationFirewallPolicyInner> list(com.azure.core.util.Context context) Gets all the WAF policies in a subscription.com.azure.core.http.rest.PagedFlux<WebApplicationFirewallPolicyInner> Gets all the WAF policies in 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.com.azure.core.http.rest.PagedFlux<WebApplicationFirewallPolicyInner> listByResourceGroupAsync(String resourceGroupName) Lists all of the protection policies within a resource group.
-
Method Details
-
listByResourceGroupAsync
com.azure.core.http.rest.PagedFlux<WebApplicationFirewallPolicyInner> listByResourceGroupAsync(String resourceGroupName) Lists all of the protection policies within a resource group.- Specified by:
listByResourceGroupAsyncin interfaceInnerSupportsListing<WebApplicationFirewallPolicyInner>- Parameters:
resourceGroupName- The name of the resource group.- Returns:
- result of the request to list WebApplicationFirewallPolicies as paginated response with
PagedFlux. - 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) Lists all of the protection policies within a resource group.- Specified by:
listByResourceGroupin interfaceInnerSupportsListing<WebApplicationFirewallPolicyInner>- Parameters:
resourceGroupName- The name of the resource group.- Returns:
- result of the request to list 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- The name of the resource group.context- The context to associate with this operation.- Returns:
- result of the request to list 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.
-
listAsync
com.azure.core.http.rest.PagedFlux<WebApplicationFirewallPolicyInner> listAsync()Gets all the WAF policies in a subscription.- Specified by:
listAsyncin interfaceInnerSupportsListing<WebApplicationFirewallPolicyInner>- Returns:
- all the WAF policies in a subscription as paginated response with
PagedFlux. - 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()Gets all the WAF policies in a subscription.- Specified by:
listin interfaceInnerSupportsListing<WebApplicationFirewallPolicyInner>- Returns:
- all the WAF policies in a subscription 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) Gets all the WAF policies in a subscription.- Parameters:
context- The context to associate with this operation.- Returns:
- all the WAF policies in a subscription 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.
-
getByResourceGroupWithResponseAsync
Mono<com.azure.core.http.rest.Response<WebApplicationFirewallPolicyInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String policyName) Retrieve protection policy with specified name within a resource group.- Parameters:
resourceGroupName- The name of the resource group.policyName- The name of the policy.- Returns:
- defines web application firewall policy along with
Responseon successful completion ofMono. - 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.
-
getByResourceGroupAsync
Mono<WebApplicationFirewallPolicyInner> getByResourceGroupAsync(String resourceGroupName, String policyName) Retrieve protection policy with specified name within a resource group.- Specified by:
getByResourceGroupAsyncin interfaceInnerSupportsGet<WebApplicationFirewallPolicyInner>- Parameters:
resourceGroupName- The name of the resource group.policyName- The name of the policy.- Returns:
- defines web application firewall policy on successful completion of
Mono. - 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- The name of the resource group.policyName- The name of the 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.- Specified by:
getByResourceGroupin interfaceInnerSupportsGet<WebApplicationFirewallPolicyInner>- Parameters:
resourceGroupName- The name of the resource group.policyName- The name of the 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.
-
createOrUpdateWithResponseAsync
Mono<com.azure.core.http.rest.Response<WebApplicationFirewallPolicyInner>> createOrUpdateWithResponseAsync(String resourceGroupName, String policyName, WebApplicationFirewallPolicyInner parameters) Creates or update policy with specified rule set name within a resource group.- Parameters:
resourceGroupName- The name of the resource group.policyName- The name of the policy.parameters- Policy to be created.- Returns:
- defines web application firewall policy along with
Responseon successful completion ofMono. - 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.
-
createOrUpdateAsync
Mono<WebApplicationFirewallPolicyInner> createOrUpdateAsync(String resourceGroupName, String policyName, WebApplicationFirewallPolicyInner parameters) Creates or update policy with specified rule set name within a resource group.- Parameters:
resourceGroupName- The name of the resource group.policyName- The name of the policy.parameters- Policy to be created.- Returns:
- defines web application firewall policy on successful completion of
Mono. - 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.
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<WebApplicationFirewallPolicyInner> createOrUpdateWithResponse(String resourceGroupName, String policyName, WebApplicationFirewallPolicyInner parameters, com.azure.core.util.Context context) Creates or update policy with specified rule set name within a resource group.- Parameters:
resourceGroupName- The name of the resource group.policyName- The name of the policy.parameters- Policy to be created.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.
-
createOrUpdate
WebApplicationFirewallPolicyInner createOrUpdate(String resourceGroupName, String policyName, WebApplicationFirewallPolicyInner parameters) Creates or update policy with specified rule set name within a resource group.- Parameters:
resourceGroupName- The name of the resource group.policyName- The name of the 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.
-
deleteWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String policyName) Deletes Policy.- Parameters:
resourceGroupName- The name of the resource group.policyName- The name of the policy.- Returns:
- the
Responseon successful completion ofMono. - 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.
-
beginDeleteAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginDeleteAsync(String resourceGroupName, String policyName) Deletes Policy.- Parameters:
resourceGroupName- The name of the resource group.policyName- The name of the policy.- Returns:
- the
PollerFluxfor 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) Deletes Policy.- Parameters:
resourceGroupName- The name of the resource group.policyName- The name of the 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- The name of the resource group.policyName- The name of the 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.
-
deleteAsync
Deletes Policy.- Specified by:
deleteAsyncin interfaceInnerSupportsDelete<Void>- Parameters:
resourceGroupName- The name of the resource group.policyName- The name of the policy.- Returns:
- A
Monothat completes when a successful response is received. - 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- The name of the resource group.policyName- The name of the 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- The name of the resource group.policyName- The name of the 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.
-