Skip to content

Commit 02c82e5

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Added storage class information to the S3 archive destination (#2448)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 144fe4f commit 02c82e5

8 files changed

+95
-4
lines changed

.apigentools-info

+4-4
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:37.951420",
8-
"spec_repo_commit": "d6a6faf6"
7+
"regenerated": "2025-03-10 19:36:02.710351",
8+
"spec_repo_commit": "7d0b49f6"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-03-06 21:28:37.967105",
13-
"spec_repo_commit": "d6a6faf6"
12+
"regenerated": "2025-03-10 19:36:02.760966",
13+
"spec_repo_commit": "7d0b49f6"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+19
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:

docs/datadog_api_client.v2.model.rst

+7
Original file line numberDiff line numberDiff line change
@@ -7830,6 +7830,13 @@ datadog\_api\_client.v2.model.logs\_archive\_state module
78307830
:members:
78317831
:show-inheritance:
78327832

7833+
datadog\_api\_client.v2.model.logs\_archive\_storage\_class\_s3\_type module
7834+
----------------------------------------------------------------------------
7835+
7836+
.. automodule:: datadog_api_client.v2.model.logs_archive_storage_class_s3_type
7837+
:members:
7838+
:show-inheritance:
7839+
78337840
datadog\_api\_client.v2.model.logs\_archives module
78347841
---------------------------------------------------
78357842

src/datadog_api_client/v2/model/logs_archive_create_request_destination.py

+3
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ def __init__(self, **kwargs):
3838
3939
:param encryption: The S3 encryption settings.
4040
:type encryption: LogsArchiveEncryptionS3, optional
41+
42+
:param storage_class: The storage class where the archive will be stored.
43+
:type storage_class: LogsArchiveStorageClassS3Type, optional
4144
"""
4245
super().__init__(kwargs)
4346

src/datadog_api_client/v2/model/logs_archive_destination.py

+3
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ def __init__(self, **kwargs):
4040
4141
:param encryption: The S3 encryption settings.
4242
:type encryption: LogsArchiveEncryptionS3, optional
43+
44+
:param storage_class: The storage class where the archive will be stored.
45+
:type storage_class: LogsArchiveStorageClassS3Type, optional
4346
"""
4447
super().__init__(kwargs)
4548

src/datadog_api_client/v2/model/logs_archive_destination_s3.py

+10
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
if TYPE_CHECKING:
1717
from datadog_api_client.v2.model.logs_archive_encryption_s3 import LogsArchiveEncryptionS3
1818
from datadog_api_client.v2.model.logs_archive_integration_s3 import LogsArchiveIntegrationS3
19+
from datadog_api_client.v2.model.logs_archive_storage_class_s3_type import LogsArchiveStorageClassS3Type
1920
from datadog_api_client.v2.model.logs_archive_destination_s3_type import LogsArchiveDestinationS3Type
2021

2122

@@ -24,13 +25,15 @@ class LogsArchiveDestinationS3(ModelNormal):
2425
def openapi_types(_):
2526
from datadog_api_client.v2.model.logs_archive_encryption_s3 import LogsArchiveEncryptionS3
2627
from datadog_api_client.v2.model.logs_archive_integration_s3 import LogsArchiveIntegrationS3
28+
from datadog_api_client.v2.model.logs_archive_storage_class_s3_type import LogsArchiveStorageClassS3Type
2729
from datadog_api_client.v2.model.logs_archive_destination_s3_type import LogsArchiveDestinationS3Type
2830

2931
return {
3032
"bucket": (str,),
3133
"encryption": (LogsArchiveEncryptionS3,),
3234
"integration": (LogsArchiveIntegrationS3,),
3335
"path": (str,),
36+
"storage_class": (LogsArchiveStorageClassS3Type,),
3437
"type": (LogsArchiveDestinationS3Type,),
3538
}
3639

@@ -39,6 +42,7 @@ def openapi_types(_):
3942
"encryption": "encryption",
4043
"integration": "integration",
4144
"path": "path",
45+
"storage_class": "storage_class",
4246
"type": "type",
4347
}
4448

@@ -49,6 +53,7 @@ def __init__(
4953
type: LogsArchiveDestinationS3Type,
5054
encryption: Union[LogsArchiveEncryptionS3, UnsetType] = unset,
5155
path: Union[str, UnsetType] = unset,
56+
storage_class: Union[LogsArchiveStorageClassS3Type, UnsetType] = unset,
5257
**kwargs,
5358
):
5459
"""
@@ -66,13 +71,18 @@ def __init__(
6671
:param path: The archive path.
6772
:type path: str, optional
6873
74+
:param storage_class: The storage class where the archive will be stored.
75+
:type storage_class: LogsArchiveStorageClassS3Type, optional
76+
6977
:param type: Type of the S3 archive destination.
7078
:type type: LogsArchiveDestinationS3Type
7179
"""
7280
if encryption is not unset:
7381
kwargs["encryption"] = encryption
7482
if path is not unset:
7583
kwargs["path"] = path
84+
if storage_class is not unset:
85+
kwargs["storage_class"] = storage_class
7686
super().__init__(kwargs)
7787

7888
self_.bucket = bucket
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
7+
from datadog_api_client.model_utils import (
8+
ModelSimple,
9+
cached_property,
10+
)
11+
12+
from typing import ClassVar
13+
14+
15+
class LogsArchiveStorageClassS3Type(ModelSimple):
16+
"""
17+
The storage class where the archive will be stored.
18+
19+
:param value: If omitted defaults to "STANDARD". Must be one of ["STANDARD", "STANDARD_IA", "ONEZONE_IA", "INTELLIGENT_TIERING", "GLACIER_IR"].
20+
:type value: str
21+
"""
22+
23+
allowed_values = {
24+
"STANDARD",
25+
"STANDARD_IA",
26+
"ONEZONE_IA",
27+
"INTELLIGENT_TIERING",
28+
"GLACIER_IR",
29+
}
30+
STANDARD: ClassVar["LogsArchiveStorageClassS3Type"]
31+
STANDARD_IA: ClassVar["LogsArchiveStorageClassS3Type"]
32+
ONEZONE_IA: ClassVar["LogsArchiveStorageClassS3Type"]
33+
INTELLIGENT_TIERING: ClassVar["LogsArchiveStorageClassS3Type"]
34+
GLACIER_IR: ClassVar["LogsArchiveStorageClassS3Type"]
35+
36+
@cached_property
37+
def openapi_types(_):
38+
return {
39+
"value": (str,),
40+
}
41+
42+
43+
LogsArchiveStorageClassS3Type.STANDARD = LogsArchiveStorageClassS3Type("STANDARD")
44+
LogsArchiveStorageClassS3Type.STANDARD_IA = LogsArchiveStorageClassS3Type("STANDARD_IA")
45+
LogsArchiveStorageClassS3Type.ONEZONE_IA = LogsArchiveStorageClassS3Type("ONEZONE_IA")
46+
LogsArchiveStorageClassS3Type.INTELLIGENT_TIERING = LogsArchiveStorageClassS3Type("INTELLIGENT_TIERING")
47+
LogsArchiveStorageClassS3Type.GLACIER_IR = LogsArchiveStorageClassS3Type("GLACIER_IR")

src/datadog_api_client/v2/models/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -1398,6 +1398,7 @@
13981398
from datadog_api_client.v2.model.logs_archive_order_definition import LogsArchiveOrderDefinition
13991399
from datadog_api_client.v2.model.logs_archive_order_definition_type import LogsArchiveOrderDefinitionType
14001400
from datadog_api_client.v2.model.logs_archive_state import LogsArchiveState
1401+
from datadog_api_client.v2.model.logs_archive_storage_class_s3_type import LogsArchiveStorageClassS3Type
14011402
from datadog_api_client.v2.model.logs_archives import LogsArchives
14021403
from datadog_api_client.v2.model.logs_compute import LogsCompute
14031404
from datadog_api_client.v2.model.logs_compute_type import LogsComputeType
@@ -3762,6 +3763,7 @@
37623763
"LogsArchiveOrderDefinition",
37633764
"LogsArchiveOrderDefinitionType",
37643765
"LogsArchiveState",
3766+
"LogsArchiveStorageClassS3Type",
37653767
"LogsArchives",
37663768
"LogsCompute",
37673769
"LogsComputeType",

0 commit comments

Comments
 (0)