Interface VirtualMachineImagesClient
public interface VirtualMachineImagesClient
An instance of this class provides access to all the operations defined in VirtualMachineImagesClient.
-
Method Summary
Modifier and TypeMethodDescriptionGets a virtual machine image.Gets a virtual machine image.com.azure.core.http.rest.Response<VirtualMachineImageInner> getWithResponse(String location, String publisherName, String offer, String skus, String version, com.azure.core.util.Context context) Gets a virtual machine image.Mono<com.azure.core.http.rest.Response<VirtualMachineImageInner>> getWithResponseAsync(String location, String publisherName, String offer, String skus, String version) Gets a virtual machine image.Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU.Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU.listByEdgeZone(String location, String edgeZone) Gets a list of all virtual machine image versions for the specified edge zone.listByEdgeZoneAsync(String location, String edgeZone) Gets a list of all virtual machine image versions for the specified edge zone.com.azure.core.http.rest.Response<VmImagesInEdgeZoneListResultInner> listByEdgeZoneWithResponse(String location, String edgeZone, com.azure.core.util.Context context) Gets a list of all virtual machine image versions for the specified edge zone.Mono<com.azure.core.http.rest.Response<VmImagesInEdgeZoneListResultInner>> listByEdgeZoneWithResponseAsync(String location, String edgeZone) Gets a list of all virtual machine image versions for the specified edge zone.listOffers(String location, String publisherName) Gets a list of virtual machine image offers for the specified location and publisher.listOffersAsync(String location, String publisherName) Gets a list of virtual machine image offers for the specified location and publisher.com.azure.core.http.rest.Response<List<VirtualMachineImageResourceInner>> listOffersWithResponse(String location, String publisherName, com.azure.core.util.Context context) Gets a list of virtual machine image offers for the specified location and publisher.Mono<com.azure.core.http.rest.Response<List<VirtualMachineImageResourceInner>>> listOffersWithResponseAsync(String location, String publisherName) Gets a list of virtual machine image offers for the specified location and publisher.listPublishers(String location) Gets a list of virtual machine image publishers for the specified Azure location.listPublishersAsync(String location) Gets a list of virtual machine image publishers for the specified Azure location.com.azure.core.http.rest.Response<List<VirtualMachineImageResourceInner>> listPublishersWithResponse(String location, com.azure.core.util.Context context) Gets a list of virtual machine image publishers for the specified Azure location.Mono<com.azure.core.http.rest.Response<List<VirtualMachineImageResourceInner>>> listPublishersWithResponseAsync(String location) Gets a list of virtual machine image publishers for the specified Azure location.Gets a list of virtual machine image SKUs for the specified location, publisher, and offer.listSkusAsync(String location, String publisherName, String offer) Gets a list of virtual machine image SKUs for the specified location, publisher, and offer.com.azure.core.http.rest.Response<List<VirtualMachineImageResourceInner>> listSkusWithResponse(String location, String publisherName, String offer, com.azure.core.util.Context context) Gets a list of virtual machine image SKUs for the specified location, publisher, and offer.Mono<com.azure.core.http.rest.Response<List<VirtualMachineImageResourceInner>>> listSkusWithResponseAsync(String location, String publisherName, String offer) Gets a list of virtual machine image SKUs for the specified location, publisher, and offer.com.azure.core.http.rest.Response<List<VirtualMachineImageResourceInner>> listWithResponse(String location, String publisherName, String offer, String skus, String expand, Integer top, String orderby, com.azure.core.util.Context context) Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU.Mono<com.azure.core.http.rest.Response<List<VirtualMachineImageResourceInner>>> listWithResponseAsync(String location, String publisherName, String offer, String skus, String expand, Integer top, String orderby) Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU.
-
Method Details
-
getWithResponseAsync
Mono<com.azure.core.http.rest.Response<VirtualMachineImageInner>> getWithResponseAsync(String location, String publisherName, String offer, String skus, String version) Gets a virtual machine image.- Parameters:
location- The name of a supported Azure region.publisherName- A valid image publisher.offer- A valid image publisher offer.skus- A valid image SKU.version- A valid image SKU version.- Returns:
- a virtual machine 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.
-
getAsync
Mono<VirtualMachineImageInner> getAsync(String location, String publisherName, String offer, String skus, String version) Gets a virtual machine image.- Parameters:
location- The name of a supported Azure region.publisherName- A valid image publisher.offer- A valid image publisher offer.skus- A valid image SKU.version- A valid image SKU version.- Returns:
- a virtual machine 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.
-
getWithResponse
com.azure.core.http.rest.Response<VirtualMachineImageInner> getWithResponse(String location, String publisherName, String offer, String skus, String version, com.azure.core.util.Context context) Gets a virtual machine image.- Parameters:
location- The name of a supported Azure region.publisherName- A valid image publisher.offer- A valid image publisher offer.skus- A valid image SKU.version- A valid image SKU version.context- The context to associate with this operation.- Returns:
- a virtual machine 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.
-
get
VirtualMachineImageInner get(String location, String publisherName, String offer, String skus, String version) Gets a virtual machine image.- Parameters:
location- The name of a supported Azure region.publisherName- A valid image publisher.offer- A valid image publisher offer.skus- A valid image SKU.version- A valid image SKU version.- Returns:
- a virtual machine 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.
-
listWithResponseAsync
Mono<com.azure.core.http.rest.Response<List<VirtualMachineImageResourceInner>>> listWithResponseAsync(String location, String publisherName, String offer, String skus, String expand, Integer top, String orderby) Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU.- Parameters:
location- The name of a supported Azure region.publisherName- A valid image publisher.offer- A valid image publisher offer.skus- A valid image SKU.expand- The expand expression to apply on the operation.top- The top parameter.orderby- The orderby parameter.- Returns:
- a list of all virtual machine image versions for the specified location, publisher, offer, and SKU 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.
-
listAsync
Mono<List<VirtualMachineImageResourceInner>> listAsync(String location, String publisherName, String offer, String skus) Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU.- Parameters:
location- The name of a supported Azure region.publisherName- A valid image publisher.offer- A valid image publisher offer.skus- A valid image SKU.- Returns:
- a list of all virtual machine image versions for the specified location, publisher, offer, and SKU 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.
-
listWithResponse
com.azure.core.http.rest.Response<List<VirtualMachineImageResourceInner>> listWithResponse(String location, String publisherName, String offer, String skus, String expand, Integer top, String orderby, com.azure.core.util.Context context) Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU.- Parameters:
location- The name of a supported Azure region.publisherName- A valid image publisher.offer- A valid image publisher offer.skus- A valid image SKU.expand- The expand expression to apply on the operation.top- The top parameter.orderby- The orderby parameter.context- The context to associate with this operation.- Returns:
- a list of all virtual machine image versions for the specified location, publisher, offer, and SKU 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.
-
list
List<VirtualMachineImageResourceInner> list(String location, String publisherName, String offer, String skus) Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU.- Parameters:
location- The name of a supported Azure region.publisherName- A valid image publisher.offer- A valid image publisher offer.skus- A valid image SKU.- Returns:
- a list of all virtual machine image versions for the specified location, publisher, offer, and SKU.
- 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.
-
listOffersWithResponseAsync
Mono<com.azure.core.http.rest.Response<List<VirtualMachineImageResourceInner>>> listOffersWithResponseAsync(String location, String publisherName) Gets a list of virtual machine image offers for the specified location and publisher.- Parameters:
location- The name of a supported Azure region.publisherName- A valid image publisher.- Returns:
- a list of virtual machine image offers for the specified location and publisher 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.
-
listOffersAsync
Gets a list of virtual machine image offers for the specified location and publisher.- Parameters:
location- The name of a supported Azure region.publisherName- A valid image publisher.- Returns:
- a list of virtual machine image offers for the specified location and publisher 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.
-
listOffersWithResponse
com.azure.core.http.rest.Response<List<VirtualMachineImageResourceInner>> listOffersWithResponse(String location, String publisherName, com.azure.core.util.Context context) Gets a list of virtual machine image offers for the specified location and publisher.- Parameters:
location- The name of a supported Azure region.publisherName- A valid image publisher.context- The context to associate with this operation.- Returns:
- a list of virtual machine image offers for the specified location and publisher 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.
-
listOffers
Gets a list of virtual machine image offers for the specified location and publisher.- Parameters:
location- The name of a supported Azure region.publisherName- A valid image publisher.- Returns:
- a list of virtual machine image offers for the specified location and publisher.
- 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.
-
listPublishersWithResponseAsync
Mono<com.azure.core.http.rest.Response<List<VirtualMachineImageResourceInner>>> listPublishersWithResponseAsync(String location) Gets a list of virtual machine image publishers for the specified Azure location.- Parameters:
location- The name of a supported Azure region.- Returns:
- a list of virtual machine image publishers for the specified Azure location 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.
-
listPublishersAsync
Gets a list of virtual machine image publishers for the specified Azure location.- Parameters:
location- The name of a supported Azure region.- Returns:
- a list of virtual machine image publishers for the specified Azure location 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.
-
listPublishersWithResponse
com.azure.core.http.rest.Response<List<VirtualMachineImageResourceInner>> listPublishersWithResponse(String location, com.azure.core.util.Context context) Gets a list of virtual machine image publishers for the specified Azure location.- Parameters:
location- The name of a supported Azure region.context- The context to associate with this operation.- Returns:
- a list of virtual machine image publishers for the specified Azure location 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.
-
listPublishers
Gets a list of virtual machine image publishers for the specified Azure location.- Parameters:
location- The name of a supported Azure region.- Returns:
- a list of virtual machine image publishers for the specified Azure location.
- 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.
-
listSkusWithResponseAsync
Mono<com.azure.core.http.rest.Response<List<VirtualMachineImageResourceInner>>> listSkusWithResponseAsync(String location, String publisherName, String offer) Gets a list of virtual machine image SKUs for the specified location, publisher, and offer.- Parameters:
location- The name of a supported Azure region.publisherName- A valid image publisher.offer- A valid image publisher offer.- Returns:
- a list of virtual machine image SKUs for the specified location, publisher, and offer 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.
-
listSkusAsync
Mono<List<VirtualMachineImageResourceInner>> listSkusAsync(String location, String publisherName, String offer) Gets a list of virtual machine image SKUs for the specified location, publisher, and offer.- Parameters:
location- The name of a supported Azure region.publisherName- A valid image publisher.offer- A valid image publisher offer.- Returns:
- a list of virtual machine image SKUs for the specified location, publisher, and offer 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.
-
listSkusWithResponse
com.azure.core.http.rest.Response<List<VirtualMachineImageResourceInner>> listSkusWithResponse(String location, String publisherName, String offer, com.azure.core.util.Context context) Gets a list of virtual machine image SKUs for the specified location, publisher, and offer.- Parameters:
location- The name of a supported Azure region.publisherName- A valid image publisher.offer- A valid image publisher offer.context- The context to associate with this operation.- Returns:
- a list of virtual machine image SKUs for the specified location, publisher, and offer 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.
-
listSkus
List<VirtualMachineImageResourceInner> listSkus(String location, String publisherName, String offer) Gets a list of virtual machine image SKUs for the specified location, publisher, and offer.- Parameters:
location- The name of a supported Azure region.publisherName- A valid image publisher.offer- A valid image publisher offer.- Returns:
- a list of virtual machine image SKUs for the specified location, publisher, and offer.
- 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.
-
listByEdgeZoneWithResponseAsync
Mono<com.azure.core.http.rest.Response<VmImagesInEdgeZoneListResultInner>> listByEdgeZoneWithResponseAsync(String location, String edgeZone) Gets a list of all virtual machine image versions for the specified edge zone.- Parameters:
location- The name of a supported Azure region.edgeZone- The name of the edge zone.- Returns:
- a list of all virtual machine image versions for the specified edge zone 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.
-
listByEdgeZoneAsync
Gets a list of all virtual machine image versions for the specified edge zone.- Parameters:
location- The name of a supported Azure region.edgeZone- The name of the edge zone.- Returns:
- a list of all virtual machine image versions for the specified edge zone 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.
-
listByEdgeZoneWithResponse
com.azure.core.http.rest.Response<VmImagesInEdgeZoneListResultInner> listByEdgeZoneWithResponse(String location, String edgeZone, com.azure.core.util.Context context) Gets a list of all virtual machine image versions for the specified edge zone.- Parameters:
location- The name of a supported Azure region.edgeZone- The name of the edge zone.context- The context to associate with this operation.- Returns:
- a list of all virtual machine image versions for the specified edge zone 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.
-
listByEdgeZone
Gets a list of all virtual machine image versions for the specified edge zone.- Parameters:
location- The name of a supported Azure region.edgeZone- The name of the edge zone.- Returns:
- a list of all virtual machine image versions for the specified edge zone.
- 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.
-