@@ -89,16 +89,16 @@ def create(
8989 Create a Benchmark with a set of Scenarios.
9090
9191 Args:
92- name: The name of the Benchmark. This must be unique .
92+ name: The unique name of the Benchmark.
9393
9494 attribution: Attribution information for the benchmark.
9595
9696 description: Detailed description of the benchmark.
9797
98- metadata: User defined metadata to attach to the benchmark for organization .
98+ metadata: User defined metadata to attach to the benchmark.
9999
100100 required_environment_variables: Environment variables required to run the benchmark. If any required variables
101- are not supplied, the benchmark will fail to start
101+ are not supplied, the benchmark will fail to start.
102102
103103 required_secret_names: Secrets required to run the benchmark with (environment variable name will be
104104 mapped to the your user secret by name). If any of these secrets are not
@@ -177,12 +177,12 @@ def update(
177177 self ,
178178 id : str ,
179179 * ,
180- name : str ,
181180 attribution : Optional [str ] | Omit = omit ,
182181 description : Optional [str ] | Omit = omit ,
183182 metadata : Optional [Dict [str , str ]] | Omit = omit ,
183+ name : Optional [str ] | Omit = omit ,
184184 required_environment_variables : Optional [SequenceNotStr [str ]] | Omit = omit ,
185- required_secret_names : SequenceNotStr [str ] | Omit = omit ,
185+ required_secret_names : Optional [ SequenceNotStr [str ] ] | Omit = omit ,
186186 scenario_ids : Optional [SequenceNotStr [str ]] | Omit = omit ,
187187 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
188188 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -192,26 +192,30 @@ def update(
192192 timeout : float | httpx .Timeout | None | NotGiven = not_given ,
193193 idempotency_key : str | None = None ,
194194 ) -> BenchmarkView :
195- """
196- Update a Benchmark with a set of Scenarios.
195+ """Update a Benchmark.
196+
197+ Fields that are null will preserve the existing value.
198+ Fields that are provided (including empty values) will replace the existing
199+ value entirely.
197200
198201 Args:
199- name: The name of the Benchmark. This must be unique .
202+ attribution: Attribution information for the benchmark. Pass in empty string to clear .
200203
201- attribution: Attribution information for the benchmark.
204+ description: Detailed description of the benchmark. Pass in empty string to clear .
202205
203- description: Detailed description of the benchmark.
206+ metadata: User defined metadata to attach to the benchmark. Pass in empty map to clear .
204207
205- metadata: User defined metadata to attach to the benchmark for organization .
208+ name: The unique name of the Benchmark. Cannot be blank .
206209
207210 required_environment_variables: Environment variables required to run the benchmark. If any required variables
208- are not supplied, the benchmark will fail to start
211+ are not supplied, the benchmark will fail to start. Pass in empty list to clear.
209212
210213 required_secret_names: Secrets required to run the benchmark with (environment variable name will be
211214 mapped to the your user secret by name). If any of these secrets are not
212- provided or the mapping is incorrect, the benchmark will fail to start.
215+ provided or the mapping is incorrect, the benchmark will fail to start. Pass in
216+ empty list to clear.
213217
214- scenario_ids: The Scenario IDs that make up the Benchmark.
218+ scenario_ids: The Scenario IDs that make up the Benchmark. Pass in empty list to clear.
215219
216220 extra_headers: Send extra headers
217221
@@ -229,10 +233,10 @@ def update(
229233 f"/v1/benchmarks/{ id } " ,
230234 body = maybe_transform (
231235 {
232- "name" : name ,
233236 "attribution" : attribution ,
234237 "description" : description ,
235238 "metadata" : metadata ,
239+ "name" : name ,
236240 "required_environment_variables" : required_environment_variables ,
237241 "required_secret_names" : required_secret_names ,
238242 "scenario_ids" : scenario_ids ,
@@ -554,16 +558,16 @@ async def create(
554558 Create a Benchmark with a set of Scenarios.
555559
556560 Args:
557- name: The name of the Benchmark. This must be unique .
561+ name: The unique name of the Benchmark.
558562
559563 attribution: Attribution information for the benchmark.
560564
561565 description: Detailed description of the benchmark.
562566
563- metadata: User defined metadata to attach to the benchmark for organization .
567+ metadata: User defined metadata to attach to the benchmark.
564568
565569 required_environment_variables: Environment variables required to run the benchmark. If any required variables
566- are not supplied, the benchmark will fail to start
570+ are not supplied, the benchmark will fail to start.
567571
568572 required_secret_names: Secrets required to run the benchmark with (environment variable name will be
569573 mapped to the your user secret by name). If any of these secrets are not
@@ -642,12 +646,12 @@ async def update(
642646 self ,
643647 id : str ,
644648 * ,
645- name : str ,
646649 attribution : Optional [str ] | Omit = omit ,
647650 description : Optional [str ] | Omit = omit ,
648651 metadata : Optional [Dict [str , str ]] | Omit = omit ,
652+ name : Optional [str ] | Omit = omit ,
649653 required_environment_variables : Optional [SequenceNotStr [str ]] | Omit = omit ,
650- required_secret_names : SequenceNotStr [str ] | Omit = omit ,
654+ required_secret_names : Optional [ SequenceNotStr [str ] ] | Omit = omit ,
651655 scenario_ids : Optional [SequenceNotStr [str ]] | Omit = omit ,
652656 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
653657 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -657,26 +661,30 @@ async def update(
657661 timeout : float | httpx .Timeout | None | NotGiven = not_given ,
658662 idempotency_key : str | None = None ,
659663 ) -> BenchmarkView :
660- """
661- Update a Benchmark with a set of Scenarios.
664+ """Update a Benchmark.
665+
666+ Fields that are null will preserve the existing value.
667+ Fields that are provided (including empty values) will replace the existing
668+ value entirely.
662669
663670 Args:
664- name: The name of the Benchmark. This must be unique .
671+ attribution: Attribution information for the benchmark. Pass in empty string to clear .
665672
666- attribution: Attribution information for the benchmark.
673+ description: Detailed description of the benchmark. Pass in empty string to clear .
667674
668- description: Detailed description of the benchmark.
675+ metadata: User defined metadata to attach to the benchmark. Pass in empty map to clear .
669676
670- metadata: User defined metadata to attach to the benchmark for organization .
677+ name: The unique name of the Benchmark. Cannot be blank .
671678
672679 required_environment_variables: Environment variables required to run the benchmark. If any required variables
673- are not supplied, the benchmark will fail to start
680+ are not supplied, the benchmark will fail to start. Pass in empty list to clear.
674681
675682 required_secret_names: Secrets required to run the benchmark with (environment variable name will be
676683 mapped to the your user secret by name). If any of these secrets are not
677- provided or the mapping is incorrect, the benchmark will fail to start.
684+ provided or the mapping is incorrect, the benchmark will fail to start. Pass in
685+ empty list to clear.
678686
679- scenario_ids: The Scenario IDs that make up the Benchmark.
687+ scenario_ids: The Scenario IDs that make up the Benchmark. Pass in empty list to clear.
680688
681689 extra_headers: Send extra headers
682690
@@ -694,10 +702,10 @@ async def update(
694702 f"/v1/benchmarks/{ id } " ,
695703 body = await async_maybe_transform (
696704 {
697- "name" : name ,
698705 "attribution" : attribution ,
699706 "description" : description ,
700707 "metadata" : metadata ,
708+ "name" : name ,
701709 "required_environment_variables" : required_environment_variables ,
702710 "required_secret_names" : required_secret_names ,
703711 "scenario_ids" : scenario_ids ,
0 commit comments