code: public NameAvailabilityResponseInner checkNameAvailability(String location, NameAvailabilityRequest parameters) {
          return checkNameAvailabilityWithServiceResponseAsync(location, parameters).toBlocking().single().body();
      }
docs: Check name validity and availability.
  This method checks whether a proposed top-level resource name is valid and available.
  
  @param location The Azure region of the operation
  @param parameters Requested name to validate
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws ApiErrorException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the NameAvailabilityResponseInner object if successful.