public List<VirtualMachineImageResourceInner> listOffers(String location, String publisherName) {
        return listOffersWithServiceResponseAsync(location, publisherName).toBlocking().single().body();
    }
public List < VirtualMachineImageResourceInner > listOffers ( String location , String publisherName ) { return listOffersWithServiceResponseAsync ( location , publisherName ) . toBlocking ( ) . single ( ) . body ( ) ; }
Gets a list of virtual machine image offers for the specified location and publisher.

@param location The name of a supported Azure region.
@param publisherName A valid image publisher.
@throws IllegalArgumentException thrown if parameters fail the validation
@throws CloudException thrown if the request is rejected by server
@throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
@return the List&lt;VirtualMachineImageResourceInner&gt; object if successful.