Skip to content

Commit ec7aba5

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 8c01310d of spec repo
1 parent 7cb8309 commit ec7aba5

15 files changed

+92
-122
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.4",
7-
"regenerated": "2023-05-26 16:53:13.309161",
8-
"spec_repo_commit": "fa84acd1"
7+
"regenerated": "2023-05-26 17:51:42.066782",
8+
"spec_repo_commit": "8c01310d"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-05-26 16:53:13.324691",
13-
"spec_repo_commit": "fa84acd1"
12+
"regenerated": "2023-05-26 17:51:42.082604",
13+
"spec_repo_commit": "8c01310d"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13746,6 +13746,9 @@ components:
1374613746
type: string
1374713747
parser:
1374813748
$ref: '#/components/schemas/SyntheticsVariableParser'
13749+
secure:
13750+
description: Determines whether or not the extracted value will be obfuscated.
13751+
type: boolean
1374913752
type:
1375013753
$ref: '#/components/schemas/SyntheticsGlobalVariableParseTestOptionsType'
1375113754
type: object

.generator/schemas/v2/openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18752,7 +18752,7 @@ paths:
1875218752
schema:
1875318753
$ref: '#/components/schemas/APIErrorResponse'
1875418754
description: Too Many Requests
18755-
summary: Delete tags for multiple metrics
18755+
summary: Configure tags for multiple metrics
1875618756
tags:
1875718757
- Metrics
1875818758
x-codegen-request-body-name: body

examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ public static void main(String[] args) {
6161
.type(SyntheticsGlobalVariableParserType.RAW))
6262
.type(
6363
SyntheticsGlobalVariableParseTestOptionsType
64-
.HTTP_HEADER)))
64+
.HTTP_HEADER)
65+
.secure(true)))
6566
.isCritical(true)
6667
.name("request is sent")
6768
.request(

examples/v2/metrics/DeleteBulkTagsMetricsConfiguration.java

Lines changed: 0 additions & 39 deletions
This file was deleted.

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

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
SyntheticsParsingOptions.JSON_PROPERTY_FIELD,
1818
SyntheticsParsingOptions.JSON_PROPERTY_NAME,
1919
SyntheticsParsingOptions.JSON_PROPERTY_PARSER,
20+
SyntheticsParsingOptions.JSON_PROPERTY_SECURE,
2021
SyntheticsParsingOptions.JSON_PROPERTY_TYPE
2122
})
2223
@jakarta.annotation.Generated(
@@ -32,6 +33,9 @@ public class SyntheticsParsingOptions {
3233
public static final String JSON_PROPERTY_PARSER = "parser";
3334
private SyntheticsVariableParser parser;
3435

36+
public static final String JSON_PROPERTY_SECURE = "secure";
37+
private Boolean secure;
38+
3539
public static final String JSON_PROPERTY_TYPE = "type";
3640
private SyntheticsGlobalVariableParseTestOptionsType type;
3741

@@ -99,6 +103,27 @@ public void setParser(SyntheticsVariableParser parser) {
99103
this.parser = parser;
100104
}
101105

106+
public SyntheticsParsingOptions secure(Boolean secure) {
107+
this.secure = secure;
108+
return this;
109+
}
110+
111+
/**
112+
* Determines whether or not the extracted value will be obfuscated.
113+
*
114+
* @return secure
115+
*/
116+
@jakarta.annotation.Nullable
117+
@JsonProperty(JSON_PROPERTY_SECURE)
118+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
119+
public Boolean getSecure() {
120+
return secure;
121+
}
122+
123+
public void setSecure(Boolean secure) {
124+
this.secure = secure;
125+
}
126+
102127
public SyntheticsParsingOptions type(SyntheticsGlobalVariableParseTestOptionsType type) {
103128
this.type = type;
104129
this.unparsed |= !type.isValid();
@@ -137,12 +162,13 @@ public boolean equals(Object o) {
137162
return Objects.equals(this.field, syntheticsParsingOptions.field)
138163
&& Objects.equals(this.name, syntheticsParsingOptions.name)
139164
&& Objects.equals(this.parser, syntheticsParsingOptions.parser)
165+
&& Objects.equals(this.secure, syntheticsParsingOptions.secure)
140166
&& Objects.equals(this.type, syntheticsParsingOptions.type);
141167
}
142168

143169
@Override
144170
public int hashCode() {
145-
return Objects.hash(field, name, parser, type);
171+
return Objects.hash(field, name, parser, secure, type);
146172
}
147173

148174
@Override
@@ -152,6 +178,7 @@ public String toString() {
152178
sb.append(" field: ").append(toIndentedString(field)).append("\n");
153179
sb.append(" name: ").append(toIndentedString(name)).append("\n");
154180
sb.append(" parser: ").append(toIndentedString(parser)).append("\n");
181+
sb.append(" secure: ").append(toIndentedString(secure)).append("\n");
155182
sb.append(" type: ").append(toIndentedString(type)).append("\n");
156183
sb.append("}");
157184
return sb.toString();

src/main/java/com/datadog/api/client/v2/api/MetricsApi.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ public ApiResponse<MetricTagConfigurationResponse> createTagConfigurationWithHtt
375375
}
376376

377377
/**
378-
* Delete tags for multiple metrics.
378+
* Configure tags for multiple metrics.
379379
*
380380
* <p>See {@link #deleteBulkTagsMetricsConfigurationWithHttpInfo}.
381381
*
@@ -389,7 +389,7 @@ public MetricBulkTagConfigResponse deleteBulkTagsMetricsConfiguration(
389389
}
390390

391391
/**
392-
* Delete tags for multiple metrics.
392+
* Configure tags for multiple metrics.
393393
*
394394
* <p>See {@link #deleteBulkTagsMetricsConfigurationWithHttpInfoAsync}.
395395
*
@@ -462,7 +462,7 @@ public ApiResponse<MetricBulkTagConfigResponse> deleteBulkTagsMetricsConfigurati
462462
}
463463

464464
/**
465-
* Delete tags for multiple metrics.
465+
* Configure tags for multiple metrics.
466466
*
467467
* <p>See {@link #deleteBulkTagsMetricsConfigurationWithHttpInfo}.
468468
*
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2023-01-05T15:20:23.898Z
1+
2023-05-23T13:41:47.597Z

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"httpRequest": {
44
"body": {
55
"type": "JSON",
6-
"json": "{\"config\":{\"configVariables\":[{\"example\":\"content-type\",\"name\":\"PROPERTY\",\"pattern\":\"content-type\",\"type\":\"text\"}],\"steps\":[{\"allowFailure\":true,\"assertions\":[{\"operator\":\"is\",\"target\":200,\"type\":\"statusCode\"}],\"extractedValues\":[{\"field\":\"server\",\"name\":\"EXTRACTED_VALUE\",\"parser\":{\"type\":\"raw\"},\"type\":\"http_header\"}],\"isCritical\":true,\"name\":\"request is sent\",\"request\":{\"method\":\"GET\",\"timeout\":10,\"url\":\"https://datadoghq.com\"},\"retry\":{\"count\":5,\"interval\":1000},\"subtype\":\"http\"}]},\"locations\":[\"aws:us-east-2\"],\"message\":\"BDD test payload: synthetics_api_test_multi_step_payload.json\",\"name\":\"Test-Create_a_global_variable_from_test_returns_OK_response-1672932023\",\"options\":{\"accept_self_signed\":false,\"allow_insecure\":true,\"follow_redirects\":true,\"min_failure_duration\":10,\"min_location_failed\":1,\"monitor_name\":\"Test-Create_a_global_variable_from_test_returns_OK_response-1672932023\",\"monitor_priority\":5,\"retry\":{\"count\":3,\"interval\":1000},\"tick_every\":60},\"subtype\":\"multi\",\"tags\":[\"testing:api\"],\"type\":\"api\"}"
6+
"json": "{\"config\":{\"configVariables\":[{\"example\":\"content-type\",\"name\":\"PROPERTY\",\"pattern\":\"content-type\",\"type\":\"text\"}],\"steps\":[{\"allowFailure\":true,\"assertions\":[{\"operator\":\"is\",\"target\":200,\"type\":\"statusCode\"}],\"extractedValues\":[{\"field\":\"server\",\"name\":\"EXTRACTED_VALUE\",\"parser\":{\"type\":\"raw\"},\"secure\":true,\"type\":\"http_header\"}],\"isCritical\":true,\"name\":\"request is sent\",\"request\":{\"method\":\"GET\",\"timeout\":10,\"url\":\"https://datadoghq.com\"},\"retry\":{\"count\":5,\"interval\":1000},\"subtype\":\"http\"}]},\"locations\":[\"aws:us-east-2\"],\"message\":\"BDD test payload: synthetics_api_test_multi_step_payload.json\",\"name\":\"Test-Create_a_global_variable_from_test_returns_OK_response-1684849307\",\"options\":{\"accept_self_signed\":false,\"allow_insecure\":true,\"follow_redirects\":true,\"min_failure_duration\":10,\"min_location_failed\":1,\"monitor_name\":\"Test-Create_a_global_variable_from_test_returns_OK_response-1684849307\",\"monitor_priority\":5,\"retry\":{\"count\":3,\"interval\":1000},\"tick_every\":60},\"subtype\":\"multi\",\"tags\":[\"testing:api\"],\"type\":\"api\"}"
77
},
88
"headers": {},
99
"method": "POST",
@@ -12,7 +12,7 @@
1212
"secure": true
1313
},
1414
"httpResponse": {
15-
"body": "{\"status\":\"live\",\"public_id\":\"prg-fny-su9\",\"tags\":[\"testing:api\"],\"org_id\":321813,\"locations\":[\"aws:us-east-2\"],\"message\":\"BDD test payload: synthetics_api_test_multi_step_payload.json\",\"deleted_at\":null,\"name\":\"Test-Create_a_global_variable_from_test_returns_OK_response-1672932023\",\"monitor_id\":106967129,\"type\":\"api\",\"created_at\":\"2023-01-05T15:20:24.483020+00:00\",\"modified_at\":\"2023-01-05T15:20:24.483020+00:00\",\"subtype\":\"multi\",\"config\":{\"steps\":[{\"retry\":{\"count\":5,\"interval\":1000},\"name\":\"request is sent\",\"request\":{\"url\":\"https://datadoghq.com\",\"method\":\"GET\",\"timeout\":10},\"subtype\":\"http\",\"allowFailure\":true,\"assertions\":[{\"operator\":\"is\",\"type\":\"statusCode\",\"target\":200}],\"isCritical\":true,\"id\":\"dg9-uxx-k65\",\"extractedValues\":[{\"field\":\"server\",\"parser\":{\"type\":\"raw\"},\"type\":\"http_header\",\"name\":\"EXTRACTED_VALUE\"}]}],\"configVariables\":[{\"pattern\":\"content-type\",\"type\":\"text\",\"example\":\"content-type\",\"name\":\"PROPERTY\"}]},\"options\":{\"accept_self_signed\":false,\"retry\":{\"count\":3,\"interval\":1000},\"min_location_failed\":1,\"allow_insecure\":true,\"follow_redirects\":true,\"min_failure_duration\":10,\"monitor_priority\":5,\"monitor_name\":\"Test-Create_a_global_variable_from_test_returns_OK_response-1672932023\",\"tick_every\":60}}",
15+
"body": "{\"public_id\":\"wk3-pn7-sn3\",\"name\":\"Test-Create_a_global_variable_from_test_returns_OK_response-1684849307\",\"status\":\"live\",\"type\":\"api\",\"tags\":[\"testing:api\"],\"created_at\":\"2023-05-23T13:41:47.888352+00:00\",\"modified_at\":\"2023-05-23T13:41:47.888352+00:00\",\"config\":{\"configVariables\":[{\"example\":\"content-type\",\"name\":\"PROPERTY\",\"pattern\":\"content-type\",\"type\":\"text\"}],\"steps\":[{\"allowFailure\":true,\"assertions\":[{\"operator\":\"is\",\"target\":200,\"type\":\"statusCode\"}],\"extractedValues\":[{\"field\":\"server\",\"name\":\"EXTRACTED_VALUE\",\"parser\":{\"type\":\"raw\"},\"secure\":true,\"type\":\"http_header\"}],\"isCritical\":true,\"name\":\"request is sent\",\"request\":{\"method\":\"GET\",\"timeout\":10,\"url\":\"https://datadoghq.com\"},\"retry\":{\"count\":5,\"interval\":1000},\"subtype\":\"http\",\"id\":\"ymn-tzt-isn\"}]},\"message\":\"BDD test payload: synthetics_api_test_multi_step_payload.json\",\"options\":{\"accept_self_signed\":false,\"allow_insecure\":true,\"follow_redirects\":true,\"min_failure_duration\":10,\"min_location_failed\":1,\"monitor_name\":\"Test-Create_a_global_variable_from_test_returns_OK_response-1684849307\",\"monitor_priority\":5,\"retry\":{\"count\":3,\"interval\":1000},\"tick_every\":60},\"locations\":[\"aws:us-east-2\"],\"subtype\":\"multi\",\"deleted_at\":null,\"monitor_id\":119820627,\"org_id\":321813}",
1616
"headers": {
1717
"Content-Type": [
1818
"application/json"
@@ -27,13 +27,13 @@
2727
"timeToLive": {
2828
"unlimited": true
2929
},
30-
"id": "b6972103-20a5-5a3f-00a7-bf7dca2eca0f"
30+
"id": "cbd17627-b87f-5547-0cf1-27936d0758f1"
3131
},
3232
{
3333
"httpRequest": {
3434
"body": {
3535
"type": "JSON",
36-
"json": "{\"description\":\"\",\"name\":\"GLOBAL_VARIABLE_PAYLOAD_TESTCREATEAGLOBALVARIABLEFROMTESTRETURNSOKRESPONSE1672932023\",\"parse_test_options\":{\"localVariableName\":\"EXTRACTED_VALUE\",\"type\":\"local_variable\"},\"parse_test_public_id\":\"prg-fny-su9\",\"tags\":[],\"value\":{\"options\":{\"totp_parameters\":{\"digits\":6,\"refresh_interval\":30}},\"secure\":false,\"value\":\"\"}}"
36+
"json": "{\"description\":\"\",\"name\":\"GLOBAL_VARIABLE_PAYLOAD_TESTCREATEAGLOBALVARIABLEFROMTESTRETURNSOKRESPONSE1684849307\",\"parse_test_options\":{\"localVariableName\":\"EXTRACTED_VALUE\",\"type\":\"local_variable\"},\"parse_test_public_id\":\"wk3-pn7-sn3\",\"tags\":[],\"value\":{\"options\":{\"totp_parameters\":{\"digits\":6,\"refresh_interval\":30}},\"secure\":false,\"value\":\"\"}}"
3737
},
3838
"headers": {},
3939
"method": "POST",
@@ -42,7 +42,7 @@
4242
"secure": true
4343
},
4444
"httpResponse": {
45-
"body": "{\"parse_test_options\":{\"type\":\"local_variable\",\"localVariableName\":\"EXTRACTED_VALUE\"},\"parse_test_extracted_at\":null,\"description\":\"\",\"tags\":[],\"last_error\":null,\"is_totp\":null,\"value\":{\"options\":{\"totp_parameters\":{\"digits\":6,\"refresh_interval\":30}},\"value\":\"\",\"secure\":false},\"parse_test_public_id\":\"prg-fny-su9\",\"parse_test_name\":null,\"type\":\"variable\",\"id\":\"2dcbf35a-34a9-4254-8ddb-417593377a20\",\"name\":\"GLOBAL_VARIABLE_PAYLOAD_TESTCREATEAGLOBALVARIABLEFROMTESTRETURNSOKRESPONSE1672932023\"}\n",
45+
"body": "{\"id\":\"c1b94a97-87df-440f-b5fc-ef7f391bf07a\",\"name\":\"GLOBAL_VARIABLE_PAYLOAD_TESTCREATEAGLOBALVARIABLEFROMTESTRETURNSOKRESPONSE1684849307\",\"description\":\"\",\"type\":\"variable\",\"tags\":[],\"parse_test_public_id\":\"wk3-pn7-sn3\",\"parse_test_name\":null,\"parse_test_options\":{\"localVariableName\":\"EXTRACTED_VALUE\",\"type\":\"local_variable\"},\"parse_test_extracted_at\":null,\"is_totp\":null,\"is_fido\":null,\"last_error\":null,\"value\":{\"options\":{\"totp_parameters\":{\"digits\":6,\"refresh_interval\":30}},\"secure\":false,\"value\":\"\"}}\n",
4646
"headers": {
4747
"Content-Type": [
4848
"application/json"
@@ -57,13 +57,13 @@
5757
"timeToLive": {
5858
"unlimited": true
5959
},
60-
"id": "5bd852f0-eb4a-8466-6852-2c57818d6cae"
60+
"id": "29977d1c-e74c-e920-e2e1-ad849607b5da"
6161
},
6262
{
6363
"httpRequest": {
6464
"headers": {},
6565
"method": "DELETE",
66-
"path": "/api/v1/synthetics/variables/2dcbf35a-34a9-4254-8ddb-417593377a20",
66+
"path": "/api/v1/synthetics/variables/c1b94a97-87df-440f-b5fc-ef7f391bf07a",
6767
"keepAlive": false,
6868
"secure": true
6969
},
@@ -82,13 +82,13 @@
8282
"timeToLive": {
8383
"unlimited": true
8484
},
85-
"id": "77bac210-3f49-b190-c6aa-ba294a726900"
85+
"id": "5416ecd3-49a2-e141-2654-86b9d15b18d8"
8686
},
8787
{
8888
"httpRequest": {
8989
"body": {
9090
"type": "JSON",
91-
"json": "{\"public_ids\":[\"prg-fny-su9\"]}"
91+
"json": "{\"public_ids\":[\"wk3-pn7-sn3\"]}"
9292
},
9393
"headers": {},
9494
"method": "POST",
@@ -97,7 +97,7 @@
9797
"secure": true
9898
},
9999
"httpResponse": {
100-
"body": "{\"deleted_tests\":[{\"deleted_at\":\"2023-01-05T15:20:26.202732+00:00\",\"public_id\":\"prg-fny-su9\"}]}\n",
100+
"body": "{\"deleted_tests\":[{\"public_id\":\"wk3-pn7-sn3\",\"deleted_at\":\"2023-05-23T13:41:48.789772+00:00\"}]}\n",
101101
"headers": {
102102
"Content-Type": [
103103
"application/json"
@@ -112,6 +112,6 @@
112112
"timeToLive": {
113113
"unlimited": true
114114
},
115-
"id": "4e0eb2ab-081e-47b6-cc33-11509730e00f"
115+
"id": "ba553cdf-9a87-0f96-50e1-f2a290951c95"
116116
}
117117
]
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022-08-30T12:59:30.516Z
1+
2023-05-22T14:08:52.406Z

0 commit comments

Comments
 (0)