Interface DeletedServersClient


public interface DeletedServersClient
An instance of this class provides access to all the operations defined in DeletedServersClient.
  • Method Details

    • listAsync

      com.azure.core.http.rest.PagedFlux<DeletedServerInner> listAsync()
      Gets a list of all deleted servers in a subscription.
      Returns:
      a list of all deleted servers 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<DeletedServerInner> list()
      Gets a list of all deleted servers in a subscription.
      Returns:
      a list of all deleted servers 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

      com.azure.core.http.rest.PagedIterable<DeletedServerInner> list(com.azure.core.util.Context context)
      Gets a list of all deleted servers in a subscription.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      a list of all deleted servers 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.
    • listByLocationAsync

      com.azure.core.http.rest.PagedFlux<DeletedServerInner> listByLocationAsync(String locationName)
      Gets a list of deleted servers for a location.
      Parameters:
      locationName - The name of the region where the resource is located.
      Returns:
      a list of deleted servers for a location 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.
    • listByLocation

      com.azure.core.http.rest.PagedIterable<DeletedServerInner> listByLocation(String locationName)
      Gets a list of deleted servers for a location.
      Parameters:
      locationName - The name of the region where the resource is located.
      Returns:
      a list of deleted servers for a location 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.
    • listByLocation

      com.azure.core.http.rest.PagedIterable<DeletedServerInner> listByLocation(String locationName, com.azure.core.util.Context context)
      Gets a list of deleted servers for a location.
      Parameters:
      locationName - The name of the region where the resource is located.
      context - The context to associate with this operation.
      Returns:
      a list of deleted servers for a location 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.
    • getWithResponseAsync

      Mono<com.azure.core.http.rest.Response<DeletedServerInner>> getWithResponseAsync(String locationName, String deletedServerName)
      Gets a deleted server.
      Parameters:
      locationName - The name of the region where the resource is located.
      deletedServerName - The name of the deleted server.
      Returns:
      a deleted server 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.
    • getAsync

      Mono<DeletedServerInner> getAsync(String locationName, String deletedServerName)
      Gets a deleted server.
      Parameters:
      locationName - The name of the region where the resource is located.
      deletedServerName - The name of the deleted server.
      Returns:
      a deleted server 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<DeletedServerInner> getWithResponse(String locationName, String deletedServerName, com.azure.core.util.Context context)
      Gets a deleted server.
      Parameters:
      locationName - The name of the region where the resource is located.
      deletedServerName - The name of the deleted server.
      context - The context to associate with this operation.
      Returns:
      a deleted server 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

      DeletedServerInner get(String locationName, String deletedServerName)
      Gets a deleted server.
      Parameters:
      locationName - The name of the region where the resource is located.
      deletedServerName - The name of the deleted server.
      Returns:
      a deleted server.
      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.
    • recoverWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> recoverWithResponseAsync(String locationName, String deletedServerName)
      Recovers a deleted server.
      Parameters:
      locationName - The name of the region where the resource is located.
      deletedServerName - The name of the deleted server.
      Returns:
      a deleted server 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.
    • beginRecoverAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<DeletedServerInner>,DeletedServerInner> beginRecoverAsync(String locationName, String deletedServerName)
      Recovers a deleted server.
      Parameters:
      locationName - The name of the region where the resource is located.
      deletedServerName - The name of the deleted server.
      Returns:
      the PollerFlux for polling of a deleted server.
      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.
    • beginRecover

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DeletedServerInner>,DeletedServerInner> beginRecover(String locationName, String deletedServerName)
      Recovers a deleted server.
      Parameters:
      locationName - The name of the region where the resource is located.
      deletedServerName - The name of the deleted server.
      Returns:
      the SyncPoller for polling of a deleted server.
      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.
    • beginRecover

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DeletedServerInner>,DeletedServerInner> beginRecover(String locationName, String deletedServerName, com.azure.core.util.Context context)
      Recovers a deleted server.
      Parameters:
      locationName - The name of the region where the resource is located.
      deletedServerName - The name of the deleted server.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of a deleted server.
      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.
    • recoverAsync

      Mono<DeletedServerInner> recoverAsync(String locationName, String deletedServerName)
      Recovers a deleted server.
      Parameters:
      locationName - The name of the region where the resource is located.
      deletedServerName - The name of the deleted server.
      Returns:
      a deleted server 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.
    • recover

      DeletedServerInner recover(String locationName, String deletedServerName)
      Recovers a deleted server.
      Parameters:
      locationName - The name of the region where the resource is located.
      deletedServerName - The name of the deleted server.
      Returns:
      a deleted server.
      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.
    • recover

      DeletedServerInner recover(String locationName, String deletedServerName, com.azure.core.util.Context context)
      Recovers a deleted server.
      Parameters:
      locationName - The name of the region where the resource is located.
      deletedServerName - The name of the deleted server.
      context - The context to associate with this operation.
      Returns:
      a deleted server.
      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.