Interface NatGatewaysClient
- All Superinterfaces:
InnerSupportsDelete<Void>,InnerSupportsGet<NatGatewayInner>,InnerSupportsListing<NatGatewayInner>
public interface NatGatewaysClient
extends InnerSupportsGet<NatGatewayInner>, InnerSupportsListing<NatGatewayInner>, InnerSupportsDelete<Void>
An instance of this class provides access to all the operations defined in NatGatewaysClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<NatGatewayInner>, NatGatewayInner> beginCreateOrUpdate(String resourceGroupName, String natGatewayName, NatGatewayInner parameters) Creates or updates a nat gateway.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<NatGatewayInner>, NatGatewayInner> beginCreateOrUpdate(String resourceGroupName, String natGatewayName, NatGatewayInner parameters, com.azure.core.util.Context context) Creates or updates a nat gateway.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<NatGatewayInner>, NatGatewayInner> beginCreateOrUpdateAsync(String resourceGroupName, String natGatewayName, NatGatewayInner parameters) Creates or updates a nat gateway.beginDelete(String resourceGroupName, String natGatewayName) Deletes the specified nat gateway.beginDelete(String resourceGroupName, String natGatewayName, com.azure.core.util.Context context) Deletes the specified nat gateway.beginDeleteAsync(String resourceGroupName, String natGatewayName) Deletes the specified nat gateway.createOrUpdate(String resourceGroupName, String natGatewayName, NatGatewayInner parameters) Creates or updates a nat gateway.createOrUpdate(String resourceGroupName, String natGatewayName, NatGatewayInner parameters, com.azure.core.util.Context context) Creates or updates a nat gateway.createOrUpdateAsync(String resourceGroupName, String natGatewayName, NatGatewayInner parameters) Creates or updates a nat gateway.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String natGatewayName, NatGatewayInner parameters) Creates or updates a nat gateway.voidDeletes the specified nat gateway.voidDeletes the specified nat gateway.deleteAsync(String resourceGroupName, String natGatewayName) Deletes the specified nat gateway.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String natGatewayName) Deletes the specified nat gateway.getByResourceGroup(String resourceGroupName, String natGatewayName) Gets the specified nat gateway in a specified resource group.getByResourceGroupAsync(String resourceGroupName, String natGatewayName) Gets the specified nat gateway in a specified resource group.com.azure.core.http.rest.Response<NatGatewayInner> getByResourceGroupWithResponse(String resourceGroupName, String natGatewayName, String expand, com.azure.core.util.Context context) Gets the specified nat gateway in a specified resource group.Mono<com.azure.core.http.rest.Response<NatGatewayInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String natGatewayName, String expand) Gets the specified nat gateway in a specified resource group.com.azure.core.http.rest.PagedIterable<NatGatewayInner> list()Gets all the Nat Gateways in a subscription.com.azure.core.http.rest.PagedIterable<NatGatewayInner> list(com.azure.core.util.Context context) Gets all the Nat Gateways in a subscription.com.azure.core.http.rest.PagedFlux<NatGatewayInner> Gets all the Nat Gateways in a subscription.com.azure.core.http.rest.PagedIterable<NatGatewayInner> listByResourceGroup(String resourceGroupName) Gets all nat gateways in a resource group.com.azure.core.http.rest.PagedIterable<NatGatewayInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Gets all nat gateways in a resource group.com.azure.core.http.rest.PagedFlux<NatGatewayInner> listByResourceGroupAsync(String resourceGroupName) Gets all nat gateways in a resource group.updateTags(String resourceGroupName, String natGatewayName, TagsObject parameters) Updates nat gateway tags.updateTagsAsync(String resourceGroupName, String natGatewayName, TagsObject parameters) Updates nat gateway tags.com.azure.core.http.rest.Response<NatGatewayInner> updateTagsWithResponse(String resourceGroupName, String natGatewayName, TagsObject parameters, com.azure.core.util.Context context) Updates nat gateway tags.Mono<com.azure.core.http.rest.Response<NatGatewayInner>> updateTagsWithResponseAsync(String resourceGroupName, String natGatewayName, TagsObject parameters) Updates nat gateway tags.
-
Method Details
-
deleteWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String natGatewayName) Deletes the specified nat gateway.- Parameters:
resourceGroupName- The name of the resource group.natGatewayName- The name of the nat gateway.- 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 natGatewayName) Deletes the specified nat gateway.- Parameters:
resourceGroupName- The name of the resource group.natGatewayName- The name of the nat gateway.- 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 natGatewayName) Deletes the specified nat gateway.- Parameters:
resourceGroupName- The name of the resource group.natGatewayName- The name of the nat gateway.- 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 natGatewayName, com.azure.core.util.Context context) Deletes the specified nat gateway.- Parameters:
resourceGroupName- The name of the resource group.natGatewayName- The name of the nat gateway.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 the specified nat gateway.- Specified by:
deleteAsyncin interfaceInnerSupportsDelete<Void>- Parameters:
resourceGroupName- The name of the resource group.natGatewayName- The name of the nat gateway.- 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 the specified nat gateway.- Parameters:
resourceGroupName- The name of the resource group.natGatewayName- The name of the nat gateway.- 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 the specified nat gateway.- Parameters:
resourceGroupName- The name of the resource group.natGatewayName- The name of the nat gateway.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.
-
getByResourceGroupWithResponseAsync
Mono<com.azure.core.http.rest.Response<NatGatewayInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String natGatewayName, String expand) Gets the specified nat gateway in a specified resource group.- Parameters:
resourceGroupName- The name of the resource group.natGatewayName- The name of the nat gateway.expand- Expands referenced resources.- Returns:
- the specified nat gateway in a specified resource group 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
Gets the specified nat gateway in a specified resource group.- Specified by:
getByResourceGroupAsyncin interfaceInnerSupportsGet<NatGatewayInner>- Parameters:
resourceGroupName- The name of the resource group.natGatewayName- The name of the nat gateway.- Returns:
- the specified nat gateway in a specified resource group 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<NatGatewayInner> getByResourceGroupWithResponse(String resourceGroupName, String natGatewayName, String expand, com.azure.core.util.Context context) Gets the specified nat gateway in a specified resource group.- Parameters:
resourceGroupName- The name of the resource group.natGatewayName- The name of the nat gateway.expand- Expands referenced resources.context- The context to associate with this operation.- Returns:
- the specified nat gateway in a specified resource group 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
Gets the specified nat gateway in a specified resource group.- Specified by:
getByResourceGroupin interfaceInnerSupportsGet<NatGatewayInner>- Parameters:
resourceGroupName- The name of the resource group.natGatewayName- The name of the nat gateway.- Returns:
- the specified nat gateway in a specified resource group.
- 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 natGatewayName, NatGatewayInner parameters) Creates or updates a nat gateway.- Parameters:
resourceGroupName- The name of the resource group.natGatewayName- The name of the nat gateway.parameters- Parameters supplied to the create or update nat gateway operation.- Returns:
- nat Gateway 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<NatGatewayInner>,NatGatewayInner> beginCreateOrUpdateAsync(String resourceGroupName, String natGatewayName, NatGatewayInner parameters) Creates or updates a nat gateway.- Parameters:
resourceGroupName- The name of the resource group.natGatewayName- The name of the nat gateway.parameters- Parameters supplied to the create or update nat gateway operation.- Returns:
- the
PollerFluxfor polling of nat Gateway 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<NatGatewayInner>,NatGatewayInner> beginCreateOrUpdate(String resourceGroupName, String natGatewayName, NatGatewayInner parameters) Creates or updates a nat gateway.- Parameters:
resourceGroupName- The name of the resource group.natGatewayName- The name of the nat gateway.parameters- Parameters supplied to the create or update nat gateway operation.- Returns:
- the
SyncPollerfor polling of nat Gateway 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<NatGatewayInner>,NatGatewayInner> beginCreateOrUpdate(String resourceGroupName, String natGatewayName, NatGatewayInner parameters, com.azure.core.util.Context context) Creates or updates a nat gateway.- Parameters:
resourceGroupName- The name of the resource group.natGatewayName- The name of the nat gateway.parameters- Parameters supplied to the create or update nat gateway operation.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of nat Gateway 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<NatGatewayInner> createOrUpdateAsync(String resourceGroupName, String natGatewayName, NatGatewayInner parameters) Creates or updates a nat gateway.- Parameters:
resourceGroupName- The name of the resource group.natGatewayName- The name of the nat gateway.parameters- Parameters supplied to the create or update nat gateway operation.- Returns:
- nat Gateway 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
NatGatewayInner createOrUpdate(String resourceGroupName, String natGatewayName, NatGatewayInner parameters) Creates or updates a nat gateway.- Parameters:
resourceGroupName- The name of the resource group.natGatewayName- The name of the nat gateway.parameters- Parameters supplied to the create or update nat gateway operation.- Returns:
- nat Gateway 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
NatGatewayInner createOrUpdate(String resourceGroupName, String natGatewayName, NatGatewayInner parameters, com.azure.core.util.Context context) Creates or updates a nat gateway.- Parameters:
resourceGroupName- The name of the resource group.natGatewayName- The name of the nat gateway.parameters- Parameters supplied to the create or update nat gateway operation.context- The context to associate with this operation.- Returns:
- nat Gateway 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.
-
updateTagsWithResponseAsync
Mono<com.azure.core.http.rest.Response<NatGatewayInner>> updateTagsWithResponseAsync(String resourceGroupName, String natGatewayName, TagsObject parameters) Updates nat gateway tags.- Parameters:
resourceGroupName- The name of the resource group.natGatewayName- The name of the nat gateway.parameters- Parameters supplied to update nat gateway tags.- Returns:
- nat Gateway 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.
-
updateTagsAsync
Mono<NatGatewayInner> updateTagsAsync(String resourceGroupName, String natGatewayName, TagsObject parameters) Updates nat gateway tags.- Parameters:
resourceGroupName- The name of the resource group.natGatewayName- The name of the nat gateway.parameters- Parameters supplied to update nat gateway tags.- Returns:
- nat Gateway 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.
-
updateTagsWithResponse
com.azure.core.http.rest.Response<NatGatewayInner> updateTagsWithResponse(String resourceGroupName, String natGatewayName, TagsObject parameters, com.azure.core.util.Context context) Updates nat gateway tags.- Parameters:
resourceGroupName- The name of the resource group.natGatewayName- The name of the nat gateway.parameters- Parameters supplied to update nat gateway tags.context- The context to associate with this operation.- Returns:
- nat Gateway 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.
-
updateTags
Updates nat gateway tags.- Parameters:
resourceGroupName- The name of the resource group.natGatewayName- The name of the nat gateway.parameters- Parameters supplied to update nat gateway tags.- Returns:
- nat Gateway 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.
-
listAsync
com.azure.core.http.rest.PagedFlux<NatGatewayInner> listAsync()Gets all the Nat Gateways in a subscription.- Specified by:
listAsyncin interfaceInnerSupportsListing<NatGatewayInner>- Returns:
- all the Nat Gateways 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<NatGatewayInner> list()Gets all the Nat Gateways in a subscription.- Specified by:
listin interfaceInnerSupportsListing<NatGatewayInner>- Returns:
- all the Nat Gateways 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
Gets all the Nat Gateways in a subscription.- Parameters:
context- The context to associate with this operation.- Returns:
- all the Nat Gateways 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.
-
listByResourceGroupAsync
com.azure.core.http.rest.PagedFlux<NatGatewayInner> listByResourceGroupAsync(String resourceGroupName) Gets all nat gateways in a resource group.- Specified by:
listByResourceGroupAsyncin interfaceInnerSupportsListing<NatGatewayInner>- Parameters:
resourceGroupName- The name of the resource group.- Returns:
- all nat gateways in a resource group 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<NatGatewayInner> listByResourceGroup(String resourceGroupName) Gets all nat gateways in a resource group.- Specified by:
listByResourceGroupin interfaceInnerSupportsListing<NatGatewayInner>- Parameters:
resourceGroupName- The name of the resource group.- Returns:
- all nat gateways in a resource group 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<NatGatewayInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Gets all nat gateways in a resource group.- Parameters:
resourceGroupName- The name of the resource group.context- The context to associate with this operation.- Returns:
- all nat gateways in a resource group 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.
-