def check_name_availability(name, search_management_request_options:nil, custom_headers:nil)
      response = check_name_availability_async(name, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
def check_name_availability(name, search_management_request_options:nil, custom_headers:nil)
      response = check_name_availability_async(name, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
Checks whether or not the given Search service name is available for use.
 Search service names must be globally unique since they are part of the
 service URI (https://<name>.search.windows.net).

 @param name [String] The Search service name to validate. Search service
 names must only contain lowercase letters, digits or dashes, cannot use dash
 as the first two or last one characters, cannot contain consecutive dashes,
 and must be between 2 and 60 characters in length.
 @param search_management_request_options [SearchManagementRequestOptions]
 Additional parameters for the operation
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [CheckNameAvailabilityOutput] operation results.