Interface FirewallRulesClient
public interface FirewallRulesClient
An instance of this class provides access to all the operations defined in FirewallRulesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<FirewallRuleInner>, FirewallRuleInner> beginCreateOrUpdate(String resourceGroupName, String serverName, String firewallRuleName, FirewallRuleInner parameters) Creates a new firewall rule or updates an existing firewall rule.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<FirewallRuleInner>, FirewallRuleInner> beginCreateOrUpdate(String resourceGroupName, String serverName, String firewallRuleName, FirewallRuleInner parameters, com.azure.core.util.Context context) Creates a new firewall rule or updates an existing firewall rule.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<FirewallRuleInner>, FirewallRuleInner> beginCreateOrUpdateAsync(String resourceGroupName, String serverName, String firewallRuleName, FirewallRuleInner parameters) Creates a new firewall rule or updates an existing firewall rule.beginDelete(String resourceGroupName, String serverName, String firewallRuleName) Deletes an existing firewall rule.beginDelete(String resourceGroupName, String serverName, String firewallRuleName, com.azure.core.util.Context context) Deletes an existing firewall rule.beginDeleteAsync(String resourceGroupName, String serverName, String firewallRuleName) Deletes an existing firewall rule.createOrUpdate(String resourceGroupName, String serverName, String firewallRuleName, FirewallRuleInner parameters) Creates a new firewall rule or updates an existing firewall rule.createOrUpdate(String resourceGroupName, String serverName, String firewallRuleName, FirewallRuleInner parameters, com.azure.core.util.Context context) Creates a new firewall rule or updates an existing firewall rule.createOrUpdateAsync(String resourceGroupName, String serverName, String firewallRuleName, FirewallRuleInner parameters) Creates a new firewall rule or updates an existing firewall rule.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String serverName, String firewallRuleName, FirewallRuleInner parameters) Creates a new firewall rule or updates an existing firewall rule.voidDeletes an existing firewall rule.voiddelete(String resourceGroupName, String serverName, String firewallRuleName, com.azure.core.util.Context context) Deletes an existing firewall rule.deleteAsync(String resourceGroupName, String serverName, String firewallRuleName) Deletes an existing firewall rule.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String serverName, String firewallRuleName) Deletes an existing firewall rule.Gets information about a firewall rule in a server.Gets information about a firewall rule in a server.com.azure.core.http.rest.Response<FirewallRuleInner> getWithResponse(String resourceGroupName, String serverName, String firewallRuleName, com.azure.core.util.Context context) Gets information about a firewall rule in a server.Mono<com.azure.core.http.rest.Response<FirewallRuleInner>> getWithResponseAsync(String resourceGroupName, String serverName, String firewallRuleName) Gets information about a firewall rule in a server.com.azure.core.http.rest.PagedIterable<FirewallRuleInner> listByServer(String resourceGroupName, String serverName) Lists information about all firewall rules in a server.com.azure.core.http.rest.PagedIterable<FirewallRuleInner> listByServer(String resourceGroupName, String serverName, com.azure.core.util.Context context) Lists information about all firewall rules in a server.com.azure.core.http.rest.PagedFlux<FirewallRuleInner> listByServerAsync(String resourceGroupName, String serverName) Lists information about all firewall rules in a server.
-
Method Details
-
createOrUpdateWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String serverName, String firewallRuleName, FirewallRuleInner parameters) Creates a new firewall rule or updates an existing firewall rule.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.firewallRuleName- Name of the firewall rule.parameters- Parameters required for creating or updating a firewall rule.- Returns:
- firewall rule 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.
-
beginCreateOrUpdateAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<FirewallRuleInner>, FirewallRuleInner> beginCreateOrUpdateAsync(String resourceGroupName, String serverName, String firewallRuleName, FirewallRuleInner parameters) Creates a new firewall rule or updates an existing firewall rule.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.firewallRuleName- Name of the firewall rule.parameters- Parameters required for creating or updating a firewall rule.- Returns:
- the
PollerFluxfor polling of firewall rule. - 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<FirewallRuleInner>, FirewallRuleInner> beginCreateOrUpdate(String resourceGroupName, String serverName, String firewallRuleName, FirewallRuleInner parameters) Creates a new firewall rule or updates an existing firewall rule.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.firewallRuleName- Name of the firewall rule.parameters- Parameters required for creating or updating a firewall rule.- Returns:
- the
SyncPollerfor polling of firewall rule. - 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<FirewallRuleInner>, FirewallRuleInner> beginCreateOrUpdate(String resourceGroupName, String serverName, String firewallRuleName, FirewallRuleInner parameters, com.azure.core.util.Context context) Creates a new firewall rule or updates an existing firewall rule.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.firewallRuleName- Name of the firewall rule.parameters- Parameters required for creating or updating a firewall rule.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of firewall rule. - 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<FirewallRuleInner> createOrUpdateAsync(String resourceGroupName, String serverName, String firewallRuleName, FirewallRuleInner parameters) Creates a new firewall rule or updates an existing firewall rule.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.firewallRuleName- Name of the firewall rule.parameters- Parameters required for creating or updating a firewall rule.- Returns:
- firewall rule 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
FirewallRuleInner createOrUpdate(String resourceGroupName, String serverName, String firewallRuleName, FirewallRuleInner parameters) Creates a new firewall rule or updates an existing firewall rule.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.firewallRuleName- Name of the firewall rule.parameters- Parameters required for creating or updating a firewall rule.- Returns:
- firewall rule.
- 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
FirewallRuleInner createOrUpdate(String resourceGroupName, String serverName, String firewallRuleName, FirewallRuleInner parameters, com.azure.core.util.Context context) Creates a new firewall rule or updates an existing firewall rule.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.firewallRuleName- Name of the firewall rule.parameters- Parameters required for creating or updating a firewall rule.context- The context to associate with this operation.- Returns:
- firewall rule.
- 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 serverName, String firewallRuleName) Deletes an existing firewall rule.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.firewallRuleName- Name of the firewall rule.- 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 serverName, String firewallRuleName) Deletes an existing firewall rule.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.firewallRuleName- Name of the firewall rule.- 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 serverName, String firewallRuleName) Deletes an existing firewall rule.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.firewallRuleName- Name of the firewall rule.- 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 serverName, String firewallRuleName, com.azure.core.util.Context context) Deletes an existing firewall rule.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.firewallRuleName- Name of the firewall rule.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 an existing firewall rule.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.firewallRuleName- Name of the firewall rule.- 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 an existing firewall rule.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.firewallRuleName- Name of the firewall rule.- 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 serverName, String firewallRuleName, com.azure.core.util.Context context) Deletes an existing firewall rule.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.firewallRuleName- Name of the firewall rule.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.
-
getWithResponseAsync
Mono<com.azure.core.http.rest.Response<FirewallRuleInner>> getWithResponseAsync(String resourceGroupName, String serverName, String firewallRuleName) Gets information about a firewall rule in a server.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.firewallRuleName- Name of the firewall rule.- Returns:
- information about a firewall rule in a server 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.
-
getAsync
Mono<FirewallRuleInner> getAsync(String resourceGroupName, String serverName, String firewallRuleName) Gets information about a firewall rule in a server.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.firewallRuleName- Name of the firewall rule.- Returns:
- information about a firewall rule in a server 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.
-
getWithResponse
com.azure.core.http.rest.Response<FirewallRuleInner> getWithResponse(String resourceGroupName, String serverName, String firewallRuleName, com.azure.core.util.Context context) Gets information about a firewall rule in a server.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.firewallRuleName- Name of the firewall rule.context- The context to associate with this operation.- Returns:
- information about a firewall rule in a server 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.
-
get
Gets information about a firewall rule in a server.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.firewallRuleName- Name of the firewall rule.- Returns:
- information about a firewall rule in a server.
- 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.
-
listByServerAsync
com.azure.core.http.rest.PagedFlux<FirewallRuleInner> listByServerAsync(String resourceGroupName, String serverName) Lists information about all firewall rules in a server.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.- Returns:
- list of firewall rules 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.
-
listByServer
com.azure.core.http.rest.PagedIterable<FirewallRuleInner> listByServer(String resourceGroupName, String serverName) Lists information about all firewall rules in a server.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.- Returns:
- list of firewall rules 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.
-
listByServer
com.azure.core.http.rest.PagedIterable<FirewallRuleInner> listByServer(String resourceGroupName, String serverName, com.azure.core.util.Context context) Lists information about all firewall rules in a server.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.context- The context to associate with this operation.- Returns:
- list of firewall rules 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.
-