3636from ..._base_client import AsyncPaginator , make_request_options
3737from ...types .benchmark_view import BenchmarkView
3838from ...types .benchmark_run_view import BenchmarkRunView
39+ from ...types .shared_params .run_profile import RunProfile
3940from ...types .scenario_definition_list_view import ScenarioDefinitionListView
4041
4142__all__ = ["BenchmarksResource" , "AsyncBenchmarksResource" ]
@@ -69,6 +70,8 @@ def create(
6970 self ,
7071 * ,
7172 name : str ,
73+ attribution : Optional [str ] | NotGiven = NOT_GIVEN ,
74+ description : Optional [str ] | NotGiven = NOT_GIVEN ,
7275 metadata : Optional [Dict [str , str ]] | NotGiven = NOT_GIVEN ,
7376 required_environment_variables : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
7477 required_secret_names : List [str ] | NotGiven = NOT_GIVEN ,
@@ -87,6 +90,10 @@ def create(
8790 Args:
8891 name: The name of the Benchmark. This must be unique.
8992
93+ attribution: Attribution information for the benchmark.
94+
95+ description: Detailed description of the benchmark.
96+
9097 metadata: User defined metadata to attach to the benchmark for organization.
9198
9299 required_environment_variables: Environment variables required to run the benchmark. If any required variables
@@ -113,6 +120,8 @@ def create(
113120 body = maybe_transform (
114121 {
115122 "name" : name ,
123+ "attribution" : attribution ,
124+ "description" : description ,
116125 "metadata" : metadata ,
117126 "required_environment_variables" : required_environment_variables ,
118127 "required_secret_names" : required_secret_names ,
@@ -168,6 +177,8 @@ def update(
168177 id : str ,
169178 * ,
170179 name : str ,
180+ attribution : Optional [str ] | NotGiven = NOT_GIVEN ,
181+ description : Optional [str ] | NotGiven = NOT_GIVEN ,
171182 metadata : Optional [Dict [str , str ]] | NotGiven = NOT_GIVEN ,
172183 required_environment_variables : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
173184 required_secret_names : List [str ] | NotGiven = NOT_GIVEN ,
@@ -186,6 +197,10 @@ def update(
186197 Args:
187198 name: The name of the Benchmark. This must be unique.
188199
200+ attribution: Attribution information for the benchmark.
201+
202+ description: Detailed description of the benchmark.
203+
189204 metadata: User defined metadata to attach to the benchmark for organization.
190205
191206 required_environment_variables: Environment variables required to run the benchmark. If any required variables
@@ -214,6 +229,8 @@ def update(
214229 body = maybe_transform (
215230 {
216231 "name" : name ,
232+ "attribution" : attribution ,
233+ "description" : description ,
217234 "metadata" : metadata ,
218235 "required_environment_variables" : required_environment_variables ,
219236 "required_secret_names" : required_secret_names ,
@@ -380,7 +397,7 @@ def start_run(
380397 benchmark_id : str ,
381398 metadata : Optional [Dict [str , str ]] | NotGiven = NOT_GIVEN ,
382399 run_name : Optional [str ] | NotGiven = NOT_GIVEN ,
383- run_profile : Optional [benchmark_start_run_params . RunProfile ] | NotGiven = NOT_GIVEN ,
400+ run_profile : Optional [RunProfile ] | NotGiven = NOT_GIVEN ,
384401 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
385402 # The extra values given here take precedence over values defined on the client or passed to this method.
386403 extra_headers : Headers | None = None ,
@@ -461,6 +478,8 @@ async def create(
461478 self ,
462479 * ,
463480 name : str ,
481+ attribution : Optional [str ] | NotGiven = NOT_GIVEN ,
482+ description : Optional [str ] | NotGiven = NOT_GIVEN ,
464483 metadata : Optional [Dict [str , str ]] | NotGiven = NOT_GIVEN ,
465484 required_environment_variables : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
466485 required_secret_names : List [str ] | NotGiven = NOT_GIVEN ,
@@ -479,6 +498,10 @@ async def create(
479498 Args:
480499 name: The name of the Benchmark. This must be unique.
481500
501+ attribution: Attribution information for the benchmark.
502+
503+ description: Detailed description of the benchmark.
504+
482505 metadata: User defined metadata to attach to the benchmark for organization.
483506
484507 required_environment_variables: Environment variables required to run the benchmark. If any required variables
@@ -505,6 +528,8 @@ async def create(
505528 body = await async_maybe_transform (
506529 {
507530 "name" : name ,
531+ "attribution" : attribution ,
532+ "description" : description ,
508533 "metadata" : metadata ,
509534 "required_environment_variables" : required_environment_variables ,
510535 "required_secret_names" : required_secret_names ,
@@ -560,6 +585,8 @@ async def update(
560585 id : str ,
561586 * ,
562587 name : str ,
588+ attribution : Optional [str ] | NotGiven = NOT_GIVEN ,
589+ description : Optional [str ] | NotGiven = NOT_GIVEN ,
563590 metadata : Optional [Dict [str , str ]] | NotGiven = NOT_GIVEN ,
564591 required_environment_variables : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
565592 required_secret_names : List [str ] | NotGiven = NOT_GIVEN ,
@@ -578,6 +605,10 @@ async def update(
578605 Args:
579606 name: The name of the Benchmark. This must be unique.
580607
608+ attribution: Attribution information for the benchmark.
609+
610+ description: Detailed description of the benchmark.
611+
581612 metadata: User defined metadata to attach to the benchmark for organization.
582613
583614 required_environment_variables: Environment variables required to run the benchmark. If any required variables
@@ -606,6 +637,8 @@ async def update(
606637 body = await async_maybe_transform (
607638 {
608639 "name" : name ,
640+ "attribution" : attribution ,
641+ "description" : description ,
609642 "metadata" : metadata ,
610643 "required_environment_variables" : required_environment_variables ,
611644 "required_secret_names" : required_secret_names ,
@@ -772,7 +805,7 @@ async def start_run(
772805 benchmark_id : str ,
773806 metadata : Optional [Dict [str , str ]] | NotGiven = NOT_GIVEN ,
774807 run_name : Optional [str ] | NotGiven = NOT_GIVEN ,
775- run_profile : Optional [benchmark_start_run_params . RunProfile ] | NotGiven = NOT_GIVEN ,
808+ run_profile : Optional [RunProfile ] | NotGiven = NOT_GIVEN ,
776809 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
777810 # The extra values given here take precedence over values defined on the client or passed to this method.
778811 extra_headers : Headers | None = None ,
0 commit comments