Interface ImagesClient
- All Superinterfaces:
InnerSupportsDelete<Void>,InnerSupportsGet<ImageInner>,InnerSupportsListing<ImageInner>
public interface ImagesClient
extends InnerSupportsGet<ImageInner>, InnerSupportsListing<ImageInner>, InnerSupportsDelete<Void>
An instance of this class provides access to all the operations defined in ImagesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ImageInner>,ImageInner> beginCreateOrUpdate(String resourceGroupName, String imageName, ImageInner parameters) Create or update an image.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ImageInner>,ImageInner> beginCreateOrUpdate(String resourceGroupName, String imageName, ImageInner parameters, com.azure.core.util.Context context) Create or update an image.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<ImageInner>,ImageInner> beginCreateOrUpdateAsync(String resourceGroupName, String imageName, ImageInner parameters) Create or update an image.beginDelete(String resourceGroupName, String imageName) Deletes an Image.beginDelete(String resourceGroupName, String imageName, com.azure.core.util.Context context) Deletes an Image.beginDeleteAsync(String resourceGroupName, String imageName) Deletes an Image.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ImageInner>,ImageInner> beginUpdate(String resourceGroupName, String imageName, ImageUpdate parameters) Update an image.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ImageInner>,ImageInner> beginUpdate(String resourceGroupName, String imageName, ImageUpdate parameters, com.azure.core.util.Context context) Update an image.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<ImageInner>,ImageInner> beginUpdateAsync(String resourceGroupName, String imageName, ImageUpdate parameters) Update an image.createOrUpdate(String resourceGroupName, String imageName, ImageInner parameters) Create or update an image.createOrUpdate(String resourceGroupName, String imageName, ImageInner parameters, com.azure.core.util.Context context) Create or update an image.createOrUpdateAsync(String resourceGroupName, String imageName, ImageInner parameters) Create or update an image.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>createOrUpdateWithResponseAsync(String resourceGroupName, String imageName, ImageInner parameters) Create or update an image.voidDeletes an Image.voidDeletes an Image.deleteAsync(String resourceGroupName, String imageName) Deletes an Image.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>deleteWithResponseAsync(String resourceGroupName, String imageName) Deletes an Image.getByResourceGroup(String resourceGroupName, String imageName) Gets an image.getByResourceGroupAsync(String resourceGroupName, String imageName) Gets an image.com.azure.core.http.rest.Response<ImageInner>getByResourceGroupWithResponse(String resourceGroupName, String imageName, String expand, com.azure.core.util.Context context) Gets an image.Mono<com.azure.core.http.rest.Response<ImageInner>>getByResourceGroupWithResponseAsync(String resourceGroupName, String imageName, String expand) Gets an image.com.azure.core.http.rest.PagedIterable<ImageInner>list()Gets the list of Images in the subscription.com.azure.core.http.rest.PagedIterable<ImageInner>list(com.azure.core.util.Context context) Gets the list of Images in the subscription.com.azure.core.http.rest.PagedFlux<ImageInner>Gets the list of Images in the subscription.com.azure.core.http.rest.PagedIterable<ImageInner>listByResourceGroup(String resourceGroupName) Gets the list of images under a resource group.com.azure.core.http.rest.PagedIterable<ImageInner>listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Gets the list of images under a resource group.com.azure.core.http.rest.PagedFlux<ImageInner>listByResourceGroupAsync(String resourceGroupName) Gets the list of images under a resource group.update(String resourceGroupName, String imageName, ImageUpdate parameters) Update an image.update(String resourceGroupName, String imageName, ImageUpdate parameters, com.azure.core.util.Context context) Update an image.updateAsync(String resourceGroupName, String imageName, ImageUpdate parameters) Update an image.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>updateWithResponseAsync(String resourceGroupName, String imageName, ImageUpdate parameters) Update an image.
-
Method Details
-
createOrUpdateWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String imageName, ImageInner parameters) Create or update an image.- Parameters:
resourceGroupName- The name of the resource group.imageName- The name of the image.parameters- Parameters supplied to the Create Image operation.- Returns:
- the source user image virtual hard disk 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<ImageInner>,ImageInner> beginCreateOrUpdateAsync(String resourceGroupName, String imageName, ImageInner parameters) Create or update an image.- Parameters:
resourceGroupName- The name of the resource group.imageName- The name of the image.parameters- Parameters supplied to the Create Image operation.- Returns:
- the
PollerFluxfor polling of the source user image virtual hard disk. - 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<ImageInner>,ImageInner> beginCreateOrUpdate(String resourceGroupName, String imageName, ImageInner parameters) Create or update an image.- Parameters:
resourceGroupName- The name of the resource group.imageName- The name of the image.parameters- Parameters supplied to the Create Image operation.- Returns:
- the
SyncPollerfor polling of the source user image virtual hard disk. - 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<ImageInner>,ImageInner> beginCreateOrUpdate(String resourceGroupName, String imageName, ImageInner parameters, com.azure.core.util.Context context) Create or update an image.- Parameters:
resourceGroupName- The name of the resource group.imageName- The name of the image.parameters- Parameters supplied to the Create Image operation.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of the source user image virtual hard disk. - 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<ImageInner> createOrUpdateAsync(String resourceGroupName, String imageName, ImageInner parameters) Create or update an image.- Parameters:
resourceGroupName- The name of the resource group.imageName- The name of the image.parameters- Parameters supplied to the Create Image operation.- Returns:
- the source user image virtual hard disk 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
Create or update an image.- Parameters:
resourceGroupName- The name of the resource group.imageName- The name of the image.parameters- Parameters supplied to the Create Image operation.- Returns:
- the source user image virtual hard disk.
- 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
ImageInner createOrUpdate(String resourceGroupName, String imageName, ImageInner parameters, com.azure.core.util.Context context) Create or update an image.- Parameters:
resourceGroupName- The name of the resource group.imageName- The name of the image.parameters- Parameters supplied to the Create Image operation.context- The context to associate with this operation.- Returns:
- the source user image virtual hard disk.
- 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 imageName, ImageUpdate parameters) Update an image.- Parameters:
resourceGroupName- The name of the resource group.imageName- The name of the image.parameters- Parameters supplied to the Update Image operation.- Returns:
- the source user image virtual hard disk 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<ImageInner>,ImageInner> beginUpdateAsync(String resourceGroupName, String imageName, ImageUpdate parameters) Update an image.- Parameters:
resourceGroupName- The name of the resource group.imageName- The name of the image.parameters- Parameters supplied to the Update Image operation.- Returns:
- the
PollerFluxfor polling of the source user image virtual hard disk. - 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<ImageInner>,ImageInner> beginUpdate(String resourceGroupName, String imageName, ImageUpdate parameters) Update an image.- Parameters:
resourceGroupName- The name of the resource group.imageName- The name of the image.parameters- Parameters supplied to the Update Image operation.- Returns:
- the
SyncPollerfor polling of the source user image virtual hard disk. - 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<ImageInner>,ImageInner> beginUpdate(String resourceGroupName, String imageName, ImageUpdate parameters, com.azure.core.util.Context context) Update an image.- Parameters:
resourceGroupName- The name of the resource group.imageName- The name of the image.parameters- Parameters supplied to the Update Image operation.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of the source user image virtual hard disk. - 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
Update an image.- Parameters:
resourceGroupName- The name of the resource group.imageName- The name of the image.parameters- Parameters supplied to the Update Image operation.- Returns:
- the source user image virtual hard disk 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
Update an image.- Parameters:
resourceGroupName- The name of the resource group.imageName- The name of the image.parameters- Parameters supplied to the Update Image operation.- Returns:
- the source user image virtual hard disk.
- 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
ImageInner update(String resourceGroupName, String imageName, ImageUpdate parameters, com.azure.core.util.Context context) Update an image.- Parameters:
resourceGroupName- The name of the resource group.imageName- The name of the image.parameters- Parameters supplied to the Update Image operation.context- The context to associate with this operation.- Returns:
- the source user image virtual hard disk.
- 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 imageName) Deletes an Image.- Parameters:
resourceGroupName- The name of the resource group.imageName- The name of the image.- 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 imageName) Deletes an Image.- Parameters:
resourceGroupName- The name of the resource group.imageName- The name of the image.- 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 imageName) Deletes an Image.- Parameters:
resourceGroupName- The name of the resource group.imageName- The name of the image.- 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 imageName, com.azure.core.util.Context context) Deletes an Image.- Parameters:
resourceGroupName- The name of the resource group.imageName- The name of the image.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
Deletes an Image.- Specified by:
deleteAsyncin interfaceInnerSupportsDelete<Void>- Parameters:
resourceGroupName- The name of the resource group.imageName- The name of the image.- 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
Deletes an Image.- Parameters:
resourceGroupName- The name of the resource group.imageName- The name of the image.- 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
Deletes an Image.- Parameters:
resourceGroupName- The name of the resource group.imageName- The name of the image.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.
-
getByResourceGroupWithResponseAsync
Mono<com.azure.core.http.rest.Response<ImageInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String imageName, String expand) Gets an image.- Parameters:
resourceGroupName- The name of the resource group.imageName- The name of the image.expand- The expand expression to apply on the operation.- Returns:
- an image 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.
-
getByResourceGroupAsync
Gets an image.- Specified by:
getByResourceGroupAsyncin interfaceInnerSupportsGet<ImageInner>- Parameters:
resourceGroupName- The name of the resource group.imageName- The name of the image.- Returns:
- an image 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<ImageInner> getByResourceGroupWithResponse(String resourceGroupName, String imageName, String expand, com.azure.core.util.Context context) Gets an image.- Parameters:
resourceGroupName- The name of the resource group.imageName- The name of the image.expand- The expand expression to apply on the operation.context- The context to associate with this operation.- Returns:
- an image 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
Gets an image.- Specified by:
getByResourceGroupin interfaceInnerSupportsGet<ImageInner>- Parameters:
resourceGroupName- The name of the resource group.imageName- The name of the image.- Returns:
- an image.
- 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
Gets the list of images under a resource group. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images.- Specified by:
listByResourceGroupAsyncin interfaceInnerSupportsListing<ImageInner>- Parameters:
resourceGroupName- The name of the resource group.- Returns:
- the list of images under a resource group 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
Gets the list of images under a resource group. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images.- Specified by:
listByResourceGroupin interfaceInnerSupportsListing<ImageInner>- Parameters:
resourceGroupName- The name of the resource group.- Returns:
- the list of images under a resource group 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<ImageInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Gets the list of images under a resource group. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images.- Parameters:
resourceGroupName- The name of the resource group.context- The context to associate with this operation.- Returns:
- the list of images under a resource group 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.
-
listAsync
com.azure.core.http.rest.PagedFlux<ImageInner> listAsync()Gets the list of Images in the subscription. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images.- Specified by:
listAsyncin interfaceInnerSupportsListing<ImageInner>- Returns:
- the list of Images in the subscription 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<ImageInner> list()Gets the list of Images in the subscription. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images.- Specified by:
listin interfaceInnerSupportsListing<ImageInner>- Returns:
- the list of Images in the subscription 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
Gets the list of Images in the subscription. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images.- Parameters:
context- The context to associate with this operation.- Returns:
- the list of Images in the subscription 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.
-