Skip to content

Commit 80b93c7

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit d84b8ea1 of spec repo
1 parent c08b647 commit 80b93c7

File tree

132 files changed

+338
-198
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+338
-198
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-05-27 17:12:14.968856",
8-
"spec_repo_commit": "ed439f7c"
7+
"regenerated": "2025-06-03 09:28:00.570318",
8+
"spec_repo_commit": "d84b8ea1"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-27 17:12:14.988382",
13-
"spec_repo_commit": "ed439f7c"
12+
"regenerated": "2025-06-03 09:28:00.593089",
13+
"spec_repo_commit": "d84b8ea1"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17166,13 +17166,18 @@ components:
1716617166
description: DNS server port to use for DNS tests.
1716717167
type: string
1716817168
files:
17169-
description: Files to be used as part of the request in the test.
17169+
description: Files to be used as part of the request in the test. Only valid
17170+
if `bodyType` is `multipart/form-data`.
1717017171
items:
1717117172
$ref: '#/components/schemas/SyntheticsTestRequestBodyFile'
1717217173
type: array
1717317174
follow_redirects:
1717417175
description: Specifies whether or not the request follows redirects.
1717517176
type: boolean
17177+
form:
17178+
description: Form to be used as part of the request in the test. Only valid
17179+
if `bodyType` is `multipart/form-data`.
17180+
type: object
1717617181
headers:
1717717182
$ref: '#/components/schemas/SyntheticsTestHeaders'
1717817183
host:
@@ -17245,6 +17250,8 @@ components:
1724517250
description: Content of the file.
1724617251
maxLength: 3145728
1724717252
type: string
17253+
encoding:
17254+
$ref: '#/components/schemas/SyntheticsTestRequestBodyFileEncoding'
1724817255
name:
1724917256
description: Name of the file.
1725017257
maxLength: 1500
@@ -17264,6 +17271,13 @@ components:
1726417271
maxLength: 1500
1726517272
type: string
1726617273
type: object
17274+
SyntheticsTestRequestBodyFileEncoding:
17275+
description: Encoding of the file.
17276+
enum:
17277+
- base64
17278+
type: string
17279+
x-enum-varnames:
17280+
- BASE64
1726717281
SyntheticsTestRequestBodyType:
1726817282
description: Type of the request body.
1726917283
enum:

examples/v1/synthetics/UpdateBrowserTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import com.datadog.api.client.v1.model.SyntheticsTestPauseStatus;
3030
import com.datadog.api.client.v1.model.SyntheticsTestRequest;
3131
import com.datadog.api.client.v1.model.SyntheticsTestRequestBodyFile;
32+
import com.datadog.api.client.v1.model.SyntheticsTestRequestBodyFileEncoding;
3233
import com.datadog.api.client.v1.model.SyntheticsTestRequestBodyType;
3334
import com.datadog.api.client.v1.model.SyntheticsTestRequestCertificate;
3435
import com.datadog.api.client.v1.model.SyntheticsTestRequestCertificateItem;
@@ -65,7 +66,10 @@ public static void main(String[] args) {
6566
new SyntheticsTestRequestCertificate()
6667
.cert(new SyntheticsTestRequestCertificateItem())
6768
.key(new SyntheticsTestRequestCertificateItem()))
68-
.files(Collections.singletonList(new SyntheticsTestRequestBodyFile()))
69+
.files(
70+
Collections.singletonList(
71+
new SyntheticsTestRequestBodyFile()
72+
.encoding(SyntheticsTestRequestBodyFileEncoding.BASE64)))
6973
.httpVersion(SyntheticsTestOptionsHTTPVersion.HTTP1)
7074
.proxy(new SyntheticsTestRequestProxy().url("https://example.com"))
7175
.service("Greeter")

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

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
SyntheticsTestRequest.JSON_PROPERTY_DNS_SERVER_PORT,
3434
SyntheticsTestRequest.JSON_PROPERTY_FILES,
3535
SyntheticsTestRequest.JSON_PROPERTY_FOLLOW_REDIRECTS,
36+
SyntheticsTestRequest.JSON_PROPERTY_FORM,
3637
SyntheticsTestRequest.JSON_PROPERTY_HEADERS,
3738
SyntheticsTestRequest.JSON_PROPERTY_HOST,
3839
SyntheticsTestRequest.JSON_PROPERTY_HTTP_VERSION,
@@ -94,6 +95,9 @@ public class SyntheticsTestRequest {
9495
public static final String JSON_PROPERTY_FOLLOW_REDIRECTS = "follow_redirects";
9596
private Boolean followRedirects;
9697

98+
public static final String JSON_PROPERTY_FORM = "form";
99+
private Object form;
100+
97101
public static final String JSON_PROPERTY_HEADERS = "headers";
98102
private Map<String, String> headers = null;
99103

@@ -414,7 +418,8 @@ public SyntheticsTestRequest addFilesItem(SyntheticsTestRequestBodyFile filesIte
414418
}
415419

416420
/**
417-
* Files to be used as part of the request in the test.
421+
* Files to be used as part of the request in the test. Only valid if <code>bodyType</code> is
422+
* <code>multipart/form-data</code>.
418423
*
419424
* @return files
420425
*/
@@ -450,6 +455,28 @@ public void setFollowRedirects(Boolean followRedirects) {
450455
this.followRedirects = followRedirects;
451456
}
452457

458+
public SyntheticsTestRequest form(Object form) {
459+
this.form = form;
460+
return this;
461+
}
462+
463+
/**
464+
* Form to be used as part of the request in the test. Only valid if <code>bodyType</code> is
465+
* <code>multipart/form-data</code>.
466+
*
467+
* @return form
468+
*/
469+
@jakarta.annotation.Nullable
470+
@JsonProperty(JSON_PROPERTY_FORM)
471+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
472+
public Object getForm() {
473+
return form;
474+
}
475+
476+
public void setForm(Object form) {
477+
this.form = form;
478+
}
479+
453480
public SyntheticsTestRequest headers(Map<String, String> headers) {
454481
this.headers = headers;
455482
return this;
@@ -903,6 +930,7 @@ public boolean equals(Object o) {
903930
&& Objects.equals(this.dnsServerPort, syntheticsTestRequest.dnsServerPort)
904931
&& Objects.equals(this.files, syntheticsTestRequest.files)
905932
&& Objects.equals(this.followRedirects, syntheticsTestRequest.followRedirects)
933+
&& Objects.equals(this.form, syntheticsTestRequest.form)
906934
&& Objects.equals(this.headers, syntheticsTestRequest.headers)
907935
&& Objects.equals(this.host, syntheticsTestRequest.host)
908936
&& Objects.equals(this.httpVersion, syntheticsTestRequest.httpVersion)
@@ -939,6 +967,7 @@ public int hashCode() {
939967
dnsServerPort,
940968
files,
941969
followRedirects,
970+
form,
942971
headers,
943972
host,
944973
httpVersion,
@@ -980,6 +1009,7 @@ public String toString() {
9801009
sb.append(" dnsServerPort: ").append(toIndentedString(dnsServerPort)).append("\n");
9811010
sb.append(" files: ").append(toIndentedString(files)).append("\n");
9821011
sb.append(" followRedirects: ").append(toIndentedString(followRedirects)).append("\n");
1012+
sb.append(" form: ").append(toIndentedString(form)).append("\n");
9831013
sb.append(" headers: ").append(toIndentedString(headers)).append("\n");
9841014
sb.append(" host: ").append(toIndentedString(host)).append("\n");
9851015
sb.append(" httpVersion: ").append(toIndentedString(httpVersion)).append("\n");

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

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
@JsonPropertyOrder({
2121
SyntheticsTestRequestBodyFile.JSON_PROPERTY_BUCKET_KEY,
2222
SyntheticsTestRequestBodyFile.JSON_PROPERTY_CONTENT,
23+
SyntheticsTestRequestBodyFile.JSON_PROPERTY_ENCODING,
2324
SyntheticsTestRequestBodyFile.JSON_PROPERTY_NAME,
2425
SyntheticsTestRequestBodyFile.JSON_PROPERTY_ORIGINAL_FILE_NAME,
2526
SyntheticsTestRequestBodyFile.JSON_PROPERTY_SIZE,
@@ -35,6 +36,9 @@ public class SyntheticsTestRequestBodyFile {
3536
public static final String JSON_PROPERTY_CONTENT = "content";
3637
private String content;
3738

39+
public static final String JSON_PROPERTY_ENCODING = "encoding";
40+
private SyntheticsTestRequestBodyFileEncoding encoding;
41+
3842
public static final String JSON_PROPERTY_NAME = "name";
3943
private String name;
4044

@@ -89,6 +93,31 @@ public void setContent(String content) {
8993
this.content = content;
9094
}
9195

96+
public SyntheticsTestRequestBodyFile encoding(SyntheticsTestRequestBodyFileEncoding encoding) {
97+
this.encoding = encoding;
98+
this.unparsed |= !encoding.isValid();
99+
return this;
100+
}
101+
102+
/**
103+
* Encoding of the file.
104+
*
105+
* @return encoding
106+
*/
107+
@jakarta.annotation.Nullable
108+
@JsonProperty(JSON_PROPERTY_ENCODING)
109+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
110+
public SyntheticsTestRequestBodyFileEncoding getEncoding() {
111+
return encoding;
112+
}
113+
114+
public void setEncoding(SyntheticsTestRequestBodyFileEncoding encoding) {
115+
if (!encoding.isValid()) {
116+
this.unparsed = true;
117+
}
118+
this.encoding = encoding;
119+
}
120+
92121
public SyntheticsTestRequestBodyFile name(String name) {
93122
this.name = name;
94123
return this;
@@ -231,6 +260,7 @@ public boolean equals(Object o) {
231260
SyntheticsTestRequestBodyFile syntheticsTestRequestBodyFile = (SyntheticsTestRequestBodyFile) o;
232261
return Objects.equals(this.bucketKey, syntheticsTestRequestBodyFile.bucketKey)
233262
&& Objects.equals(this.content, syntheticsTestRequestBodyFile.content)
263+
&& Objects.equals(this.encoding, syntheticsTestRequestBodyFile.encoding)
234264
&& Objects.equals(this.name, syntheticsTestRequestBodyFile.name)
235265
&& Objects.equals(this.originalFileName, syntheticsTestRequestBodyFile.originalFileName)
236266
&& Objects.equals(this.size, syntheticsTestRequestBodyFile.size)
@@ -242,7 +272,7 @@ public boolean equals(Object o) {
242272
@Override
243273
public int hashCode() {
244274
return Objects.hash(
245-
bucketKey, content, name, originalFileName, size, type, additionalProperties);
275+
bucketKey, content, encoding, name, originalFileName, size, type, additionalProperties);
246276
}
247277

248278
@Override
@@ -251,6 +281,7 @@ public String toString() {
251281
sb.append("class SyntheticsTestRequestBodyFile {\n");
252282
sb.append(" bucketKey: ").append(toIndentedString(bucketKey)).append("\n");
253283
sb.append(" content: ").append(toIndentedString(content)).append("\n");
284+
sb.append(" encoding: ").append(toIndentedString(encoding)).append("\n");
254285
sb.append(" name: ").append(toIndentedString(name)).append("\n");
255286
sb.append(" originalFileName: ").append(toIndentedString(originalFileName)).append("\n");
256287
sb.append(" size: ").append(toIndentedString(size)).append("\n");
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
/*
2+
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
3+
* This product includes software developed at Datadog (https://www.datadoghq.com/).
4+
* Copyright 2019-Present Datadog, Inc.
5+
*/
6+
7+
package com.datadog.api.client.v1.model;
8+
9+
import com.datadog.api.client.ModelEnum;
10+
import com.fasterxml.jackson.annotation.JsonCreator;
11+
import com.fasterxml.jackson.core.JsonGenerator;
12+
import com.fasterxml.jackson.core.JsonProcessingException;
13+
import com.fasterxml.jackson.databind.SerializerProvider;
14+
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
15+
import com.fasterxml.jackson.databind.ser.std.StdSerializer;
16+
import java.io.IOException;
17+
import java.util.Arrays;
18+
import java.util.HashSet;
19+
import java.util.Set;
20+
21+
/** Encoding of the file. */
22+
@JsonSerialize(
23+
using =
24+
SyntheticsTestRequestBodyFileEncoding.SyntheticsTestRequestBodyFileEncodingSerializer.class)
25+
public class SyntheticsTestRequestBodyFileEncoding extends ModelEnum<String> {
26+
27+
private static final Set<String> allowedValues = new HashSet<String>(Arrays.asList("base64"));
28+
29+
public static final SyntheticsTestRequestBodyFileEncoding BASE64 =
30+
new SyntheticsTestRequestBodyFileEncoding("base64");
31+
32+
SyntheticsTestRequestBodyFileEncoding(String value) {
33+
super(value, allowedValues);
34+
}
35+
36+
public static class SyntheticsTestRequestBodyFileEncodingSerializer
37+
extends StdSerializer<SyntheticsTestRequestBodyFileEncoding> {
38+
public SyntheticsTestRequestBodyFileEncodingSerializer(
39+
Class<SyntheticsTestRequestBodyFileEncoding> t) {
40+
super(t);
41+
}
42+
43+
public SyntheticsTestRequestBodyFileEncodingSerializer() {
44+
this(null);
45+
}
46+
47+
@Override
48+
public void serialize(
49+
SyntheticsTestRequestBodyFileEncoding value,
50+
JsonGenerator jgen,
51+
SerializerProvider provider)
52+
throws IOException, JsonProcessingException {
53+
jgen.writeObject(value.value);
54+
}
55+
}
56+
57+
@JsonCreator
58+
public static SyntheticsTestRequestBodyFileEncoding fromValue(String value) {
59+
return new SyntheticsTestRequestBodyFileEncoding(value);
60+
}
61+
}

src/test/resources/cassettes/features/v1/Get_all_hosts_with_metadata_deserializes_successfully.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@
2828
"timeToLive": {
2929
"unlimited": true
3030
},
31-
"id": "d5bade64-6ebb-4f4d-903d-8069b52bb31e"
31+
"id": "d5bade64-6ebb-4f4d-903d-8069b52bb31d"
3232
}
3333
]

src/test/resources/cassettes/features/v1/Get_all_hosts_with_metadata_for_your_organization_returns_OK_response.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@
2828
"timeToLive": {
2929
"unlimited": true
3030
},
31-
"id": "d5bade64-6ebb-4f4d-903d-8069b52bb31d"
31+
"id": "d5bade64-6ebb-4f4d-903d-8069b52bb31e"
3232
}
3333
]

src/test/resources/cassettes/features/v1/Validate_API_key_returns_Forbidden_response.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
"timeToLive": {
2424
"unlimited": true
2525
},
26-
"id": "3f83caea-c405-97df-c554-ee2d9f9e4f02"
26+
"id": "3f83caea-c405-97df-c554-ee2d9f9e4f01"
2727
}
2828
]

src/test/resources/cassettes/features/v1/Validate_API_key_returns_OK_response.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
"timeToLive": {
2424
"unlimited": true
2525
},
26-
"id": "3f83caea-c405-97df-c554-ee2d9f9e4f01"
26+
"id": "3f83caea-c405-97df-c554-ee2d9f9e4f02"
2727
}
2828
]

0 commit comments

Comments
 (0)