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 a PostgreSQL server firewall rule.beginDelete(String resourceGroupName, String serverName, String firewallRuleName, com.azure.core.util.Context context) Deletes a PostgreSQL server firewall rule.beginDeleteAsync(String resourceGroupName, String serverName, String firewallRuleName) Deletes a PostgreSQL server 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 a PostgreSQL server firewall rule.voiddelete(String resourceGroupName, String serverName, String firewallRuleName, com.azure.core.util.Context context) Deletes a PostgreSQL server firewall rule.deleteAsync(String resourceGroupName, String serverName, String firewallRuleName) Deletes a PostgreSQL server firewall rule.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>deleteWithResponseAsync(String resourceGroupName, String serverName, String firewallRuleName) Deletes a PostgreSQL server firewall rule.List all the firewall rules in a given server.List all the firewall rules in a given server.com.azure.core.http.rest.Response<FirewallRuleInner>getWithResponse(String resourceGroupName, String serverName, String firewallRuleName, com.azure.core.util.Context context) List all the firewall rules in a given server.Mono<com.azure.core.http.rest.Response<FirewallRuleInner>>getWithResponseAsync(String resourceGroupName, String serverName, String firewallRuleName) List all the firewall rules in a given server.com.azure.core.http.rest.PagedIterable<FirewallRuleInner>listByServer(String resourceGroupName, String serverName) List all the firewall rules in a given PostgreSQL server.com.azure.core.http.rest.PagedIterable<FirewallRuleInner>listByServer(String resourceGroupName, String serverName, com.azure.core.util.Context context) List all the firewall rules in a given PostgreSQL server.com.azure.core.http.rest.PagedFlux<FirewallRuleInner>listByServerAsync(String resourceGroupName, String serverName) List all the firewall rules in a given PostgreSQL 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- The name of the server firewall rule.parameters- The required parameters for creating or updating a firewall rule.- Returns:
- represents a server 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- The name of the server firewall rule.parameters- The required parameters for creating or updating a firewall rule.- Returns:
- the
PollerFluxfor polling of represents a server 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- The name of the server firewall rule.parameters- The required parameters for creating or updating a firewall rule.- Returns:
- the
SyncPollerfor polling of represents a server 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- The name of the server firewall rule.parameters- The required parameters for creating or updating a firewall rule.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of represents a server 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- The name of the server firewall rule.parameters- The required parameters for creating or updating a firewall rule.- Returns:
- represents a server 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- The name of the server firewall rule.parameters- The required parameters for creating or updating a firewall rule.- Returns:
- represents a server 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- The name of the server firewall rule.parameters- The required parameters for creating or updating a firewall rule.context- The context to associate with this operation.- Returns:
- represents a server 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 a PostgreSQL server firewall rule.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.firewallRuleName- The name of the server 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 a PostgreSQL server firewall rule.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.firewallRuleName- The name of the server 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 a PostgreSQL server firewall rule.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.firewallRuleName- The name of the server 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 a PostgreSQL server firewall rule.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.firewallRuleName- The name of the server 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 a PostgreSQL server firewall rule.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.firewallRuleName- The name of the server 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 a PostgreSQL server firewall rule.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.firewallRuleName- The name of the server 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 a PostgreSQL server firewall rule.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.firewallRuleName- The name of the server 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) List all the firewall rules in a given server.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.firewallRuleName- The name of the server firewall rule.- Returns:
- represents a server 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.
-
getAsync
Mono<FirewallRuleInner> getAsync(String resourceGroupName, String serverName, String firewallRuleName) List all the firewall rules in a given server.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.firewallRuleName- The name of the server firewall rule.- Returns:
- represents a server 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.
-
getWithResponse
com.azure.core.http.rest.Response<FirewallRuleInner> getWithResponse(String resourceGroupName, String serverName, String firewallRuleName, com.azure.core.util.Context context) List all the firewall rules in a given server.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.firewallRuleName- The name of the server firewall rule.context- The context to associate with this operation.- Returns:
- represents a server firewall rule 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
List all the firewall rules in a given server.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.firewallRuleName- The name of the server firewall rule.- Returns:
- represents a server 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.
-
listByServerAsync
com.azure.core.http.rest.PagedFlux<FirewallRuleInner> listByServerAsync(String resourceGroupName, String serverName) List all the firewall rules in a given PostgreSQL server.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.- Returns:
- a 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) List all the firewall rules in a given PostgreSQL server.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.- Returns:
- a 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) List all the firewall rules in a given PostgreSQL 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:
- a 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.
-