Skip to content

Commit 5f1ae76

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit bd15e41 of spec repo
1 parent 237cbc1 commit 5f1ae76

File tree

5 files changed

+211
-0
lines changed

5 files changed

+211
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29300,6 +29300,7 @@ components:
2930029300
- $ref: '#/components/schemas/ObservabilityPipelineGooglePubSubSource'
2930129301
- $ref: '#/components/schemas/ObservabilityPipelineHttpClientSource'
2930229302
- $ref: '#/components/schemas/ObservabilityPipelineLogstashSource'
29303+
- $ref: '#/components/schemas/ObservabilityPipelineOpentelemetrySource'
2930329304
- $ref: '#/components/schemas/ObservabilityPipelineSocketSource'
2930429305
ObservabilityPipelineCrowdStrikeNextGenSiemDestination:
2930529306
description: The `crowdstrike_next_gen_siem` destination forwards logs to CrowdStrike
@@ -30749,6 +30750,33 @@ components:
3074930750
type: string
3075030751
x-enum-varnames:
3075130752
- OPENSEARCH
30753+
ObservabilityPipelineOpentelemetrySource:
30754+
description: The `opentelemetry` source receives OpenTelemetry data through
30755+
gRPC or HTTP.
30756+
properties:
30757+
id:
30758+
description: The unique identifier for this component. Used to reference
30759+
this component in other parts of the pipeline (e.g., as input to downstream
30760+
components).
30761+
example: opentelemetry-source
30762+
type: string
30763+
tls:
30764+
$ref: '#/components/schemas/ObservabilityPipelineTls'
30765+
type:
30766+
$ref: '#/components/schemas/ObservabilityPipelineOpentelemetrySourceType'
30767+
required:
30768+
- id
30769+
- type
30770+
type: object
30771+
ObservabilityPipelineOpentelemetrySourceType:
30772+
default: opentelemetry
30773+
description: The source type. The value should always be `opentelemetry`.
30774+
enum:
30775+
- opentelemetry
30776+
example: opentelemetry
30777+
type: string
30778+
x-enum-varnames:
30779+
- OPENTELEMETRY
3075230780
ObservabilityPipelineParseGrokProcessor:
3075330781
description: The `parse_grok` processor extracts structured fields from unstructured
3075430782
log messages using Grok patterns.

lib/datadog_api_client/inflector.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2849,6 +2849,8 @@ def overrides
28492849
"v2.observability_pipeline_ocsf_mapping_library" => "ObservabilityPipelineOcsfMappingLibrary",
28502850
"v2.observability_pipeline_open_search_destination" => "ObservabilityPipelineOpenSearchDestination",
28512851
"v2.observability_pipeline_open_search_destination_type" => "ObservabilityPipelineOpenSearchDestinationType",
2852+
"v2.observability_pipeline_opentelemetry_source" => "ObservabilityPipelineOpentelemetrySource",
2853+
"v2.observability_pipeline_opentelemetry_source_type" => "ObservabilityPipelineOpentelemetrySourceType",
28522854
"v2.observability_pipeline_parse_grok_processor" => "ObservabilityPipelineParseGrokProcessor",
28532855
"v2.observability_pipeline_parse_grok_processor_rule" => "ObservabilityPipelineParseGrokProcessorRule",
28542856
"v2.observability_pipeline_parse_grok_processor_rule_match_rule" => "ObservabilityPipelineParseGrokProcessorRuleMatchRule",

lib/datadog_api_client/v2/models/observability_pipeline_config_source_item.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def openapi_one_of
4141
:'ObservabilityPipelineGooglePubSubSource',
4242
:'ObservabilityPipelineHttpClientSource',
4343
:'ObservabilityPipelineLogstashSource',
44+
:'ObservabilityPipelineOpentelemetrySource',
4445
:'ObservabilityPipelineSocketSource'
4546
]
4647
end
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 `opentelemetry` source receives OpenTelemetry data through gRPC or HTTP.
21+
class ObservabilityPipelineOpentelemetrySource
22+
include BaseGenericModel
23+
24+
# The unique identifier for this component. Used to reference this component in other parts of the pipeline (e.g., as input to downstream components).
25+
attr_reader :id
26+
27+
# Configuration for enabling TLS encryption between the pipeline component and external services.
28+
attr_accessor :tls
29+
30+
# The source type. The value should always be `opentelemetry`.
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' => :'ObservabilityPipelineOpentelemetrySourceType'
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::ObservabilityPipelineOpentelemetrySource` 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 `opentelemetry`.
21+
class ObservabilityPipelineOpentelemetrySourceType
22+
include BaseEnumModel
23+
24+
OPENTELEMETRY = "opentelemetry".freeze
25+
end
26+
end

0 commit comments

Comments
 (0)