16
16
if TYPE_CHECKING :
17
17
from datadog_api_client .v2 .model .logs_archive_encryption_s3 import LogsArchiveEncryptionS3
18
18
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
19
20
from datadog_api_client .v2 .model .logs_archive_destination_s3_type import LogsArchiveDestinationS3Type
20
21
21
22
@@ -24,13 +25,15 @@ class LogsArchiveDestinationS3(ModelNormal):
24
25
def openapi_types (_ ):
25
26
from datadog_api_client .v2 .model .logs_archive_encryption_s3 import LogsArchiveEncryptionS3
26
27
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
27
29
from datadog_api_client .v2 .model .logs_archive_destination_s3_type import LogsArchiveDestinationS3Type
28
30
29
31
return {
30
32
"bucket" : (str ,),
31
33
"encryption" : (LogsArchiveEncryptionS3 ,),
32
34
"integration" : (LogsArchiveIntegrationS3 ,),
33
35
"path" : (str ,),
36
+ "storage_class" : (LogsArchiveStorageClassS3Type ,),
34
37
"type" : (LogsArchiveDestinationS3Type ,),
35
38
}
36
39
@@ -39,6 +42,7 @@ def openapi_types(_):
39
42
"encryption" : "encryption" ,
40
43
"integration" : "integration" ,
41
44
"path" : "path" ,
45
+ "storage_class" : "storage_class" ,
42
46
"type" : "type" ,
43
47
}
44
48
@@ -49,6 +53,7 @@ def __init__(
49
53
type : LogsArchiveDestinationS3Type ,
50
54
encryption : Union [LogsArchiveEncryptionS3 , UnsetType ] = unset ,
51
55
path : Union [str , UnsetType ] = unset ,
56
+ storage_class : Union [LogsArchiveStorageClassS3Type , UnsetType ] = unset ,
52
57
** kwargs ,
53
58
):
54
59
"""
@@ -66,13 +71,18 @@ def __init__(
66
71
:param path: The archive path.
67
72
:type path: str, optional
68
73
74
+ :param storage_class: The storage class where the archive will be stored.
75
+ :type storage_class: LogsArchiveStorageClassS3Type, optional
76
+
69
77
:param type: Type of the S3 archive destination.
70
78
:type type: LogsArchiveDestinationS3Type
71
79
"""
72
80
if encryption is not unset :
73
81
kwargs ["encryption" ] = encryption
74
82
if path is not unset :
75
83
kwargs ["path" ] = path
84
+ if storage_class is not unset :
85
+ kwargs ["storage_class" ] = storage_class
76
86
super ().__init__ (kwargs )
77
87
78
88
self_ .bucket = bucket
0 commit comments