Skip to content

Commit eb68d9b

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add readonly ID of synthetics test steps (#3111)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent a3ea38e commit eb68d9b

File tree

3 files changed

+49
-2
lines changed

3 files changed

+49
-2
lines changed

.generator/schemas/v1/openapi.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14413,6 +14413,11 @@ components:
1441314413
extractedValuesFromScript:
1441414414
description: Generate variables using JavaScript.
1441514415
type: string
14416+
id:
14417+
description: ID of the step.
14418+
example: abc-def-123
14419+
readOnly: true
14420+
type: string
1441614421
isCritical:
1441714422
description: 'Determines whether or not to consider the entire test as failed
1441814423
if this step fails.
@@ -14469,6 +14474,11 @@ components:
1446914474
SyntheticsAPIWaitStep:
1447014475
description: The Wait step used in a Synthetic multi-step API test.
1447114476
properties:
14477+
id:
14478+
description: ID of the step.
14479+
example: abc-def-123
14480+
readOnly: true
14481+
type: string
1447214482
name:
1447314483
description: The name of the step.
1447414484
example: Example step name

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
SyntheticsAPITestStep.JSON_PROPERTY_EXIT_IF_SUCCEED,
2727
SyntheticsAPITestStep.JSON_PROPERTY_EXTRACTED_VALUES,
2828
SyntheticsAPITestStep.JSON_PROPERTY_EXTRACTED_VALUES_FROM_SCRIPT,
29+
SyntheticsAPITestStep.JSON_PROPERTY_ID,
2930
SyntheticsAPITestStep.JSON_PROPERTY_IS_CRITICAL,
3031
SyntheticsAPITestStep.JSON_PROPERTY_NAME,
3132
SyntheticsAPITestStep.JSON_PROPERTY_REQUEST,
@@ -52,6 +53,9 @@ public class SyntheticsAPITestStep {
5253
"extractedValuesFromScript";
5354
private String extractedValuesFromScript;
5455

56+
public static final String JSON_PROPERTY_ID = "id";
57+
private String id;
58+
5559
public static final String JSON_PROPERTY_IS_CRITICAL = "isCritical";
5660
private Boolean isCritical;
5761

@@ -211,6 +215,18 @@ public void setExtractedValuesFromScript(String extractedValuesFromScript) {
211215
this.extractedValuesFromScript = extractedValuesFromScript;
212216
}
213217

218+
/**
219+
* ID of the step.
220+
*
221+
* @return id
222+
*/
223+
@jakarta.annotation.Nullable
224+
@JsonProperty(JSON_PROPERTY_ID)
225+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
226+
public String getId() {
227+
return id;
228+
}
229+
214230
public SyntheticsAPITestStep isCritical(Boolean isCritical) {
215231
this.isCritical = isCritical;
216232
return this;
@@ -382,6 +398,7 @@ public boolean equals(Object o) {
382398
&& Objects.equals(this.extractedValues, syntheticsApiTestStep.extractedValues)
383399
&& Objects.equals(
384400
this.extractedValuesFromScript, syntheticsApiTestStep.extractedValuesFromScript)
401+
&& Objects.equals(this.id, syntheticsApiTestStep.id)
385402
&& Objects.equals(this.isCritical, syntheticsApiTestStep.isCritical)
386403
&& Objects.equals(this.name, syntheticsApiTestStep.name)
387404
&& Objects.equals(this.request, syntheticsApiTestStep.request)
@@ -398,6 +415,7 @@ public int hashCode() {
398415
exitIfSucceed,
399416
extractedValues,
400417
extractedValuesFromScript,
418+
id,
401419
isCritical,
402420
name,
403421
request,
@@ -417,6 +435,7 @@ public String toString() {
417435
sb.append(" extractedValuesFromScript: ")
418436
.append(toIndentedString(extractedValuesFromScript))
419437
.append("\n");
438+
sb.append(" id: ").append(toIndentedString(id)).append("\n");
420439
sb.append(" isCritical: ").append(toIndentedString(isCritical)).append("\n");
421440
sb.append(" name: ").append(toIndentedString(name)).append("\n");
422441
sb.append(" request: ").append(toIndentedString(request)).append("\n");

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

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
/** The Wait step used in a Synthetic multi-step API test. */
2121
@JsonPropertyOrder({
22+
SyntheticsAPIWaitStep.JSON_PROPERTY_ID,
2223
SyntheticsAPIWaitStep.JSON_PROPERTY_NAME,
2324
SyntheticsAPIWaitStep.JSON_PROPERTY_SUBTYPE,
2425
SyntheticsAPIWaitStep.JSON_PROPERTY_VALUE
@@ -27,6 +28,9 @@
2728
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
2829
public class SyntheticsAPIWaitStep {
2930
@JsonIgnore public boolean unparsed = false;
31+
public static final String JSON_PROPERTY_ID = "id";
32+
private String id;
33+
3034
public static final String JSON_PROPERTY_NAME = "name";
3135
private String name;
3236

@@ -50,6 +54,18 @@ public SyntheticsAPIWaitStep(
5054
this.value = value;
5155
}
5256

57+
/**
58+
* ID of the step.
59+
*
60+
* @return id
61+
*/
62+
@jakarta.annotation.Nullable
63+
@JsonProperty(JSON_PROPERTY_ID)
64+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
65+
public String getId() {
66+
return id;
67+
}
68+
5369
public SyntheticsAPIWaitStep name(String name) {
5470
this.name = name;
5571
return this;
@@ -170,21 +186,23 @@ public boolean equals(Object o) {
170186
return false;
171187
}
172188
SyntheticsAPIWaitStep syntheticsApiWaitStep = (SyntheticsAPIWaitStep) o;
173-
return Objects.equals(this.name, syntheticsApiWaitStep.name)
189+
return Objects.equals(this.id, syntheticsApiWaitStep.id)
190+
&& Objects.equals(this.name, syntheticsApiWaitStep.name)
174191
&& Objects.equals(this.subtype, syntheticsApiWaitStep.subtype)
175192
&& Objects.equals(this.value, syntheticsApiWaitStep.value)
176193
&& Objects.equals(this.additionalProperties, syntheticsApiWaitStep.additionalProperties);
177194
}
178195

179196
@Override
180197
public int hashCode() {
181-
return Objects.hash(name, subtype, value, additionalProperties);
198+
return Objects.hash(id, name, subtype, value, additionalProperties);
182199
}
183200

184201
@Override
185202
public String toString() {
186203
StringBuilder sb = new StringBuilder();
187204
sb.append("class SyntheticsAPIWaitStep {\n");
205+
sb.append(" id: ").append(toIndentedString(id)).append("\n");
188206
sb.append(" name: ").append(toIndentedString(name)).append("\n");
189207
sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n");
190208
sb.append(" value: ").append(toIndentedString(value)).append("\n");

0 commit comments

Comments
 (0)