public Observable<AvailabilitySetInner> getByResourceGroupAsync(String resourceGroupName, String availabilitySetName) {
        return getByResourceGroupWithServiceResponseAsync(resourceGroupName, availabilitySetName).map(new Func1<ServiceResponse<AvailabilitySetInner>, AvailabilitySetInner>() {
            @Override
            public AvailabilitySetInner call(ServiceResponse<AvailabilitySetInner> response) {
                return response.body();
            }
        });
    }
public Observable < AvailabilitySetInner > getByResourceGroupAsync ( String resourceGroupName , String availabilitySetName ) { return getByResourceGroupWithServiceResponseAsync ( resourceGroupName , availabilitySetName ) . map ( new Func1 < ServiceResponse < AvailabilitySetInner > , AvailabilitySetInner > ( ) { @ Override public AvailabilitySetInner call ( ServiceResponse < AvailabilitySetInner > response ) { return response . body ( ) ; } } ) ; }
Retrieves information about an availability set.

@param resourceGroupName The name of the resource group.
@param availabilitySetName The name of the availability set.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the observable to the AvailabilitySetInner object