Interface GalleryImagesClient
public interface GalleryImagesClient
An instance of this class provides access to all the operations defined in GalleryImagesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<GalleryImageInner>,GalleryImageInner> beginCreateOrUpdate(String resourceGroupName, String galleryName, String galleryImageName, GalleryImageInner galleryImage) Create or update a gallery image definition.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<GalleryImageInner>,GalleryImageInner> beginCreateOrUpdate(String resourceGroupName, String galleryName, String galleryImageName, GalleryImageInner galleryImage, com.azure.core.util.Context context) Create or update a gallery image definition.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<GalleryImageInner>,GalleryImageInner> beginCreateOrUpdateAsync(String resourceGroupName, String galleryName, String galleryImageName, GalleryImageInner galleryImage) Create or update a gallery image definition.beginDelete(String resourceGroupName, String galleryName, String galleryImageName) Delete a gallery image.beginDelete(String resourceGroupName, String galleryName, String galleryImageName, com.azure.core.util.Context context) Delete a gallery image.beginDeleteAsync(String resourceGroupName, String galleryName, String galleryImageName) Delete a gallery image.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<GalleryImageInner>,GalleryImageInner> beginUpdate(String resourceGroupName, String galleryName, String galleryImageName, GalleryImageUpdate galleryImage) Update a gallery image definition.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<GalleryImageInner>,GalleryImageInner> beginUpdate(String resourceGroupName, String galleryName, String galleryImageName, GalleryImageUpdate galleryImage, com.azure.core.util.Context context) Update a gallery image definition.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<GalleryImageInner>,GalleryImageInner> beginUpdateAsync(String resourceGroupName, String galleryName, String galleryImageName, GalleryImageUpdate galleryImage) Update a gallery image definition.createOrUpdate(String resourceGroupName, String galleryName, String galleryImageName, GalleryImageInner galleryImage) Create or update a gallery image definition.createOrUpdate(String resourceGroupName, String galleryName, String galleryImageName, GalleryImageInner galleryImage, com.azure.core.util.Context context) Create or update a gallery image definition.createOrUpdateAsync(String resourceGroupName, String galleryName, String galleryImageName, GalleryImageInner galleryImage) Create or update a gallery image definition.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>createOrUpdateWithResponseAsync(String resourceGroupName, String galleryName, String galleryImageName, GalleryImageInner galleryImage) Create or update a gallery image definition.voidDelete a gallery image.voiddelete(String resourceGroupName, String galleryName, String galleryImageName, com.azure.core.util.Context context) Delete a gallery image.deleteAsync(String resourceGroupName, String galleryName, String galleryImageName) Delete a gallery image.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>deleteWithResponseAsync(String resourceGroupName, String galleryName, String galleryImageName) Delete a gallery image.Retrieves information about a gallery image definition.Retrieves information about a gallery image definition.com.azure.core.http.rest.Response<GalleryImageInner>getWithResponse(String resourceGroupName, String galleryName, String galleryImageName, com.azure.core.util.Context context) Retrieves information about a gallery image definition.Mono<com.azure.core.http.rest.Response<GalleryImageInner>>getWithResponseAsync(String resourceGroupName, String galleryName, String galleryImageName) Retrieves information about a gallery image definition.com.azure.core.http.rest.PagedIterable<GalleryImageInner>listByGallery(String resourceGroupName, String galleryName) List gallery image definitions in a gallery.com.azure.core.http.rest.PagedIterable<GalleryImageInner>listByGallery(String resourceGroupName, String galleryName, com.azure.core.util.Context context) List gallery image definitions in a gallery.com.azure.core.http.rest.PagedFlux<GalleryImageInner>listByGalleryAsync(String resourceGroupName, String galleryName) List gallery image definitions in a gallery.update(String resourceGroupName, String galleryName, String galleryImageName, GalleryImageUpdate galleryImage) Update a gallery image definition.update(String resourceGroupName, String galleryName, String galleryImageName, GalleryImageUpdate galleryImage, com.azure.core.util.Context context) Update a gallery image definition.updateAsync(String resourceGroupName, String galleryName, String galleryImageName, GalleryImageUpdate galleryImage) Update a gallery image definition.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>updateWithResponseAsync(String resourceGroupName, String galleryName, String galleryImageName, GalleryImageUpdate galleryImage) Update a gallery image definition.
-
Method Details
-
createOrUpdateWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String galleryName, String galleryImageName, GalleryImageInner galleryImage) Create or update a gallery image definition.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery in which the Image Definition is to be created.galleryImageName- The name of the gallery image definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.galleryImage- Parameters supplied to the create or update gallery image operation.- Returns:
- specifies information about the gallery image definition 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<GalleryImageInner>,GalleryImageInner> beginCreateOrUpdateAsync(String resourceGroupName, String galleryName, String galleryImageName, GalleryImageInner galleryImage) Create or update a gallery image definition.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery in which the Image Definition is to be created.galleryImageName- The name of the gallery image definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.galleryImage- Parameters supplied to the create or update gallery image operation.- Returns:
- the
PollerFluxfor polling of specifies information about the gallery image definition 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<GalleryImageInner>,GalleryImageInner> beginCreateOrUpdate(String resourceGroupName, String galleryName, String galleryImageName, GalleryImageInner galleryImage) Create or update a gallery image definition.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery in which the Image Definition is to be created.galleryImageName- The name of the gallery image definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.galleryImage- Parameters supplied to the create or update gallery image operation.- Returns:
- the
SyncPollerfor polling of specifies information about the gallery image definition 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<GalleryImageInner>,GalleryImageInner> beginCreateOrUpdate(String resourceGroupName, String galleryName, String galleryImageName, GalleryImageInner galleryImage, com.azure.core.util.Context context) Create or update a gallery image definition.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery in which the Image Definition is to be created.galleryImageName- The name of the gallery image definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.galleryImage- Parameters supplied to the create or update gallery image operation.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of specifies information about the gallery image definition 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<GalleryImageInner> createOrUpdateAsync(String resourceGroupName, String galleryName, String galleryImageName, GalleryImageInner galleryImage) Create or update a gallery image definition.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery in which the Image Definition is to be created.galleryImageName- The name of the gallery image definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.galleryImage- Parameters supplied to the create or update gallery image operation.- Returns:
- specifies information about the gallery image definition 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
GalleryImageInner createOrUpdate(String resourceGroupName, String galleryName, String galleryImageName, GalleryImageInner galleryImage) Create or update a gallery image definition.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery in which the Image Definition is to be created.galleryImageName- The name of the gallery image definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.galleryImage- Parameters supplied to the create or update gallery image operation.- Returns:
- specifies information about the gallery image definition 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
GalleryImageInner createOrUpdate(String resourceGroupName, String galleryName, String galleryImageName, GalleryImageInner galleryImage, com.azure.core.util.Context context) Create or update a gallery image definition.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery in which the Image Definition is to be created.galleryImageName- The name of the gallery image definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.galleryImage- Parameters supplied to the create or update gallery image operation.context- The context to associate with this operation.- Returns:
- specifies information about the gallery image definition 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, String galleryImageName, GalleryImageUpdate galleryImage) Update a gallery image definition.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery in which the Image Definition is to be updated.galleryImageName- The name of the gallery image definition to be updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.galleryImage- Parameters supplied to the update gallery image operation.- Returns:
- specifies information about the gallery image definition 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<GalleryImageInner>,GalleryImageInner> beginUpdateAsync(String resourceGroupName, String galleryName, String galleryImageName, GalleryImageUpdate galleryImage) Update a gallery image definition.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery in which the Image Definition is to be updated.galleryImageName- The name of the gallery image definition to be updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.galleryImage- Parameters supplied to the update gallery image operation.- Returns:
- the
PollerFluxfor polling of specifies information about the gallery image definition 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<GalleryImageInner>,GalleryImageInner> beginUpdate(String resourceGroupName, String galleryName, String galleryImageName, GalleryImageUpdate galleryImage) Update a gallery image definition.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery in which the Image Definition is to be updated.galleryImageName- The name of the gallery image definition to be updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.galleryImage- Parameters supplied to the update gallery image operation.- Returns:
- the
SyncPollerfor polling of specifies information about the gallery image definition 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<GalleryImageInner>,GalleryImageInner> beginUpdate(String resourceGroupName, String galleryName, String galleryImageName, GalleryImageUpdate galleryImage, com.azure.core.util.Context context) Update a gallery image definition.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery in which the Image Definition is to be updated.galleryImageName- The name of the gallery image definition to be updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.galleryImage- Parameters supplied to the update gallery image operation.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of specifies information about the gallery image definition 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
Mono<GalleryImageInner> updateAsync(String resourceGroupName, String galleryName, String galleryImageName, GalleryImageUpdate galleryImage) Update a gallery image definition.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery in which the Image Definition is to be updated.galleryImageName- The name of the gallery image definition to be updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.galleryImage- Parameters supplied to the update gallery image operation.- Returns:
- specifies information about the gallery image definition 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
GalleryImageInner update(String resourceGroupName, String galleryName, String galleryImageName, GalleryImageUpdate galleryImage) Update a gallery image definition.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery in which the Image Definition is to be updated.galleryImageName- The name of the gallery image definition to be updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.galleryImage- Parameters supplied to the update gallery image operation.- Returns:
- specifies information about the gallery image definition 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
GalleryImageInner update(String resourceGroupName, String galleryName, String galleryImageName, GalleryImageUpdate galleryImage, com.azure.core.util.Context context) Update a gallery image definition.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery in which the Image Definition is to be updated.galleryImageName- The name of the gallery image definition to be updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.galleryImage- Parameters supplied to the update gallery image operation.context- The context to associate with this operation.- Returns:
- specifies information about the gallery image definition 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.
-
getWithResponseAsync
Mono<com.azure.core.http.rest.Response<GalleryImageInner>> getWithResponseAsync(String resourceGroupName, String galleryName, String galleryImageName) Retrieves information about a gallery image definition.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery from which the Image Definitions are to be retrieved.galleryImageName- The name of the gallery image definition to be retrieved.- Returns:
- specifies information about the gallery image definition 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.
-
getAsync
Mono<GalleryImageInner> getAsync(String resourceGroupName, String galleryName, String galleryImageName) Retrieves information about a gallery image definition.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery from which the Image Definitions are to be retrieved.galleryImageName- The name of the gallery image definition to be retrieved.- Returns:
- specifies information about the gallery image definition 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.
-
get
Retrieves information about a gallery image definition.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery from which the Image Definitions are to be retrieved.galleryImageName- The name of the gallery image definition to be retrieved.- Returns:
- specifies information about the gallery image definition 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.
-
getWithResponse
com.azure.core.http.rest.Response<GalleryImageInner> getWithResponse(String resourceGroupName, String galleryName, String galleryImageName, com.azure.core.util.Context context) Retrieves information about a gallery image definition.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery from which the Image Definitions are to be retrieved.galleryImageName- The name of the gallery image definition to be retrieved.context- The context to associate with this operation.- Returns:
- specifies information about the gallery image definition 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.
-
deleteWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String galleryName, String galleryImageName) Delete a gallery image.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery in which the Image Definition is to be deleted.galleryImageName- The name of the gallery image definition 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, String galleryImageName) Delete a gallery image.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery in which the Image Definition is to be deleted.galleryImageName- The name of the gallery image definition 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, String galleryImageName) Delete a gallery image.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery in which the Image Definition is to be deleted.galleryImageName- The name of the gallery image definition 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, String galleryImageName, com.azure.core.util.Context context) Delete a gallery image.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery in which the Image Definition is to be deleted.galleryImageName- The name of the gallery image definition 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 gallery image.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery in which the Image Definition is to be deleted.galleryImageName- The name of the gallery image definition 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 gallery image.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery in which the Image Definition is to be deleted.galleryImageName- The name of the gallery image definition 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
void delete(String resourceGroupName, String galleryName, String galleryImageName, com.azure.core.util.Context context) Delete a gallery image.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery in which the Image Definition is to be deleted.galleryImageName- The name of the gallery image definition 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.
-
listByGalleryAsync
com.azure.core.http.rest.PagedFlux<GalleryImageInner> listByGalleryAsync(String resourceGroupName, String galleryName) List gallery image definitions in a gallery.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery from which Image Definitions are to be listed.- Returns:
- the List Gallery Images 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.
-
listByGallery
com.azure.core.http.rest.PagedIterable<GalleryImageInner> listByGallery(String resourceGroupName, String galleryName) List gallery image definitions in a gallery.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery from which Image Definitions are to be listed.- Returns:
- the List Gallery Images 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.
-
listByGallery
com.azure.core.http.rest.PagedIterable<GalleryImageInner> listByGallery(String resourceGroupName, String galleryName, com.azure.core.util.Context context) List gallery image definitions in a gallery.- Parameters:
resourceGroupName- The name of the resource group.galleryName- The name of the Shared Image Gallery from which Image Definitions are to be listed.context- The context to associate with this operation.- Returns:
- the List Gallery Images 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.
-