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
:param task_id: Unique identifier of a task. (required)
3930
3932
:type task_id: str
3933
+
:param run_task_payload:
3934
+
:type run_task_payload: RunTaskPayload
3931
3935
: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)
3932
3936
:return: Returns the raw algoliasearch 'APIResponse' object.
3933
3937
"""
3934
3938
3935
3939
iftask_idisNone:
3936
3940
raiseValueError("Parameter `task_id` is required when calling `run_task`.")
3937
3941
3942
+
_data= {}
3943
+
ifrun_task_payloadisnotNone:
3944
+
_data=run_task_payload
3945
+
3938
3946
returnawaitself._transporter.request(
3939
3947
verb=Verb.POST,
3940
3948
path="/2/tasks/{taskID}/run".replace(
3941
3949
"{taskID}", quote(str(task_id), safe="")
3942
3950
),
3943
3951
request_options=self._request_options.merge(
3952
+
data=dumps(body_serializer(_data)),
3944
3953
user_request_options=request_options,
3945
3954
),
3946
3955
use_read_transporter=False,
@@ -3951,6 +3960,7 @@ async def run_task(
3951
3960
task_id: Annotated[
3952
3961
StrictStr, Field(description="Unique identifier of a task.")
:param task_id: Unique identifier of a task. (required)
3965
3975
:type task_id: str
3976
+
:param run_task_payload:
3977
+
:type run_task_payload: RunTaskPayload
3966
3978
: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)
3967
3979
:return: Returns the deserialized response in a 'RunResponse' result object.
:param task_id: Unique identifier of a task. (required)
3989
4004
:type task_id: str
4005
+
:param run_task_payload:
4006
+
:type run_task_payload: RunTaskPayload
3990
4007
: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)
3991
4008
:return: Returns the raw algoliasearch 'APIResponse' object.
:param task_id: Unique identifier of a task. (required)
4029
4052
:type task_id: str
4053
+
:param run_task_payload:
4054
+
:type run_task_payload: RunTaskPayload
4030
4055
: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)
4031
4056
:return: Returns the deserialized response in a 'RunResponse' result object.
:param task_id: Unique identifier of a task. (required)
9003
9031
:type task_id: str
9032
+
:param run_task_payload:
9033
+
:type run_task_payload: RunTaskPayload
9004
9034
: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)
9005
9035
:return: Returns the raw algoliasearch 'APIResponse' object.
9006
9036
"""
9007
9037
9008
9038
iftask_idisNone:
9009
9039
raiseValueError("Parameter `task_id` is required when calling `run_task`.")
9010
9040
9041
+
_data= {}
9042
+
ifrun_task_payloadisnotNone:
9043
+
_data=run_task_payload
9044
+
9011
9045
returnself._transporter.request(
9012
9046
verb=Verb.POST,
9013
9047
path="/2/tasks/{taskID}/run".replace(
9014
9048
"{taskID}", quote(str(task_id), safe="")
9015
9049
),
9016
9050
request_options=self._request_options.merge(
9051
+
data=dumps(body_serializer(_data)),
9017
9052
user_request_options=request_options,
9018
9053
),
9019
9054
use_read_transporter=False,
@@ -9024,6 +9059,7 @@ def run_task(
9024
9059
task_id: Annotated[
9025
9060
StrictStr, Field(description="Unique identifier of a task.")
:param task_id: Unique identifier of a task. (required)
9038
9074
:type task_id: str
9075
+
:param run_task_payload:
9076
+
:type run_task_payload: RunTaskPayload
9039
9077
: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)
9040
9078
:return: Returns the deserialized response in a 'RunResponse' result object.
:param task_id: Unique identifier of a task. (required)
9062
9101
:type task_id: str
9102
+
:param run_task_payload:
9103
+
:type run_task_payload: RunTaskPayload
9063
9104
: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)
9064
9105
:return: Returns the raw algoliasearch 'APIResponse' object.
:param task_id: Unique identifier of a task. (required)
9102
9149
:type task_id: str
9150
+
:param run_task_payload:
9151
+
:type run_task_payload: RunTaskPayload
9103
9152
: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)
9104
9153
:return: Returns the deserialized response in a 'RunResponse' result object.
Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
5
+
"""
6
+
7
+
from __future__ importannotations
8
+
9
+
fromjsonimportloads
10
+
fromsysimportversion_info
11
+
fromtypingimportAny, Dict, Optional
12
+
13
+
frompydanticimportBaseModel, ConfigDict
14
+
15
+
ifversion_info>= (3, 11):
16
+
fromtypingimportSelf
17
+
else:
18
+
fromtyping_extensionsimportSelf
19
+
20
+
21
+
_ALIASES= {
22
+
"run_metadata": "runMetadata",
23
+
}
24
+
25
+
26
+
def_alias_generator(name: str) ->str:
27
+
return_ALIASES.get(name, name)
28
+
29
+
30
+
classRunTaskPayload(BaseModel):
31
+
"""
32
+
RunTaskPayload
33
+
"""
34
+
35
+
run_metadata: Optional[Dict[str, object]] =None
36
+
""" Additional information that will be passed to the created run. """
0 commit comments