Skip to content

Commit 51baadf

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit ae32bf6 of spec repo
1 parent d94a680 commit 51baadf

File tree

7 files changed

+536
-30
lines changed

7 files changed

+536
-30
lines changed

.generator/schemas/v1/openapi.yaml

Lines changed: 49 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16568,7 +16568,7 @@ components:
1656816568
tests:
1656916569
description: Array of Synthetic tests configuration.
1657016570
items:
16571-
$ref: '#/components/schemas/SyntheticsTestDetails'
16571+
$ref: '#/components/schemas/SyntheticsTestDetailsWithoutSteps'
1657216572
type: array
1657316573
type: object
1657416574
SyntheticsLocalVariableParsingOptionsType:
@@ -17599,7 +17599,7 @@ components:
1759917599
status:
1760017600
$ref: '#/components/schemas/SyntheticsTestPauseStatus'
1760117601
steps:
17602-
description: For browser test, the steps of the test.
17602+
description: The steps of the test if they exist.
1760317603
items:
1760417604
$ref: '#/components/schemas/SyntheticsStep'
1760517605
type: array
@@ -17651,6 +17651,52 @@ components:
1765117651
- API
1765217652
- BROWSER
1765317653
- MOBILE
17654+
SyntheticsTestDetailsWithoutSteps:
17655+
description: Object containing details about your Synthetic test, without test
17656+
steps.
17657+
properties:
17658+
config:
17659+
$ref: '#/components/schemas/SyntheticsTestConfig'
17660+
creator:
17661+
$ref: '#/components/schemas/Creator'
17662+
locations:
17663+
description: Array of locations used to run the test.
17664+
example:
17665+
- aws:eu-west-3
17666+
items:
17667+
description: A location from which the test was run.
17668+
type: string
17669+
type: array
17670+
message:
17671+
description: Notification message associated with the test.
17672+
type: string
17673+
monitor_id:
17674+
description: The associated monitor ID.
17675+
format: int64
17676+
readOnly: true
17677+
type: integer
17678+
name:
17679+
description: Name of the test.
17680+
type: string
17681+
options:
17682+
$ref: '#/components/schemas/SyntheticsTestOptions'
17683+
public_id:
17684+
description: The test public ID.
17685+
readOnly: true
17686+
type: string
17687+
status:
17688+
$ref: '#/components/schemas/SyntheticsTestPauseStatus'
17689+
subtype:
17690+
$ref: '#/components/schemas/SyntheticsTestDetailsSubType'
17691+
tags:
17692+
description: Array of tags attached to the test.
17693+
items:
17694+
description: A tag attached to the test.
17695+
type: string
17696+
type: array
17697+
type:
17698+
$ref: '#/components/schemas/SyntheticsTestDetailsType'
17699+
type: object
1765417700
SyntheticsTestExecutionRule:
1765517701
description: Execution rule for a Synthetic test.
1765617702
enum:
@@ -35243,7 +35289,7 @@ paths:
3524335289
content:
3524435290
application/json:
3524535291
schema:
35246-
$ref: '#/components/schemas/SyntheticsTestDetails'
35292+
$ref: '#/components/schemas/SyntheticsTestDetailsWithoutSteps'
3524735293
description: OK
3524835294
'403':
3524935295
content:

examples/v1/synthetics/GetTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
import com.datadog.api.client.ApiClient;
44
import com.datadog.api.client.ApiException;
55
import com.datadog.api.client.v1.api.SyntheticsApi;
6-
import com.datadog.api.client.v1.model.SyntheticsTestDetails;
6+
import com.datadog.api.client.v1.model.SyntheticsTestDetailsWithoutSteps;
77

88
public class Example {
99
public static void main(String[] args) {
1010
ApiClient defaultClient = ApiClient.getDefaultApiClient();
1111
SyntheticsApi apiInstance = new SyntheticsApi(defaultClient);
1212

1313
try {
14-
SyntheticsTestDetails result = apiInstance.getTest("public_id");
14+
SyntheticsTestDetailsWithoutSteps result = apiInstance.getTest("public_id");
1515
System.out.println(result);
1616
} catch (ApiException e) {
1717
System.err.println("Exception when calling SyntheticsApi#getTest");

examples/v1/synthetics/ListTests_1938827783.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55
import com.datadog.api.client.PaginationIterable;
66
import com.datadog.api.client.v1.api.SyntheticsApi;
77
import com.datadog.api.client.v1.api.SyntheticsApi.ListTestsOptionalParameters;
8-
import com.datadog.api.client.v1.model.SyntheticsTestDetails;
8+
import com.datadog.api.client.v1.model.SyntheticsTestDetailsWithoutSteps;
99

1010
public class Example {
1111
public static void main(String[] args) {
1212
ApiClient defaultClient = ApiClient.getDefaultApiClient();
1313
SyntheticsApi apiInstance = new SyntheticsApi(defaultClient);
1414

1515
try {
16-
PaginationIterable<SyntheticsTestDetails> iterable =
16+
PaginationIterable<SyntheticsTestDetailsWithoutSteps> iterable =
1717
apiInstance.listTestsWithPagination(new ListTestsOptionalParameters().pageSize(2L));
1818

19-
for (SyntheticsTestDetails item : iterable) {
19+
for (SyntheticsTestDetailsWithoutSteps item : iterable) {
2020
System.out.println(item);
2121
}
2222
} catch (RuntimeException e) {

src/main/java/com/datadog/api/client/v1/api/SyntheticsApi.java

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import com.datadog.api.client.v1.model.SyntheticsPrivateLocation;
2727
import com.datadog.api.client.v1.model.SyntheticsPrivateLocationCreationResponse;
2828
import com.datadog.api.client.v1.model.SyntheticsTestDetails;
29+
import com.datadog.api.client.v1.model.SyntheticsTestDetailsWithoutSteps;
2930
import com.datadog.api.client.v1.model.SyntheticsTestUptime;
3031
import com.datadog.api.client.v1.model.SyntheticsTriggerBody;
3132
import com.datadog.api.client.v1.model.SyntheticsTriggerCITestsResponse;
@@ -3168,10 +3169,10 @@ public ApiResponse<List<String>> getSyntheticsDefaultLocationsWithHttpInfo() thr
31683169
* <p>See {@link #getTestWithHttpInfo}.
31693170
*
31703171
* @param publicId The public ID of the test to get details from. (required)
3171-
* @return SyntheticsTestDetails
3172+
* @return SyntheticsTestDetailsWithoutSteps
31723173
* @throws ApiException if fails to make API call
31733174
*/
3174-
public SyntheticsTestDetails getTest(String publicId) throws ApiException {
3175+
public SyntheticsTestDetailsWithoutSteps getTest(String publicId) throws ApiException {
31753176
return getTestWithHttpInfo(publicId).getData();
31763177
}
31773178

@@ -3181,9 +3182,9 @@ public SyntheticsTestDetails getTest(String publicId) throws ApiException {
31813182
* <p>See {@link #getTestWithHttpInfoAsync}.
31823183
*
31833184
* @param publicId The public ID of the test to get details from. (required)
3184-
* @return CompletableFuture&lt;SyntheticsTestDetails&gt;
3185+
* @return CompletableFuture&lt;SyntheticsTestDetailsWithoutSteps&gt;
31853186
*/
3186-
public CompletableFuture<SyntheticsTestDetails> getTestAsync(String publicId) {
3187+
public CompletableFuture<SyntheticsTestDetailsWithoutSteps> getTestAsync(String publicId) {
31873188
return getTestWithHttpInfoAsync(publicId)
31883189
.thenApply(
31893190
response -> {
@@ -3195,7 +3196,7 @@ public CompletableFuture<SyntheticsTestDetails> getTestAsync(String publicId) {
31953196
* Get the detailed configuration associated with a Synthetic test.
31963197
*
31973198
* @param publicId The public ID of the test to get details from. (required)
3198-
* @return ApiResponse&lt;SyntheticsTestDetails&gt;
3199+
* @return ApiResponse&lt;SyntheticsTestDetailsWithoutSteps&gt;
31993200
* @throws ApiException if fails to make API call
32003201
* @http.response.details
32013202
* <table border="1">
@@ -3207,7 +3208,7 @@ public CompletableFuture<SyntheticsTestDetails> getTestAsync(String publicId) {
32073208
* <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
32083209
* </table>
32093210
*/
3210-
public ApiResponse<SyntheticsTestDetails> getTestWithHttpInfo(String publicId)
3211+
public ApiResponse<SyntheticsTestDetailsWithoutSteps> getTestWithHttpInfo(String publicId)
32113212
throws ApiException {
32123213
Object localVarPostBody = null;
32133214

@@ -3239,7 +3240,7 @@ public ApiResponse<SyntheticsTestDetails> getTestWithHttpInfo(String publicId)
32393240
localVarPostBody,
32403241
new HashMap<String, Object>(),
32413242
false,
3242-
new GenericType<SyntheticsTestDetails>() {});
3243+
new GenericType<SyntheticsTestDetailsWithoutSteps>() {});
32433244
}
32443245

32453246
/**
@@ -3248,15 +3249,16 @@ public ApiResponse<SyntheticsTestDetails> getTestWithHttpInfo(String publicId)
32483249
* <p>See {@link #getTestWithHttpInfo}.
32493250
*
32503251
* @param publicId The public ID of the test to get details from. (required)
3251-
* @return CompletableFuture&lt;ApiResponse&lt;SyntheticsTestDetails&gt;&gt;
3252+
* @return CompletableFuture&lt;ApiResponse&lt;SyntheticsTestDetailsWithoutSteps&gt;&gt;
32523253
*/
3253-
public CompletableFuture<ApiResponse<SyntheticsTestDetails>> getTestWithHttpInfoAsync(
3254+
public CompletableFuture<ApiResponse<SyntheticsTestDetailsWithoutSteps>> getTestWithHttpInfoAsync(
32543255
String publicId) {
32553256
Object localVarPostBody = null;
32563257

32573258
// verify the required parameter 'publicId' is set
32583259
if (publicId == null) {
3259-
CompletableFuture<ApiResponse<SyntheticsTestDetails>> result = new CompletableFuture<>();
3260+
CompletableFuture<ApiResponse<SyntheticsTestDetailsWithoutSteps>> result =
3261+
new CompletableFuture<>();
32603262
result.completeExceptionally(
32613263
new ApiException(400, "Missing the required parameter 'publicId' when calling getTest"));
32623264
return result;
@@ -3280,7 +3282,8 @@ public CompletableFuture<ApiResponse<SyntheticsTestDetails>> getTestWithHttpInfo
32803282
new String[] {"application/json"},
32813283
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
32823284
} catch (ApiException ex) {
3283-
CompletableFuture<ApiResponse<SyntheticsTestDetails>> result = new CompletableFuture<>();
3285+
CompletableFuture<ApiResponse<SyntheticsTestDetailsWithoutSteps>> result =
3286+
new CompletableFuture<>();
32843287
result.completeExceptionally(ex);
32853288
return result;
32863289
}
@@ -3292,7 +3295,7 @@ public CompletableFuture<ApiResponse<SyntheticsTestDetails>> getTestWithHttpInfo
32923295
localVarPostBody,
32933296
new HashMap<String, Object>(),
32943297
false,
3295-
new GenericType<SyntheticsTestDetails>() {});
3298+
new GenericType<SyntheticsTestDetailsWithoutSteps>() {});
32963299
}
32973300

32983301
/**
@@ -3609,9 +3612,9 @@ public CompletableFuture<SyntheticsListTestsResponse> listTestsAsync(
36093612
*
36103613
* <p>See {@link #listTestsWithHttpInfo}.
36113614
*
3612-
* @return PaginationIterable&lt;SyntheticsTestDetails&gt;
3615+
* @return PaginationIterable&lt;SyntheticsTestDetailsWithoutSteps&gt;
36133616
*/
3614-
public PaginationIterable<SyntheticsTestDetails> listTestsWithPagination() {
3617+
public PaginationIterable<SyntheticsTestDetailsWithoutSteps> listTestsWithPagination() {
36153618
ListTestsOptionalParameters parameters = new ListTestsOptionalParameters();
36163619
return listTestsWithPagination(parameters);
36173620
}
@@ -3623,7 +3626,7 @@ public PaginationIterable<SyntheticsTestDetails> listTestsWithPagination() {
36233626
*
36243627
* @return SyntheticsListTestsResponse
36253628
*/
3626-
public PaginationIterable<SyntheticsTestDetails> listTestsWithPagination(
3629+
public PaginationIterable<SyntheticsTestDetailsWithoutSteps> listTestsWithPagination(
36273630
ListTestsOptionalParameters parameters) {
36283631
String resultsPath = "getTests";
36293632
String valueGetterPath = "";

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@
2525
public class SyntheticsListTestsResponse {
2626
@JsonIgnore public boolean unparsed = false;
2727
public static final String JSON_PROPERTY_TESTS = "tests";
28-
private List<SyntheticsTestDetails> tests = null;
28+
private List<SyntheticsTestDetailsWithoutSteps> tests = null;
2929

30-
public SyntheticsListTestsResponse tests(List<SyntheticsTestDetails> tests) {
30+
public SyntheticsListTestsResponse tests(List<SyntheticsTestDetailsWithoutSteps> tests) {
3131
this.tests = tests;
32-
for (SyntheticsTestDetails item : tests) {
32+
for (SyntheticsTestDetailsWithoutSteps item : tests) {
3333
this.unparsed |= item.unparsed;
3434
}
3535
return this;
3636
}
3737

38-
public SyntheticsListTestsResponse addTestsItem(SyntheticsTestDetails testsItem) {
38+
public SyntheticsListTestsResponse addTestsItem(SyntheticsTestDetailsWithoutSteps testsItem) {
3939
if (this.tests == null) {
4040
this.tests = new ArrayList<>();
4141
}
@@ -52,11 +52,11 @@ public SyntheticsListTestsResponse addTestsItem(SyntheticsTestDetails testsItem)
5252
@jakarta.annotation.Nullable
5353
@JsonProperty(JSON_PROPERTY_TESTS)
5454
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
55-
public List<SyntheticsTestDetails> getTests() {
55+
public List<SyntheticsTestDetailsWithoutSteps> getTests() {
5656
return tests;
5757
}
5858

59-
public void setTests(List<SyntheticsTestDetails> tests) {
59+
public void setTests(List<SyntheticsTestDetailsWithoutSteps> tests) {
6060
this.tests = tests;
6161
}
6262

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ public SyntheticsTestDetails addStepsItem(SyntheticsStep stepsItem) {
272272
}
273273

274274
/**
275-
* For browser test, the steps of the test.
275+
* The steps of the test if they exist.
276276
*
277277
* @return steps
278278
*/

0 commit comments

Comments
 (0)