Skip to content

Commit 3097f4a

Browse files
feat(specs): add new ingestion property for push (generated)
algolia/api-clients-automation#5007 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 5572548 commit 3097f4a

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

lib/algolia/api/ingestion_client.rb

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2147,9 +2147,16 @@ def list_transformations(items_per_page = nil, page = nil, sort = nil, order = n
21472147
# @param index_name [String] Name of the index on which to perform the operation. (required)
21482148
# @param push_task_payload [PushTaskPayload] (required)
21492149
# @param watch [Boolean] When provided, the push operation will be synchronous and the API will wait for the ingestion to be finished before responding.
2150+
# @param reference_index_name [String] This is required when targeting an index that does not have a push connector setup (e.g. a tmp index), but you wish to attach another index's transformation to it (e.g. the source index name).
21502151
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
21512152
# @return [Http::Response] the response
2152-
def push_with_http_info(index_name, push_task_payload, watch = nil, request_options = {})
2153+
def push_with_http_info(
2154+
index_name,
2155+
push_task_payload,
2156+
watch = nil,
2157+
reference_index_name = nil,
2158+
request_options = {}
2159+
)
21532160
# verify the required parameter 'index_name' is set
21542161
if @api_client.config.client_side_validation && index_name.nil?
21552162
raise ArgumentError, "Parameter `index_name` is required when calling `push`."
@@ -2162,6 +2169,7 @@ def push_with_http_info(index_name, push_task_payload, watch = nil, request_opti
21622169
path = "/1/push/{indexName}".sub("{" + "indexName" + "}", Transport.encode_uri(index_name.to_s))
21632170
query_params = {}
21642171
query_params[:watch] = watch unless watch.nil?
2172+
query_params[:referenceIndexName] = reference_index_name unless reference_index_name.nil?
21652173
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
21662174
header_params = {}
21672175
header_params = header_params.merge(request_options[:header_params]) unless request_options[:header_params].nil?
@@ -2190,10 +2198,11 @@ def push_with_http_info(index_name, push_task_payload, watch = nil, request_opti
21902198
# @param index_name [String] Name of the index on which to perform the operation. (required)
21912199
# @param push_task_payload [PushTaskPayload] (required)
21922200
# @param watch [Boolean] When provided, the push operation will be synchronous and the API will wait for the ingestion to be finished before responding.
2201+
# @param reference_index_name [String] This is required when targeting an index that does not have a push connector setup (e.g. a tmp index), but you wish to attach another index's transformation to it (e.g. the source index name).
21932202
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
21942203
# @return [WatchResponse]
2195-
def push(index_name, push_task_payload, watch = nil, request_options = {})
2196-
response = push_with_http_info(index_name, push_task_payload, watch, request_options)
2204+
def push(index_name, push_task_payload, watch = nil, reference_index_name = nil, request_options = {})
2205+
response = push_with_http_info(index_name, push_task_payload, watch, reference_index_name, request_options)
21972206
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Ingestion::WatchResponse")
21982207
end
21992208

0 commit comments

Comments
 (0)