Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-08-21 16:52:40.444167",
"spec_repo_commit": "ffed3856"
"regenerated": "2024-08-21 17:40:58.150524",
"spec_repo_commit": "e8ef24a7"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-08-21 16:52:40.469081",
"spec_repo_commit": "ffed3856"
"regenerated": "2024-08-21 17:40:58.175671",
"spec_repo_commit": "e8ef24a7"
}
}
}
4 changes: 4 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19603,6 +19603,10 @@ components:
description: A description for the suppression rule.
example: This rule suppresses low-severity signals in staging environments.
type: string
editable:
description: Whether the suppression rule is editable.
example: true
type: boolean
enabled:
description: Whether the suppression rule is enabled.
example: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ pub struct SecurityMonitoringSuppressionAttributes {
/// A description for the suppression rule.
#[serde(rename = "description")]
pub description: Option<String>,
/// Whether the suppression rule is editable.
#[serde(rename = "editable")]
pub editable: Option<bool>,
/// Whether the suppression rule is enabled.
#[serde(rename = "enabled")]
pub enabled: Option<bool>,
Expand Down Expand Up @@ -61,6 +64,7 @@ impl SecurityMonitoringSuppressionAttributes {
creator: None,
data_exclusion_query: None,
description: None,
editable: None,
enabled: None,
expiration_date: None,
name: None,
Expand Down Expand Up @@ -94,6 +98,11 @@ impl SecurityMonitoringSuppressionAttributes {
self
}

pub fn editable(mut self, value: bool) -> Self {
self.editable = Some(value);
self
}

pub fn enabled(mut self, value: bool) -> Self {
self.enabled = Some(value);
self
Expand Down Expand Up @@ -170,6 +179,7 @@ impl<'de> Deserialize<'de> for SecurityMonitoringSuppressionAttributes {
let mut creator: Option<crate::datadogV2::model::SecurityMonitoringUser> = None;
let mut data_exclusion_query: Option<String> = None;
let mut description: Option<String> = None;
let mut editable: Option<bool> = None;
let mut enabled: Option<bool> = None;
let mut expiration_date: Option<i64> = None;
let mut name: Option<String> = None;
Expand Down Expand Up @@ -213,6 +223,12 @@ impl<'de> Deserialize<'de> for SecurityMonitoringSuppressionAttributes {
description =
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
}
"editable" => {
if v.is_null() {
continue;
}
editable = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
}
"enabled" => {
if v.is_null() {
continue;
Expand Down Expand Up @@ -277,6 +293,7 @@ impl<'de> Deserialize<'de> for SecurityMonitoringSuppressionAttributes {
creator,
data_exclusion_query,
description,
editable,
enabled,
expiration_date,
name,
Expand Down
Loading