code: public ValidateResponseInner validate(String resourceGroupName, ValidateRequest validateRequest) {
          return validateWithServiceResponseAsync(resourceGroupName, validateRequest).toBlocking().single().body();
      }
docs: 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
  @throws DefaultErrorResponseException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the ValidateResponseInner object if successful.