Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-03-13 14:23:18.791575",
"spec_repo_commit": "113614d8"
"regenerated": "2024-03-13 18:09:01.243635",
"spec_repo_commit": "29884c34"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-03-13 14:23:18.816599",
"spec_repo_commit": "113614d8"
"regenerated": "2024-03-13 18:09:01.260148",
"spec_repo_commit": "29884c34"
}
}
}
2 changes: 2 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15826,6 +15826,8 @@ components:
host:
description: Host name to perform the test with.
type: string
httpVersion:
$ref: '#/components/schemas/SyntheticsTestOptionsHTTPVersion'
message:
description: Message to send for UDP or WebSocket tests.
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import com.datadog.api.client.v1.model.SyntheticsTestCallType;
import com.datadog.api.client.v1.model.SyntheticsTestDetailsSubType;
import com.datadog.api.client.v1.model.SyntheticsTestOptions;
import com.datadog.api.client.v1.model.SyntheticsTestOptionsHTTPVersion;
import com.datadog.api.client.v1.model.SyntheticsTestOptionsRetry;
import com.datadog.api.client.v1.model.SyntheticsTestRequest;
import com.datadog.api.client.v1.model.SyntheticsVariableParser;
Expand Down Expand Up @@ -72,7 +73,8 @@ public static void main(String[] args) {
new SyntheticsTestRequest()
.method("GET")
.timeout(10.0)
.url("https://datadoghq.com"))
.url("https://datadoghq.com")
.httpVersion(SyntheticsTestOptionsHTTPVersion.HTTP2))
.retry(new SyntheticsTestOptionsRetry().count(5L).interval(1000.0))
.subtype(SyntheticsAPIStepSubtype.HTTP),
new SyntheticsAPIStep()
Expand Down
1 change: 1 addition & 0 deletions examples/v1/synthetics/UpdateBrowserTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public static void main(String[] args) {
new SyntheticsTestRequestCertificate()
.cert(new SyntheticsTestRequestCertificateItem())
.key(new SyntheticsTestRequestCertificateItem()))
.httpVersion(SyntheticsTestOptionsHTTPVersion.HTTP1)
.proxy(new SyntheticsTestRequestProxy().url("https://example.com"))
.service("Greeter")
.url("https://example.com"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
SyntheticsTestRequest.JSON_PROPERTY_FOLLOW_REDIRECTS,
SyntheticsTestRequest.JSON_PROPERTY_HEADERS,
SyntheticsTestRequest.JSON_PROPERTY_HOST,
SyntheticsTestRequest.JSON_PROPERTY_HTTP_VERSION,
SyntheticsTestRequest.JSON_PROPERTY_MESSAGE,
SyntheticsTestRequest.JSON_PROPERTY_METADATA,
SyntheticsTestRequest.JSON_PROPERTY_METHOD,
Expand Down Expand Up @@ -95,6 +96,9 @@ public class SyntheticsTestRequest {
public static final String JSON_PROPERTY_HOST = "host";
private String host;

public static final String JSON_PROPERTY_HTTP_VERSION = "httpVersion";
private SyntheticsTestOptionsHTTPVersion httpVersion;

public static final String JSON_PROPERTY_MESSAGE = "message";
private String message;

Expand Down Expand Up @@ -459,6 +463,31 @@ public void setHost(String host) {
this.host = host;
}

public SyntheticsTestRequest httpVersion(SyntheticsTestOptionsHTTPVersion httpVersion) {
this.httpVersion = httpVersion;
this.unparsed |= !httpVersion.isValid();
return this;
}

/**
* HTTP version to use for a Synthetic test.
*
* @return httpVersion
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_HTTP_VERSION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public SyntheticsTestOptionsHTTPVersion getHttpVersion() {
return httpVersion;
}

public void setHttpVersion(SyntheticsTestOptionsHTTPVersion httpVersion) {
if (!httpVersion.isValid()) {
this.unparsed = true;
}
this.httpVersion = httpVersion;
}

public SyntheticsTestRequest message(String message) {
this.message = message;
return this;
Expand Down Expand Up @@ -837,6 +866,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.followRedirects, syntheticsTestRequest.followRedirects)
&& Objects.equals(this.headers, syntheticsTestRequest.headers)
&& Objects.equals(this.host, syntheticsTestRequest.host)
&& Objects.equals(this.httpVersion, syntheticsTestRequest.httpVersion)
&& Objects.equals(this.message, syntheticsTestRequest.message)
&& Objects.equals(this.metadata, syntheticsTestRequest.metadata)
&& Objects.equals(this.method, syntheticsTestRequest.method)
Expand Down Expand Up @@ -871,6 +901,7 @@ public int hashCode() {
followRedirects,
headers,
host,
httpVersion,
message,
metadata,
method,
Expand Down Expand Up @@ -910,6 +941,7 @@ public String toString() {
sb.append(" followRedirects: ").append(toIndentedString(followRedirects)).append("\n");
sb.append(" headers: ").append(toIndentedString(headers)).append("\n");
sb.append(" host: ").append(toIndentedString(host)).append("\n");
sb.append(" httpVersion: ").append(toIndentedString(httpVersion)).append("\n");
sb.append(" message: ").append(toIndentedString(message)).append("\n");
sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n");
sb.append(" method: ").append(toIndentedString(method)).append("\n");
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024-02-14T09:56:55.385Z
2024-03-13T08:48:00.559Z
Loading