Skip to content

Commit 2403ebe

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 5e0396ec of spec repo
1 parent 5a85097 commit 2403ebe

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-03 09:24:13.392752",
8-
"spec_repo_commit": "5906d277"
7+
"regenerated": "2025-06-04 09:15:05.351091",
8+
"spec_repo_commit": "5e0396ec"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-03 09:24:13.409905",
13-
"spec_repo_commit": "5906d277"
12+
"regenerated": "2025-06-04 09:15:05.366966",
13+
"spec_repo_commit": "5e0396ec"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17166,13 +17166,21 @@ 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+
additionalProperties:
17179+
description: A single form entry.
17180+
type: string
17181+
description: Form to be used as part of the request in the test. Only valid
17182+
if `bodyType` is `multipart/form-data`.
17183+
type: object
1717617184
headers:
1717717185
$ref: '#/components/schemas/SyntheticsTestHeaders'
1717817186
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
@@ -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 Map<String, String> form = null;
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,36 @@ public void setFollowRedirects(Boolean followRedirects) {
450455
this.followRedirects = followRedirects;
451456
}
452457

458+
public SyntheticsTestRequest form(Map<String, String> form) {
459+
this.form = form;
460+
return this;
461+
}
462+
463+
public SyntheticsTestRequest putFormItem(String key, String formItem) {
464+
if (this.form == null) {
465+
this.form = new HashMap<>();
466+
}
467+
this.form.put(key, formItem);
468+
return this;
469+
}
470+
471+
/**
472+
* Form to be used as part of the request in the test. Only valid if <code>bodyType</code> is
473+
* <code>multipart/form-data</code>.
474+
*
475+
* @return form
476+
*/
477+
@jakarta.annotation.Nullable
478+
@JsonProperty(JSON_PROPERTY_FORM)
479+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
480+
public Map<String, String> getForm() {
481+
return form;
482+
}
483+
484+
public void setForm(Map<String, String> form) {
485+
this.form = form;
486+
}
487+
453488
public SyntheticsTestRequest headers(Map<String, String> headers) {
454489
this.headers = headers;
455490
return this;
@@ -903,6 +938,7 @@ public boolean equals(Object o) {
903938
&& Objects.equals(this.dnsServerPort, syntheticsTestRequest.dnsServerPort)
904939
&& Objects.equals(this.files, syntheticsTestRequest.files)
905940
&& Objects.equals(this.followRedirects, syntheticsTestRequest.followRedirects)
941+
&& Objects.equals(this.form, syntheticsTestRequest.form)
906942
&& Objects.equals(this.headers, syntheticsTestRequest.headers)
907943
&& Objects.equals(this.host, syntheticsTestRequest.host)
908944
&& Objects.equals(this.httpVersion, syntheticsTestRequest.httpVersion)
@@ -939,6 +975,7 @@ public int hashCode() {
939975
dnsServerPort,
940976
files,
941977
followRedirects,
978+
form,
942979
headers,
943980
host,
944981
httpVersion,
@@ -980,6 +1017,7 @@ public String toString() {
9801017
sb.append(" dnsServerPort: ").append(toIndentedString(dnsServerPort)).append("\n");
9811018
sb.append(" files: ").append(toIndentedString(files)).append("\n");
9821019
sb.append(" followRedirects: ").append(toIndentedString(followRedirects)).append("\n");
1020+
sb.append(" form: ").append(toIndentedString(form)).append("\n");
9831021
sb.append(" headers: ").append(toIndentedString(headers)).append("\n");
9841022
sb.append(" host: ").append(toIndentedString(host)).append("\n");
9851023
sb.append(" httpVersion: ").append(toIndentedString(httpVersion)).append("\n");

0 commit comments

Comments
 (0)