Skip to content

Commit 1d757d8

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Fix VFTs and extracted local variables enum types (#1731)
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 6eb1337 commit 1d757d8

File tree

8 files changed

+70
-17
lines changed

8 files changed

+70
-17
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": "2024-08-29 20:02:13.031504",
8-
"spec_repo_commit": "518ca9df"
7+
"regenerated": "2024-09-03 13:58:47.551352",
8+
"spec_repo_commit": "ff772101"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-08-29 20:02:13.055105",
13-
"spec_repo_commit": "518ca9df"
12+
"regenerated": "2024-09-03 13:58:47.571233",
13+
"spec_repo_commit": "ff772101"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15267,17 +15267,18 @@ components:
1526715267
- type
1526815268
type: object
1526915269
SyntheticsGlobalVariableParseTestOptionsType:
15270-
description: Property of the Synthetic Test Response to use for a Synthetic
15271-
global variable.
15270+
description: Type of value to extract from a test for a Synthetic global variable.
1527215271
enum:
1527315272
- http_body
1527415273
- http_header
15274+
- http_status_code
1527515275
- local_variable
1527615276
example: http_body
1527715277
type: string
1527815278
x-enum-varnames:
1527915279
- HTTP_BODY
1528015280
- HTTP_HEADER
15281+
- HTTP_STATUS_CODE
1528115282
- LOCAL_VARIABLE
1528215283
SyntheticsGlobalVariableParserType:
1528315284
description: Type of parser for a Synthetic global variable from a synthetics
@@ -15396,6 +15397,23 @@ components:
1539615397
$ref: '#/components/schemas/SyntheticsTestDetails'
1539715398
type: array
1539815399
type: object
15400+
SyntheticsLocalVariableParsingOptionsType:
15401+
description: Property of the Synthetic Test Response to extract into a local
15402+
variable.
15403+
enum:
15404+
- grpc_message
15405+
- grpc_metadata
15406+
- http_body
15407+
- http_header
15408+
- http_status_code
15409+
example: http_body
15410+
type: string
15411+
x-enum-varnames:
15412+
- GRPC_MESSAGE
15413+
- GRPC_METADATA
15414+
- HTTP_BODY
15415+
- HTTP_HEADER
15416+
- HTTP_STATUS_CODE
1539915417
SyntheticsLocation:
1540015418
description: 'Synthetic location that can be used when creating or editing a
1540115419

@@ -15422,8 +15440,8 @@ components:
1542215440
example: {}
1542315441
properties:
1542415442
field:
15425-
description: When type is `http_header`, name of the header to use to extract
15426-
the value.
15443+
description: When type is `http_header` or `grpc_metadata`, name of the
15444+
header or metadatum to extract.
1542715445
example: content-type
1542815446
type: string
1542915447
name:
@@ -15435,7 +15453,7 @@ components:
1543515453
description: Determines whether or not the extracted value will be obfuscated.
1543615454
type: boolean
1543715455
type:
15438-
$ref: '#/components/schemas/SyntheticsGlobalVariableParseTestOptionsType'
15456+
$ref: '#/components/schemas/SyntheticsLocalVariableParsingOptionsType'
1543915457
type: object
1544015458
SyntheticsPatchTestBody:
1544115459
description: Wrapper around an array of [JSON Patch](https://jsonpatch.com)
@@ -16010,7 +16028,7 @@ components:
1601016028
type: object
1601116029
SyntheticsTestMetadata:
1601216030
additionalProperties:
16013-
description: A single Metadatum.
16031+
description: A single metadatum.
1601416032
type: string
1601516033
description: Metadata to include when performing the gRPC test.
1601616034
type: object

packages/datadog-api-client-v1/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -947,6 +947,7 @@ export { SyntheticsGlobalVariableTOTPParameters } from "./models/SyntheticsGloba
947947
export { SyntheticsGlobalVariableValue } from "./models/SyntheticsGlobalVariableValue";
948948
export { SyntheticsListGlobalVariablesResponse } from "./models/SyntheticsListGlobalVariablesResponse";
949949
export { SyntheticsListTestsResponse } from "./models/SyntheticsListTestsResponse";
950+
export { SyntheticsLocalVariableParsingOptionsType } from "./models/SyntheticsLocalVariableParsingOptionsType";
950951
export { SyntheticsLocation } from "./models/SyntheticsLocation";
951952
export { SyntheticsLocations } from "./models/SyntheticsLocations";
952953
export { SyntheticsParsingOptions } from "./models/SyntheticsParsingOptions";

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,9 +1333,17 @@ const enumsMap: { [key: string]: any[] } = {
13331333
SyntheticsGlobalVariableParseTestOptionsType: [
13341334
"http_body",
13351335
"http_header",
1336+
"http_status_code",
13361337
"local_variable",
13371338
],
13381339
SyntheticsGlobalVariableParserType: ["raw", "json_path", "regex", "x_path"],
1340+
SyntheticsLocalVariableParsingOptionsType: [
1341+
"grpc_message",
1342+
"grpc_metadata",
1343+
"http_body",
1344+
"http_header",
1345+
"http_status_code",
1346+
],
13391347
SyntheticsPatchTestOperationName: [
13401348
"add",
13411349
"remove",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class SyntheticsGlobalVariableParseTestOptions {
2525
*/
2626
"parser"?: SyntheticsVariableParser;
2727
/**
28-
* Property of the Synthetic Test Response to use for a Synthetic global variable.
28+
* Type of value to extract from a test for a Synthetic global variable.
2929
*/
3030
"type": SyntheticsGlobalVariableParseTestOptionsType;
3131

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,16 @@
77
import { UnparsedObject } from "../../datadog-api-client-common/util";
88

99
/**
10-
* Property of the Synthetic Test Response to use for a Synthetic global variable.
10+
* Type of value to extract from a test for a Synthetic global variable.
1111
*/
1212

1313
export type SyntheticsGlobalVariableParseTestOptionsType =
1414
| typeof HTTP_BODY
1515
| typeof HTTP_HEADER
16+
| typeof HTTP_STATUS_CODE
1617
| typeof LOCAL_VARIABLE
1718
| UnparsedObject;
1819
export const HTTP_BODY = "http_body";
1920
export const HTTP_HEADER = "http_header";
21+
export const HTTP_STATUS_CODE = "http_status_code";
2022
export const LOCAL_VARIABLE = "local_variable";
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/**
2+
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
3+
* This product includes software developed at Datadog (https://www.datadoghq.com/).
4+
* Copyright 2020-Present Datadog, Inc.
5+
*/
6+
7+
import { UnparsedObject } from "../../datadog-api-client-common/util";
8+
9+
/**
10+
* Property of the Synthetic Test Response to extract into a local variable.
11+
*/
12+
13+
export type SyntheticsLocalVariableParsingOptionsType =
14+
| typeof GRPC_MESSAGE
15+
| typeof GRPC_METADATA
16+
| typeof HTTP_BODY
17+
| typeof HTTP_HEADER
18+
| typeof HTTP_STATUS_CODE
19+
| UnparsedObject;
20+
export const GRPC_MESSAGE = "grpc_message";
21+
export const GRPC_METADATA = "grpc_metadata";
22+
export const HTTP_BODY = "http_body";
23+
export const HTTP_HEADER = "http_header";
24+
export const HTTP_STATUS_CODE = "http_status_code";

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* This product includes software developed at Datadog (https://www.datadoghq.com/).
44
* Copyright 2020-Present Datadog, Inc.
55
*/
6-
import { SyntheticsGlobalVariableParseTestOptionsType } from "./SyntheticsGlobalVariableParseTestOptionsType";
6+
import { SyntheticsLocalVariableParsingOptionsType } from "./SyntheticsLocalVariableParsingOptionsType";
77
import { SyntheticsVariableParser } from "./SyntheticsVariableParser";
88

99
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
@@ -13,7 +13,7 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
1313
*/
1414
export class SyntheticsParsingOptions {
1515
/**
16-
* When type is `http_header`, name of the header to use to extract the value.
16+
* When type is `http_header` or `grpc_metadata`, name of the header or metadatum to extract.
1717
*/
1818
"field"?: string;
1919
/**
@@ -29,9 +29,9 @@ export class SyntheticsParsingOptions {
2929
*/
3030
"secure"?: boolean;
3131
/**
32-
* Property of the Synthetic Test Response to use for a Synthetic global variable.
32+
* Property of the Synthetic Test Response to extract into a local variable.
3333
*/
34-
"type"?: SyntheticsGlobalVariableParseTestOptionsType;
34+
"type"?: SyntheticsLocalVariableParsingOptionsType;
3535

3636
/**
3737
* A container for additional, undeclared properties.
@@ -67,7 +67,7 @@ export class SyntheticsParsingOptions {
6767
},
6868
type: {
6969
baseName: "type",
70-
type: "SyntheticsGlobalVariableParseTestOptionsType",
70+
type: "SyntheticsLocalVariableParsingOptionsType",
7171
},
7272
additionalProperties: {
7373
baseName: "additionalProperties",

0 commit comments

Comments
 (0)