public UpdateSummaryInner getUpdateSummary(String deviceName, String resourceGroupName) {
        return getUpdateSummaryWithServiceResponseAsync(deviceName, resourceGroupName).toBlocking().single().body();
    }
public UpdateSummaryInner getUpdateSummary ( String deviceName , String resourceGroupName ) { return getUpdateSummaryWithServiceResponseAsync ( deviceName , resourceGroupName ) . toBlocking ( ) . single ( ) . body ( ) ; }
Gets information about the availability of updates based on the last scan of the device. It also gets information about any ongoing download or install jobs on the device.

@param deviceName The device name.
@param resourceGroupName The resource group name.
@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 UpdateSummaryInner object if successful.