Share via


ImagesClient Interface

public interface ImagesClient

An instance of this class provides access to all the operations defined in ImagesClient.

Method Summary

Modifier and Type Method and Description
abstract ImageInner createOrUpdate(String resourceGroupName, String labPlanName, String imageName, ImageInner body)

Updates an image via PUT.

abstract Response<ImageInner> createOrUpdateWithResponse(String resourceGroupName, String labPlanName, String imageName, ImageInner body, Context context)

Updates an image via PUT.

abstract ImageInner get(String resourceGroupName, String labPlanName, String imageName)

Gets an image.

abstract Response<ImageInner> getWithResponse(String resourceGroupName, String labPlanName, String imageName, Context context)

Gets an image.

abstract PagedIterable<ImageInner> listByLabPlan(String resourceGroupName, String labPlanName)

Gets all images.

abstract PagedIterable<ImageInner> listByLabPlan(String resourceGroupName, String labPlanName, String filter, Context context)

Gets all images.

abstract ImageInner update(String resourceGroupName, String labPlanName, String imageName, ImageUpdate body)

Updates an image.

abstract Response<ImageInner> updateWithResponse(String resourceGroupName, String labPlanName, String imageName, ImageUpdate body, Context context)

Updates an image.

Method Details

createOrUpdate

public abstract ImageInner createOrUpdate(String resourceGroupName, String labPlanName, String imageName, ImageInner body)

Updates an image via PUT. Updates an image resource via PUT. Creating new resources via PUT will not function.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
labPlanName - The name of the lab plan that uniquely identifies it within containing resource group. Used in resource URIs and in UI.
imageName - The image name.
body - The request body.

Returns:

lab services virtual machine image.

createOrUpdateWithResponse

public abstract Response<ImageInner> createOrUpdateWithResponse(String resourceGroupName, String labPlanName, String imageName, ImageInner body, Context context)

Updates an image via PUT. Updates an image resource via PUT. Creating new resources via PUT will not function.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
labPlanName - The name of the lab plan that uniquely identifies it within containing resource group. Used in resource URIs and in UI.
imageName - The image name.
body - The request body.
context - The context to associate with this operation.

Returns:

lab services virtual machine image along with Response<T>.

get

public abstract ImageInner get(String resourceGroupName, String labPlanName, String imageName)

Gets an image. Gets an image resource.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
labPlanName - The name of the lab plan that uniquely identifies it within containing resource group. Used in resource URIs and in UI.
imageName - The image name.

Returns:

an image resource.

getWithResponse

public abstract Response<ImageInner> getWithResponse(String resourceGroupName, String labPlanName, String imageName, Context context)

Gets an image. Gets an image resource.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
labPlanName - The name of the lab plan that uniquely identifies it within containing resource group. Used in resource URIs and in UI.
imageName - The image name.
context - The context to associate with this operation.

Returns:

an image resource along with Response<T>.

listByLabPlan

public abstract PagedIterable<ImageInner> listByLabPlan(String resourceGroupName, String labPlanName)

Gets all images. Gets all images from galleries attached to a lab plan.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
labPlanName - The name of the lab plan that uniquely identifies it within containing resource group. Used in resource URIs and in UI.

Returns:

all images from galleries attached to a lab plan as paginated response with PagedIterable<T>.

listByLabPlan

public abstract PagedIterable<ImageInner> listByLabPlan(String resourceGroupName, String labPlanName, String filter, Context context)

Gets all images. Gets all images from galleries attached to a lab plan.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
labPlanName - The name of the lab plan that uniquely identifies it within containing resource group. Used in resource URIs and in UI.
filter - The filter to apply to the operation.
context - The context to associate with this operation.

Returns:

all images from galleries attached to a lab plan as paginated response with PagedIterable<T>.

update

public abstract ImageInner update(String resourceGroupName, String labPlanName, String imageName, ImageUpdate body)

Updates an image. Updates an image resource.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
labPlanName - The name of the lab plan that uniquely identifies it within containing resource group. Used in resource URIs and in UI.
imageName - The image name.
body - The request body.

Returns:

lab services virtual machine image.

updateWithResponse

public abstract Response<ImageInner> updateWithResponse(String resourceGroupName, String labPlanName, String imageName, ImageUpdate body, Context context)

Updates an image. Updates an image resource.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
labPlanName - The name of the lab plan that uniquely identifies it within containing resource group. Used in resource URIs and in UI.
imageName - The image name.
body - The request body.
context - The context to associate with this operation.

Returns:

lab services virtual machine image along with Response<T>.

Applies to