Skip to content

Commit 916ce51

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Added storage class information to the S3 archive destination (#2091)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 59c9b7a commit 916ce51

File tree

6 files changed

+64
-4
lines changed

6 files changed

+64
-4
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-03-06 21:28:33.227511",
8-
"spec_repo_commit": "d6a6faf6"
7+
"regenerated": "2025-03-10 19:36:00.246192",
8+
"spec_repo_commit": "7d0b49f6"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-03-06 21:28:33.247005",
13-
"spec_repo_commit": "d6a6faf6"
12+
"regenerated": "2025-03-10 19:36:00.262164",
13+
"spec_repo_commit": "7d0b49f6"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18459,6 +18459,8 @@ components:
1845918459
path:
1846018460
description: The archive path.
1846118461
type: string
18462+
storage_class:
18463+
$ref: '#/components/schemas/LogsArchiveStorageClassS3Type'
1846218464
type:
1846318465
$ref: '#/components/schemas/LogsArchiveDestinationS3Type'
1846418466
required:
@@ -18602,6 +18604,23 @@ components:
1860218604
- WORKING
1860318605
- FAILING
1860418606
- WORKING_AUTH_LEGACY
18607+
LogsArchiveStorageClassS3Type:
18608+
default: STANDARD
18609+
description: The storage class where the archive will be stored.
18610+
enum:
18611+
- STANDARD
18612+
- STANDARD_IA
18613+
- ONEZONE_IA
18614+
- INTELLIGENT_TIERING
18615+
- GLACIER_IR
18616+
example: STANDARD
18617+
type: string
18618+
x-enum-varnames:
18619+
- STANDARD
18620+
- STANDARD_IA
18621+
- ONEZONE_IA
18622+
- INTELLIGENT_TIERING
18623+
- GLACIER_IR
1860518624
LogsArchives:
1860618625
description: The available archives.
1860718626
properties:

packages/datadog-api-client-v2/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1777,6 +1777,7 @@ export { LogsArchiveOrderDefinition } from "./models/LogsArchiveOrderDefinition"
17771777
export { LogsArchiveOrderDefinitionType } from "./models/LogsArchiveOrderDefinitionType";
17781778
export { LogsArchives } from "./models/LogsArchives";
17791779
export { LogsArchiveState } from "./models/LogsArchiveState";
1780+
export { LogsArchiveStorageClassS3Type } from "./models/LogsArchiveStorageClassS3Type";
17801781
export { LogsCompute } from "./models/LogsCompute";
17811782
export { LogsComputeType } from "./models/LogsComputeType";
17821783
export { LogsGroupBy } from "./models/LogsGroupBy";

packages/datadog-api-client-v2/models/LogsArchiveDestinationS3.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import { LogsArchiveDestinationS3Type } from "./LogsArchiveDestinationS3Type";
77
import { LogsArchiveEncryptionS3 } from "./LogsArchiveEncryptionS3";
88
import { LogsArchiveIntegrationS3 } from "./LogsArchiveIntegrationS3";
9+
import { LogsArchiveStorageClassS3Type } from "./LogsArchiveStorageClassS3Type";
910

1011
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
1112

@@ -29,6 +30,10 @@ export class LogsArchiveDestinationS3 {
2930
* The archive path.
3031
*/
3132
"path"?: string;
33+
/**
34+
* The storage class where the archive will be stored.
35+
*/
36+
"storageClass"?: LogsArchiveStorageClassS3Type;
3237
/**
3338
* Type of the S3 archive destination.
3439
*/
@@ -68,6 +73,10 @@ export class LogsArchiveDestinationS3 {
6873
baseName: "path",
6974
type: "string",
7075
},
76+
storageClass: {
77+
baseName: "storage_class",
78+
type: "LogsArchiveStorageClassS3Type",
79+
},
7180
type: {
7281
baseName: "type",
7382
type: "LogsArchiveDestinationS3Type",
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/**
2+
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
3+
* This product includes software developed at Datadog (https://www.datadoghq.com/).
4+
* Copyright 2020-Present Datadog, Inc.
5+
*/
6+
7+
import { UnparsedObject } from "../../datadog-api-client-common/util";
8+
9+
/**
10+
* The storage class where the archive will be stored.
11+
*/
12+
13+
export type LogsArchiveStorageClassS3Type =
14+
| typeof STANDARD
15+
| typeof STANDARD_IA
16+
| typeof ONEZONE_IA
17+
| typeof INTELLIGENT_TIERING
18+
| typeof GLACIER_IR
19+
| UnparsedObject;
20+
export const STANDARD = "STANDARD";
21+
export const STANDARD_IA = "STANDARD_IA";
22+
export const ONEZONE_IA = "ONEZONE_IA";
23+
export const INTELLIGENT_TIERING = "INTELLIGENT_TIERING";
24+
export const GLACIER_IR = "GLACIER_IR";

packages/datadog-api-client-v2/models/ObjectSerializer.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2105,6 +2105,13 @@ const enumsMap: { [key: string]: any[] } = {
21052105
LogsArchiveEncryptionS3Type: ["NO_OVERRIDE", "SSE_S3", "SSE_KMS"],
21062106
LogsArchiveOrderDefinitionType: ["archive_order"],
21072107
LogsArchiveState: ["UNKNOWN", "WORKING", "FAILING", "WORKING_AUTH_LEGACY"],
2108+
LogsArchiveStorageClassS3Type: [
2109+
"STANDARD",
2110+
"STANDARD_IA",
2111+
"ONEZONE_IA",
2112+
"INTELLIGENT_TIERING",
2113+
"GLACIER_IR",
2114+
],
21082115
LogsComputeType: ["timeseries", "total"],
21092116
LogsMetricComputeAggregationType: ["count", "distribution"],
21102117
LogsMetricResponseComputeAggregationType: ["count", "distribution"],

0 commit comments

Comments
 (0)