def check_name_availability(resource_group_name, cluster_name, database_name, custom_headers:nil)
      response = check_name_availability_async(resource_group_name, cluster_name, database_name, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
def check_name_availability(resource_group_name, cluster_name, database_name, custom_headers:nil)
      response = check_name_availability_async(resource_group_name, cluster_name, database_name, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
Checks that the database name is valid and is not already in use.

 @param resource_group_name [String] The name of the resource group containing
 the Kusto cluster.
 @param cluster_name [String] The name of the Kusto cluster.
 @param database_name [DatabaseCheckNameRequest] The name of the database.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [CheckNameResult] operation results.