Skip to content

Commit 78b2ac9

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Added storage class information to the S3 archive destination (#2279)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 76b3aef commit 78b2ac9

File tree

5 files changed

+65
-5
lines changed

5 files changed

+65
-5
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:39.406736",
8-
"spec_repo_commit": "d6a6faf6"
7+
"regenerated": "2025-03-10 19:35:53.803678",
8+
"spec_repo_commit": "7d0b49f6"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-03-06 21:28:39.424165",
13-
"spec_repo_commit": "d6a6faf6"
12+
"regenerated": "2025-03-10 19:35:53.819390",
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:

lib/datadog_api_client/inflector.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2033,6 +2033,7 @@ def overrides
20332033
"v2.logs_archive_order_definition_type" => "LogsArchiveOrderDefinitionType",
20342034
"v2.logs_archives" => "LogsArchives",
20352035
"v2.logs_archive_state" => "LogsArchiveState",
2036+
"v2.logs_archive_storage_class_s3_type" => "LogsArchiveStorageClassS3Type",
20362037
"v2.logs_compute" => "LogsCompute",
20372038
"v2.logs_compute_type" => "LogsComputeType",
20382039
"v2.logs_group_by" => "LogsGroupBy",

lib/datadog_api_client/v2/models/logs_archive_destination_s3.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ class LogsArchiveDestinationS3
3333
# The archive path.
3434
attr_accessor :path
3535

36+
# The storage class where the archive will be stored.
37+
attr_accessor :storage_class
38+
3639
# Type of the S3 archive destination.
3740
attr_reader :type
3841

@@ -46,6 +49,7 @@ def self.attribute_map
4649
:'encryption' => :'encryption',
4750
:'integration' => :'integration',
4851
:'path' => :'path',
52+
:'storage_class' => :'storage_class',
4953
:'type' => :'type'
5054
}
5155
end
@@ -58,6 +62,7 @@ def self.openapi_types
5862
:'encryption' => :'LogsArchiveEncryptionS3',
5963
:'integration' => :'LogsArchiveIntegrationS3',
6064
:'path' => :'String',
65+
:'storage_class' => :'LogsArchiveStorageClassS3Type',
6166
:'type' => :'LogsArchiveDestinationS3Type'
6267
}
6368
end
@@ -96,6 +101,10 @@ def initialize(attributes = {})
96101
self.path = attributes[:'path']
97102
end
98103

104+
if attributes.key?(:'storage_class')
105+
self.storage_class = attributes[:'storage_class']
106+
end
107+
99108
if attributes.key?(:'type')
100109
self.type = attributes[:'type']
101110
end
@@ -171,6 +180,7 @@ def ==(o)
171180
encryption == o.encryption &&
172181
integration == o.integration &&
173182
path == o.path &&
183+
storage_class == o.storage_class &&
174184
type == o.type &&
175185
additional_properties == o.additional_properties
176186
end
@@ -179,7 +189,7 @@ def ==(o)
179189
# @return [Integer] Hash code
180190
# @!visibility private
181191
def hash
182-
[bucket, encryption, integration, path, type, additional_properties].hash
192+
[bucket, encryption, integration, path, storage_class, type, additional_properties].hash
183193
end
184194
end
185195
end
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
=begin
2+
#Datadog API V2 Collection
3+
4+
#Collection of all Datadog Public endpoints.
5+
6+
The version of the OpenAPI document: 1.0
7+
8+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9+
10+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11+
This product includes software developed at Datadog (https://www.datadoghq.com/).
12+
Copyright 2020-Present Datadog, Inc.
13+
14+
=end
15+
16+
require 'date'
17+
require 'time'
18+
19+
module DatadogAPIClient::V2
20+
# The storage class where the archive will be stored.
21+
class LogsArchiveStorageClassS3Type
22+
include BaseEnumModel
23+
24+
STANDARD = "STANDARD".freeze
25+
STANDARD_IA = "STANDARD_IA".freeze
26+
ONEZONE_IA = "ONEZONE_IA".freeze
27+
INTELLIGENT_TIERING = "INTELLIGENT_TIERING".freeze
28+
GLACIER_IR = "GLACIER_IR".freeze
29+
end
30+
end

0 commit comments

Comments
 (0)