Skip to content

Commit 51cf88f

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 851e90a commit 51cf88f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

algoliasearch/Clients/IngestionClient.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1695,6 +1695,7 @@ ListTransformationsResponse ListTransformations(
16951695
/// <param name="indexName">Name of the index on which to perform the operation.</param>
16961696
/// <param name="pushTaskPayload"></param>
16971697
/// <param name="watch">When provided, the push operation will be synchronous and the API will wait for the ingestion to be finished before responding. (optional)</param>
1698+
/// <param name="referenceIndexName">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). (optional)</param>
16981699
/// <param name="options">Add extra http header or query parameters to Algolia.</param>
16991700
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
17001701
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
@@ -1705,6 +1706,7 @@ Task<WatchResponse> PushAsync(
17051706
string indexName,
17061707
PushTaskPayload pushTaskPayload,
17071708
bool? watch = default,
1709+
string referenceIndexName = default,
17081710
RequestOptions options = null,
17091711
CancellationToken cancellationToken = default
17101712
);
@@ -1720,6 +1722,7 @@ Task<WatchResponse> PushAsync(
17201722
/// <param name="indexName">Name of the index on which to perform the operation.</param>
17211723
/// <param name="pushTaskPayload"></param>
17221724
/// <param name="watch">When provided, the push operation will be synchronous and the API will wait for the ingestion to be finished before responding. (optional)</param>
1725+
/// <param name="referenceIndexName">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). (optional)</param>
17231726
/// <param name="options">Add extra http header or query parameters to Algolia.</param>
17241727
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
17251728
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
@@ -1730,6 +1733,7 @@ WatchResponse Push(
17301733
string indexName,
17311734
PushTaskPayload pushTaskPayload,
17321735
bool? watch = default,
1736+
string referenceIndexName = default,
17331737
RequestOptions options = null,
17341738
CancellationToken cancellationToken = default
17351739
);
@@ -4161,6 +4165,7 @@ public async Task<WatchResponse> PushAsync(
41614165
string indexName,
41624166
PushTaskPayload pushTaskPayload,
41634167
bool? watch = default,
4168+
string referenceIndexName = default,
41644169
RequestOptions options = null,
41654170
CancellationToken cancellationToken = default
41664171
)
@@ -4176,6 +4181,7 @@ public async Task<WatchResponse> PushAsync(
41764181
requestOptions.PathParameters.Add("indexName", QueryStringHelper.ParameterToString(indexName));
41774182

41784183
requestOptions.AddQueryParameter("watch", watch);
4184+
requestOptions.AddQueryParameter("referenceIndexName", referenceIndexName);
41794185
requestOptions.Data = pushTaskPayload;
41804186
requestOptions.ReadTimeout ??= TimeSpan.FromMilliseconds(180000);
41814187
requestOptions.WriteTimeout ??= TimeSpan.FromMilliseconds(180000);
@@ -4195,11 +4201,12 @@ public WatchResponse Push(
41954201
string indexName,
41964202
PushTaskPayload pushTaskPayload,
41974203
bool? watch = default,
4204+
string referenceIndexName = default,
41984205
RequestOptions options = null,
41994206
CancellationToken cancellationToken = default
42004207
) =>
42014208
AsyncHelper.RunSync(() =>
4202-
PushAsync(indexName, pushTaskPayload, watch, options, cancellationToken)
4209+
PushAsync(indexName, pushTaskPayload, watch, referenceIndexName, options, cancellationToken)
42034210
);
42044211

42054212
/// <inheritdoc />

0 commit comments

Comments
 (0)