Skip to content

Commit adc554a

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit fa2403b of spec repo (#246)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 5141571 commit adc554a

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
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.4.1.dev11",
7-
"regenerated": "2021-08-10 08:32:27.257920",
8-
"spec_repo_commit": "9684c06"
7+
"regenerated": "2021-08-12 12:21:03.745930",
8+
"spec_repo_commit": "fa2403b"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev11",
12-
"regenerated": "2021-08-10 08:33:37.990569",
13-
"spec_repo_commit": "9684c06"
12+
"regenerated": "2021-08-12 12:22:35.666634",
13+
"spec_repo_commit": "fa2403b"
1414
}
1515
}
1616
}

packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParserType.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
export type SyntheticsGlobalVariableParserType =
1212
| typeof RAW
1313
| typeof JSON_PATH
14-
| typeof REGEX;
14+
| typeof REGEX
15+
| typeof X_PATH;
1516
export const RAW = "raw";
1617
export const JSON_PATH = "json_path";
1718
export const REGEX = "regex";
19+
export const X_PATH = "x_path";

packages/datadog-api-client-v1/models/SyntheticsVariableParser.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ export class SyntheticsVariableParser {
5353
"missing required attribute 'type' on 'SyntheticsVariableParser' object"
5454
);
5555
}
56-
if (["raw", "json_path", "regex", undefined].includes(data.type)) {
56+
if (
57+
["raw", "json_path", "regex", "x_path", undefined].includes(data.type)
58+
) {
5759
res.type = data.type;
5860
} else {
5961
const raw = new SyntheticsVariableParser();
@@ -82,7 +84,9 @@ export class SyntheticsVariableParser {
8284
"missing required attribute 'type' on 'SyntheticsVariableParser' object"
8385
);
8486
}
85-
if (["raw", "json_path", "regex", undefined].includes(data.type)) {
87+
if (
88+
["raw", "json_path", "regex", "x_path", undefined].includes(data.type)
89+
) {
8690
res.type = data.type;
8791
} else {
8892
throw TypeError(`invalid enum value ${data.type} for type`);

0 commit comments

Comments
 (0)