def check_availability(parameters, custom_headers:nil)
      response = check_availability_async(parameters, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
def check_availability(parameters, custom_headers:nil)
      response = check_availability_async(parameters, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
Checks the availability of the given service namespace across all Azure
 subscriptions. This is useful because the domain name is created based on the
 service namespace name.

 @param parameters [CheckAvailabilityParameters] The namespace name.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [CheckAvailabilityResult] operation results.