From c1a22d9dbee02ed34e27d47fe58578d5c9a0815f Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Sat, 3 Oct 2026 12:22:34 +0000 Subject: [PATCH] Regenerate client from commit 3ff9804 of spec repo --- .generator/schemas/v1/openapi.yaml | 6 ++++++ features/v1/synthetics.feature | 10 ++++++++++ .../src/v1/models/SyntheticsGlobalVariable.ts | 8 ++++++++ .../src/v1/models/SyntheticsGlobalVariableRequest.ts | 8 ++++++++ 4 files changed, 32 insertions(+) diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index fade3e942021..7b2c342ceacd 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -19275,6 +19275,9 @@ components: description: Unique identifier of the global variable. readOnly: true type: string + is_email: + description: Whether this global variable is a persistent email variable with an email address generated by Datadog. + type: boolean is_fido: description: Determines if the global variable is a FIDO variable. type: boolean @@ -19377,6 +19380,9 @@ components: description: Unique identifier of the global variable. readOnly: true type: string + is_email: + description: Whether this global variable is a persistent email variable. Set this when creating the variable and omit `value`; Datadog generates an immutable email address. The variable cannot be converted to or from a persistent email variable. + type: boolean is_fido: description: Determines if the global variable is a FIDO variable. type: boolean diff --git a/features/v1/synthetics.feature b/features/v1/synthetics.feature index be5b3dfd07ce..bf6051730c5b 100644 --- a/features/v1/synthetics.feature +++ b/features/v1/synthetics.feature @@ -179,6 +179,16 @@ Feature: Synthetics When the request is sent Then the response status is 200 OK + @integration-only @team:DataDog/synthetics-orchestrating-managing + Scenario: Create a persistent email global variable returns a generated address + Given new "CreateGlobalVariable" request + And body with value {"name": "PERSISTENT_EMAIL_{{ unique_upper_alnum }}", "description": "Persistent email variable", "tags": [], "is_email": true} + When the request is sent + Then the response status is 200 OK + And the response "is_email" is equal to true + And the response "value.secure" is equal to false + And the response "value" has field "value" + @replay-only @team:DataDog/synthetics-orchestrating-managing Scenario: Create a private location returns "OK" response Given there is a valid "role" in the system diff --git a/services/synthetics/src/v1/models/SyntheticsGlobalVariable.ts b/services/synthetics/src/v1/models/SyntheticsGlobalVariable.ts index 5d2cce246b66..75a0084070f1 100644 --- a/services/synthetics/src/v1/models/SyntheticsGlobalVariable.ts +++ b/services/synthetics/src/v1/models/SyntheticsGlobalVariable.ts @@ -20,6 +20,10 @@ export class SyntheticsGlobalVariable { * Unique identifier of the global variable. */ "id"?: string; + /** + * Whether this global variable is a persistent email variable with an email address generated by Datadog. + */ + "isEmail"?: boolean; /** * Determines if the global variable is a FIDO variable. */ @@ -76,6 +80,10 @@ export class SyntheticsGlobalVariable { baseName: "id", type: "string", }, + isEmail: { + baseName: "is_email", + type: "boolean", + }, isFido: { baseName: "is_fido", type: "boolean", diff --git a/services/synthetics/src/v1/models/SyntheticsGlobalVariableRequest.ts b/services/synthetics/src/v1/models/SyntheticsGlobalVariableRequest.ts index a63ee0476d24..05915ae811fa 100644 --- a/services/synthetics/src/v1/models/SyntheticsGlobalVariableRequest.ts +++ b/services/synthetics/src/v1/models/SyntheticsGlobalVariableRequest.ts @@ -20,6 +20,10 @@ export class SyntheticsGlobalVariableRequest { * Unique identifier of the global variable. */ "id"?: string; + /** + * Whether this global variable is a persistent email variable. Set this when creating the variable and omit `value`; Datadog generates an immutable email address. The variable cannot be converted to or from a persistent email variable. + */ + "isEmail"?: boolean; /** * Determines if the global variable is a FIDO variable. */ @@ -76,6 +80,10 @@ export class SyntheticsGlobalVariableRequest { baseName: "id", type: "string", }, + isEmail: { + baseName: "is_email", + type: "boolean", + }, isFido: { baseName: "is_fido", type: "boolean",