Interface BastionHostsClient

    • Method Detail

      • 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 Response 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.
      • 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 PollerFlux for 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 SyncPoller for 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 SyncPoller for 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

        Mono<Void> deleteAsync​(String resourceGroupName,
                               String bastionHostname)
        Deletes the specified Bastion Host.
        Specified by:
        deleteAsync in interface InnerSupportsDelete<Void>
        Parameters:
        resourceGroupName - The name of the resource group.
        bastionHostname - The name of the Bastion Host.
        Returns:
        A Mono that 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

        void delete​(String resourceGroupName,
                    String bastionHostname)
        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

        void delete​(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.
        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 Response 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.
      • getByResourceGroupAsync

        Mono<BastionHostInner> getByResourceGroupAsync​(String resourceGroupName,
                                                       String bastionHostname)
        Gets the specified Bastion Host.
        Specified by:
        getByResourceGroupAsync in interface InnerSupportsGet<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.
      • getByResourceGroup

        BastionHostInner getByResourceGroup​(String resourceGroupName,
                                            String bastionHostname)
        Gets the specified Bastion Host.
        Specified by:
        getByResourceGroup in interface InnerSupportsGet<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.
      • 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.
      • 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 Response 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.
      • 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 PollerFlux for 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 SyncPoller for 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 SyncPoller for 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 Response 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.
      • 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 PollerFlux for 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 SyncPoller for 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 SyncPoller for 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:
        listAsync in interface InnerSupportsListing<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:
        list in interface InnerSupportsListing<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

        com.azure.core.http.rest.PagedIterable<BastionHostInner> list​(com.azure.core.util.Context context)
        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:
        listByResourceGroupAsync in interface InnerSupportsListing<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:
        listByResourceGroup in interface InnerSupportsListing<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.