Interface GalleriesClient

All Superinterfaces:
com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete<Void>, com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet<GalleryInner>, com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing<GalleryInner>

public interface GalleriesClient extends com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet<GalleryInner>, com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing<GalleryInner>, com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete<Void>
An instance of this class provides access to all the operations defined in GalleriesClient.
  • Method Details

    • listAsync

      com.azure.core.http.rest.PagedFlux<GalleryInner> listAsync()
      List galleries under a subscription.
      Specified by:
      listAsync in interface com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing<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:
      list in interface com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing<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

      com.azure.core.http.rest.PagedIterable<GalleryInner> list(com.azure.core.util.Context context)
      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.
    • listByResourceGroupAsync

      com.azure.core.http.rest.PagedFlux<GalleryInner> listByResourceGroupAsync(String resourceGroupName)
      List galleries under a resource group.
      Specified by:
      listByResourceGroupAsync in interface com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing<GalleryInner>
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      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

      com.azure.core.http.rest.PagedIterable<GalleryInner> listByResourceGroup(String resourceGroupName)
      List galleries under a resource group.
      Specified by:
      listByResourceGroup in interface com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing<GalleryInner>
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      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. The name is case insensitive.
      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.
    • 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. The name is case insensitive.
      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 Response 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.
    • getByResourceGroupAsync

      Mono<GalleryInner> getByResourceGroupAsync(String resourceGroupName, String galleryName)
      Retrieves information about a Shared Image Gallery.
      Specified by:
      getByResourceGroupAsync in interface com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet<GalleryInner>
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      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. The name is case insensitive.
      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

      GalleryInner getByResourceGroup(String resourceGroupName, String galleryName)
      Retrieves information about a Shared Image Gallery.
      Specified by:
      getByResourceGroup in interface com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet<GalleryInner>
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      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.
    • 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. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      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 Response 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.
    • 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. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      gallery - Parameters supplied to the create or update Shared Image Gallery operation.
      Returns:
      the PollerFlux for 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. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      gallery - Parameters supplied to the create or update Shared Image Gallery operation.
      Returns:
      the SyncPoller for 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. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      gallery - Parameters supplied to the create or update Shared Image Gallery operation.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for 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. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      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

      GalleryInner createOrUpdate(String resourceGroupName, String galleryName, GalleryInner gallery)
      Create or update a Shared Image Gallery.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      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. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      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. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      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 Response 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.
    • 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. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      gallery - Parameters supplied to the update Shared Image Gallery operation.
      Returns:
      the PollerFlux for 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. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      gallery - Parameters supplied to the update Shared Image Gallery operation.
      Returns:
      the SyncPoller for 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. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      gallery - Parameters supplied to the update Shared Image Gallery operation.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for 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

      Mono<GalleryInner> updateAsync(String resourceGroupName, String galleryName, GalleryUpdate gallery)
      Update a Shared Image Gallery.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      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

      GalleryInner update(String resourceGroupName, String galleryName, GalleryUpdate gallery)
      Update a Shared Image Gallery.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      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. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      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.
    • 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. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      Returns:
      the Response 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.
    • 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. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      Returns:
      the PollerFlux for 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. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      Returns:
      the SyncPoller for 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. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      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.
      ApiErrorException - 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 galleryName)
      Delete a Shared Image Gallery.
      Specified by:
      deleteAsync in interface com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete<Void>
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      Returns:
      A Mono that 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

      void delete(String resourceGroupName, String galleryName)
      Delete a Shared Image Gallery.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      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, com.azure.core.util.Context context)
      Delete a Shared Image Gallery.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      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.