Skip to content

Commit 6d270c4

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
[obs-pipelines] Add TLS support to cloud_prem destination (#1789)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent b8af33d commit 6d270c4

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64968,6 +64968,9 @@ components:
6496864968
description: The ID of a component whose output is used as input for this destination.
6496964969
type: string
6497064970
type: array
64971+
tls:
64972+
$ref: "#/components/schemas/ObservabilityPipelineTls"
64973+
description: Configuration for TLS encryption.
6497164974
type:
6497264975
$ref: "#/components/schemas/ObservabilityPipelineCloudPremDestinationType"
6497364976
required:

src/datadogV2/model/model_observability_pipeline_cloud_prem_destination.rs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ pub struct ObservabilityPipelineCloudPremDestination {
2525
/// A list of component IDs whose output is used as the `input` for this component.
2626
#[serde(rename = "inputs")]
2727
pub inputs: Vec<String>,
28+
/// Configuration for enabling TLS encryption between the pipeline component and external services.
29+
#[serde(rename = "tls")]
30+
pub tls: Option<crate::datadogV2::model::ObservabilityPipelineTls>,
2831
/// The destination type. The value should always be `cloud_prem`.
2932
#[serde(rename = "type")]
3033
pub type_: crate::datadogV2::model::ObservabilityPipelineCloudPremDestinationType,
@@ -46,6 +49,7 @@ impl ObservabilityPipelineCloudPremDestination {
4649
endpoint_url_key: None,
4750
id,
4851
inputs,
52+
tls: None,
4953
type_,
5054
additional_properties: std::collections::BTreeMap::new(),
5155
_unparsed: false,
@@ -65,6 +69,11 @@ impl ObservabilityPipelineCloudPremDestination {
6569
self
6670
}
6771

72+
pub fn tls(mut self, value: crate::datadogV2::model::ObservabilityPipelineTls) -> Self {
73+
self.tls = Some(value);
74+
self
75+
}
76+
6877
pub fn additional_properties(
6978
mut self,
7079
value: std::collections::BTreeMap<String, serde_json::Value>,
@@ -97,6 +106,7 @@ impl<'de> Deserialize<'de> for ObservabilityPipelineCloudPremDestination {
97106
let mut endpoint_url_key: Option<String> = None;
98107
let mut id: Option<String> = None;
99108
let mut inputs: Option<Vec<String>> = None;
109+
let mut tls: Option<crate::datadogV2::model::ObservabilityPipelineTls> = None;
100110
let mut type_: Option<
101111
crate::datadogV2::model::ObservabilityPipelineCloudPremDestinationType,
102112
> = None;
@@ -135,6 +145,12 @@ impl<'de> Deserialize<'de> for ObservabilityPipelineCloudPremDestination {
135145
"inputs" => {
136146
inputs = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
137147
}
148+
"tls" => {
149+
if v.is_null() {
150+
continue;
151+
}
152+
tls = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
153+
}
138154
"type" => {
139155
type_ = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
140156
if let Some(ref _type_) = type_ {
@@ -162,6 +178,7 @@ impl<'de> Deserialize<'de> for ObservabilityPipelineCloudPremDestination {
162178
endpoint_url_key,
163179
id,
164180
inputs,
181+
tls,
165182
type_,
166183
additional_properties,
167184
_unparsed,

0 commit comments

Comments
 (0)