Skip to content

Commit 33b7971

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add version parameter to synthetic test trigger ci endpoint (#3079)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 2a3ad86 commit 33b7971

File tree

3 files changed

+35
-3
lines changed

3 files changed

+35
-3
lines changed

.generated-info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"spec_repo_commit": "335aa67",
3-
"generated": "2025-08-27 07:15:04.558"
2+
"spec_repo_commit": "98e3371",
3+
"generated": "2025-08-27 08:46:33.176"
44
}

.generator/schemas/v1/openapi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15696,6 +15696,10 @@ components:
1569615696
type: string
1569715697
description: Variables to replace in the test.
1569815698
type: object
15699+
version:
15700+
description: The version number of the Synthetic test version to trigger.
15701+
format: int64
15702+
type: integer
1569915703
required:
1570015704
- public_id
1570115705
type: object

src/main/java/com/datadog/api/client/v1/model/SyntheticsCITest.java

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
SyntheticsCITest.JSON_PROPERTY_PUBLIC_ID,
3535
SyntheticsCITest.JSON_PROPERTY_RETRY,
3636
SyntheticsCITest.JSON_PROPERTY_START_URL,
37-
SyntheticsCITest.JSON_PROPERTY_VARIABLES
37+
SyntheticsCITest.JSON_PROPERTY_VARIABLES,
38+
SyntheticsCITest.JSON_PROPERTY_VERSION
3839
})
3940
@jakarta.annotation.Generated(
4041
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
@@ -83,6 +84,9 @@ public class SyntheticsCITest {
8384
public static final String JSON_PROPERTY_VARIABLES = "variables";
8485
private Map<String, String> variables = null;
8586

87+
public static final String JSON_PROPERTY_VERSION = "version";
88+
private Long version;
89+
8690
public SyntheticsCITest() {}
8791

8892
@JsonCreator
@@ -419,6 +423,27 @@ public void setVariables(Map<String, String> variables) {
419423
this.variables = variables;
420424
}
421425

426+
public SyntheticsCITest version(Long version) {
427+
this.version = version;
428+
return this;
429+
}
430+
431+
/**
432+
* The version number of the Synthetic test version to trigger.
433+
*
434+
* @return version
435+
*/
436+
@jakarta.annotation.Nullable
437+
@JsonProperty(JSON_PROPERTY_VERSION)
438+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
439+
public Long getVersion() {
440+
return version;
441+
}
442+
443+
public void setVersion(Long version) {
444+
this.version = version;
445+
}
446+
422447
/**
423448
* A container for additional, undeclared properties. This is a holder for any undeclared
424449
* properties as specified with the 'additionalProperties' keyword in the OAS document.
@@ -490,6 +515,7 @@ public boolean equals(Object o) {
490515
&& Objects.equals(this.retry, syntheticsCiTest.retry)
491516
&& Objects.equals(this.startUrl, syntheticsCiTest.startUrl)
492517
&& Objects.equals(this.variables, syntheticsCiTest.variables)
518+
&& Objects.equals(this.version, syntheticsCiTest.version)
493519
&& Objects.equals(this.additionalProperties, syntheticsCiTest.additionalProperties);
494520
}
495521

@@ -510,6 +536,7 @@ public int hashCode() {
510536
retry,
511537
startUrl,
512538
variables,
539+
version,
513540
additionalProperties);
514541
}
515542

@@ -533,6 +560,7 @@ public String toString() {
533560
sb.append(" retry: ").append(toIndentedString(retry)).append("\n");
534561
sb.append(" startUrl: ").append(toIndentedString(startUrl)).append("\n");
535562
sb.append(" variables: ").append(toIndentedString(variables)).append("\n");
563+
sb.append(" version: ").append(toIndentedString(version)).append("\n");
536564
sb.append(" additionalProperties: ")
537565
.append(toIndentedString(additionalProperties))
538566
.append("\n");

0 commit comments

Comments
 (0)