public Observable<ValidateResponseInner> validateAsync(String resourceGroupName, ValidateRequest validateRequest) {
        return validateWithServiceResponseAsync(resourceGroupName, validateRequest).map(new Func1<ServiceResponse<ValidateResponseInner>, ValidateResponseInner>() {
            @Override
            public ValidateResponseInner call(ServiceResponse<ValidateResponseInner> response) {
                return response.body();
            }
        });
    }
public Observable < ValidateResponseInner > validateAsync ( String resourceGroupName , ValidateRequest validateRequest ) { return validateWithServiceResponseAsync ( resourceGroupName , validateRequest ) . map ( new Func1 < ServiceResponse < ValidateResponseInner > , ValidateResponseInner > ( ) { @ Override public ValidateResponseInner call ( ServiceResponse < ValidateResponseInner > response ) { return response . body ( ) ; } } ) ; }
Validate if a resource can be created.
Validate if a resource can be created.

@param resourceGroupName Name of the resource group to which the resource belongs.
@param validateRequest Request with the resources to validate.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the observable to the ValidateResponseInner object