Interface NatRulesClient
public interface NatRulesClient
An instance of this class provides access to all the operations defined in NatRulesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VpnGatewayNatRuleInner>, VpnGatewayNatRuleInner> beginCreateOrUpdate(String resourceGroupName, String gatewayName, String natRuleName, VpnGatewayNatRuleInner natRuleParameters) Creates a nat rule to a scalable vpn gateway if it doesn't exist else updates the existing nat rules.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VpnGatewayNatRuleInner>, VpnGatewayNatRuleInner> beginCreateOrUpdate(String resourceGroupName, String gatewayName, String natRuleName, VpnGatewayNatRuleInner natRuleParameters, com.azure.core.util.Context context) Creates a nat rule to a scalable vpn gateway if it doesn't exist else updates the existing nat rules.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<VpnGatewayNatRuleInner>, VpnGatewayNatRuleInner> beginCreateOrUpdateAsync(String resourceGroupName, String gatewayName, String natRuleName, VpnGatewayNatRuleInner natRuleParameters) Creates a nat rule to a scalable vpn gateway if it doesn't exist else updates the existing nat rules.beginDelete(String resourceGroupName, String gatewayName, String natRuleName) Deletes a nat rule.beginDelete(String resourceGroupName, String gatewayName, String natRuleName, com.azure.core.util.Context context) Deletes a nat rule.beginDeleteAsync(String resourceGroupName, String gatewayName, String natRuleName) Deletes a nat rule.createOrUpdate(String resourceGroupName, String gatewayName, String natRuleName, VpnGatewayNatRuleInner natRuleParameters) Creates a nat rule to a scalable vpn gateway if it doesn't exist else updates the existing nat rules.createOrUpdate(String resourceGroupName, String gatewayName, String natRuleName, VpnGatewayNatRuleInner natRuleParameters, com.azure.core.util.Context context) Creates a nat rule to a scalable vpn gateway if it doesn't exist else updates the existing nat rules.createOrUpdateAsync(String resourceGroupName, String gatewayName, String natRuleName, VpnGatewayNatRuleInner natRuleParameters) Creates a nat rule to a scalable vpn gateway if it doesn't exist else updates the existing nat rules.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String gatewayName, String natRuleName, VpnGatewayNatRuleInner natRuleParameters) Creates a nat rule to a scalable vpn gateway if it doesn't exist else updates the existing nat rules.voidDeletes a nat rule.voiddelete(String resourceGroupName, String gatewayName, String natRuleName, com.azure.core.util.Context context) Deletes a nat rule.deleteAsync(String resourceGroupName, String gatewayName, String natRuleName) Deletes a nat rule.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String gatewayName, String natRuleName) Deletes a nat rule.Retrieves the details of a nat ruleGet.Retrieves the details of a nat ruleGet.com.azure.core.http.rest.Response<VpnGatewayNatRuleInner> getWithResponse(String resourceGroupName, String gatewayName, String natRuleName, com.azure.core.util.Context context) Retrieves the details of a nat ruleGet.Mono<com.azure.core.http.rest.Response<VpnGatewayNatRuleInner>> getWithResponseAsync(String resourceGroupName, String gatewayName, String natRuleName) Retrieves the details of a nat ruleGet.com.azure.core.http.rest.PagedIterable<VpnGatewayNatRuleInner> listByVpnGateway(String resourceGroupName, String gatewayName) Retrieves all nat rules for a particular virtual wan vpn gateway.com.azure.core.http.rest.PagedIterable<VpnGatewayNatRuleInner> listByVpnGateway(String resourceGroupName, String gatewayName, com.azure.core.util.Context context) Retrieves all nat rules for a particular virtual wan vpn gateway.com.azure.core.http.rest.PagedFlux<VpnGatewayNatRuleInner> listByVpnGatewayAsync(String resourceGroupName, String gatewayName) Retrieves all nat rules for a particular virtual wan vpn gateway.
-
Method Details
-
getWithResponseAsync
Mono<com.azure.core.http.rest.Response<VpnGatewayNatRuleInner>> getWithResponseAsync(String resourceGroupName, String gatewayName, String natRuleName) Retrieves the details of a nat ruleGet.- Parameters:
resourceGroupName- The resource group name of the VpnGateway.gatewayName- The name of the gateway.natRuleName- The name of the nat rule.- Returns:
- vpnGatewayNatRule Resource 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<VpnGatewayNatRuleInner> getAsync(String resourceGroupName, String gatewayName, String natRuleName) Retrieves the details of a nat ruleGet.- Parameters:
resourceGroupName- The resource group name of the VpnGateway.gatewayName- The name of the gateway.natRuleName- The name of the nat rule.- Returns:
- vpnGatewayNatRule Resource 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<VpnGatewayNatRuleInner> getWithResponse(String resourceGroupName, String gatewayName, String natRuleName, com.azure.core.util.Context context) Retrieves the details of a nat ruleGet.- Parameters:
resourceGroupName- The resource group name of the VpnGateway.gatewayName- The name of the gateway.natRuleName- The name of the nat rule.context- The context to associate with this operation.- Returns:
- vpnGatewayNatRule Resource 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
Retrieves the details of a nat ruleGet.- Parameters:
resourceGroupName- The resource group name of the VpnGateway.gatewayName- The name of the gateway.natRuleName- The name of the nat rule.- Returns:
- vpnGatewayNatRule Resource.
- 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<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String gatewayName, String natRuleName, VpnGatewayNatRuleInner natRuleParameters) Creates a nat rule to a scalable vpn gateway if it doesn't exist else updates the existing nat rules.- Parameters:
resourceGroupName- The resource group name of the VpnGateway.gatewayName- The name of the gateway.natRuleName- The name of the nat rule.natRuleParameters- Parameters supplied to create or Update a Nat Rule.- Returns:
- vpnGatewayNatRule Resource 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<VpnGatewayNatRuleInner>,VpnGatewayNatRuleInner> beginCreateOrUpdateAsync(String resourceGroupName, String gatewayName, String natRuleName, VpnGatewayNatRuleInner natRuleParameters) Creates a nat rule to a scalable vpn gateway if it doesn't exist else updates the existing nat rules.- Parameters:
resourceGroupName- The resource group name of the VpnGateway.gatewayName- The name of the gateway.natRuleName- The name of the nat rule.natRuleParameters- Parameters supplied to create or Update a Nat Rule.- Returns:
- the
PollerFluxfor polling of vpnGatewayNatRule Resource. - 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<VpnGatewayNatRuleInner>,VpnGatewayNatRuleInner> beginCreateOrUpdate(String resourceGroupName, String gatewayName, String natRuleName, VpnGatewayNatRuleInner natRuleParameters) Creates a nat rule to a scalable vpn gateway if it doesn't exist else updates the existing nat rules.- Parameters:
resourceGroupName- The resource group name of the VpnGateway.gatewayName- The name of the gateway.natRuleName- The name of the nat rule.natRuleParameters- Parameters supplied to create or Update a Nat Rule.- Returns:
- the
SyncPollerfor polling of vpnGatewayNatRule Resource. - 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<VpnGatewayNatRuleInner>,VpnGatewayNatRuleInner> beginCreateOrUpdate(String resourceGroupName, String gatewayName, String natRuleName, VpnGatewayNatRuleInner natRuleParameters, com.azure.core.util.Context context) Creates a nat rule to a scalable vpn gateway if it doesn't exist else updates the existing nat rules.- Parameters:
resourceGroupName- The resource group name of the VpnGateway.gatewayName- The name of the gateway.natRuleName- The name of the nat rule.natRuleParameters- Parameters supplied to create or Update a Nat Rule.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of vpnGatewayNatRule Resource. - 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<VpnGatewayNatRuleInner> createOrUpdateAsync(String resourceGroupName, String gatewayName, String natRuleName, VpnGatewayNatRuleInner natRuleParameters) Creates a nat rule to a scalable vpn gateway if it doesn't exist else updates the existing nat rules.- Parameters:
resourceGroupName- The resource group name of the VpnGateway.gatewayName- The name of the gateway.natRuleName- The name of the nat rule.natRuleParameters- Parameters supplied to create or Update a Nat Rule.- Returns:
- vpnGatewayNatRule Resource 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
VpnGatewayNatRuleInner createOrUpdate(String resourceGroupName, String gatewayName, String natRuleName, VpnGatewayNatRuleInner natRuleParameters) Creates a nat rule to a scalable vpn gateway if it doesn't exist else updates the existing nat rules.- Parameters:
resourceGroupName- The resource group name of the VpnGateway.gatewayName- The name of the gateway.natRuleName- The name of the nat rule.natRuleParameters- Parameters supplied to create or Update a Nat Rule.- Returns:
- vpnGatewayNatRule Resource.
- 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
VpnGatewayNatRuleInner createOrUpdate(String resourceGroupName, String gatewayName, String natRuleName, VpnGatewayNatRuleInner natRuleParameters, com.azure.core.util.Context context) Creates a nat rule to a scalable vpn gateway if it doesn't exist else updates the existing nat rules.- Parameters:
resourceGroupName- The resource group name of the VpnGateway.gatewayName- The name of the gateway.natRuleName- The name of the nat rule.natRuleParameters- Parameters supplied to create or Update a Nat Rule.context- The context to associate with this operation.- Returns:
- vpnGatewayNatRule Resource.
- 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 gatewayName, String natRuleName) Deletes a nat rule.- Parameters:
resourceGroupName- The resource group name of the VpnGateway.gatewayName- The name of the gateway.natRuleName- The name of the nat 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 gatewayName, String natRuleName) Deletes a nat rule.- Parameters:
resourceGroupName- The resource group name of the VpnGateway.gatewayName- The name of the gateway.natRuleName- The name of the nat 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 gatewayName, String natRuleName) Deletes a nat rule.- Parameters:
resourceGroupName- The resource group name of the VpnGateway.gatewayName- The name of the gateway.natRuleName- The name of the nat 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 gatewayName, String natRuleName, com.azure.core.util.Context context) Deletes a nat rule.- Parameters:
resourceGroupName- The resource group name of the VpnGateway.gatewayName- The name of the gateway.natRuleName- The name of the nat 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 nat rule.- Parameters:
resourceGroupName- The resource group name of the VpnGateway.gatewayName- The name of the gateway.natRuleName- The name of the nat 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 nat rule.- Parameters:
resourceGroupName- The resource group name of the VpnGateway.gatewayName- The name of the gateway.natRuleName- The name of the nat 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 gatewayName, String natRuleName, com.azure.core.util.Context context) Deletes a nat rule.- Parameters:
resourceGroupName- The resource group name of the VpnGateway.gatewayName- The name of the gateway.natRuleName- The name of the nat 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.
-
listByVpnGatewayAsync
com.azure.core.http.rest.PagedFlux<VpnGatewayNatRuleInner> listByVpnGatewayAsync(String resourceGroupName, String gatewayName) Retrieves all nat rules for a particular virtual wan vpn gateway.- Parameters:
resourceGroupName- The resource group name of the VpnGateway.gatewayName- The name of the gateway.- Returns:
- result of the request to list all nat rules to a virtual wan vpn gateway 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.
-
listByVpnGateway
com.azure.core.http.rest.PagedIterable<VpnGatewayNatRuleInner> listByVpnGateway(String resourceGroupName, String gatewayName) Retrieves all nat rules for a particular virtual wan vpn gateway.- Parameters:
resourceGroupName- The resource group name of the VpnGateway.gatewayName- The name of the gateway.- Returns:
- result of the request to list all nat rules to a virtual wan vpn gateway 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.
-
listByVpnGateway
com.azure.core.http.rest.PagedIterable<VpnGatewayNatRuleInner> listByVpnGateway(String resourceGroupName, String gatewayName, com.azure.core.util.Context context) Retrieves all nat rules for a particular virtual wan vpn gateway.- Parameters:
resourceGroupName- The resource group name of the VpnGateway.gatewayName- The name of the gateway.context- The context to associate with this operation.- Returns:
- result of the request to list all nat rules to a virtual wan vpn gateway 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.
-