From 44247d2f840a958897cc585f8770246a6b5a0c3b Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 1 Aug 2024 13:00:50 +0000 Subject: [PATCH] Regenerate client from commit 5bb7cdec 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 da1422084363..db8985a3169e 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-07-30 19:24:57.172113", - "spec_repo_commit": "edbd396a" + "regenerated": "2024-08-01 12:59:22.329295", + "spec_repo_commit": "5bb7cdec" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-07-30 19:24:57.190109", - "spec_repo_commit": "edbd396a" + "regenerated": "2024-08-01 12:59:22.347718", + "spec_repo_commit": "5bb7cdec" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 1694c6267d21..6e6762e3c71e 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -15207,17 +15207,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 @@ -15289,6 +15290,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 @@ -15315,8 +15333,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: @@ -15328,7 +15346,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) @@ -15903,7 +15921,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 f103587727cf..159e77ff68fb 100644 --- a/packages/datadog-api-client-v1/index.ts +++ b/packages/datadog-api-client-v1/index.ts @@ -946,6 +946,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 e0c560c18d18..cc647eec1cac 100644 --- a/packages/datadog-api-client-v1/models/ObjectSerializer.ts +++ b/packages/datadog-api-client-v1/models/ObjectSerializer.ts @@ -1332,9 +1332,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 9901c1424bd0..e4ec595d6ddf 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 f65580ce0197..fb58ae86750d 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 000000000000..c7d905b5f14a --- /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 0dc21785632d..a77a5332086a 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",