Interface ImageVersions


public interface ImageVersions
Resource collection API of ImageVersions.
  • Method Details

    • listByImage

      com.azure.core.http.rest.PagedIterable<ImageVersion> listByImage(String resourceGroupName, String devCenterName, String galleryName, String imageName)
      Lists versions for an image.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      devCenterName - The name of the devcenter.
      galleryName - The name of the gallery.
      imageName - The name of the image.
      Returns:
      results of the image version list operation as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listByImage

      com.azure.core.http.rest.PagedIterable<ImageVersion> listByImage(String resourceGroupName, String devCenterName, String galleryName, String imageName, com.azure.core.util.Context context)
      Lists versions for an image.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      devCenterName - The name of the devcenter.
      galleryName - The name of the gallery.
      imageName - The name of the image.
      context - The context to associate with this operation.
      Returns:
      results of the image version list operation as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getWithResponse

      com.azure.core.http.rest.Response<ImageVersion> getWithResponse(String resourceGroupName, String devCenterName, String galleryName, String imageName, String versionName, com.azure.core.util.Context context)
      Gets an image version.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      devCenterName - The name of the devcenter.
      galleryName - The name of the gallery.
      imageName - The name of the image.
      versionName - The version of the image.
      context - The context to associate with this operation.
      Returns:
      an image version along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • get

      ImageVersion get(String resourceGroupName, String devCenterName, String galleryName, String imageName, String versionName)
      Gets an image version.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      devCenterName - The name of the devcenter.
      galleryName - The name of the gallery.
      imageName - The name of the image.
      versionName - The version of the image.
      Returns:
      an image version.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.