Skip to content

Commit bd1bb63

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 58c7d55 of spec repo
1 parent 74f82c0 commit bd1bb63

File tree

4 files changed

+37
-3
lines changed

4 files changed

+37
-3
lines changed

.generator/schemas/v1/openapi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18642,6 +18642,10 @@ components:
1864218642
description: Content of the file.
1864318643
maxLength: 3145728
1864418644
type: string
18645+
encoding:
18646+
description: Encoding of the file content. The only supported value is `base64`,
18647+
indicating the `content` field contains base64-encoded data.
18648+
type: string
1864518649
name:
1864618650
description: Name of the file.
1864718651
maxLength: 1500

examples/v1/synthetics/CreateSyntheticsAPITest_1241981394.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ public static void main(String[] args) {
116116
.name("file name")
117117
.originalFileName("image.png")
118118
.content("file content")
119-
.type("file type")))
119+
.type("file type")
120+
.encoding("base64")))
120121
.basicAuth(
121122
new SyntheticsBasicAuth(
122123
new SyntheticsBasicAuthOauthClient()

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

Lines changed: 29 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 String encoding;
41+
3842
public static final String JSON_PROPERTY_NAME = "name";
3943
private String name;
4044

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

96+
public SyntheticsTestRequestBodyFile encoding(String encoding) {
97+
this.encoding = encoding;
98+
return this;
99+
}
100+
101+
/**
102+
* Encoding of the file content. The only supported value is <code>base64</code>, indicating the
103+
* <code>content</code> field contains base64-encoded data.
104+
*
105+
* @return encoding
106+
*/
107+
@jakarta.annotation.Nullable
108+
@JsonProperty(JSON_PROPERTY_ENCODING)
109+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
110+
public String getEncoding() {
111+
return encoding;
112+
}
113+
114+
public void setEncoding(String encoding) {
115+
this.encoding = encoding;
116+
}
117+
92118
public SyntheticsTestRequestBodyFile name(String name) {
93119
this.name = name;
94120
return this;
@@ -231,6 +257,7 @@ public boolean equals(Object o) {
231257
SyntheticsTestRequestBodyFile syntheticsTestRequestBodyFile = (SyntheticsTestRequestBodyFile) o;
232258
return Objects.equals(this.bucketKey, syntheticsTestRequestBodyFile.bucketKey)
233259
&& Objects.equals(this.content, syntheticsTestRequestBodyFile.content)
260+
&& Objects.equals(this.encoding, syntheticsTestRequestBodyFile.encoding)
234261
&& Objects.equals(this.name, syntheticsTestRequestBodyFile.name)
235262
&& Objects.equals(this.originalFileName, syntheticsTestRequestBodyFile.originalFileName)
236263
&& Objects.equals(this.size, syntheticsTestRequestBodyFile.size)
@@ -242,7 +269,7 @@ public boolean equals(Object o) {
242269
@Override
243270
public int hashCode() {
244271
return Objects.hash(
245-
bucketKey, content, name, originalFileName, size, type, additionalProperties);
272+
bucketKey, content, encoding, name, originalFileName, size, type, additionalProperties);
246273
}
247274

248275
@Override
@@ -251,6 +278,7 @@ public String toString() {
251278
sb.append("class SyntheticsTestRequestBodyFile {\n");
252279
sb.append(" bucketKey: ").append(toIndentedString(bucketKey)).append("\n");
253280
sb.append(" content: ").append(toIndentedString(content)).append("\n");
281+
sb.append(" encoding: ").append(toIndentedString(encoding)).append("\n");
254282
sb.append(" name: ").append(toIndentedString(name)).append("\n");
255283
sb.append(" originalFileName: ").append(toIndentedString(originalFileName)).append("\n");
256284
sb.append(" size: ").append(toIndentedString(size)).append("\n");

src/test/resources/com/datadog/api/client/v1/api/synthetics_api_http_test_with_file_payload.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@
6161
"name": "file name",
6262
"originalFileName": "image.png",
6363
"content": "file content",
64-
"type": "file type"
64+
"type": "file type",
65+
"encoding": "base64"
6566
}],
6667
"basicAuth": {
6768
"accessTokenUrl": "https://datadog-token.com",

0 commit comments

Comments
 (0)