From 92d509c2ddc15317b609435cf07653976f4b23a0 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 16 Aug 2024 18:58:40 +0000 Subject: [PATCH] Regenerate client from commit fc469c89 of spec repo --- .apigentools-info | 8 ++--- .generator/schemas/v1/openapi.yaml | 30 +++++++++++++++---- packages/datadog-api-client-v1/index.ts | 1 + .../models/ObjectSerializer.ts | 8 +++++ ...yntheticsGlobalVariableParseTestOptions.ts | 2 +- ...eticsGlobalVariableParseTestOptionsType.ts | 4 ++- ...ntheticsLocalVariableParsingOptionsType.ts | 24 +++++++++++++++ .../models/SyntheticsParsingOptions.ts | 10 +++---- 8 files changed, 70 insertions(+), 17 deletions(-) create mode 100644 packages/datadog-api-client-v1/models/SyntheticsLocalVariableParsingOptionsType.ts diff --git a/.apigentools-info b/.apigentools-info index 361b88e4848..7648a2c6bfc 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-08-16 13:40:37.635915", - "spec_repo_commit": "1b56c3ba" + "regenerated": "2024-08-16 18:57:12.622815", + "spec_repo_commit": "fc469c89" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-08-16 13:40:37.656678", - "spec_repo_commit": "1b56c3ba" + "regenerated": "2024-08-16 18:57:12.641645", + "spec_repo_commit": "fc469c89" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 86182be530e..81dfa4b7dd5 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -15212,17 +15212,18 @@ components: - type type: object SyntheticsGlobalVariableParseTestOptionsType: - description: Property of the Synthetic Test Response to use for a Synthetic - global variable. + description: Type of value to extract from a test for a Synthetic global variable. enum: - http_body - http_header + - http_status_code - local_variable example: http_body type: string x-enum-varnames: - HTTP_BODY - HTTP_HEADER + - HTTP_STATUS_CODE - LOCAL_VARIABLE SyntheticsGlobalVariableParserType: description: Type of parser for a Synthetic global variable from a synthetics @@ -15341,6 +15342,23 @@ components: $ref: '#/components/schemas/SyntheticsTestDetails' type: array type: object + SyntheticsLocalVariableParsingOptionsType: + description: Property of the Synthetic Test Response to extract into a local + variable. + enum: + - grpc_message + - grpc_metadata + - http_body + - http_header + - http_status_code + example: http_body + type: string + x-enum-varnames: + - GRPC_MESSAGE + - GRPC_METADATA + - HTTP_BODY + - HTTP_HEADER + - HTTP_STATUS_CODE SyntheticsLocation: description: 'Synthetic location that can be used when creating or editing a @@ -15367,8 +15385,8 @@ components: example: {} properties: field: - description: When type is `http_header`, name of the header to use to extract - the value. + description: When type is `http_header` or `grpc_metadata`, name of the + header or metadatum to extract. example: content-type type: string name: @@ -15380,7 +15398,7 @@ components: description: Determines whether or not the extracted value will be obfuscated. type: boolean type: - $ref: '#/components/schemas/SyntheticsGlobalVariableParseTestOptionsType' + $ref: '#/components/schemas/SyntheticsLocalVariableParsingOptionsType' type: object SyntheticsPatchTestBody: description: Wrapper around an array of [JSON Patch](https://jsonpatch.com) @@ -15955,7 +15973,7 @@ components: type: object SyntheticsTestMetadata: additionalProperties: - description: A single Metadatum. + description: A single metadatum. type: string description: Metadata to include when performing the gRPC test. type: object diff --git a/packages/datadog-api-client-v1/index.ts b/packages/datadog-api-client-v1/index.ts index 36daef2619e..62e36ca5aad 100644 --- a/packages/datadog-api-client-v1/index.ts +++ b/packages/datadog-api-client-v1/index.ts @@ -947,6 +947,7 @@ export { SyntheticsGlobalVariableTOTPParameters } from "./models/SyntheticsGloba export { SyntheticsGlobalVariableValue } from "./models/SyntheticsGlobalVariableValue"; export { SyntheticsListGlobalVariablesResponse } from "./models/SyntheticsListGlobalVariablesResponse"; export { SyntheticsListTestsResponse } from "./models/SyntheticsListTestsResponse"; +export { SyntheticsLocalVariableParsingOptionsType } from "./models/SyntheticsLocalVariableParsingOptionsType"; export { SyntheticsLocation } from "./models/SyntheticsLocation"; export { SyntheticsLocations } from "./models/SyntheticsLocations"; export { SyntheticsParsingOptions } from "./models/SyntheticsParsingOptions"; diff --git a/packages/datadog-api-client-v1/models/ObjectSerializer.ts b/packages/datadog-api-client-v1/models/ObjectSerializer.ts index eb8ea8812cf..9fd15d6a744 100644 --- a/packages/datadog-api-client-v1/models/ObjectSerializer.ts +++ b/packages/datadog-api-client-v1/models/ObjectSerializer.ts @@ -1333,9 +1333,17 @@ const enumsMap: { [key: string]: any[] } = { SyntheticsGlobalVariableParseTestOptionsType: [ "http_body", "http_header", + "http_status_code", "local_variable", ], SyntheticsGlobalVariableParserType: ["raw", "json_path", "regex", "x_path"], + SyntheticsLocalVariableParsingOptionsType: [ + "grpc_message", + "grpc_metadata", + "http_body", + "http_header", + "http_status_code", + ], SyntheticsPatchTestOperationName: [ "add", "remove", diff --git a/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptions.ts b/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptions.ts index 9901c1424bd..e4ec595d6dd 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptions.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptions.ts @@ -25,7 +25,7 @@ export class SyntheticsGlobalVariableParseTestOptions { */ "parser"?: SyntheticsVariableParser; /** - * Property of the Synthetic Test Response to use for a Synthetic global variable. + * Type of value to extract from a test for a Synthetic global variable. */ "type": SyntheticsGlobalVariableParseTestOptionsType; diff --git a/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptionsType.ts b/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptionsType.ts index f65580ce019..fb58ae86750 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptionsType.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptionsType.ts @@ -7,14 +7,16 @@ import { UnparsedObject } from "../../datadog-api-client-common/util"; /** - * Property of the Synthetic Test Response to use for a Synthetic global variable. + * Type of value to extract from a test for a Synthetic global variable. */ export type SyntheticsGlobalVariableParseTestOptionsType = | typeof HTTP_BODY | typeof HTTP_HEADER + | typeof HTTP_STATUS_CODE | typeof LOCAL_VARIABLE | UnparsedObject; export const HTTP_BODY = "http_body"; export const HTTP_HEADER = "http_header"; +export const HTTP_STATUS_CODE = "http_status_code"; export const LOCAL_VARIABLE = "local_variable"; diff --git a/packages/datadog-api-client-v1/models/SyntheticsLocalVariableParsingOptionsType.ts b/packages/datadog-api-client-v1/models/SyntheticsLocalVariableParsingOptionsType.ts new file mode 100644 index 00000000000..c7d905b5f14 --- /dev/null +++ b/packages/datadog-api-client-v1/models/SyntheticsLocalVariableParsingOptionsType.ts @@ -0,0 +1,24 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +/** + * Property of the Synthetic Test Response to extract into a local variable. + */ + +export type SyntheticsLocalVariableParsingOptionsType = + | typeof GRPC_MESSAGE + | typeof GRPC_METADATA + | typeof HTTP_BODY + | typeof HTTP_HEADER + | typeof HTTP_STATUS_CODE + | UnparsedObject; +export const GRPC_MESSAGE = "grpc_message"; +export const GRPC_METADATA = "grpc_metadata"; +export const HTTP_BODY = "http_body"; +export const HTTP_HEADER = "http_header"; +export const HTTP_STATUS_CODE = "http_status_code"; diff --git a/packages/datadog-api-client-v1/models/SyntheticsParsingOptions.ts b/packages/datadog-api-client-v1/models/SyntheticsParsingOptions.ts index 0dc21785632..a77a5332086 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsParsingOptions.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsParsingOptions.ts @@ -3,7 +3,7 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ -import { SyntheticsGlobalVariableParseTestOptionsType } from "./SyntheticsGlobalVariableParseTestOptionsType"; +import { SyntheticsLocalVariableParsingOptionsType } from "./SyntheticsLocalVariableParsingOptionsType"; import { SyntheticsVariableParser } from "./SyntheticsVariableParser"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; @@ -13,7 +13,7 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util"; */ export class SyntheticsParsingOptions { /** - * When type is `http_header`, name of the header to use to extract the value. + * When type is `http_header` or `grpc_metadata`, name of the header or metadatum to extract. */ "field"?: string; /** @@ -29,9 +29,9 @@ export class SyntheticsParsingOptions { */ "secure"?: boolean; /** - * Property of the Synthetic Test Response to use for a Synthetic global variable. + * Property of the Synthetic Test Response to extract into a local variable. */ - "type"?: SyntheticsGlobalVariableParseTestOptionsType; + "type"?: SyntheticsLocalVariableParsingOptionsType; /** * A container for additional, undeclared properties. @@ -67,7 +67,7 @@ export class SyntheticsParsingOptions { }, type: { baseName: "type", - type: "SyntheticsGlobalVariableParseTestOptionsType", + type: "SyntheticsLocalVariableParsingOptionsType", }, additionalProperties: { baseName: "additionalProperties",