From e843511605ab7ecba8ede8770d1bbf97c7c6a866 Mon Sep 17 00:00:00 2001
From: "ci.datadog-api-spec" <packages@datadoghq.com>
Date: Thu, 23 Jan 2025 20:47:31 +0000
Subject: [PATCH] Regenerate client from commit 2350cf2b of spec repo

---
 .apigentools-info                             |  8 +--
 .generator/schemas/v2/openapi.yaml            | 26 ++++++++
 packages/datadog-api-client-v2/index.ts       |  2 +
 .../models/LogsArchiveDestinationS3.ts        |  9 +++
 .../models/LogsArchiveEncryptionS3.ts         | 62 +++++++++++++++++++
 .../models/LogsArchiveEncryptionS3Type.ts     | 20 ++++++
 .../models/ObjectSerializer.ts                |  3 +
 7 files changed, 126 insertions(+), 4 deletions(-)
 create mode 100644 packages/datadog-api-client-v2/models/LogsArchiveEncryptionS3.ts
 create mode 100644 packages/datadog-api-client-v2/models/LogsArchiveEncryptionS3Type.ts

diff --git a/.apigentools-info b/.apigentools-info
index 1714b7718b13..fe53d1d9143e 100644
--- a/.apigentools-info
+++ b/.apigentools-info
@@ -4,13 +4,13 @@
     "spec_versions": {
         "v1": {
             "apigentools_version": "1.6.6",
-            "regenerated": "2025-01-23 20:01:31.168629",
-            "spec_repo_commit": "f985f8bc"
+            "regenerated": "2025-01-23 20:45:58.623313",
+            "spec_repo_commit": "2350cf2b"
         },
         "v2": {
             "apigentools_version": "1.6.6",
-            "regenerated": "2025-01-23 20:01:31.184080",
-            "spec_repo_commit": "f985f8bc"
+            "regenerated": "2025-01-23 20:45:58.639334",
+            "spec_repo_commit": "2350cf2b"
         }
     }
 }
\ No newline at end of file
diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml
index 169379ce2343..1f5214bdc2aa 100644
--- a/.generator/schemas/v2/openapi.yaml
+++ b/.generator/schemas/v2/openapi.yaml
@@ -16762,6 +16762,8 @@ components:
           description: The bucket where the archive will be stored.
           example: bucket-name
           type: string
+        encryption:
+          $ref: '#/components/schemas/LogsArchiveEncryptionS3'
         integration:
           $ref: '#/components/schemas/LogsArchiveIntegrationS3'
         path:
@@ -16783,6 +16785,30 @@ components:
       type: string
       x-enum-varnames:
       - S3
+    LogsArchiveEncryptionS3:
+      description: The S3 encryption settings.
+      properties:
+        key:
+          description: An Amazon Resource Name (ARN) used to identify an AWS KMS key.
+          example: arn:aws:kms:us-east-1:012345678901:key/DatadogIntegrationRoleKms
+          type: string
+        type:
+          $ref: '#/components/schemas/LogsArchiveEncryptionS3Type'
+      required:
+      - type
+      type: object
+    LogsArchiveEncryptionS3Type:
+      description: Type of S3 encryption for a destination.
+      enum:
+      - NO_OVERRIDE
+      - SSE_S3
+      - SSE_KMS
+      example: SSE_S3
+      type: string
+      x-enum-varnames:
+      - NO_OVERRIDE
+      - SSE_S3
+      - SSE_KMS
     LogsArchiveIntegrationAzure:
       description: The Azure archive's integration destination.
       properties:
diff --git a/packages/datadog-api-client-v2/index.ts b/packages/datadog-api-client-v2/index.ts
index 7a0c57fe7998..624fbcac9223 100644
--- a/packages/datadog-api-client-v2/index.ts
+++ b/packages/datadog-api-client-v2/index.ts
@@ -1627,6 +1627,8 @@ export { LogsArchiveDestinationGCS } from "./models/LogsArchiveDestinationGCS";
 export { LogsArchiveDestinationGCSType } from "./models/LogsArchiveDestinationGCSType";
 export { LogsArchiveDestinationS3 } from "./models/LogsArchiveDestinationS3";
 export { LogsArchiveDestinationS3Type } from "./models/LogsArchiveDestinationS3Type";
+export { LogsArchiveEncryptionS3 } from "./models/LogsArchiveEncryptionS3";
+export { LogsArchiveEncryptionS3Type } from "./models/LogsArchiveEncryptionS3Type";
 export { LogsArchiveIntegrationAzure } from "./models/LogsArchiveIntegrationAzure";
 export { LogsArchiveIntegrationGCS } from "./models/LogsArchiveIntegrationGCS";
 export { LogsArchiveIntegrationS3 } from "./models/LogsArchiveIntegrationS3";
diff --git a/packages/datadog-api-client-v2/models/LogsArchiveDestinationS3.ts b/packages/datadog-api-client-v2/models/LogsArchiveDestinationS3.ts
index 0c99f1e57d2f..27662fecdecb 100644
--- a/packages/datadog-api-client-v2/models/LogsArchiveDestinationS3.ts
+++ b/packages/datadog-api-client-v2/models/LogsArchiveDestinationS3.ts
@@ -4,6 +4,7 @@
  * Copyright 2020-Present Datadog, Inc.
  */
 import { LogsArchiveDestinationS3Type } from "./LogsArchiveDestinationS3Type";
+import { LogsArchiveEncryptionS3 } from "./LogsArchiveEncryptionS3";
 import { LogsArchiveIntegrationS3 } from "./LogsArchiveIntegrationS3";
 
 import { AttributeTypeMap } from "../../datadog-api-client-common/util";
@@ -16,6 +17,10 @@ export class LogsArchiveDestinationS3 {
    * The bucket where the archive will be stored.
    */
   "bucket": string;
+  /**
+   * The S3 encryption settings.
+   */
+  "encryption"?: LogsArchiveEncryptionS3;
   /**
    * The S3 Archive's integration destination.
    */
@@ -50,6 +55,10 @@ export class LogsArchiveDestinationS3 {
       type: "string",
       required: true,
     },
+    encryption: {
+      baseName: "encryption",
+      type: "LogsArchiveEncryptionS3",
+    },
     integration: {
       baseName: "integration",
       type: "LogsArchiveIntegrationS3",
diff --git a/packages/datadog-api-client-v2/models/LogsArchiveEncryptionS3.ts b/packages/datadog-api-client-v2/models/LogsArchiveEncryptionS3.ts
new file mode 100644
index 000000000000..ada55f290416
--- /dev/null
+++ b/packages/datadog-api-client-v2/models/LogsArchiveEncryptionS3.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 { LogsArchiveEncryptionS3Type } from "./LogsArchiveEncryptionS3Type";
+
+import { AttributeTypeMap } from "../../datadog-api-client-common/util";
+
+/**
+ * The S3 encryption settings.
+ */
+export class LogsArchiveEncryptionS3 {
+  /**
+   * An Amazon Resource Name (ARN) used to identify an AWS KMS key.
+   */
+  "key"?: string;
+  /**
+   * Type of S3 encryption for a destination.
+   */
+  "type": LogsArchiveEncryptionS3Type;
+
+  /**
+   * 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 = {
+    key: {
+      baseName: "key",
+      type: "string",
+    },
+    type: {
+      baseName: "type",
+      type: "LogsArchiveEncryptionS3Type",
+      required: true,
+    },
+    additionalProperties: {
+      baseName: "additionalProperties",
+      type: "any",
+    },
+  };
+
+  /**
+   * @ignore
+   */
+  static getAttributeTypeMap(): AttributeTypeMap {
+    return LogsArchiveEncryptionS3.attributeTypeMap;
+  }
+
+  public constructor() {}
+}
diff --git a/packages/datadog-api-client-v2/models/LogsArchiveEncryptionS3Type.ts b/packages/datadog-api-client-v2/models/LogsArchiveEncryptionS3Type.ts
new file mode 100644
index 000000000000..f2d05f812993
--- /dev/null
+++ b/packages/datadog-api-client-v2/models/LogsArchiveEncryptionS3Type.ts
@@ -0,0 +1,20 @@
+/**
+ * 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";
+
+/**
+ * Type of S3 encryption for a destination.
+ */
+
+export type LogsArchiveEncryptionS3Type =
+  | typeof NO_OVERRIDE
+  | typeof SSE_S3
+  | typeof SSE_KMS
+  | UnparsedObject;
+export const NO_OVERRIDE = "NO_OVERRIDE";
+export const SSE_S3 = "SSE_S3";
+export const SSE_KMS = "SSE_KMS";
diff --git a/packages/datadog-api-client-v2/models/ObjectSerializer.ts b/packages/datadog-api-client-v2/models/ObjectSerializer.ts
index 26446ae6644d..29ff08db1b60 100644
--- a/packages/datadog-api-client-v2/models/ObjectSerializer.ts
+++ b/packages/datadog-api-client-v2/models/ObjectSerializer.ts
@@ -773,6 +773,7 @@ import { LogsArchiveDefinition } from "./LogsArchiveDefinition";
 import { LogsArchiveDestinationAzure } from "./LogsArchiveDestinationAzure";
 import { LogsArchiveDestinationGCS } from "./LogsArchiveDestinationGCS";
 import { LogsArchiveDestinationS3 } from "./LogsArchiveDestinationS3";
+import { LogsArchiveEncryptionS3 } from "./LogsArchiveEncryptionS3";
 import { LogsArchiveIntegrationAzure } from "./LogsArchiveIntegrationAzure";
 import { LogsArchiveIntegrationGCS } from "./LogsArchiveIntegrationGCS";
 import { LogsArchiveIntegrationS3 } from "./LogsArchiveIntegrationS3";
@@ -1889,6 +1890,7 @@ const enumsMap: { [key: string]: any[] } = {
   LogsArchiveDestinationAzureType: ["azure"],
   LogsArchiveDestinationGCSType: ["gcs"],
   LogsArchiveDestinationS3Type: ["s3"],
+  LogsArchiveEncryptionS3Type: ["NO_OVERRIDE", "SSE_S3", "SSE_KMS"],
   LogsArchiveOrderDefinitionType: ["archive_order"],
   LogsArchiveState: ["UNKNOWN", "WORKING", "FAILING", "WORKING_AUTH_LEGACY"],
   LogsComputeType: ["timeseries", "total"],
@@ -3204,6 +3206,7 @@ const typeMap: { [index: string]: any } = {
   LogsArchiveDestinationAzure: LogsArchiveDestinationAzure,
   LogsArchiveDestinationGCS: LogsArchiveDestinationGCS,
   LogsArchiveDestinationS3: LogsArchiveDestinationS3,
+  LogsArchiveEncryptionS3: LogsArchiveEncryptionS3,
   LogsArchiveIntegrationAzure: LogsArchiveIntegrationAzure,
   LogsArchiveIntegrationGCS: LogsArchiveIntegrationGCS,
   LogsArchiveIntegrationS3: LogsArchiveIntegrationS3,