def begin_create_or_update(resource_group_name, search_service_name, service, search_management_request_options:nil, custom_headers:nil)
      response = begin_create_or_update_async(resource_group_name, search_service_name, service, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
def begin_create_or_update(resource_group_name, search_service_name, service, search_management_request_options:nil, custom_headers:nil)
      response = begin_create_or_update_async(resource_group_name, search_service_name, service, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
Creates or updates a Search service in the given resource group. If the
 Search service already exists, all properties will be updated with the given
 values.

 @param resource_group_name [String] The name of the resource group within the
 current subscription. You can obtain this value from the Azure Resource
 Manager API or the portal.
 @param search_service_name [String] The name of the Azure Search service to
 create or update. 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. Search service names must be globally unique since they are part of
 the service URI (https://<name>.search.windows.net). You cannot change the
 service name after the service is created.
 @param service [SearchService] The definition of the Search service to create
 or update.
 @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 [SearchService] operation results.