Interface GalleriesClient
- All Superinterfaces:
InnerSupportsDelete<Void>,InnerSupportsGet<GalleryInner>,InnerSupportsListing<GalleryInner>
public interface GalleriesClient
extends InnerSupportsGet<GalleryInner>, InnerSupportsListing<GalleryInner>, InnerSupportsDelete<Void>
An instance of this class provides access to all the operations defined in GalleriesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<GalleryInner>, GalleryInner> beginCreateOrUpdate(String resourceGroupName, String galleryName, GalleryInner gallery) Create or update a Shared Image Gallery.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<GalleryInner>, GalleryInner> beginCreateOrUpdate(String resourceGroupName, String galleryName, GalleryInner gallery, com.azure.core.util.Context context) Create or update a Shared Image Gallery.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<GalleryInner>, GalleryInner> beginCreateOrUpdateAsync(String resourceGroupName, String galleryName, GalleryInner gallery) Create or update a Shared Image Gallery.beginDelete(String resourceGroupName, String galleryName) Delete a Shared Image Gallery.beginDelete(String resourceGroupName, String galleryName, com.azure.core.util.Context context) Delete a Shared Image Gallery.beginDeleteAsync(String resourceGroupName, String galleryName) Delete a Shared Image Gallery.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<GalleryInner>, GalleryInner> beginUpdate(String resourceGroupName, String galleryName, GalleryUpdate gallery) Update a Shared Image Gallery.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<GalleryInner>, GalleryInner> beginUpdate(String resourceGroupName, String galleryName, GalleryUpdate gallery, com.azure.core.util.Context context) Update a Shared Image Gallery.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<GalleryInner>, GalleryInner> beginUpdateAsync(String resourceGroupName, String galleryName, GalleryUpdate gallery) Update a Shared Image Gallery.createOrUpdate(String resourceGroupName, String galleryName, GalleryInner gallery) Create or update a Shared Image Gallery.createOrUpdate(String resourceGroupName, String galleryName, GalleryInner gallery, com.azure.core.util.Context context) Create or update a Shared Image Gallery.createOrUpdateAsync(String resourceGroupName, String galleryName, GalleryInner gallery) Create or update a Shared Image Gallery.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String galleryName, GalleryInner gallery) Create or update a Shared Image Gallery.voidDelete a Shared Image Gallery.voidDelete a Shared Image Gallery.deleteAsync(String resourceGroupName, String galleryName) Delete a Shared Image Gallery.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String galleryName) Delete a Shared Image Gallery.getByResourceGroup(String resourceGroupName, String galleryName) Retrieves information about a Shared Image Gallery.getByResourceGroupAsync(String resourceGroupName, String galleryName) Retrieves information about a Shared Image Gallery.com.azure.core.http.rest.Response<GalleryInner> getByResourceGroupWithResponse(String resourceGroupName, String galleryName, SelectPermissions select, GalleryExpandParams expand, com.azure.core.util.Context context) Retrieves information about a Shared Image Gallery.Mono<com.azure.core.http.rest.Response<GalleryInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String galleryName, SelectPermissions select, GalleryExpandParams expand) Retrieves information about a Shared Image Gallery.com.azure.core.http.rest.PagedIterable<GalleryInner> list()List galleries under a subscription.com.azure.core.http.rest.PagedIterable<GalleryInner> list(com.azure.core.util.Context context) List galleries under a subscription.com.azure.core.http.rest.PagedFlux<GalleryInner> List galleries under a subscription.com.azure.core.http.rest.PagedIterable<GalleryInner> listByResourceGroup(String resourceGroupName) List galleries under a resource group.com.azure.core.http.rest.PagedIterable<GalleryInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) List galleries under a resource group.com.azure.core.http.rest.PagedFlux<GalleryInner> listByResourceGroupAsync(String resourceGroupName) List galleries under a resource group.update(String resourceGroupName, String galleryName, GalleryUpdate gallery) Update a Shared Image Gallery.update(String resourceGroupName, String galleryName, GalleryUpdate gallery, com.azure.core.util.Context context) Update a Shared Image Gallery.updateAsync(String resourceGroupName, String galleryName, GalleryUpdate gallery) Update a Shared Image Gallery.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String galleryName, GalleryUpdate gallery) Update a Shared Image Gallery.
-
Method Details
-
createOrUpdateWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String galleryName, GalleryInner gallery) Create or update a Shared Image Gallery.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods allowed in the middle. The maximum length is 80 characters.gallery- Parameters supplied to the create or update Shared Image Gallery operation.- Returns:
- specifies information about the Shared Image Gallery that you want to create or update along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- 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<GalleryInner>,GalleryInner> beginCreateOrUpdateAsync(String resourceGroupName, String galleryName, GalleryInner gallery) Create or update a Shared Image Gallery.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods allowed in the middle. The maximum length is 80 characters.gallery- Parameters supplied to the create or update Shared Image Gallery operation.- Returns:
- the
PollerFluxfor polling of specifies information about the Shared Image Gallery that you want to create or update. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- 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<GalleryInner>,GalleryInner> beginCreateOrUpdate(String resourceGroupName, String galleryName, GalleryInner gallery) Create or update a Shared Image Gallery.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods allowed in the middle. The maximum length is 80 characters.gallery- Parameters supplied to the create or update Shared Image Gallery operation.- Returns:
- the
SyncPollerfor polling of specifies information about the Shared Image Gallery that you want to create or update. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- 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<GalleryInner>,GalleryInner> beginCreateOrUpdate(String resourceGroupName, String galleryName, GalleryInner gallery, com.azure.core.util.Context context) Create or update a Shared Image Gallery.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods allowed in the middle. The maximum length is 80 characters.gallery- Parameters supplied to the create or update Shared Image Gallery operation.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of specifies information about the Shared Image Gallery that you want to create or update. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateAsync
Mono<GalleryInner> createOrUpdateAsync(String resourceGroupName, String galleryName, GalleryInner gallery) Create or update a Shared Image Gallery.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods allowed in the middle. The maximum length is 80 characters.gallery- Parameters supplied to the create or update Shared Image Gallery operation.- Returns:
- specifies information about the Shared Image Gallery that you want to create or update on successful
completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
Create or update a Shared Image Gallery.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods allowed in the middle. The maximum length is 80 characters.gallery- Parameters supplied to the create or update Shared Image Gallery operation.- Returns:
- specifies information about the Shared Image Gallery that you want to create or update.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
GalleryInner createOrUpdate(String resourceGroupName, String galleryName, GalleryInner gallery, com.azure.core.util.Context context) Create or update a Shared Image Gallery.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods allowed in the middle. The maximum length is 80 characters.gallery- Parameters supplied to the create or update Shared Image Gallery operation.context- The context to associate with this operation.- Returns:
- specifies information about the Shared Image Gallery that you want to create or update.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
updateWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String galleryName, GalleryUpdate gallery) Update a Shared Image Gallery.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods allowed in the middle. The maximum length is 80 characters.gallery- Parameters supplied to the update Shared Image Gallery operation.- Returns:
- specifies information about the Shared Image Gallery that you want to create or update along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpdateAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<GalleryInner>,GalleryInner> beginUpdateAsync(String resourceGroupName, String galleryName, GalleryUpdate gallery) Update a Shared Image Gallery.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods allowed in the middle. The maximum length is 80 characters.gallery- Parameters supplied to the update Shared Image Gallery operation.- Returns:
- the
PollerFluxfor polling of specifies information about the Shared Image Gallery that you want to create or update. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<GalleryInner>,GalleryInner> beginUpdate(String resourceGroupName, String galleryName, GalleryUpdate gallery) Update a Shared Image Gallery.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods allowed in the middle. The maximum length is 80 characters.gallery- Parameters supplied to the update Shared Image Gallery operation.- Returns:
- the
SyncPollerfor polling of specifies information about the Shared Image Gallery that you want to create or update. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<GalleryInner>,GalleryInner> beginUpdate(String resourceGroupName, String galleryName, GalleryUpdate gallery, com.azure.core.util.Context context) Update a Shared Image Gallery.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods allowed in the middle. The maximum length is 80 characters.gallery- Parameters supplied to the update Shared Image Gallery operation.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of specifies information about the Shared Image Gallery that you want to create or update. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
updateAsync
Update a Shared Image Gallery.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods allowed in the middle. The maximum length is 80 characters.gallery- Parameters supplied to the update Shared Image Gallery operation.- Returns:
- specifies information about the Shared Image Gallery that you want to create or update on successful
completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
update
Update a Shared Image Gallery.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods allowed in the middle. The maximum length is 80 characters.gallery- Parameters supplied to the update Shared Image Gallery operation.- Returns:
- specifies information about the Shared Image Gallery that you want to create or update.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
update
GalleryInner update(String resourceGroupName, String galleryName, GalleryUpdate gallery, com.azure.core.util.Context context) Update a Shared Image Gallery.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods allowed in the middle. The maximum length is 80 characters.gallery- Parameters supplied to the update Shared Image Gallery operation.context- The context to associate with this operation.- Returns:
- specifies information about the Shared Image Gallery that you want to create or update.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- 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<GalleryInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String galleryName, SelectPermissions select, GalleryExpandParams expand) Retrieves information about a Shared Image Gallery.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery.select- The select expression to apply on the operation.expand- The expand query option to apply on the operation.- Returns:
- specifies information about the Shared Image Gallery that you want to create or update along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroupAsync
Retrieves information about a Shared Image Gallery.- Specified by:
getByResourceGroupAsyncin interfaceInnerSupportsGet<GalleryInner>- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery.- Returns:
- specifies information about the Shared Image Gallery that you want to create or update on successful
completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- 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<GalleryInner> getByResourceGroupWithResponse(String resourceGroupName, String galleryName, SelectPermissions select, GalleryExpandParams expand, com.azure.core.util.Context context) Retrieves information about a Shared Image Gallery.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery.select- The select expression to apply on the operation.expand- The expand query option to apply on the operation.context- The context to associate with this operation.- Returns:
- specifies information about the Shared Image Gallery that you want to create or update along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroup
Retrieves information about a Shared Image Gallery.- Specified by:
getByResourceGroupin interfaceInnerSupportsGet<GalleryInner>- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery.- Returns:
- specifies information about the Shared Image Gallery that you want to create or update.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String galleryName) Delete a Shared Image Gallery.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery to be deleted.- Returns:
- the
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- 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 galleryName) Delete a Shared Image Gallery.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery to be deleted.- Returns:
- the
PollerFluxfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- 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 galleryName) Delete a Shared Image Gallery.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery to be deleted.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- 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 galleryName, com.azure.core.util.Context context) Delete a Shared Image Gallery.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery to be deleted.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteAsync
Delete a Shared Image Gallery.- Specified by:
deleteAsyncin interfaceInnerSupportsDelete<Void>- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery to be deleted.- Returns:
- A
Monothat completes when a successful response is received. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Delete a Shared Image Gallery.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery to be deleted.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Delete a Shared Image Gallery.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery to be deleted.context- The context to associate with this operation.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByResourceGroupAsync
List galleries under a resource group.- Specified by:
listByResourceGroupAsyncin interfaceInnerSupportsListing<GalleryInner>- Parameters:
resourceGroupName- The name of the resource group.- Returns:
- the List Galleries operation response as paginated response with
PagedFlux. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByResourceGroup
List galleries under a resource group.- Specified by:
listByResourceGroupin interfaceInnerSupportsListing<GalleryInner>- Parameters:
resourceGroupName- The name of the resource group.- Returns:
- the List Galleries operation response as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- 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<GalleryInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) List galleries under a resource group.- Parameters:
resourceGroupName- The name of the resource group.context- The context to associate with this operation.- Returns:
- the List Galleries operation response as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- 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<GalleryInner> listAsync()List galleries under a subscription.- Specified by:
listAsyncin interfaceInnerSupportsListing<GalleryInner>- Returns:
- the List Galleries operation response as paginated response with
PagedFlux. - Throws:
ApiErrorException- 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<GalleryInner> list()List galleries under a subscription.- Specified by:
listin interfaceInnerSupportsListing<GalleryInner>- Returns:
- the List Galleries operation response as paginated response with
PagedIterable. - Throws:
ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
list
List galleries under a subscription.- Parameters:
context- The context to associate with this operation.- Returns:
- the List Galleries operation response as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-