Interface DeletedServersClient
public interface DeletedServersClient
An instance of this class provides access to all the operations defined in DeletedServersClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DeletedServerInner>, DeletedServerInner> beginRecover(String locationName, String deletedServerName) Recovers a deleted server.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.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<DeletedServerInner>, DeletedServerInner> beginRecoverAsync(String locationName, String deletedServerName) Recovers a deleted server.Gets a deleted server.Gets a deleted server.com.azure.core.http.rest.Response<DeletedServerInner> getWithResponse(String locationName, String deletedServerName, com.azure.core.util.Context context) Gets a deleted server.Mono<com.azure.core.http.rest.Response<DeletedServerInner>> getWithResponseAsync(String locationName, String deletedServerName) Gets a deleted server.com.azure.core.http.rest.PagedIterable<DeletedServerInner> list()Gets a list of all deleted servers in a subscription.com.azure.core.http.rest.PagedIterable<DeletedServerInner> list(com.azure.core.util.Context context) Gets a list of all deleted servers in a subscription.com.azure.core.http.rest.PagedFlux<DeletedServerInner> Gets a list of all deleted servers in a subscription.com.azure.core.http.rest.PagedIterable<DeletedServerInner> listByLocation(String locationName) Gets a list of deleted servers for a location.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.com.azure.core.http.rest.PagedFlux<DeletedServerInner> listByLocationAsync(String locationName) Gets a list of deleted servers for a location.Recovers a deleted server.Recovers a deleted server.recoverAsync(String locationName, String deletedServerName) Recovers a deleted server.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> recoverWithResponseAsync(String locationName, String deletedServerName) Recovers a deleted server.
-
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
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
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
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
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
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
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.
-
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
PollerFluxfor 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
SyncPollerfor 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
SyncPollerfor 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
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
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.
-