Interface BastionHostsClient
- All Superinterfaces:
InnerSupportsDelete<Void>,InnerSupportsGet<BastionHostInner>,InnerSupportsListing<BastionHostInner>
public interface BastionHostsClient
extends InnerSupportsGet<BastionHostInner>, InnerSupportsListing<BastionHostInner>, InnerSupportsDelete<Void>
An instance of this class provides access to all the operations defined in BastionHostsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<BastionHostInner>, BastionHostInner> beginCreateOrUpdate(String resourceGroupName, String bastionHostname, BastionHostInner parameters) Creates or updates the specified Bastion Host.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<BastionHostInner>, BastionHostInner> beginCreateOrUpdate(String resourceGroupName, String bastionHostname, BastionHostInner parameters, com.azure.core.util.Context context) Creates or updates the specified Bastion Host.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<BastionHostInner>, BastionHostInner> beginCreateOrUpdateAsync(String resourceGroupName, String bastionHostname, BastionHostInner parameters) Creates or updates the specified Bastion Host.beginDelete(String resourceGroupName, String bastionHostname) Deletes the specified Bastion Host.beginDelete(String resourceGroupName, String bastionHostname, com.azure.core.util.Context context) Deletes the specified Bastion Host.beginDeleteAsync(String resourceGroupName, String bastionHostname) Deletes the specified Bastion Host.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<BastionHostInner>, BastionHostInner> beginUpdateTags(String resourceGroupName, String bastionHostname, TagsObject parameters) Updates Tags for BastionHost resource.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<BastionHostInner>, BastionHostInner> beginUpdateTags(String resourceGroupName, String bastionHostname, TagsObject parameters, com.azure.core.util.Context context) Updates Tags for BastionHost resource.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<BastionHostInner>, BastionHostInner> beginUpdateTagsAsync(String resourceGroupName, String bastionHostname, TagsObject parameters) Updates Tags for BastionHost resource.createOrUpdate(String resourceGroupName, String bastionHostname, BastionHostInner parameters) Creates or updates the specified Bastion Host.createOrUpdate(String resourceGroupName, String bastionHostname, BastionHostInner parameters, com.azure.core.util.Context context) Creates or updates the specified Bastion Host.createOrUpdateAsync(String resourceGroupName, String bastionHostname, BastionHostInner parameters) Creates or updates the specified Bastion Host.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String bastionHostname, BastionHostInner parameters) Creates or updates the specified Bastion Host.voidDeletes the specified Bastion Host.voidDeletes the specified Bastion Host.deleteAsync(String resourceGroupName, String bastionHostname) Deletes the specified Bastion Host.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String bastionHostname) Deletes the specified Bastion Host.getByResourceGroup(String resourceGroupName, String bastionHostname) Gets the specified Bastion Host.getByResourceGroupAsync(String resourceGroupName, String bastionHostname) Gets the specified Bastion Host.com.azure.core.http.rest.Response<BastionHostInner> getByResourceGroupWithResponse(String resourceGroupName, String bastionHostname, com.azure.core.util.Context context) Gets the specified Bastion Host.Mono<com.azure.core.http.rest.Response<BastionHostInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String bastionHostname) Gets the specified Bastion Host.com.azure.core.http.rest.PagedIterable<BastionHostInner> list()Lists all Bastion Hosts in a subscription.com.azure.core.http.rest.PagedIterable<BastionHostInner> list(com.azure.core.util.Context context) Lists all Bastion Hosts in a subscription.com.azure.core.http.rest.PagedFlux<BastionHostInner> Lists all Bastion Hosts in a subscription.com.azure.core.http.rest.PagedIterable<BastionHostInner> listByResourceGroup(String resourceGroupName) Lists all Bastion Hosts in a resource group.com.azure.core.http.rest.PagedIterable<BastionHostInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Lists all Bastion Hosts in a resource group.com.azure.core.http.rest.PagedFlux<BastionHostInner> listByResourceGroupAsync(String resourceGroupName) Lists all Bastion Hosts in a resource group.updateTags(String resourceGroupName, String bastionHostname, TagsObject parameters) Updates Tags for BastionHost resource.updateTags(String resourceGroupName, String bastionHostname, TagsObject parameters, com.azure.core.util.Context context) Updates Tags for BastionHost resource.updateTagsAsync(String resourceGroupName, String bastionHostname, TagsObject parameters) Updates Tags for BastionHost resource.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> updateTagsWithResponseAsync(String resourceGroupName, String bastionHostname, TagsObject parameters) Updates Tags for BastionHost resource.
-
Method Details
-
deleteWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String bastionHostname) Deletes the specified Bastion Host.- Parameters:
resourceGroupName- The name of the resource group.bastionHostname- The name of the Bastion Host.- 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 bastionHostname) Deletes the specified Bastion Host.- Parameters:
resourceGroupName- The name of the resource group.bastionHostname- The name of the Bastion Host.- 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 bastionHostname) Deletes the specified Bastion Host.- Parameters:
resourceGroupName- The name of the resource group.bastionHostname- The name of the Bastion Host.- 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 bastionHostname, com.azure.core.util.Context context) Deletes the specified Bastion Host.- Parameters:
resourceGroupName- The name of the resource group.bastionHostname- The name of the Bastion Host.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 Bastion Host.- Specified by:
deleteAsyncin interfaceInnerSupportsDelete<Void>- Parameters:
resourceGroupName- The name of the resource group.bastionHostname- The name of the Bastion Host.- 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 Bastion Host.- Parameters:
resourceGroupName- The name of the resource group.bastionHostname- The name of the Bastion Host.- 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 Bastion Host.- Parameters:
resourceGroupName- The name of the resource group.bastionHostname- The name of the Bastion Host.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<BastionHostInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String bastionHostname) Gets the specified Bastion Host.- Parameters:
resourceGroupName- The name of the resource group.bastionHostname- The name of the Bastion Host.- Returns:
- the specified Bastion Host 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 Bastion Host.- Specified by:
getByResourceGroupAsyncin interfaceInnerSupportsGet<BastionHostInner>- Parameters:
resourceGroupName- The name of the resource group.bastionHostname- The name of the Bastion Host.- Returns:
- the specified Bastion Host 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<BastionHostInner> getByResourceGroupWithResponse(String resourceGroupName, String bastionHostname, com.azure.core.util.Context context) Gets the specified Bastion Host.- Parameters:
resourceGroupName- The name of the resource group.bastionHostname- The name of the Bastion Host.context- The context to associate with this operation.- Returns:
- the specified Bastion Host 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 Bastion Host.- Specified by:
getByResourceGroupin interfaceInnerSupportsGet<BastionHostInner>- Parameters:
resourceGroupName- The name of the resource group.bastionHostname- The name of the Bastion Host.- Returns:
- the specified Bastion Host.
- 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 bastionHostname, BastionHostInner parameters) Creates or updates the specified Bastion Host.- Parameters:
resourceGroupName- The name of the resource group.bastionHostname- The name of the Bastion Host.parameters- Parameters supplied to the create or update Bastion Host operation.- Returns:
- bastion Host 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<BastionHostInner>,BastionHostInner> beginCreateOrUpdateAsync(String resourceGroupName, String bastionHostname, BastionHostInner parameters) Creates or updates the specified Bastion Host.- Parameters:
resourceGroupName- The name of the resource group.bastionHostname- The name of the Bastion Host.parameters- Parameters supplied to the create or update Bastion Host operation.- Returns:
- the
PollerFluxfor polling of bastion Host 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<BastionHostInner>,BastionHostInner> beginCreateOrUpdate(String resourceGroupName, String bastionHostname, BastionHostInner parameters) Creates or updates the specified Bastion Host.- Parameters:
resourceGroupName- The name of the resource group.bastionHostname- The name of the Bastion Host.parameters- Parameters supplied to the create or update Bastion Host operation.- Returns:
- the
SyncPollerfor polling of bastion Host 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<BastionHostInner>,BastionHostInner> beginCreateOrUpdate(String resourceGroupName, String bastionHostname, BastionHostInner parameters, com.azure.core.util.Context context) Creates or updates the specified Bastion Host.- Parameters:
resourceGroupName- The name of the resource group.bastionHostname- The name of the Bastion Host.parameters- Parameters supplied to the create or update Bastion Host operation.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of bastion Host 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<BastionHostInner> createOrUpdateAsync(String resourceGroupName, String bastionHostname, BastionHostInner parameters) Creates or updates the specified Bastion Host.- Parameters:
resourceGroupName- The name of the resource group.bastionHostname- The name of the Bastion Host.parameters- Parameters supplied to the create or update Bastion Host operation.- Returns:
- bastion Host 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
BastionHostInner createOrUpdate(String resourceGroupName, String bastionHostname, BastionHostInner parameters) Creates or updates the specified Bastion Host.- Parameters:
resourceGroupName- The name of the resource group.bastionHostname- The name of the Bastion Host.parameters- Parameters supplied to the create or update Bastion Host operation.- Returns:
- bastion Host 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
BastionHostInner createOrUpdate(String resourceGroupName, String bastionHostname, BastionHostInner parameters, com.azure.core.util.Context context) Creates or updates the specified Bastion Host.- Parameters:
resourceGroupName- The name of the resource group.bastionHostname- The name of the Bastion Host.parameters- Parameters supplied to the create or update Bastion Host operation.context- The context to associate with this operation.- Returns:
- bastion Host 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<Flux<ByteBuffer>>> updateTagsWithResponseAsync(String resourceGroupName, String bastionHostname, TagsObject parameters) Updates Tags for BastionHost resource.- Parameters:
resourceGroupName- The name of the resource group.bastionHostname- The name of the Bastion Host.parameters- Parameters supplied to update BastionHost tags.- Returns:
- bastion Host 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.
-
beginUpdateTagsAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<BastionHostInner>,BastionHostInner> beginUpdateTagsAsync(String resourceGroupName, String bastionHostname, TagsObject parameters) Updates Tags for BastionHost resource.- Parameters:
resourceGroupName- The name of the resource group.bastionHostname- The name of the Bastion Host.parameters- Parameters supplied to update BastionHost tags.- Returns:
- the
PollerFluxfor polling of bastion Host 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.
-
beginUpdateTags
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<BastionHostInner>,BastionHostInner> beginUpdateTags(String resourceGroupName, String bastionHostname, TagsObject parameters) Updates Tags for BastionHost resource.- Parameters:
resourceGroupName- The name of the resource group.bastionHostname- The name of the Bastion Host.parameters- Parameters supplied to update BastionHost tags.- Returns:
- the
SyncPollerfor polling of bastion Host 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.
-
beginUpdateTags
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<BastionHostInner>,BastionHostInner> beginUpdateTags(String resourceGroupName, String bastionHostname, TagsObject parameters, com.azure.core.util.Context context) Updates Tags for BastionHost resource.- Parameters:
resourceGroupName- The name of the resource group.bastionHostname- The name of the Bastion Host.parameters- Parameters supplied to update BastionHost tags.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of bastion Host 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.
-
updateTagsAsync
Mono<BastionHostInner> updateTagsAsync(String resourceGroupName, String bastionHostname, TagsObject parameters) Updates Tags for BastionHost resource.- Parameters:
resourceGroupName- The name of the resource group.bastionHostname- The name of the Bastion Host.parameters- Parameters supplied to update BastionHost tags.- Returns:
- bastion Host 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.
-
updateTags
BastionHostInner updateTags(String resourceGroupName, String bastionHostname, TagsObject parameters) Updates Tags for BastionHost resource.- Parameters:
resourceGroupName- The name of the resource group.bastionHostname- The name of the Bastion Host.parameters- Parameters supplied to update BastionHost tags.- Returns:
- bastion Host 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.
-
updateTags
BastionHostInner updateTags(String resourceGroupName, String bastionHostname, TagsObject parameters, com.azure.core.util.Context context) Updates Tags for BastionHost resource.- Parameters:
resourceGroupName- The name of the resource group.bastionHostname- The name of the Bastion Host.parameters- Parameters supplied to update BastionHost tags.context- The context to associate with this operation.- Returns:
- bastion Host 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<BastionHostInner> listAsync()Lists all Bastion Hosts in a subscription.- Specified by:
listAsyncin interfaceInnerSupportsListing<BastionHostInner>- Returns:
- response for ListBastionHosts API service call 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<BastionHostInner> list()Lists all Bastion Hosts in a subscription.- Specified by:
listin interfaceInnerSupportsListing<BastionHostInner>- Returns:
- response for ListBastionHosts API service call 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
Lists all Bastion Hosts in a subscription.- Parameters:
context- The context to associate with this operation.- Returns:
- response for ListBastionHosts API service call 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<BastionHostInner> listByResourceGroupAsync(String resourceGroupName) Lists all Bastion Hosts in a resource group.- Specified by:
listByResourceGroupAsyncin interfaceInnerSupportsListing<BastionHostInner>- Parameters:
resourceGroupName- The name of the resource group.- Returns:
- response for ListBastionHosts API service call 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<BastionHostInner> listByResourceGroup(String resourceGroupName) Lists all Bastion Hosts in a resource group.- Specified by:
listByResourceGroupin interfaceInnerSupportsListing<BastionHostInner>- Parameters:
resourceGroupName- The name of the resource group.- Returns:
- response for ListBastionHosts API service call 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<BastionHostInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Lists all Bastion Hosts in a resource group.- Parameters:
resourceGroupName- The name of the resource group.context- The context to associate with this operation.- Returns:
- response for ListBastionHosts API service call 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.
-