From 1a9dadf77d395fb6957676d48d4482b5bc67d973 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Wed, 24 Jun 2026 14:05:47 +0000 Subject: [PATCH] Regenerate client from commit cbf6224 of spec repo --- .generator/schemas/v2/openapi.yaml | 76 ++++++++++++++++++- packages/datadog-api-client-v2/index.ts | 2 + .../models/LogsArchiveDestinationS3.ts | 2 +- .../models/LogsArchiveIntegrationS3.ts | 60 ++------------- .../LogsArchiveIntegrationS3AccessKey.ts | 53 +++++++++++++ .../models/LogsArchiveIntegrationS3Role.ts | 62 +++++++++++++++ .../models/ObjectSerializer.ts | 10 ++- 7 files changed, 207 insertions(+), 58 deletions(-) create mode 100644 packages/datadog-api-client-v2/models/LogsArchiveIntegrationS3AccessKey.ts create mode 100644 packages/datadog-api-client-v2/models/LogsArchiveIntegrationS3Role.ts diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 63f76505a12b..738f4ba6490f 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -56769,19 +56769,35 @@ components: - client_email type: object LogsArchiveIntegrationS3: - description: The S3 Archive's integration destination. + description: >- + The S3 Archive's integration destination. You must provide one of the following: `access_key_id` alone, or both `account_id` and `role_name` together. + oneOf: + - $ref: "#/components/schemas/LogsArchiveIntegrationS3AccessKey" + - $ref: "#/components/schemas/LogsArchiveIntegrationS3Role" + LogsArchiveIntegrationS3AccessKey: + description: The S3 Archive's integration destination using an access key. + properties: + access_key_id: + description: The access key ID for the integration. + example: AKIAIOSFODNN7EXAMPLE + type: string + required: + - access_key_id + type: object + LogsArchiveIntegrationS3Role: + description: The S3 Archive's integration destination using an IAM role. properties: account_id: description: The account ID for the integration. example: "123456789012" type: string role_name: - description: The path of the integration. + description: The name of the role to assume for the integration. example: role-name type: string required: - - role_name - account_id + - role_name type: object LogsArchiveOrder: description: A ordered list of archive IDs. @@ -149153,6 +149169,18 @@ paths: - team:intake - team:app type: archives + s3_access_key_id: + value: + data: + attributes: + destination: + bucket: my-bucket + integration: + access_key_id: AKIAIOSFODNN7EXAMPLE + type: s3 + name: Nginx Archive + query: source:nginx + type: archives schema: $ref: "#/components/schemas/LogsArchiveCreateRequest" description: The definition of the new archive. @@ -149178,6 +149206,21 @@ paths: state: WORKING id: 00000000-0000-0000-0000-000000000002 type: archives + s3_access_key_id: + value: + data: + attributes: + destination: + bucket: my-bucket + integration: + access_key_id: AKIAIOSFODNN7EXAMPLE + type: s3 + include_tags: false + name: Nginx Archive + query: source:nginx + state: WORKING + id: 00000000-0000-0000-0000-000000000002 + type: archives schema: $ref: "#/components/schemas/LogsArchive" description: OK @@ -149327,6 +149370,18 @@ paths: - team:intake - team:app type: archives + s3_access_key_id: + value: + data: + attributes: + destination: + bucket: my-bucket + integration: + access_key_id: AKIAIOSFODNN7EXAMPLE + type: s3 + name: Nginx Archive + query: source:nginx + type: archives schema: $ref: "#/components/schemas/LogsArchiveCreateRequest" description: New definition of the archive. @@ -149352,6 +149407,21 @@ paths: state: WORKING id: 00000000-0000-0000-0000-000000000004 type: archives + s3_access_key_id: + value: + data: + attributes: + destination: + bucket: my-bucket + integration: + access_key_id: AKIAIOSFODNN7EXAMPLE + type: s3 + include_tags: false + name: Nginx Archive + query: source:nginx + state: WORKING + id: 00000000-0000-0000-0000-000000000004 + type: archives schema: $ref: "#/components/schemas/LogsArchive" description: OK diff --git a/packages/datadog-api-client-v2/index.ts b/packages/datadog-api-client-v2/index.ts index 4ea9e9052e5e..881d5efc1220 100644 --- a/packages/datadog-api-client-v2/index.ts +++ b/packages/datadog-api-client-v2/index.ts @@ -5088,6 +5088,8 @@ export { LogsArchiveEncryptionS3Type } from "./models/LogsArchiveEncryptionS3Typ export { LogsArchiveIntegrationAzure } from "./models/LogsArchiveIntegrationAzure"; export { LogsArchiveIntegrationGCS } from "./models/LogsArchiveIntegrationGCS"; export { LogsArchiveIntegrationS3 } from "./models/LogsArchiveIntegrationS3"; +export { LogsArchiveIntegrationS3AccessKey } from "./models/LogsArchiveIntegrationS3AccessKey"; +export { LogsArchiveIntegrationS3Role } from "./models/LogsArchiveIntegrationS3Role"; export { LogsArchiveOrder } from "./models/LogsArchiveOrder"; export { LogsArchiveOrderAttributes } from "./models/LogsArchiveOrderAttributes"; export { LogsArchiveOrderDefinition } from "./models/LogsArchiveOrderDefinition"; diff --git a/packages/datadog-api-client-v2/models/LogsArchiveDestinationS3.ts b/packages/datadog-api-client-v2/models/LogsArchiveDestinationS3.ts index 10767a3a90d3..49c169dd3d1d 100644 --- a/packages/datadog-api-client-v2/models/LogsArchiveDestinationS3.ts +++ b/packages/datadog-api-client-v2/models/LogsArchiveDestinationS3.ts @@ -23,7 +23,7 @@ export class LogsArchiveDestinationS3 { */ "encryption"?: LogsArchiveEncryptionS3; /** - * The S3 Archive's integration destination. + * The S3 Archive's integration destination. You must provide one of the following: `access_key_id` alone, or both `account_id` and `role_name` together. */ "integration": LogsArchiveIntegrationS3; /** diff --git a/packages/datadog-api-client-v2/models/LogsArchiveIntegrationS3.ts b/packages/datadog-api-client-v2/models/LogsArchiveIntegrationS3.ts index a39db4757521..29dc6c65387b 100644 --- a/packages/datadog-api-client-v2/models/LogsArchiveIntegrationS3.ts +++ b/packages/datadog-api-client-v2/models/LogsArchiveIntegrationS3.ts @@ -3,60 +3,16 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ +import { LogsArchiveIntegrationS3AccessKey } from "./LogsArchiveIntegrationS3AccessKey"; +import { LogsArchiveIntegrationS3Role } from "./LogsArchiveIntegrationS3Role"; -import { AttributeTypeMap } from "../../datadog-api-client-common/util"; +import { UnparsedObject } from "../../datadog-api-client-common/util"; /** - * The S3 Archive's integration destination. + * The S3 Archive's integration destination. You must provide one of the following: `access_key_id` alone, or both `account_id` and `role_name` together. */ -export class LogsArchiveIntegrationS3 { - /** - * The account ID for the integration. - */ - "accountId": string; - /** - * The path of the integration. - */ - "roleName": string; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - accountId: { - baseName: "account_id", - type: "string", - required: true, - }, - roleName: { - baseName: "role_name", - type: "string", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return LogsArchiveIntegrationS3.attributeTypeMap; - } - - public constructor() {} -} +export type LogsArchiveIntegrationS3 = + | LogsArchiveIntegrationS3AccessKey + | LogsArchiveIntegrationS3Role + | UnparsedObject; diff --git a/packages/datadog-api-client-v2/models/LogsArchiveIntegrationS3AccessKey.ts b/packages/datadog-api-client-v2/models/LogsArchiveIntegrationS3AccessKey.ts new file mode 100644 index 000000000000..ef3b5dabfc85 --- /dev/null +++ b/packages/datadog-api-client-v2/models/LogsArchiveIntegrationS3AccessKey.ts @@ -0,0 +1,53 @@ +/** + * 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 { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The S3 Archive's integration destination using an access key. + */ +export class LogsArchiveIntegrationS3AccessKey { + /** + * The access key ID for the integration. + */ + "accessKeyId": string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + accessKeyId: { + baseName: "access_key_id", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return LogsArchiveIntegrationS3AccessKey.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/LogsArchiveIntegrationS3Role.ts b/packages/datadog-api-client-v2/models/LogsArchiveIntegrationS3Role.ts new file mode 100644 index 000000000000..1cab0586c9b8 --- /dev/null +++ b/packages/datadog-api-client-v2/models/LogsArchiveIntegrationS3Role.ts @@ -0,0 +1,62 @@ +/** + * 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 { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The S3 Archive's integration destination using an IAM role. + */ +export class LogsArchiveIntegrationS3Role { + /** + * The account ID for the integration. + */ + "accountId": string; + /** + * The name of the role to assume for the integration. + */ + "roleName": string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + accountId: { + baseName: "account_id", + type: "string", + required: true, + }, + roleName: { + baseName: "role_name", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return LogsArchiveIntegrationS3Role.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/ObjectSerializer.ts b/packages/datadog-api-client-v2/models/ObjectSerializer.ts index f8a1d42768ec..41f3aa78f28b 100644 --- a/packages/datadog-api-client-v2/models/ObjectSerializer.ts +++ b/packages/datadog-api-client-v2/models/ObjectSerializer.ts @@ -2610,7 +2610,8 @@ import { LogsArchiveDestinationS3 } from "./LogsArchiveDestinationS3"; import { LogsArchiveEncryptionS3 } from "./LogsArchiveEncryptionS3"; import { LogsArchiveIntegrationAzure } from "./LogsArchiveIntegrationAzure"; import { LogsArchiveIntegrationGCS } from "./LogsArchiveIntegrationGCS"; -import { LogsArchiveIntegrationS3 } from "./LogsArchiveIntegrationS3"; +import { LogsArchiveIntegrationS3AccessKey } from "./LogsArchiveIntegrationS3AccessKey"; +import { LogsArchiveIntegrationS3Role } from "./LogsArchiveIntegrationS3Role"; import { LogsArchiveOrder } from "./LogsArchiveOrder"; import { LogsArchiveOrderAttributes } from "./LogsArchiveOrderAttributes"; import { LogsArchiveOrderDefinition } from "./LogsArchiveOrderDefinition"; @@ -11094,7 +11095,8 @@ const typeMap: { [index: string]: any } = { LogsArchiveEncryptionS3: LogsArchiveEncryptionS3, LogsArchiveIntegrationAzure: LogsArchiveIntegrationAzure, LogsArchiveIntegrationGCS: LogsArchiveIntegrationGCS, - LogsArchiveIntegrationS3: LogsArchiveIntegrationS3, + LogsArchiveIntegrationS3AccessKey: LogsArchiveIntegrationS3AccessKey, + LogsArchiveIntegrationS3Role: LogsArchiveIntegrationS3Role, LogsArchiveOrder: LogsArchiveOrder, LogsArchiveOrderAttributes: LogsArchiveOrderAttributes, LogsArchiveOrderDefinition: LogsArchiveOrderDefinition, @@ -14552,6 +14554,10 @@ const oneOfMap: { [index: string]: string[] } = { "LogsArchiveDestinationGCS", "LogsArchiveDestinationS3", ], + LogsArchiveIntegrationS3: [ + "LogsArchiveIntegrationS3AccessKey", + "LogsArchiveIntegrationS3Role", + ], LogsGroupByMissing: ["string", "number"], LogsGroupByTotal: ["boolean", "string", "number"], MetricAssetResponseIncluded: [