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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>beginDelete(String resourceGroupName, String policyName)Deletes Policy.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.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void>beginDeleteAsync(String resourceGroupName, String policyName)Deletes Policy.WebApplicationFirewallPolicyInnercreateOrUpdate(String resourceGroupName, String policyName, WebApplicationFirewallPolicyInner parameters)Creates or update policy with specified rule set name within a resource group.Mono<WebApplicationFirewallPolicyInner>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.voiddelete(String resourceGroupName, String policyName)Deletes Policy.voiddelete(String resourceGroupName, String policyName, com.azure.core.util.Context context)Deletes Policy.Mono<Void>deleteAsync(String resourceGroupName, String policyName)Deletes Policy.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>deleteWithResponseAsync(String resourceGroupName, String policyName)Deletes Policy.WebApplicationFirewallPolicyInnergetByResourceGroup(String resourceGroupName, String policyName)Retrieve protection policy with specified name within a resource group.Mono<WebApplicationFirewallPolicyInner>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>listAsync()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 Detail
-
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.
-
getByResourceGroup
WebApplicationFirewallPolicyInner getByResourceGroup(String resourceGroupName, String policyName)
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.
-
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.
-
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.
-
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.
-
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.
-
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
Mono<Void> deleteAsync(String resourceGroupName, String policyName)
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
void delete(String resourceGroupName, String policyName)
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
void delete(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.- 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.
-
-