Skip to content

Commit e1045fa

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 31277fe of spec repo
1 parent bd968ac commit e1045fa

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45795,6 +45795,13 @@ components:
4579545795
description: The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the `input` to downstream components).
4579645796
example: splunk-hec-source
4579745797
type: string
45798+
store_hec_token:
45799+
default: false
45800+
description: |-
45801+
If `true`, the HEC token is stored in the event's metadata and made available to the Enrichment Table
45802+
processor and the `splunk_hec` destination for routing or enrichment based on the token. Defaults to `false`.
45803+
example: true
45804+
type: boolean
4579845805
tls:
4579945806
$ref: "#/components/schemas/ObservabilityPipelineTls"
4580045807
type:

src/datadogV2/model/model_observability_pipeline_splunk_hec_source.rs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ pub struct ObservabilityPipelineSplunkHecSource {
1919
/// The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the `input` to downstream components).
2020
#[serde(rename = "id")]
2121
pub id: String,
22+
/// If `true`, the HEC token is stored in the event's metadata and made available to the Enrichment Table
23+
/// processor and the `splunk_hec` destination for routing or enrichment based on the token. Defaults to `false`.
24+
#[serde(rename = "store_hec_token")]
25+
pub store_hec_token: Option<bool>,
2226
/// Configuration for enabling TLS encryption between the pipeline component and external services.
2327
#[serde(rename = "tls")]
2428
pub tls: Option<crate::datadogV2::model::ObservabilityPipelineTls>,
@@ -40,6 +44,7 @@ impl ObservabilityPipelineSplunkHecSource {
4044
ObservabilityPipelineSplunkHecSource {
4145
address_key: None,
4246
id,
47+
store_hec_token: None,
4348
tls: None,
4449
type_,
4550
additional_properties: std::collections::BTreeMap::new(),
@@ -52,6 +57,11 @@ impl ObservabilityPipelineSplunkHecSource {
5257
self
5358
}
5459

60+
pub fn store_hec_token(mut self, value: bool) -> Self {
61+
self.store_hec_token = Some(value);
62+
self
63+
}
64+
5565
pub fn tls(mut self, value: crate::datadogV2::model::ObservabilityPipelineTls) -> Self {
5666
self.tls = Some(value);
5767
self
@@ -85,6 +95,7 @@ impl<'de> Deserialize<'de> for ObservabilityPipelineSplunkHecSource {
8595
{
8696
let mut address_key: Option<String> = None;
8797
let mut id: Option<String> = None;
98+
let mut store_hec_token: Option<bool> = None;
8899
let mut tls: Option<crate::datadogV2::model::ObservabilityPipelineTls> = None;
89100
let mut type_: Option<
90101
crate::datadogV2::model::ObservabilityPipelineSplunkHecSourceType,
@@ -107,6 +118,13 @@ impl<'de> Deserialize<'de> for ObservabilityPipelineSplunkHecSource {
107118
"id" => {
108119
id = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
109120
}
121+
"store_hec_token" => {
122+
if v.is_null() {
123+
continue;
124+
}
125+
store_hec_token =
126+
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
127+
}
110128
"tls" => {
111129
if v.is_null() {
112130
continue;
@@ -137,6 +155,7 @@ impl<'de> Deserialize<'de> for ObservabilityPipelineSplunkHecSource {
137155
let content = ObservabilityPipelineSplunkHecSource {
138156
address_key,
139157
id,
158+
store_hec_token,
140159
tls,
141160
type_,
142161
additional_properties,

0 commit comments

Comments
 (0)