Skip to content

Commit f5b6653

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 80f37b17 of spec repo
1 parent 5239576 commit f5b6653

11 files changed

+483
-22
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-04-07 18:49:35.758318",
8-
"spec_repo_commit": "d0287df0"
7+
"regenerated": "2025-04-08 12:10:11.559729",
8+
"spec_repo_commit": "80f37b17"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-04-07 18:49:35.774014",
13-
"spec_repo_commit": "d0287df0"
12+
"regenerated": "2025-04-08 12:10:11.575094",
13+
"spec_repo_commit": "80f37b17"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 71 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21567,7 +21567,6 @@ components:
2156721567
type: array
2156821568
required:
2156921569
- sources
21570-
- processors
2157121570
- destinations
2157221571
type: object
2157321572
ObservabilityPipelineConfigDestinationItem:
@@ -21583,11 +21582,13 @@ components:
2158321582
- $ref: '#/components/schemas/ObservabilityPipelineAddFieldsProcessor'
2158421583
- $ref: '#/components/schemas/ObservabilityPipelineRemoveFieldsProcessor'
2158521584
- $ref: '#/components/schemas/ObservabilityPipelineRenameFieldsProcessor'
21585+
- $ref: '#/components/schemas/ObservabilityPipelineSampleProcessor'
2158621586
ObservabilityPipelineConfigSourceItem:
2158721587
description: A data source for the pipeline.
2158821588
oneOf:
2158921589
- $ref: '#/components/schemas/ObservabilityPipelineKafkaSource'
2159021590
- $ref: '#/components/schemas/ObservabilityPipelineDatadogAgentSource'
21591+
- $ref: '#/components/schemas/ObservabilityPipelineFluentSource'
2159121592
ObservabilityPipelineCreateRequest:
2159221593
description: Top-level schema representing a pipeline.
2159321594
properties:
@@ -21759,6 +21760,32 @@ components:
2175921760
type: string
2176021761
x-enum-varnames:
2176121762
- FILTER
21763+
ObservabilityPipelineFluentSource:
21764+
description: The `fluent` source ingests logs from a Fluentd-compatible service.
21765+
properties:
21766+
id:
21767+
description: The unique identifier for this component. Used to reference
21768+
this component in other parts of the pipeline (for example, as the `input`
21769+
to downstream components).
21770+
example: fluent-source
21771+
type: string
21772+
tls:
21773+
$ref: '#/components/schemas/ObservabilityPipelineTls'
21774+
type:
21775+
$ref: '#/components/schemas/ObservabilityPipelineFluentSourceType'
21776+
required:
21777+
- id
21778+
- type
21779+
type: object
21780+
ObservabilityPipelineFluentSourceType:
21781+
default: fluent
21782+
description: The source type. The value should always be `fluent`.
21783+
enum:
21784+
- fluent
21785+
example: fluent
21786+
type: string
21787+
x-enum-varnames:
21788+
- FLUENT
2176221789
ObservabilityPipelineKafkaSource:
2176321790
description: The `kafka` source ingests data from Apache Kafka topics.
2176421791
properties:
@@ -21926,8 +21953,8 @@ components:
2192621953
limit:
2192721954
$ref: '#/components/schemas/ObservabilityPipelineQuotaProcessorLimit'
2192821955
name:
21929-
description: Name for identifying the processor.
21930-
example: MyPipelineQuotaProcessor
21956+
description: Name of the quota.
21957+
example: MyQuota
2193121958
type: string
2193221959
overrides:
2193321960
description: A list of alternate quota rules that apply to specific sets
@@ -22121,6 +22148,47 @@ components:
2212122148
type: string
2212222149
x-enum-varnames:
2212322150
- RENAME_FIELDS
22151+
ObservabilityPipelineSampleProcessor:
22152+
description: The `sample` processor allows probabilistic sampling of logs at
22153+
a fixed rate.
22154+
properties:
22155+
id:
22156+
description: The unique identifier for this component. Used to reference
22157+
this component in other parts of the pipeline (for example, as the `input`
22158+
to downstream components).
22159+
example: sample-processor
22160+
type: string
22161+
inputs:
22162+
description: A list of component IDs whose output is used as the `input`
22163+
for this component.
22164+
example:
22165+
- filter-processor
22166+
items:
22167+
type: string
22168+
type: array
22169+
rate:
22170+
description: Number of events to sample (1 in N).
22171+
example: 10
22172+
format: int64
22173+
minimum: 1
22174+
type: integer
22175+
type:
22176+
$ref: '#/components/schemas/ObservabilityPipelineSampleProcessorType'
22177+
required:
22178+
- id
22179+
- type
22180+
- rate
22181+
- inputs
22182+
type: object
22183+
ObservabilityPipelineSampleProcessorType:
22184+
default: sample
22185+
description: The processor type. The value should always be `sample`.
22186+
enum:
22187+
- sample
22188+
example: sample
22189+
type: string
22190+
x-enum-varnames:
22191+
- SAMPLE
2212422192
ObservabilityPipelineTls:
2212522193
description: Configuration for enabling TLS encryption.
2212622194
properties:

lib/datadog_api_client/inflector.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2252,6 +2252,8 @@ def overrides
22522252
"v2.observability_pipeline_field_value" => "ObservabilityPipelineFieldValue",
22532253
"v2.observability_pipeline_filter_processor" => "ObservabilityPipelineFilterProcessor",
22542254
"v2.observability_pipeline_filter_processor_type" => "ObservabilityPipelineFilterProcessorType",
2255+
"v2.observability_pipeline_fluent_source" => "ObservabilityPipelineFluentSource",
2256+
"v2.observability_pipeline_fluent_source_type" => "ObservabilityPipelineFluentSourceType",
22552257
"v2.observability_pipeline_kafka_source" => "ObservabilityPipelineKafkaSource",
22562258
"v2.observability_pipeline_kafka_source_librdkafka_option" => "ObservabilityPipelineKafkaSourceLibrdkafkaOption",
22572259
"v2.observability_pipeline_kafka_source_sasl" => "ObservabilityPipelineKafkaSourceSasl",
@@ -2269,6 +2271,8 @@ def overrides
22692271
"v2.observability_pipeline_rename_fields_processor" => "ObservabilityPipelineRenameFieldsProcessor",
22702272
"v2.observability_pipeline_rename_fields_processor_field" => "ObservabilityPipelineRenameFieldsProcessorField",
22712273
"v2.observability_pipeline_rename_fields_processor_type" => "ObservabilityPipelineRenameFieldsProcessorType",
2274+
"v2.observability_pipeline_sample_processor" => "ObservabilityPipelineSampleProcessor",
2275+
"v2.observability_pipeline_sample_processor_type" => "ObservabilityPipelineSampleProcessorType",
22722276
"v2.observability_pipeline_tls" => "ObservabilityPipelineTls",
22732277
"v2.okta_account" => "OktaAccount",
22742278
"v2.okta_account_attributes" => "OktaAccountAttributes",

lib/datadog_api_client/v2/models/observability_pipeline_config.rb

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class ObservabilityPipelineConfig
2525
attr_reader :destinations
2626

2727
# A list of processors that transform or enrich log data.
28-
attr_reader :processors
28+
attr_accessor :processors
2929

3030
# A list of configured data sources for the pipeline.
3131
attr_reader :sources
@@ -94,7 +94,6 @@ def initialize(attributes = {})
9494
# @!visibility private
9595
def valid?
9696
return false if @destinations.nil?
97-
return false if @processors.nil?
9897
return false if @sources.nil?
9998
true
10099
end
@@ -109,16 +108,6 @@ def destinations=(destinations)
109108
@destinations = destinations
110109
end
111110

112-
# Custom attribute writer method with validation
113-
# @param processors [Object] Object to be assigned
114-
# @!visibility private
115-
def processors=(processors)
116-
if processors.nil?
117-
fail ArgumentError, 'invalid value for "processors", processors cannot be nil.'
118-
end
119-
@processors = processors
120-
end
121-
122111
# Custom attribute writer method with validation
123112
# @param sources [Object] Object to be assigned
124113
# @!visibility private

lib/datadog_api_client/v2/models/observability_pipeline_config_processor_item.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ def openapi_one_of
3131
:'ObservabilityPipelineQuotaProcessor',
3232
:'ObservabilityPipelineAddFieldsProcessor',
3333
:'ObservabilityPipelineRemoveFieldsProcessor',
34-
:'ObservabilityPipelineRenameFieldsProcessor'
34+
:'ObservabilityPipelineRenameFieldsProcessor',
35+
:'ObservabilityPipelineSampleProcessor'
3536
]
3637
end
3738
# Builds the object

lib/datadog_api_client/v2/models/observability_pipeline_config_source_item.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ class << self
2727
def openapi_one_of
2828
[
2929
:'ObservabilityPipelineKafkaSource',
30-
:'ObservabilityPipelineDatadogAgentSource'
30+
:'ObservabilityPipelineDatadogAgentSource',
31+
:'ObservabilityPipelineFluentSource'
3132
]
3233
end
3334
# Builds the object
Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
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 `fluent` source ingests logs from a Fluentd-compatible service.
21+
class ObservabilityPipelineFluentSource
22+
include BaseGenericModel
23+
24+
# The unique identifier for this component. Used to reference this component in other parts of the pipeline (for example, as the `input` to downstream components).
25+
attr_reader :id
26+
27+
# Configuration for enabling TLS encryption.
28+
attr_accessor :tls
29+
30+
# The source type. The value should always be `fluent`.
31+
attr_reader :type
32+
33+
attr_accessor :additional_properties
34+
35+
# Attribute mapping from ruby-style variable name to JSON key.
36+
# @!visibility private
37+
def self.attribute_map
38+
{
39+
:'id' => :'id',
40+
:'tls' => :'tls',
41+
:'type' => :'type'
42+
}
43+
end
44+
45+
# Attribute type mapping.
46+
# @!visibility private
47+
def self.openapi_types
48+
{
49+
:'id' => :'String',
50+
:'tls' => :'ObservabilityPipelineTls',
51+
:'type' => :'ObservabilityPipelineFluentSourceType'
52+
}
53+
end
54+
55+
# Initializes the object
56+
# @param attributes [Hash] Model attributes in the form of hash
57+
# @!visibility private
58+
def initialize(attributes = {})
59+
if (!attributes.is_a?(Hash))
60+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ObservabilityPipelineFluentSource` initialize method"
61+
end
62+
63+
self.additional_properties = {}
64+
# check to see if the attribute exists and convert string to symbol for hash key
65+
attributes = attributes.each_with_object({}) { |(k, v), h|
66+
if (!self.class.attribute_map.key?(k.to_sym))
67+
self.additional_properties[k.to_sym] = v
68+
else
69+
h[k.to_sym] = v
70+
end
71+
}
72+
73+
if attributes.key?(:'id')
74+
self.id = attributes[:'id']
75+
end
76+
77+
if attributes.key?(:'tls')
78+
self.tls = attributes[:'tls']
79+
end
80+
81+
if attributes.key?(:'type')
82+
self.type = attributes[:'type']
83+
end
84+
end
85+
86+
# Check to see if the all the properties in the model are valid
87+
# @return true if the model is valid
88+
# @!visibility private
89+
def valid?
90+
return false if @id.nil?
91+
return false if @type.nil?
92+
true
93+
end
94+
95+
# Custom attribute writer method with validation
96+
# @param id [Object] Object to be assigned
97+
# @!visibility private
98+
def id=(id)
99+
if id.nil?
100+
fail ArgumentError, 'invalid value for "id", id cannot be nil.'
101+
end
102+
@id = id
103+
end
104+
105+
# Custom attribute writer method with validation
106+
# @param type [Object] Object to be assigned
107+
# @!visibility private
108+
def type=(type)
109+
if type.nil?
110+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
111+
end
112+
@type = type
113+
end
114+
115+
# Returns the object in the form of hash, with additionalProperties support.
116+
# @return [Hash] Returns the object in the form of hash
117+
# @!visibility private
118+
def to_hash
119+
hash = {}
120+
self.class.attribute_map.each_pair do |attr, param|
121+
value = self.send(attr)
122+
if value.nil?
123+
is_nullable = self.class.openapi_nullable.include?(attr)
124+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
125+
end
126+
127+
hash[param] = _to_hash(value)
128+
end
129+
self.additional_properties.each_pair do |attr, value|
130+
hash[attr] = value
131+
end
132+
hash
133+
end
134+
135+
# Checks equality by comparing each attribute.
136+
# @param o [Object] Object to be compared
137+
# @!visibility private
138+
def ==(o)
139+
return true if self.equal?(o)
140+
self.class == o.class &&
141+
id == o.id &&
142+
tls == o.tls &&
143+
type == o.type &&
144+
additional_properties == o.additional_properties
145+
end
146+
147+
# Calculates hash code according to all attributes.
148+
# @return [Integer] Hash code
149+
# @!visibility private
150+
def hash
151+
[id, tls, type, additional_properties].hash
152+
end
153+
end
154+
end
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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 source type. The value should always be `fluent`.
21+
class ObservabilityPipelineFluentSourceType
22+
include BaseEnumModel
23+
24+
FLUENT = "fluent".freeze
25+
end
26+
end

lib/datadog_api_client/v2/models/observability_pipeline_quota_processor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class ObservabilityPipelineQuotaProcessor
3939
# The maximum amount of data or number of events allowed before the quota is enforced. Can be specified in bytes or events.
4040
attr_reader :limit
4141

42-
# Name for identifying the processor.
42+
# Name of the quota.
4343
attr_reader :name
4444

4545
# A list of alternate quota rules that apply to specific sets of events, identified by matching field values. Each override can define a custom limit.

0 commit comments

Comments
 (0)