Interface GalleryScriptsClient


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

    • listByGalleryAsync

      com.azure.core.http.rest.PagedFlux<GalleryScriptInner> listByGalleryAsync(String resourceGroupName, String galleryName)
      List gallery Script Definitions in a gallery.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      Returns:
      the List Gallery Script 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<GalleryScriptInner> listByGallery(String resourceGroupName, String galleryName)
      List gallery Script Definitions in a gallery.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      Returns:
      the List Gallery Script 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<GalleryScriptInner> listByGallery(String resourceGroupName, String galleryName, com.azure.core.util.Context context)
      List gallery Script Definitions in a 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 List Gallery Script 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.
    • getWithResponseAsync

      Mono<com.azure.core.http.rest.Response<GalleryScriptInner>> getWithResponseAsync(String resourceGroupName, String galleryName, String galleryScriptName)
      Retrieves information about a gallery script definition.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      galleryScriptName - The name of the gallery Script Definition to be retrieved.
      Returns:
      specifies information about the gallery Script Definition 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.
    • getAsync

      Mono<GalleryScriptInner> getAsync(String resourceGroupName, String galleryName, String galleryScriptName)
      Retrieves information about a gallery script definition.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      galleryScriptName - The name of the gallery Script Definition to be retrieved.
      Returns:
      specifies information about the gallery Script 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.
    • getWithResponse

      com.azure.core.http.rest.Response<GalleryScriptInner> getWithResponse(String resourceGroupName, String galleryName, String galleryScriptName, com.azure.core.util.Context context)
      Retrieves information about a gallery script definition.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      galleryScriptName - The name of the gallery Script Definition to be retrieved.
      context - The context to associate with this operation.
      Returns:
      specifies information about the gallery Script 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.
    • get

      GalleryScriptInner get(String resourceGroupName, String galleryName, String galleryScriptName)
      Retrieves information about a gallery script definition.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      galleryScriptName - The name of the gallery Script Definition to be retrieved.
      Returns:
      specifies information about the gallery Script 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.
    • createOrUpdateWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String galleryName, String galleryScriptName, GalleryScriptInner galleryScript)
      Create or update a Gallery Script Definition. Gallery scripts allow the storage, sharing and reuse of common scripts.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      galleryScriptName - The name of the gallery Script Definition to be retrieved.
      galleryScript - Parameters supplied to the create or update gallery Script operation.
      Returns:
      specifies information about the gallery Script Definition 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<GalleryScriptInner>, GalleryScriptInner> beginCreateOrUpdateAsync(String resourceGroupName, String galleryName, String galleryScriptName, GalleryScriptInner galleryScript)
      Create or update a Gallery Script Definition. Gallery scripts allow the storage, sharing and reuse of common scripts.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      galleryScriptName - The name of the gallery Script Definition to be retrieved.
      galleryScript - Parameters supplied to the create or update gallery Script operation.
      Returns:
      the PollerFlux for polling of specifies information about the gallery Script 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<GalleryScriptInner>, GalleryScriptInner> beginCreateOrUpdate(String resourceGroupName, String galleryName, String galleryScriptName, GalleryScriptInner galleryScript)
      Create or update a Gallery Script Definition. Gallery scripts allow the storage, sharing and reuse of common scripts.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      galleryScriptName - The name of the gallery Script Definition to be retrieved.
      galleryScript - Parameters supplied to the create or update gallery Script operation.
      Returns:
      the SyncPoller for polling of specifies information about the gallery Script 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<GalleryScriptInner>, GalleryScriptInner> beginCreateOrUpdate(String resourceGroupName, String galleryName, String galleryScriptName, GalleryScriptInner galleryScript, com.azure.core.util.Context context)
      Create or update a Gallery Script Definition. Gallery scripts allow the storage, sharing and reuse of common scripts.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      galleryScriptName - The name of the gallery Script Definition to be retrieved.
      galleryScript - Parameters supplied to the create or update gallery Script operation.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of specifies information about the gallery Script 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<GalleryScriptInner> createOrUpdateAsync(String resourceGroupName, String galleryName, String galleryScriptName, GalleryScriptInner galleryScript)
      Create or update a Gallery Script Definition. Gallery scripts allow the storage, sharing and reuse of common scripts.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      galleryScriptName - The name of the gallery Script Definition to be retrieved.
      galleryScript - Parameters supplied to the create or update gallery Script operation.
      Returns:
      specifies information about the gallery Script 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

      GalleryScriptInner createOrUpdate(String resourceGroupName, String galleryName, String galleryScriptName, GalleryScriptInner galleryScript)
      Create or update a Gallery Script Definition. Gallery scripts allow the storage, sharing and reuse of common scripts.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      galleryScriptName - The name of the gallery Script Definition to be retrieved.
      galleryScript - Parameters supplied to the create or update gallery Script operation.
      Returns:
      specifies information about the gallery Script 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

      GalleryScriptInner createOrUpdate(String resourceGroupName, String galleryName, String galleryScriptName, GalleryScriptInner galleryScript, com.azure.core.util.Context context)
      Create or update a Gallery Script Definition. Gallery scripts allow the storage, sharing and reuse of common scripts.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      galleryScriptName - The name of the gallery Script Definition to be retrieved.
      galleryScript - Parameters supplied to the create or update gallery Script operation.
      context - The context to associate with this operation.
      Returns:
      specifies information about the gallery Script 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 galleryScriptName, GalleryScriptUpdate galleryScript)
      Update a gallery Script Definition.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      galleryScriptName - The name of the gallery Script Definition to be retrieved.
      galleryScript - Parameters supplied to the update gallery Script operation.
      Returns:
      specifies information about the gallery Script Definition 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<GalleryScriptInner>, GalleryScriptInner> beginUpdateAsync(String resourceGroupName, String galleryName, String galleryScriptName, GalleryScriptUpdate galleryScript)
      Update a gallery Script Definition.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      galleryScriptName - The name of the gallery Script Definition to be retrieved.
      galleryScript - Parameters supplied to the update gallery Script operation.
      Returns:
      the PollerFlux for polling of specifies information about the gallery Script 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<GalleryScriptInner>, GalleryScriptInner> beginUpdate(String resourceGroupName, String galleryName, String galleryScriptName, GalleryScriptUpdate galleryScript)
      Update a gallery Script Definition.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      galleryScriptName - The name of the gallery Script Definition to be retrieved.
      galleryScript - Parameters supplied to the update gallery Script operation.
      Returns:
      the SyncPoller for polling of specifies information about the gallery Script 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<GalleryScriptInner>, GalleryScriptInner> beginUpdate(String resourceGroupName, String galleryName, String galleryScriptName, GalleryScriptUpdate galleryScript, com.azure.core.util.Context context)
      Update a gallery Script Definition.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      galleryScriptName - The name of the gallery Script Definition to be retrieved.
      galleryScript - Parameters supplied to the update gallery Script operation.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of specifies information about the gallery Script 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<GalleryScriptInner> updateAsync(String resourceGroupName, String galleryName, String galleryScriptName, GalleryScriptUpdate galleryScript)
      Update a gallery Script Definition.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      galleryScriptName - The name of the gallery Script Definition to be retrieved.
      galleryScript - Parameters supplied to the update gallery Script operation.
      Returns:
      specifies information about the gallery Script 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

      GalleryScriptInner update(String resourceGroupName, String galleryName, String galleryScriptName, GalleryScriptUpdate galleryScript)
      Update a gallery Script Definition.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      galleryScriptName - The name of the gallery Script Definition to be retrieved.
      galleryScript - Parameters supplied to the update gallery Script operation.
      Returns:
      specifies information about the gallery Script 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

      GalleryScriptInner update(String resourceGroupName, String galleryName, String galleryScriptName, GalleryScriptUpdate galleryScript, com.azure.core.util.Context context)
      Update a gallery Script Definition.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      galleryScriptName - The name of the gallery Script Definition to be retrieved.
      galleryScript - Parameters supplied to the update gallery Script operation.
      context - The context to associate with this operation.
      Returns:
      specifies information about the gallery Script 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.
    • deleteWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String galleryName, String galleryScriptName)
      Delete a gallery Script Definition.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      galleryScriptName - The name of the gallery Script Definition to be retrieved.
      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, String galleryScriptName)
      Delete a gallery Script Definition.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      galleryScriptName - The name of the gallery Script Definition to be retrieved.
      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, String galleryScriptName)
      Delete a gallery Script Definition.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      galleryScriptName - The name of the gallery Script Definition to be retrieved.
      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, String galleryScriptName, com.azure.core.util.Context context)
      Delete a gallery Script Definition.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      galleryScriptName - The name of the gallery Script Definition to be retrieved.
      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, String galleryScriptName)
      Delete a gallery Script Definition.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      galleryScriptName - The name of the gallery Script Definition to be retrieved.
      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, String galleryScriptName)
      Delete a gallery Script Definition.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      galleryScriptName - The name of the gallery Script Definition to be retrieved.
      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 galleryScriptName, com.azure.core.util.Context context)
      Delete a gallery Script Definition.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      galleryName - The name of the Shared Image Gallery.
      galleryScriptName - The name of the gallery Script Definition to be retrieved.
      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.