Skip to content

Commit c98bae5

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add support for the api_security detection rule type (#726)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent d88a676 commit c98bae5

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-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": "2025-06-18 14:53:43.833602",
8-
"spec_repo_commit": "5f7cad1f"
7+
"regenerated": "2025-06-19 12:11:31.707864",
8+
"spec_repo_commit": "a171e0a8"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-18 14:53:43.850524",
13-
"spec_repo_commit": "5f7cad1f"
12+
"regenerated": "2025-06-19 12:11:31.726573",
13+
"spec_repo_commit": "a171e0a8"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33412,11 +33412,13 @@ components:
3341233412
SecurityMonitoringRuleTypeCreate:
3341333413
description: The rule type.
3341433414
enum:
33415+
- api_security
3341533416
- application_security
3341633417
- log_detection
3341733418
- workload_security
3341833419
type: string
3341933420
x-enum-varnames:
33421+
- API_SECURITY
3342033422
- APPLICATION_SECURITY
3342133423
- LOG_DETECTION
3342233424
- WORKLOAD_SECURITY
@@ -33428,13 +33430,15 @@ components:
3342833430
- workload_security
3342933431
- cloud_configuration
3343033432
- application_security
33433+
- api_security
3343133434
type: string
3343233435
x-enum-varnames:
3343333436
- LOG_DETECTION
3343433437
- INFRASTRUCTURE_CONFIGURATION
3343533438
- WORKLOAD_SECURITY
3343633439
- CLOUD_CONFIGURATION
3343733440
- APPLICATION_SECURITY
33441+
- API_SECURITY
3343833442
SecurityMonitoringRuleTypeTest:
3343933443
description: The rule type.
3344033444
enum:

src/datadogV2/model/model_security_monitoring_rule_type_create.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ use serde::{Deserialize, Deserializer, Serialize, Serializer};
77
#[non_exhaustive]
88
#[derive(Clone, Debug, Eq, PartialEq)]
99
pub enum SecurityMonitoringRuleTypeCreate {
10+
API_SECURITY,
1011
APPLICATION_SECURITY,
1112
LOG_DETECTION,
1213
WORKLOAD_SECURITY,
@@ -16,6 +17,7 @@ pub enum SecurityMonitoringRuleTypeCreate {
1617
impl ToString for SecurityMonitoringRuleTypeCreate {
1718
fn to_string(&self) -> String {
1819
match self {
20+
Self::API_SECURITY => String::from("api_security"),
1921
Self::APPLICATION_SECURITY => String::from("application_security"),
2022
Self::LOG_DETECTION => String::from("log_detection"),
2123
Self::WORKLOAD_SECURITY => String::from("workload_security"),
@@ -43,6 +45,7 @@ impl<'de> Deserialize<'de> for SecurityMonitoringRuleTypeCreate {
4345
{
4446
let s: String = String::deserialize(deserializer)?;
4547
Ok(match s.as_str() {
48+
"api_security" => Self::API_SECURITY,
4649
"application_security" => Self::APPLICATION_SECURITY,
4750
"log_detection" => Self::LOG_DETECTION,
4851
"workload_security" => Self::WORKLOAD_SECURITY,

src/datadogV2/model/model_security_monitoring_rule_type_read.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ pub enum SecurityMonitoringRuleTypeRead {
1212
WORKLOAD_SECURITY,
1313
CLOUD_CONFIGURATION,
1414
APPLICATION_SECURITY,
15+
API_SECURITY,
1516
UnparsedObject(crate::datadog::UnparsedObject),
1617
}
1718

@@ -23,6 +24,7 @@ impl ToString for SecurityMonitoringRuleTypeRead {
2324
Self::WORKLOAD_SECURITY => String::from("workload_security"),
2425
Self::CLOUD_CONFIGURATION => String::from("cloud_configuration"),
2526
Self::APPLICATION_SECURITY => String::from("application_security"),
27+
Self::API_SECURITY => String::from("api_security"),
2628
Self::UnparsedObject(v) => v.value.to_string(),
2729
}
2830
}
@@ -52,6 +54,7 @@ impl<'de> Deserialize<'de> for SecurityMonitoringRuleTypeRead {
5254
"workload_security" => Self::WORKLOAD_SECURITY,
5355
"cloud_configuration" => Self::CLOUD_CONFIGURATION,
5456
"application_security" => Self::APPLICATION_SECURITY,
57+
"api_security" => Self::API_SECURITY,
5558
_ => Self::UnparsedObject(crate::datadog::UnparsedObject {
5659
value: serde_json::Value::String(s.into()),
5760
}),

0 commit comments

Comments
 (0)