def begin_create_or_update(resource_group_name, domain_name, domain, custom_headers:nil)
      response = begin_create_or_update_async(resource_group_name, domain_name, domain, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
def begin_create_or_update(resource_group_name, domain_name, domain, custom_headers:nil)
      response = begin_create_or_update_async(resource_group_name, domain_name, domain, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
Creates or updates a domain.

 Creates or updates a domain.

 @param resource_group_name [String] Name of the resource group to which the
 resource belongs.
 @param domain_name [String] Name of the domain.
 @param domain [Domain] Domain registration information.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [Domain] operation results.