Skip to content

Commit 3fa1b4e

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 9757e1ea of spec repo (#2898)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent a943dee commit 3fa1b4e

File tree

3 files changed

+52
-6
lines changed

3 files changed

+52
-6
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-06-13 12:53:06.954047",
8-
"spec_repo_commit": "a4fc362f"
7+
"regenerated": "2025-06-13 13:39:03.944745",
8+
"spec_repo_commit": "9757e1ea"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-13 12:53:06.969962",
13-
"spec_repo_commit": "a4fc362f"
12+
"regenerated": "2025-06-13 13:39:03.961911",
13+
"spec_repo_commit": "9757e1ea"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17207,13 +17207,21 @@ components:
1720717207
description: DNS server port to use for DNS tests.
1720817208
type: string
1720917209
files:
17210-
description: Files to be used as part of the request in the test.
17210+
description: Files to be used as part of the request in the test. Only valid
17211+
if `bodyType` is `multipart/form-data`.
1721117212
items:
1721217213
$ref: '#/components/schemas/SyntheticsTestRequestBodyFile'
1721317214
type: array
1721417215
follow_redirects:
1721517216
description: Specifies whether or not the request follows redirects.
1721617217
type: boolean
17218+
form:
17219+
additionalProperties:
17220+
description: A single form entry.
17221+
type: string
17222+
description: Form to be used as part of the request in the test. Only valid
17223+
if `bodyType` is `multipart/form-data`.
17224+
type: object
1721717225
headers:
1721817226
$ref: '#/components/schemas/SyntheticsTestHeaders'
1721917227
host:

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

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
SyntheticsTestRequest.JSON_PROPERTY_DNS_SERVER_PORT,
3535
SyntheticsTestRequest.JSON_PROPERTY_FILES,
3636
SyntheticsTestRequest.JSON_PROPERTY_FOLLOW_REDIRECTS,
37+
SyntheticsTestRequest.JSON_PROPERTY_FORM,
3738
SyntheticsTestRequest.JSON_PROPERTY_HEADERS,
3839
SyntheticsTestRequest.JSON_PROPERTY_HOST,
3940
SyntheticsTestRequest.JSON_PROPERTY_HTTP_VERSION,
@@ -100,6 +101,9 @@ public class SyntheticsTestRequest {
100101
public static final String JSON_PROPERTY_FOLLOW_REDIRECTS = "follow_redirects";
101102
private Boolean followRedirects;
102103

104+
public static final String JSON_PROPERTY_FORM = "form";
105+
private Map<String, String> form = null;
106+
103107
public static final String JSON_PROPERTY_HEADERS = "headers";
104108
private Map<String, String> headers = null;
105109

@@ -444,7 +448,8 @@ public SyntheticsTestRequest addFilesItem(SyntheticsTestRequestBodyFile filesIte
444448
}
445449

446450
/**
447-
* Files to be used as part of the request in the test.
451+
* Files to be used as part of the request in the test. Only valid if <code>bodyType</code> is
452+
* <code>multipart/form-data</code>.
448453
*
449454
* @return files
450455
*/
@@ -480,6 +485,36 @@ public void setFollowRedirects(Boolean followRedirects) {
480485
this.followRedirects = followRedirects;
481486
}
482487

488+
public SyntheticsTestRequest form(Map<String, String> form) {
489+
this.form = form;
490+
return this;
491+
}
492+
493+
public SyntheticsTestRequest putFormItem(String key, String formItem) {
494+
if (this.form == null) {
495+
this.form = new HashMap<>();
496+
}
497+
this.form.put(key, formItem);
498+
return this;
499+
}
500+
501+
/**
502+
* Form to be used as part of the request in the test. Only valid if <code>bodyType</code> is
503+
* <code>multipart/form-data</code>.
504+
*
505+
* @return form
506+
*/
507+
@jakarta.annotation.Nullable
508+
@JsonProperty(JSON_PROPERTY_FORM)
509+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
510+
public Map<String, String> getForm() {
511+
return form;
512+
}
513+
514+
public void setForm(Map<String, String> form) {
515+
this.form = form;
516+
}
517+
483518
public SyntheticsTestRequest headers(Map<String, String> headers) {
484519
this.headers = headers;
485520
return this;
@@ -956,6 +991,7 @@ public boolean equals(Object o) {
956991
&& Objects.equals(this.dnsServerPort, syntheticsTestRequest.dnsServerPort)
957992
&& Objects.equals(this.files, syntheticsTestRequest.files)
958993
&& Objects.equals(this.followRedirects, syntheticsTestRequest.followRedirects)
994+
&& Objects.equals(this.form, syntheticsTestRequest.form)
959995
&& Objects.equals(this.headers, syntheticsTestRequest.headers)
960996
&& Objects.equals(this.host, syntheticsTestRequest.host)
961997
&& Objects.equals(this.httpVersion, syntheticsTestRequest.httpVersion)
@@ -994,6 +1030,7 @@ public int hashCode() {
9941030
dnsServerPort,
9951031
files,
9961032
followRedirects,
1033+
form,
9971034
headers,
9981035
host,
9991036
httpVersion,
@@ -1039,6 +1076,7 @@ public String toString() {
10391076
sb.append(" dnsServerPort: ").append(toIndentedString(dnsServerPort)).append("\n");
10401077
sb.append(" files: ").append(toIndentedString(files)).append("\n");
10411078
sb.append(" followRedirects: ").append(toIndentedString(followRedirects)).append("\n");
1079+
sb.append(" form: ").append(toIndentedString(form)).append("\n");
10421080
sb.append(" headers: ").append(toIndentedString(headers)).append("\n");
10431081
sb.append(" host: ").append(toIndentedString(host)).append("\n");
10441082
sb.append(" httpVersion: ").append(toIndentedString(httpVersion)).append("\n");

0 commit comments

Comments
 (0)