You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pushes records through the Pipeline, directly to an index. You can make the call synchronous by providing the `watch` parameter, for asynchronous calls, you can use the observability endpoints and/or debugger dashboard to see the status of your task. If you want to leverage the [pre-indexing data transformation](https://www.algolia.com/doc/guides/sending-and-managing-data/send-and-update-your-data/how-to/transform-your-data/), this is the recommended way of ingesting your records. This method is similar to `pushTask`, but requires an `indexName` instead of a `taskID`. If zero or many tasks are found, an error will be returned.
3586
+
3587
+
Required API Key ACLs:
3588
+
- addObject
3589
+
- deleteIndex
3590
+
- editSettings
3591
+
3592
+
:param index_name: Name of the index on which to perform the operation. (required)
3593
+
:type index_name: str
3594
+
:param push_task_payload: (required)
3595
+
:type push_task_payload: PushTaskPayload
3596
+
:param watch: When provided, the push operation will be synchronous and the API will wait for the ingestion to be finished before responding.
3597
+
:type watch: bool
3598
+
: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)
3599
+
:return: Returns the raw algoliasearch 'APIResponse' object.
3600
+
"""
3601
+
3602
+
ifindex_nameisNone:
3603
+
raiseValueError("Parameter `index_name` is required when calling `push`.")
3604
+
3605
+
ifpush_task_payloadisNone:
3606
+
raiseValueError(
3607
+
"Parameter `push_task_payload` is required when calling `push`."
3608
+
)
3609
+
3610
+
_query_parameters: Dict[str, Any] = {}
3611
+
3612
+
ifwatchisnotNone:
3613
+
_query_parameters["watch"] =watch
3614
+
3615
+
_data= {}
3616
+
ifpush_task_payloadisnotNone:
3617
+
_data=push_task_payload
3618
+
3619
+
returnawaitself._transporter.request(
3620
+
verb=Verb.POST,
3621
+
path="/1/push/{indexName}".replace(
3622
+
"{indexName}", quote(str(index_name), safe="")
3623
+
),
3624
+
request_options=self._request_options.merge(
3625
+
query_parameters=_query_parameters,
3626
+
data=dumps(body_serializer(_data)),
3627
+
timeouts={
3628
+
"read": 180000,
3629
+
"write": 180000,
3630
+
"connect": 180000,
3631
+
},
3632
+
user_request_options=request_options,
3633
+
),
3634
+
use_read_transporter=False,
3635
+
)
3636
+
3637
+
asyncdefpush(
3638
+
self,
3639
+
index_name: Annotated[
3640
+
StrictStr,
3641
+
Field(description="Name of the index on which to perform the operation."),
Pushes records through the Pipeline, directly to an index. You can make the call synchronous by providing the `watch` parameter, for asynchronous calls, you can use the observability endpoints and/or debugger dashboard to see the status of your task. If you want to leverage the [pre-indexing data transformation](https://www.algolia.com/doc/guides/sending-and-managing-data/send-and-update-your-data/how-to/transform-your-data/), this is the recommended way of ingesting your records. This method is similar to `pushTask`, but requires an `indexName` instead of a `taskID`. If zero or many tasks are found, an error will be returned.
3654
+
3655
+
Required API Key ACLs:
3656
+
- addObject
3657
+
- deleteIndex
3658
+
- editSettings
3659
+
3660
+
:param index_name: Name of the index on which to perform the operation. (required)
3661
+
:type index_name: str
3662
+
:param push_task_payload: (required)
3663
+
:type push_task_payload: PushTaskPayload
3664
+
:param watch: When provided, the push operation will be synchronous and the API will wait for the ingestion to be finished before responding.
3665
+
:type watch: bool
3666
+
: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)
3667
+
:return: Returns the deserialized response in a 'WatchResponse' result object.
Push a `batch` request payload through the Pipeline. You can check the status of task pushes with the observability endpoints.
3689
+
Pushes records through the Pipeline, directly to an index. You can make the call synchronous by providing the `watch` parameter, for asynchronous calls, you can use the observability endpoints and/or debugger dashboard to see the status of your task. If you want to leverage the [pre-indexing data transformation](https://www.algolia.com/doc/guides/sending-and-managing-data/send-and-update-your-data/how-to/transform-your-data/), this is the recommended way of ingesting your records. This method is similar to `push`, but requires a `taskID` instead of a `indexName`, which is useful when many `destinations` target the same `indexName`.
Push a `batch` request payload through the Pipeline. You can check the status of task pushes with the observability endpoints.
3758
+
Pushes records through the Pipeline, directly to an index. You can make the call synchronous by providing the `watch` parameter, for asynchronous calls, you can use the observability endpoints and/or debugger dashboard to see the status of your task. If you want to leverage the [pre-indexing data transformation](https://www.algolia.com/doc/guides/sending-and-managing-data/send-and-update-your-data/how-to/transform-your-data/), this is the recommended way of ingesting your records. This method is similar to `push`, but requires a `taskID` instead of a `indexName`, which is useful when many `destinations` target the same `indexName`.
3670
3759
3671
3760
Required API Key ACLs:
3672
3761
- addObject
@@ -3675,7 +3764,7 @@ async def push_task(
3675
3764
3676
3765
:param task_id: Unique identifier of a task. (required)
3677
3766
:type task_id: str
3678
-
:param push_task_payload: Request body of a Search API `batch` request that will be pushed in the Connectors pipeline. (required)
3767
+
:param push_task_payload: (required)
3679
3768
:type push_task_payload: PushTaskPayload
3680
3769
:param watch: When provided, the push operation will be synchronous and the API will wait for the ingestion to be finished before responding.
Pushes records through the Pipeline, directly to an index. You can make the call synchronous by providing the `watch` parameter, for asynchronous calls, you can use the observability endpoints and/or debugger dashboard to see the status of your task. If you want to leverage the [pre-indexing data transformation](https://www.algolia.com/doc/guides/sending-and-managing-data/send-and-update-your-data/how-to/transform-your-data/), this is the recommended way of ingesting your records. This method is similar to `pushTask`, but requires an `indexName` instead of a `taskID`. If zero or many tasks are found, an error will be returned.
8583
+
8584
+
Required API Key ACLs:
8585
+
- addObject
8586
+
- deleteIndex
8587
+
- editSettings
8588
+
8589
+
:param index_name: Name of the index on which to perform the operation. (required)
8590
+
:type index_name: str
8591
+
:param push_task_payload: (required)
8592
+
:type push_task_payload: PushTaskPayload
8593
+
:param watch: When provided, the push operation will be synchronous and the API will wait for the ingestion to be finished before responding.
8594
+
:type watch: bool
8595
+
: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)
8596
+
:return: Returns the raw algoliasearch 'APIResponse' object.
8597
+
"""
8598
+
8599
+
ifindex_nameisNone:
8600
+
raiseValueError("Parameter `index_name` is required when calling `push`.")
8601
+
8602
+
ifpush_task_payloadisNone:
8603
+
raiseValueError(
8604
+
"Parameter `push_task_payload` is required when calling `push`."
8605
+
)
8606
+
8607
+
_query_parameters: Dict[str, Any] = {}
8608
+
8609
+
ifwatchisnotNone:
8610
+
_query_parameters["watch"] =watch
8611
+
8612
+
_data= {}
8613
+
ifpush_task_payloadisnotNone:
8614
+
_data=push_task_payload
8615
+
8616
+
returnself._transporter.request(
8617
+
verb=Verb.POST,
8618
+
path="/1/push/{indexName}".replace(
8619
+
"{indexName}", quote(str(index_name), safe="")
8620
+
),
8621
+
request_options=self._request_options.merge(
8622
+
query_parameters=_query_parameters,
8623
+
data=dumps(body_serializer(_data)),
8624
+
timeouts={
8625
+
"read": 180000,
8626
+
"write": 180000,
8627
+
"connect": 180000,
8628
+
},
8629
+
user_request_options=request_options,
8630
+
),
8631
+
use_read_transporter=False,
8632
+
)
8633
+
8634
+
defpush(
8635
+
self,
8636
+
index_name: Annotated[
8637
+
StrictStr,
8638
+
Field(description="Name of the index on which to perform the operation."),
Pushes records through the Pipeline, directly to an index. You can make the call synchronous by providing the `watch` parameter, for asynchronous calls, you can use the observability endpoints and/or debugger dashboard to see the status of your task. If you want to leverage the [pre-indexing data transformation](https://www.algolia.com/doc/guides/sending-and-managing-data/send-and-update-your-data/how-to/transform-your-data/), this is the recommended way of ingesting your records. This method is similar to `pushTask`, but requires an `indexName` instead of a `taskID`. If zero or many tasks are found, an error will be returned.
8651
+
8652
+
Required API Key ACLs:
8653
+
- addObject
8654
+
- deleteIndex
8655
+
- editSettings
8656
+
8657
+
:param index_name: Name of the index on which to perform the operation. (required)
8658
+
:type index_name: str
8659
+
:param push_task_payload: (required)
8660
+
:type push_task_payload: PushTaskPayload
8661
+
:param watch: When provided, the push operation will be synchronous and the API will wait for the ingestion to be finished before responding.
8662
+
:type watch: bool
8663
+
: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)
8664
+
:return: Returns the deserialized response in a 'WatchResponse' result object.
Push a `batch` request payload through the Pipeline. You can check the status of task pushes with the observability endpoints.
8686
+
Pushes records through the Pipeline, directly to an index. You can make the call synchronous by providing the `watch` parameter, for asynchronous calls, you can use the observability endpoints and/or debugger dashboard to see the status of your task. If you want to leverage the [pre-indexing data transformation](https://www.algolia.com/doc/guides/sending-and-managing-data/send-and-update-your-data/how-to/transform-your-data/), this is the recommended way of ingesting your records. This method is similar to `push`, but requires a `taskID` instead of a `indexName`, which is useful when many `destinations` target the same `indexName`.
Push a `batch` request payload through the Pipeline. You can check the status of task pushes with the observability endpoints.
8755
+
Pushes records through the Pipeline, directly to an index. You can make the call synchronous by providing the `watch` parameter, for asynchronous calls, you can use the observability endpoints and/or debugger dashboard to see the status of your task. If you want to leverage the [pre-indexing data transformation](https://www.algolia.com/doc/guides/sending-and-managing-data/send-and-update-your-data/how-to/transform-your-data/), this is the recommended way of ingesting your records. This method is similar to `push`, but requires a `taskID` instead of a `indexName`, which is useful when many `destinations` target the same `indexName`.
8578
8756
8579
8757
Required API Key ACLs:
8580
8758
- addObject
@@ -8583,7 +8761,7 @@ def push_task(
8583
8761
8584
8762
:param task_id: Unique identifier of a task. (required)
8585
8763
:type task_id: str
8586
-
:param push_task_payload: Request body of a Search API `batch` request that will be pushed in the Connectors pipeline. (required)
8764
+
:param push_task_payload: (required)
8587
8765
:type push_task_payload: PushTaskPayload
8588
8766
:param watch: When provided, the push operation will be synchronous and the API will wait for the ingestion to be finished before responding.
0 commit comments