@@ -27,6 +27,7 @@ def _get_actor_representation(
27
27
is_anonymously_runnable : Optional [bool ] = None ,
28
28
categories : Optional [List [str ]] = None ,
29
29
default_run_build : Optional [str ] = None ,
30
+ default_run_max_items : Optional [int ] = None ,
30
31
default_run_memory_mbytes : Optional [int ] = None ,
31
32
default_run_timeout_secs : Optional [int ] = None ,
32
33
example_run_input_body : Optional [Any ] = None ,
@@ -46,6 +47,7 @@ def _get_actor_representation(
46
47
'categories' : categories ,
47
48
'defaultRunOptions' : {
48
49
'build' : default_run_build ,
50
+ 'maxItems' : default_run_max_items ,
49
51
'memoryMbytes' : default_run_memory_mbytes ,
50
52
'timeoutSecs' : default_run_timeout_secs ,
51
53
},
@@ -90,6 +92,7 @@ def update(
90
92
is_anonymously_runnable : Optional [bool ] = None ,
91
93
categories : Optional [List [str ]] = None ,
92
94
default_run_build : Optional [str ] = None ,
95
+ default_run_max_items : Optional [int ] = None ,
93
96
default_run_memory_mbytes : Optional [int ] = None ,
94
97
default_run_timeout_secs : Optional [int ] = None ,
95
98
example_run_input_body : Optional [Any ] = None ,
@@ -112,6 +115,8 @@ def update(
112
115
is_anonymously_runnable (bool, optional): Whether the actor is anonymously runnable.
113
116
categories (list of str, optional): The categories to which the actor belongs to.
114
117
default_run_build (str, optional): Tag or number of the build that you want to run by default.
118
+ default_run_max_items (int, optional): Default limit of the number of results that will be returned by runs of this Actor,
119
+ if the Actor is charged per result.
115
120
default_run_memory_mbytes (int, optional): Default amount of memory allocated for the runs of this actor, in megabytes.
116
121
default_run_timeout_secs (int, optional): Default timeout for the runs of this actor in seconds.
117
122
example_run_input_body (Any, optional): Input to be prefilled as default input to new users of this actor.
@@ -133,6 +138,7 @@ def update(
133
138
is_anonymously_runnable = is_anonymously_runnable ,
134
139
categories = categories ,
135
140
default_run_build = default_run_build ,
141
+ default_run_max_items = default_run_max_items ,
136
142
default_run_memory_mbytes = default_run_memory_mbytes ,
137
143
default_run_timeout_secs = default_run_timeout_secs ,
138
144
example_run_input_body = example_run_input_body ,
@@ -154,6 +160,7 @@ def start(
154
160
run_input : Optional [Any ] = None ,
155
161
content_type : Optional [str ] = None ,
156
162
build : Optional [str ] = None ,
163
+ max_items : Optional [int ] = None ,
157
164
memory_mbytes : Optional [int ] = None ,
158
165
timeout_secs : Optional [int ] = None ,
159
166
wait_for_finish : Optional [int ] = None ,
@@ -168,6 +175,8 @@ def start(
168
175
content_type (str, optional): The content type of the input.
169
176
build (str, optional): Specifies the actor build to run. It can be either a build tag or build number.
170
177
By default, the run uses the build specified in the default run configuration for the actor (typically latest).
178
+ max_items (int, optional): Maximum number of results that will be returned by this run.
179
+ If the Actor is charged per result, you will not be charged for more results than the given limit.
171
180
memory_mbytes (int, optional): Memory limit for the run, in megabytes.
172
181
By default, the run uses a memory limit specified in the default run configuration for the actor.
173
182
timeout_secs (int, optional): Optional timeout for the run, in seconds.
@@ -190,6 +199,7 @@ def start(
190
199
191
200
request_params = self ._params (
192
201
build = build ,
202
+ maxItems = max_items ,
193
203
memory = memory_mbytes ,
194
204
timeout = timeout_secs ,
195
205
waitForFinish = wait_for_finish ,
@@ -212,6 +222,7 @@ def call(
212
222
run_input : Optional [Any ] = None ,
213
223
content_type : Optional [str ] = None ,
214
224
build : Optional [str ] = None ,
225
+ max_items : Optional [int ] = None ,
215
226
memory_mbytes : Optional [int ] = None ,
216
227
timeout_secs : Optional [int ] = None ,
217
228
webhooks : Optional [List [Dict ]] = None ,
@@ -228,6 +239,8 @@ def call(
228
239
content_type (str, optional): The content type of the input.
229
240
build (str, optional): Specifies the actor build to run. It can be either a build tag or build number.
230
241
By default, the run uses the build specified in the default run configuration for the actor (typically latest).
242
+ max_items (int, optional): Maximum number of results that will be returned by this run.
243
+ If the Actor is charged per result, you will not be charged for more results than the given limit.
231
244
memory_mbytes (int, optional): Memory limit for the run, in megabytes.
232
245
By default, the run uses a memory limit specified in the default run configuration for the actor.
233
246
timeout_secs (int, optional): Optional timeout for the run, in seconds.
@@ -244,6 +257,7 @@ def call(
244
257
run_input = run_input ,
245
258
content_type = content_type ,
246
259
build = build ,
260
+ max_items = max_items ,
247
261
memory_mbytes = memory_mbytes ,
248
262
timeout_secs = timeout_secs ,
249
263
webhooks = webhooks ,
@@ -378,6 +392,7 @@ async def update(
378
392
is_anonymously_runnable : Optional [bool ] = None ,
379
393
categories : Optional [List [str ]] = None ,
380
394
default_run_build : Optional [str ] = None ,
395
+ default_run_max_items : Optional [int ] = None ,
381
396
default_run_memory_mbytes : Optional [int ] = None ,
382
397
default_run_timeout_secs : Optional [int ] = None ,
383
398
example_run_input_body : Optional [Any ] = None ,
@@ -400,6 +415,8 @@ async def update(
400
415
is_anonymously_runnable (bool, optional): Whether the actor is anonymously runnable.
401
416
categories (list of str, optional): The categories to which the actor belongs to.
402
417
default_run_build (str, optional): Tag or number of the build that you want to run by default.
418
+ default_run_max_items (int, optional): Default limit of the number of results that will be returned by runs of this Actor,
419
+ if the Actor is charged per result.
403
420
default_run_memory_mbytes (int, optional): Default amount of memory allocated for the runs of this actor, in megabytes.
404
421
default_run_timeout_secs (int, optional): Default timeout for the runs of this actor in seconds.
405
422
example_run_input_body (Any, optional): Input to be prefilled as default input to new users of this actor.
@@ -421,6 +438,7 @@ async def update(
421
438
is_anonymously_runnable = is_anonymously_runnable ,
422
439
categories = categories ,
423
440
default_run_build = default_run_build ,
441
+ default_run_max_items = default_run_max_items ,
424
442
default_run_memory_mbytes = default_run_memory_mbytes ,
425
443
default_run_timeout_secs = default_run_timeout_secs ,
426
444
example_run_input_body = example_run_input_body ,
@@ -442,6 +460,7 @@ async def start(
442
460
run_input : Optional [Any ] = None ,
443
461
content_type : Optional [str ] = None ,
444
462
build : Optional [str ] = None ,
463
+ max_items : Optional [int ] = None ,
445
464
memory_mbytes : Optional [int ] = None ,
446
465
timeout_secs : Optional [int ] = None ,
447
466
wait_for_finish : Optional [int ] = None ,
@@ -456,6 +475,8 @@ async def start(
456
475
content_type (str, optional): The content type of the input.
457
476
build (str, optional): Specifies the actor build to run. It can be either a build tag or build number.
458
477
By default, the run uses the build specified in the default run configuration for the actor (typically latest).
478
+ max_items (int, optional): Maximum number of results that will be returned by this run.
479
+ If the Actor is charged per result, you will not be charged for more results than the given limit.
459
480
memory_mbytes (int, optional): Memory limit for the run, in megabytes.
460
481
By default, the run uses a memory limit specified in the default run configuration for the actor.
461
482
timeout_secs (int, optional): Optional timeout for the run, in seconds.
@@ -478,6 +499,7 @@ async def start(
478
499
479
500
request_params = self ._params (
480
501
build = build ,
502
+ maxItems = max_items ,
481
503
memory = memory_mbytes ,
482
504
timeout = timeout_secs ,
483
505
waitForFinish = wait_for_finish ,
@@ -500,6 +522,7 @@ async def call(
500
522
run_input : Optional [Any ] = None ,
501
523
content_type : Optional [str ] = None ,
502
524
build : Optional [str ] = None ,
525
+ max_items : Optional [int ] = None ,
503
526
memory_mbytes : Optional [int ] = None ,
504
527
timeout_secs : Optional [int ] = None ,
505
528
webhooks : Optional [List [Dict ]] = None ,
@@ -516,6 +539,8 @@ async def call(
516
539
content_type (str, optional): The content type of the input.
517
540
build (str, optional): Specifies the actor build to run. It can be either a build tag or build number.
518
541
By default, the run uses the build specified in the default run configuration for the actor (typically latest).
542
+ max_items (int, optional): Maximum number of results that will be returned by this run.
543
+ If the Actor is charged per result, you will not be charged for more results than the given limit.
519
544
memory_mbytes (int, optional): Memory limit for the run, in megabytes.
520
545
By default, the run uses a memory limit specified in the default run configuration for the actor.
521
546
timeout_secs (int, optional): Optional timeout for the run, in seconds.
@@ -532,6 +557,7 @@ async def call(
532
557
run_input = run_input ,
533
558
content_type = content_type ,
534
559
build = build ,
560
+ max_items = max_items ,
535
561
memory_mbytes = memory_mbytes ,
536
562
timeout_secs = timeout_secs ,
537
563
webhooks = webhooks ,
0 commit comments