From 26c191b4868866b274c3d33f5f1282d29cd1259c Mon Sep 17 00:00:00 2001 From: "api-clients-generation-pipeline[bot]" <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Date: Thu, 12 Dec 2024 15:20:06 +0000 Subject: [PATCH] Add daily as a valid enum for SLOReportInterval (#1957) Co-authored-by: ci.datadog-api-spec --- .apigentools-info | 8 ++++---- .generator/schemas/v2/openapi.yaml | 2 ++ packages/datadog-api-client-v2/models/ObjectSerializer.ts | 2 +- .../datadog-api-client-v2/models/SLOReportInterval.ts | 7 ++++++- 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 6ceb2358774..819c991b9af 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-12-12 13:29:32.071714", - "spec_repo_commit": "f0c3c0f4" + "regenerated": "2024-12-12 14:27:07.718319", + "spec_repo_commit": "3ebe762b" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-12-12 13:29:32.090710", - "spec_repo_commit": "f0c3c0f4" + "regenerated": "2024-12-12 14:27:07.738249", + "spec_repo_commit": "3ebe762b" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 643901c6d7f..05e8f325c19 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -21110,11 +21110,13 @@ components: SLOReportInterval: description: The frequency at which report data is to be generated. enum: + - daily - weekly - monthly example: weekly type: string x-enum-varnames: + - DAILY - WEEKLY - MONTHLY SLOReportPostResponse: diff --git a/packages/datadog-api-client-v2/models/ObjectSerializer.ts b/packages/datadog-api-client-v2/models/ObjectSerializer.ts index 845f1111cd5..c606db32a6f 100644 --- a/packages/datadog-api-client-v2/models/ObjectSerializer.ts +++ b/packages/datadog-api-client-v2/models/ObjectSerializer.ts @@ -1808,7 +1808,7 @@ const enumsMap: { [key: string]: any[] } = { RumMetricUniquenessWhen: ["match", "end"], RunHistoricalJobRequestDataType: ["historicalDetectionsJobCreate"], SAMLAssertionAttributesType: ["saml_assertion_attributes"], - SLOReportInterval: ["weekly", "monthly"], + SLOReportInterval: ["daily", "weekly", "monthly"], SLOReportStatus: [ "in_progress", "completed", diff --git a/packages/datadog-api-client-v2/models/SLOReportInterval.ts b/packages/datadog-api-client-v2/models/SLOReportInterval.ts index 93cb1e75f8e..056d97ad75b 100644 --- a/packages/datadog-api-client-v2/models/SLOReportInterval.ts +++ b/packages/datadog-api-client-v2/models/SLOReportInterval.ts @@ -10,6 +10,11 @@ import { UnparsedObject } from "../../datadog-api-client-common/util"; * The frequency at which report data is to be generated. */ -export type SLOReportInterval = typeof WEEKLY | typeof MONTHLY | UnparsedObject; +export type SLOReportInterval = + | typeof DAILY + | typeof WEEKLY + | typeof MONTHLY + | UnparsedObject; +export const DAILY = "daily"; export const WEEKLY = "weekly"; export const MONTHLY = "monthly";