Skip to content

Commit 82f3c80

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 2350cf2b of spec repo
1 parent 0ce33cd commit 82f3c80

File tree

6 files changed

+204
-5
lines changed

6 files changed

+204
-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-01-23 20:01:34.168001",
8-
"spec_repo_commit": "f985f8bc"
7+
"regenerated": "2025-01-23 20:45:57.205079",
8+
"spec_repo_commit": "2350cf2b"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-01-23 20:01:34.184805",
13-
"spec_repo_commit": "f985f8bc"
12+
"regenerated": "2025-01-23 20:45:57.223176",
13+
"spec_repo_commit": "2350cf2b"
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:

lib/datadog_api_client/inflector.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1915,6 +1915,8 @@ def overrides
19151915
"v2.logs_archive_destination_gcs_type" => "LogsArchiveDestinationGCSType",
19161916
"v2.logs_archive_destination_s3" => "LogsArchiveDestinationS3",
19171917
"v2.logs_archive_destination_s3_type" => "LogsArchiveDestinationS3Type",
1918+
"v2.logs_archive_encryption_s3" => "LogsArchiveEncryptionS3",
1919+
"v2.logs_archive_encryption_s3_type" => "LogsArchiveEncryptionS3Type",
19181920
"v2.logs_archive_integration_azure" => "LogsArchiveIntegrationAzure",
19191921
"v2.logs_archive_integration_gcs" => "LogsArchiveIntegrationGCS",
19201922
"v2.logs_archive_integration_s3" => "LogsArchiveIntegrationS3",

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
@@ -24,6 +24,9 @@ class LogsArchiveDestinationS3
2424
# The bucket where the archive will be stored.
2525
attr_reader :bucket
2626

27+
# The S3 encryption settings.
28+
attr_accessor :encryption
29+
2730
# The S3 Archive's integration destination.
2831
attr_reader :integration
2932

@@ -40,6 +43,7 @@ class LogsArchiveDestinationS3
4043
def self.attribute_map
4144
{
4245
:'bucket' => :'bucket',
46+
:'encryption' => :'encryption',
4347
:'integration' => :'integration',
4448
:'path' => :'path',
4549
:'type' => :'type'
@@ -51,6 +55,7 @@ def self.attribute_map
5155
def self.openapi_types
5256
{
5357
:'bucket' => :'String',
58+
:'encryption' => :'LogsArchiveEncryptionS3',
5459
:'integration' => :'LogsArchiveIntegrationS3',
5560
:'path' => :'String',
5661
:'type' => :'LogsArchiveDestinationS3Type'
@@ -79,6 +84,10 @@ def initialize(attributes = {})
7984
self.bucket = attributes[:'bucket']
8085
end
8186

87+
if attributes.key?(:'encryption')
88+
self.encryption = attributes[:'encryption']
89+
end
90+
8291
if attributes.key?(:'integration')
8392
self.integration = attributes[:'integration']
8493
end
@@ -159,6 +168,7 @@ def ==(o)
159168
return true if self.equal?(o)
160169
self.class == o.class &&
161170
bucket == o.bucket &&
171+
encryption == o.encryption &&
162172
integration == o.integration &&
163173
path == o.path &&
164174
type == o.type &&
@@ -169,7 +179,7 @@ def ==(o)
169179
# @return [Integer] Hash code
170180
# @!visibility private
171181
def hash
172-
[bucket, integration, path, type, additional_properties].hash
182+
[bucket, encryption, integration, path, type, additional_properties].hash
173183
end
174184
end
175185
end
Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
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 S3 encryption settings.
21+
class LogsArchiveEncryptionS3
22+
include BaseGenericModel
23+
24+
# An Amazon Resource Name (ARN) used to identify an AWS KMS key.
25+
attr_accessor :key
26+
27+
# Type of S3 encryption for a destination.
28+
attr_reader :type
29+
30+
attr_accessor :additional_properties
31+
32+
# Attribute mapping from ruby-style variable name to JSON key.
33+
# @!visibility private
34+
def self.attribute_map
35+
{
36+
:'key' => :'key',
37+
:'type' => :'type'
38+
}
39+
end
40+
41+
# Attribute type mapping.
42+
# @!visibility private
43+
def self.openapi_types
44+
{
45+
:'key' => :'String',
46+
:'type' => :'LogsArchiveEncryptionS3Type'
47+
}
48+
end
49+
50+
# Initializes the object
51+
# @param attributes [Hash] Model attributes in the form of hash
52+
# @!visibility private
53+
def initialize(attributes = {})
54+
if (!attributes.is_a?(Hash))
55+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveEncryptionS3` initialize method"
56+
end
57+
58+
self.additional_properties = {}
59+
# check to see if the attribute exists and convert string to symbol for hash key
60+
attributes = attributes.each_with_object({}) { |(k, v), h|
61+
if (!self.class.attribute_map.key?(k.to_sym))
62+
self.additional_properties[k.to_sym] = v
63+
else
64+
h[k.to_sym] = v
65+
end
66+
}
67+
68+
if attributes.key?(:'key')
69+
self.key = attributes[:'key']
70+
end
71+
72+
if attributes.key?(:'type')
73+
self.type = attributes[:'type']
74+
end
75+
end
76+
77+
# Check to see if the all the properties in the model are valid
78+
# @return true if the model is valid
79+
# @!visibility private
80+
def valid?
81+
return false if @type.nil?
82+
true
83+
end
84+
85+
# Custom attribute writer method with validation
86+
# @param type [Object] Object to be assigned
87+
# @!visibility private
88+
def type=(type)
89+
if type.nil?
90+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
91+
end
92+
@type = type
93+
end
94+
95+
# Returns the object in the form of hash, with additionalProperties support.
96+
# @return [Hash] Returns the object in the form of hash
97+
# @!visibility private
98+
def to_hash
99+
hash = {}
100+
self.class.attribute_map.each_pair do |attr, param|
101+
value = self.send(attr)
102+
if value.nil?
103+
is_nullable = self.class.openapi_nullable.include?(attr)
104+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
105+
end
106+
107+
hash[param] = _to_hash(value)
108+
end
109+
self.additional_properties.each_pair do |attr, value|
110+
hash[attr] = value
111+
end
112+
hash
113+
end
114+
115+
# Checks equality by comparing each attribute.
116+
# @param o [Object] Object to be compared
117+
# @!visibility private
118+
def ==(o)
119+
return true if self.equal?(o)
120+
self.class == o.class &&
121+
key == o.key &&
122+
type == o.type &&
123+
additional_properties == o.additional_properties
124+
end
125+
126+
# Calculates hash code according to all attributes.
127+
# @return [Integer] Hash code
128+
# @!visibility private
129+
def hash
130+
[key, type, additional_properties].hash
131+
end
132+
end
133+
end
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
# Type of S3 encryption for a destination.
21+
class LogsArchiveEncryptionS3Type
22+
include BaseEnumModel
23+
24+
NO_OVERRIDE = "NO_OVERRIDE".freeze
25+
SSE_S3 = "SSE_S3".freeze
26+
SSE_KMS = "SSE_KMS".freeze
27+
end
28+
end

0 commit comments

Comments
 (0)