Skip to content

Commit 7cc2c05

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit ca9a9f5c of spec repo
1 parent cd297bf commit 7cc2c05

File tree

4 files changed

+26
-4
lines changed

4 files changed

+26
-4
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": "2024-08-19 19:42:23.265574",
8-
"spec_repo_commit": "e0cd2a66"
7+
"regenerated": "2024-08-20 15:51:34.753619",
8+
"spec_repo_commit": "ca9a9f5c"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-08-19 19:42:23.283513",
13-
"spec_repo_commit": "e0cd2a66"
12+
"regenerated": "2024-08-20 15:51:34.772420",
13+
"spec_repo_commit": "ca9a9f5c"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19549,6 +19549,10 @@ components:
1954919549
description: A description for the suppression rule.
1955019550
example: This rule suppresses low-severity signals in staging environments.
1955119551
type: string
19552+
editable:
19553+
description: Whether the suppression rule is editable.
19554+
example: true
19555+
type: boolean
1955219556
enabled:
1955319557
description: Whether the suppression rule is enabled.
1955419558
example: true

LICENSE-3rdparty.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Component,Origin,License,Copyright
22
addr2line,https://github.com/gimli-rs/addr2line,Apache-2.0 OR MIT,The addr2line Authors
33
adler,https://github.com/jonas-schievink/adler,0BSD OR MIT OR Apache-2.0,Jonas Schievink <[email protected]>
4+
adler2,https://github.com/oyvindln/adler2,0BSD OR MIT OR Apache-2.0,"Jonas Schievink <[email protected]>, oyvindln <[email protected]>"
45
android-tzdata,https://github.com/RumovZ/android-tzdata,MIT OR Apache-2.0,RumovZ
56
android_system_properties,https://github.com/nical/android_system_properties,MIT OR Apache-2.0,Nicolas Silva <[email protected]>
67
anyhow,https://github.com/dtolnay/anyhow,MIT OR Apache-2.0,David Tolnay <[email protected]>

src/datadogV2/model/model_security_monitoring_suppression_attributes.rs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ pub struct SecurityMonitoringSuppressionAttributes {
2323
/// A description for the suppression rule.
2424
#[serde(rename = "description")]
2525
pub description: Option<String>,
26+
/// Whether the suppression rule is editable.
27+
#[serde(rename = "editable")]
28+
pub editable: Option<bool>,
2629
/// Whether the suppression rule is enabled.
2730
#[serde(rename = "enabled")]
2831
pub enabled: Option<bool>,
@@ -59,6 +62,7 @@ impl SecurityMonitoringSuppressionAttributes {
5962
creator: None,
6063
data_exclusion_query: None,
6164
description: None,
65+
editable: None,
6266
enabled: None,
6367
expiration_date: None,
6468
name: None,
@@ -91,6 +95,11 @@ impl SecurityMonitoringSuppressionAttributes {
9195
self
9296
}
9397

98+
pub fn editable(mut self, value: bool) -> Self {
99+
self.editable = Some(value);
100+
self
101+
}
102+
94103
pub fn enabled(mut self, value: bool) -> Self {
95104
self.enabled = Some(value);
96105
self
@@ -159,6 +168,7 @@ impl<'de> Deserialize<'de> for SecurityMonitoringSuppressionAttributes {
159168
let mut creator: Option<crate::datadogV2::model::SecurityMonitoringUser> = None;
160169
let mut data_exclusion_query: Option<String> = None;
161170
let mut description: Option<String> = None;
171+
let mut editable: Option<bool> = None;
162172
let mut enabled: Option<bool> = None;
163173
let mut expiration_date: Option<i64> = None;
164174
let mut name: Option<String> = None;
@@ -198,6 +208,12 @@ impl<'de> Deserialize<'de> for SecurityMonitoringSuppressionAttributes {
198208
description =
199209
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
200210
}
211+
"editable" => {
212+
if v.is_null() {
213+
continue;
214+
}
215+
editable = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
216+
}
201217
"enabled" => {
202218
if v.is_null() {
203219
continue;
@@ -258,6 +274,7 @@ impl<'de> Deserialize<'de> for SecurityMonitoringSuppressionAttributes {
258274
creator,
259275
data_exclusion_query,
260276
description,
277+
editable,
261278
enabled,
262279
expiration_date,
263280
name,

0 commit comments

Comments
 (0)