Skip to content

Commit dd3ef19

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 851b688f of spec repo
1 parent 1e54c78 commit dd3ef19

9 files changed

+154
-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-01-22 15:54:08.561505",
8-
"spec_repo_commit": "7a8ea4b1"
7+
"regenerated": "2025-01-23 17:48:47.797757",
8+
"spec_repo_commit": "851b688f"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-01-22 15:54:08.576092",
13-
"spec_repo_commit": "7a8ea4b1"
12+
"regenerated": "2025-01-23 17:48:47.812898",
13+
"spec_repo_commit": "851b688f"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16762,6 +16762,8 @@ components:
1676216762
description: The bucket where the archive will be stored.
1676316763
example: bucket-name
1676416764
type: string
16765+
encryption:
16766+
$ref: '#/components/schemas/LogsArchiveEncryptionS3'
1676516767
integration:
1676616768
$ref: '#/components/schemas/LogsArchiveIntegrationS3'
1676716769
path:
@@ -16783,6 +16785,30 @@ components:
1678316785
type: string
1678416786
x-enum-varnames:
1678516787
- S3
16788+
LogsArchiveEncryptionS3:
16789+
description: The S3 encryption settings.
16790+
properties:
16791+
key:
16792+
description: An Amazon Resource Name (ARN) used to identify an AWS KMS key.
16793+
example: arn:aws:kms:us-east-1:012345678901:key/DatadogIntegrationRoleKms
16794+
type: string
16795+
type:
16796+
$ref: '#/components/schemas/LogsArchiveEncryptionS3Type'
16797+
required:
16798+
- type
16799+
type: object
16800+
LogsArchiveEncryptionS3Type:
16801+
description: Type of S3 encryption for a destination.
16802+
enum:
16803+
- NO_OVERRIDE
16804+
- SSE_S3
16805+
- SSE_KMS
16806+
example: SSE_S3
16807+
type: string
16808+
x-enum-varnames:
16809+
- NO_OVERRIDE
16810+
- SSE_S3
16811+
- SSE_KMS
1678616812
LogsArchiveIntegrationAzure:
1678716813
description: The Azure archive's integration destination.
1678816814
properties:

docs/datadog_api_client.v2.model.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7109,6 +7109,20 @@ datadog\_api\_client.v2.model.logs\_archive\_destination\_s3\_type module
71097109
:members:
71107110
:show-inheritance:
71117111

7112+
datadog\_api\_client.v2.model.logs\_archive\_encryption\_s3 module
7113+
------------------------------------------------------------------
7114+
7115+
.. automodule:: datadog_api_client.v2.model.logs_archive_encryption_s3
7116+
:members:
7117+
:show-inheritance:
7118+
7119+
datadog\_api\_client.v2.model.logs\_archive\_encryption\_s3\_type module
7120+
------------------------------------------------------------------------
7121+
7122+
.. automodule:: datadog_api_client.v2.model.logs_archive_encryption_s3_type
7123+
:members:
7124+
:show-inheritance:
7125+
71127126
datadog\_api\_client.v2.model.logs\_archive\_integration\_azure module
71137127
----------------------------------------------------------------------
71147128

src/datadog_api_client/v2/model/logs_archive_create_request_destination.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ def __init__(self, **kwargs):
3535
3636
:param bucket: The bucket where the archive will be stored.
3737
:type bucket: str
38+
39+
:param encryption: The S3 encryption settings.
40+
:type encryption: LogsArchiveEncryptionS3, optional
3841
"""
3942
super().__init__(kwargs)
4043

src/datadog_api_client/v2/model/logs_archive_destination.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ def __init__(self, **kwargs):
3737
3838
:param bucket: The bucket where the archive will be stored.
3939
:type bucket: str
40+
41+
:param encryption: The S3 encryption settings.
42+
:type encryption: LogsArchiveEncryptionS3, optional
4043
"""
4144
super().__init__(kwargs)
4245

src/datadog_api_client/v2/model/logs_archive_destination_s3.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,29 @@
1414

1515

1616
if TYPE_CHECKING:
17+
from datadog_api_client.v2.model.logs_archive_encryption_s3 import LogsArchiveEncryptionS3
1718
from datadog_api_client.v2.model.logs_archive_integration_s3 import LogsArchiveIntegrationS3
1819
from datadog_api_client.v2.model.logs_archive_destination_s3_type import LogsArchiveDestinationS3Type
1920

2021

2122
class LogsArchiveDestinationS3(ModelNormal):
2223
@cached_property
2324
def openapi_types(_):
25+
from datadog_api_client.v2.model.logs_archive_encryption_s3 import LogsArchiveEncryptionS3
2426
from datadog_api_client.v2.model.logs_archive_integration_s3 import LogsArchiveIntegrationS3
2527
from datadog_api_client.v2.model.logs_archive_destination_s3_type import LogsArchiveDestinationS3Type
2628

2729
return {
2830
"bucket": (str,),
31+
"encryption": (LogsArchiveEncryptionS3,),
2932
"integration": (LogsArchiveIntegrationS3,),
3033
"path": (str,),
3134
"type": (LogsArchiveDestinationS3Type,),
3235
}
3336

3437
attribute_map = {
3538
"bucket": "bucket",
39+
"encryption": "encryption",
3640
"integration": "integration",
3741
"path": "path",
3842
"type": "type",
@@ -43,6 +47,7 @@ def __init__(
4347
bucket: str,
4448
integration: LogsArchiveIntegrationS3,
4549
type: LogsArchiveDestinationS3Type,
50+
encryption: Union[LogsArchiveEncryptionS3, UnsetType] = unset,
4651
path: Union[str, UnsetType] = unset,
4752
**kwargs,
4853
):
@@ -52,6 +57,9 @@ def __init__(
5257
:param bucket: The bucket where the archive will be stored.
5358
:type bucket: str
5459
60+
:param encryption: The S3 encryption settings.
61+
:type encryption: LogsArchiveEncryptionS3, optional
62+
5563
:param integration: The S3 Archive's integration destination.
5664
:type integration: LogsArchiveIntegrationS3
5765
@@ -61,6 +69,8 @@ def __init__(
6169
:param type: Type of the S3 archive destination.
6270
:type type: LogsArchiveDestinationS3Type
6371
"""
72+
if encryption is not unset:
73+
kwargs["encryption"] = encryption
6474
if path is not unset:
6575
kwargs["path"] = path
6676
super().__init__(kwargs)
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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+
from typing import Union, TYPE_CHECKING
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
unset,
12+
UnsetType,
13+
)
14+
15+
16+
if TYPE_CHECKING:
17+
from datadog_api_client.v2.model.logs_archive_encryption_s3_type import LogsArchiveEncryptionS3Type
18+
19+
20+
class LogsArchiveEncryptionS3(ModelNormal):
21+
@cached_property
22+
def openapi_types(_):
23+
from datadog_api_client.v2.model.logs_archive_encryption_s3_type import LogsArchiveEncryptionS3Type
24+
25+
return {
26+
"key": (str,),
27+
"type": (LogsArchiveEncryptionS3Type,),
28+
}
29+
30+
attribute_map = {
31+
"key": "key",
32+
"type": "type",
33+
}
34+
35+
def __init__(self_, type: LogsArchiveEncryptionS3Type, key: Union[str, UnsetType] = unset, **kwargs):
36+
"""
37+
The S3 encryption settings.
38+
39+
:param key: An Amazon Resource Name (ARN) used to identify an AWS KMS key.
40+
:type key: str, optional
41+
42+
:param type: Type of S3 encryption for a destination.
43+
:type type: LogsArchiveEncryptionS3Type
44+
"""
45+
if key is not unset:
46+
kwargs["key"] = key
47+
super().__init__(kwargs)
48+
49+
self_.type = type
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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 LogsArchiveEncryptionS3Type(ModelSimple):
16+
"""
17+
Type of S3 encryption for a destination.
18+
19+
:param value: Must be one of ["NO_OVERRIDE", "SSE_S3", "SSE_KMS"].
20+
:type value: str
21+
"""
22+
23+
allowed_values = {
24+
"NO_OVERRIDE",
25+
"SSE_S3",
26+
"SSE_KMS",
27+
}
28+
NO_OVERRIDE: ClassVar["LogsArchiveEncryptionS3Type"]
29+
SSE_S3: ClassVar["LogsArchiveEncryptionS3Type"]
30+
SSE_KMS: ClassVar["LogsArchiveEncryptionS3Type"]
31+
32+
@cached_property
33+
def openapi_types(_):
34+
return {
35+
"value": (str,),
36+
}
37+
38+
39+
LogsArchiveEncryptionS3Type.NO_OVERRIDE = LogsArchiveEncryptionS3Type("NO_OVERRIDE")
40+
LogsArchiveEncryptionS3Type.SSE_S3 = LogsArchiveEncryptionS3Type("SSE_S3")
41+
LogsArchiveEncryptionS3Type.SSE_KMS = LogsArchiveEncryptionS3Type("SSE_KMS")

src/datadog_api_client/v2/models/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,6 +1227,8 @@
12271227
from datadog_api_client.v2.model.logs_archive_destination_gcs_type import LogsArchiveDestinationGCSType
12281228
from datadog_api_client.v2.model.logs_archive_destination_s3 import LogsArchiveDestinationS3
12291229
from datadog_api_client.v2.model.logs_archive_destination_s3_type import LogsArchiveDestinationS3Type
1230+
from datadog_api_client.v2.model.logs_archive_encryption_s3 import LogsArchiveEncryptionS3
1231+
from datadog_api_client.v2.model.logs_archive_encryption_s3_type import LogsArchiveEncryptionS3Type
12301232
from datadog_api_client.v2.model.logs_archive_integration_azure import LogsArchiveIntegrationAzure
12311233
from datadog_api_client.v2.model.logs_archive_integration_gcs import LogsArchiveIntegrationGCS
12321234
from datadog_api_client.v2.model.logs_archive_integration_s3 import LogsArchiveIntegrationS3
@@ -3391,6 +3393,8 @@
33913393
"LogsArchiveDestinationGCSType",
33923394
"LogsArchiveDestinationS3",
33933395
"LogsArchiveDestinationS3Type",
3396+
"LogsArchiveEncryptionS3",
3397+
"LogsArchiveEncryptionS3Type",
33943398
"LogsArchiveIntegrationAzure",
33953399
"LogsArchiveIntegrationGCS",
33963400
"LogsArchiveIntegrationS3",

0 commit comments

Comments
 (0)