Skip to content

Commit

Permalink
Regenerate client from commit 0c05948e of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Feb 6, 2025
1 parent 6b224d2 commit 90e38ac
Show file tree
Hide file tree
Showing 74 changed files with 503 additions and 506 deletions.
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": "2025-02-04 14:10:06.221297",
"spec_repo_commit": "4fb9047a"
"regenerated": "2025-02-06 16:33:54.648658",
"spec_repo_commit": "0c05948e"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-02-04 14:10:06.239068",
"spec_repo_commit": "4fb9047a"
"regenerated": "2025-02-06 16:33:54.663780",
"spec_repo_commit": "0c05948e"
}
}
}
2 changes: 0 additions & 2 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14988,15 +14988,13 @@ components:
- element
- email
- global
- javascript
- text
example: text
type: string
x-enum-varnames:
- ELEMENT
- EMAIL
- GLOBAL
- JAVASCRIPT
- TEXT
SyntheticsCIBatchMetadata:
description: Metadata for the Synthetic tests run.
Expand Down
25 changes: 12 additions & 13 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23184,16 +23184,15 @@ components:
x-enum-varnames:
- RULE
RuleTypes:
description: Security rule types used to filter signals and vulnerabilities
generating notifications.
description: Security rule types used as filters in security rules.
example:
- misconfiguration
- attack_path
items:
$ref: '#/components/schemas/RuleTypesItems'
type: array
RuleTypesItems:
description: 'Security rule types which can be used in notification rules.
description: 'Security rule type which can be used in security rules.

Signal-based notification rules can filter signals based on rule types application_security,
log_detection,
Expand Down Expand Up @@ -44078,7 +44077,7 @@ paths:
appKeyAuth: []
- AuthZ:
- security_monitoring_notification_profiles_read
summary: Get the list of signal-based rules
summary: Get the list of signal-based notification rules
tags:
- Security Monitoring
x-permission:
Expand Down Expand Up @@ -44120,7 +44119,7 @@ paths:
appKeyAuth: []
- AuthZ:
- security_monitoring_notification_profiles_write
summary: Create a new signal-based rule
summary: Create a new signal-based notification rule
tags:
- Security Monitoring
x-codegen-request-body-name: body
Expand Down Expand Up @@ -44153,7 +44152,7 @@ paths:
appKeyAuth: []
- AuthZ:
- security_monitoring_notification_profiles_write
summary: Delete a signal-based rule
summary: Delete a signal-based notification rule
tags:
- Security Monitoring
x-permission:
Expand Down Expand Up @@ -44190,7 +44189,7 @@ paths:
appKeyAuth: []
- AuthZ:
- security_monitoring_notification_profiles_read
summary: Get details of a signal-based rule
summary: Get details of a signal-based notification rule
tags:
- Security Monitoring
x-permission:
Expand Down Expand Up @@ -44236,7 +44235,7 @@ paths:
appKeyAuth: []
- AuthZ:
- security_monitoring_notification_profiles_write
summary: Patch a signal-based rule
summary: Patch a signal-based notification rule
tags:
- Security Monitoring
x-codegen-request-body-name: body
Expand Down Expand Up @@ -44636,7 +44635,7 @@ paths:
appKeyAuth: []
- AuthZ:
- security_monitoring_notification_profiles_read
summary: Get the list of vulnerability-based rules
summary: Get the list of vulnerability notification rules
tags:
- Security Monitoring
x-permission:
Expand Down Expand Up @@ -44678,7 +44677,7 @@ paths:
appKeyAuth: []
- AuthZ:
- security_monitoring_notification_profiles_write
summary: Create a new vulnerability-based rule
summary: Create a new vulnerability-based notification rule
tags:
- Security Monitoring
x-codegen-request-body-name: body
Expand Down Expand Up @@ -44711,7 +44710,7 @@ paths:
appKeyAuth: []
- AuthZ:
- security_monitoring_notification_profiles_write
summary: Delete a vulnerability-based rule
summary: Delete a vulnerability-based notification rule
tags:
- Security Monitoring
x-permission:
Expand Down Expand Up @@ -44748,7 +44747,7 @@ paths:
appKeyAuth: []
- AuthZ:
- security_monitoring_notification_profiles_read
summary: Get details of a vulnerability-based rule
summary: Get details of a vulnerability notification rule
tags:
- Security Monitoring
x-permission:
Expand Down Expand Up @@ -44794,7 +44793,7 @@ paths:
appKeyAuth: []
- AuthZ:
- security_monitoring_notification_profiles_write
summary: Patch a vulnerability-based rule
summary: Patch a vulnerability-based notification rule
tags:
- Security Monitoring
x-codegen-request-body-name: body
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Create a new signal-based rule returns "Successfully created the notification
// rule." response
// Create a new signal-based notification rule returns "Successfully created the
// notification rule." response
use datadog_api_client::datadog;
use datadog_api_client::datadogV2::api_security_monitoring::SecurityMonitoringAPI;
use datadog_api_client::datadogV2::model::CreateNotificationRuleParameters;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Create a new vulnerability-based rule returns "Successfully created the
// notification rule." response
// Create a new vulnerability-based notification rule returns "Successfully
// created the notification rule." response
use datadog_api_client::datadog;
use datadog_api_client::datadogV2::api_security_monitoring::SecurityMonitoringAPI;
use datadog_api_client::datadogV2::model::CreateNotificationRuleParameters;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Delete a signal-based rule returns "Rule successfully deleted." response
// Delete a signal-based notification rule returns "Rule successfully deleted."
// response
use datadog_api_client::datadog;
use datadog_api_client::datadogV2::api_security_monitoring::SecurityMonitoringAPI;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Delete a vulnerability-based rule returns "Rule successfully deleted." response
// Delete a vulnerability-based notification rule returns "Rule successfully
// deleted." response
use datadog_api_client::datadog;
use datadog_api_client::datadogV2::api_security_monitoring::SecurityMonitoringAPI;

Expand Down
3 changes: 2 additions & 1 deletion examples/v2_security-monitoring_GetSignalNotificationRule.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Get details of a signal-based rule returns "Notification rule details." response
// Get details of a signal-based notification rule returns "Notification rule
// details." response
use datadog_api_client::datadog;
use datadog_api_client::datadogV2::api_security_monitoring::SecurityMonitoringAPI;

Expand Down
4 changes: 2 additions & 2 deletions examples/v2_security-monitoring_GetSignalNotificationRules.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Get the list of signal-based rules returns "The list of notification rules."
// response
// Get the list of signal-based notification rules returns "The list of
// notification rules." response
use datadog_api_client::datadog;
use datadog_api_client::datadogV2::api_security_monitoring::SecurityMonitoringAPI;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Get details of a vulnerability-based rule returns "Notification rule details."
// response
// Get details of a vulnerability notification rule returns "Notification rule
// details." response
use datadog_api_client::datadog;
use datadog_api_client::datadogV2::api_security_monitoring::SecurityMonitoringAPI;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Get the list of vulnerability-based rules returns "The list of notification
// rules." response
// Get the list of vulnerability notification rules returns "The list of
// notification rules." response
use datadog_api_client::datadog;
use datadog_api_client::datadogV2::api_security_monitoring::SecurityMonitoringAPI;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Patch a signal-based rule returns "Notification rule successfully patched."
// response
// Patch a signal-based notification rule returns "Notification rule successfully
// patched." response
use datadog_api_client::datadog;
use datadog_api_client::datadogV2::api_security_monitoring::SecurityMonitoringAPI;
use datadog_api_client::datadogV2::model::NotificationRulesType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Patch a vulnerability-based rule returns "Notification rule successfully
// patched." response
// Patch a vulnerability-based notification rule returns "Notification rule
// successfully patched." response
use datadog_api_client::datadog;
use datadog_api_client::datadogV2::api_security_monitoring::SecurityMonitoringAPI;
use datadog_api_client::datadogV2::model::NotificationRulesType;
Expand Down
3 changes: 0 additions & 3 deletions src/datadogV1/model/model_synthetics_browser_variable_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ pub enum SyntheticsBrowserVariableType {
ELEMENT,
EMAIL,
GLOBAL,
JAVASCRIPT,
TEXT,
UnparsedObject(crate::datadog::UnparsedObject),
}
Expand All @@ -21,7 +20,6 @@ impl ToString for SyntheticsBrowserVariableType {
Self::ELEMENT => String::from("element"),
Self::EMAIL => String::from("email"),
Self::GLOBAL => String::from("global"),
Self::JAVASCRIPT => String::from("javascript"),
Self::TEXT => String::from("text"),
Self::UnparsedObject(v) => v.value.to_string(),
}
Expand Down Expand Up @@ -50,7 +48,6 @@ impl<'de> Deserialize<'de> for SyntheticsBrowserVariableType {
"element" => Self::ELEMENT,
"email" => Self::EMAIL,
"global" => Self::GLOBAL,
"javascript" => Self::JAVASCRIPT,
"text" => Self::TEXT,
_ => Self::UnparsedObject(crate::datadog::UnparsedObject {
value: serde_json::Value::String(s.into()),
Expand Down
2 changes: 1 addition & 1 deletion src/datadogV2/model/model_selectors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub struct Selectors {
/// The query is composed of one or several key:value pairs, which can be used to filter security issues on tags and attributes.
#[serde(rename = "query")]
pub query: Option<String>,
/// Security rule types used to filter signals and vulnerabilities generating notifications.
/// Security rule types used as filters in security rules.
#[serde(rename = "rule_types")]
pub rule_types: Option<Vec<crate::datadogV2::model::RuleTypesItems>>,
/// The security rules severities to consider.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2025-02-05T13:45:37.454Z
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"response": {
"body": {
"string": "{\"data\":{\"id\":\"xen-2ux-w4q\",\"type\":\"notification_rules\",\"attributes\":{\"created_at\":1737628559636,\"created_by\":{\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"enabled\":true,\"modified_at\":1737628559636,\"modified_by\":{\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"name\":\"Rule 1\",\"selectors\":{\"severities\":[\"critical\"],\"rule_types\":[\"misconfiguration\",\"attack_path\"],\"query\":\"(source:production_service OR env:prod)\",\"trigger_source\":\"security_findings\"},\"targets\":[\"@[email protected]\"],\"time_aggregation\":86400,\"version\":1}}}",
"string": "{\"data\":{\"id\":\"hvb-for-lpm\",\"type\":\"notification_rules\",\"attributes\":{\"created_at\":1738763137979,\"created_by\":{\"name\":\"\",\"handle\":\"\"},\"enabled\":true,\"modified_at\":1738763137979,\"modified_by\":{\"name\":\"\",\"handle\":\"\"},\"name\":\"Rule 1\",\"selectors\":{\"severities\":[\"critical\"],\"rule_types\":[\"misconfiguration\",\"attack_path\"],\"query\":\"(source:production_service OR env:prod)\",\"trigger_source\":\"security_findings\"},\"targets\":[\"@[email protected]\"],\"time_aggregation\":86400,\"version\":1}}}",
"encoding": null
},
"headers": {
Expand All @@ -32,7 +32,7 @@
"message": "Created"
}
},
"recorded_at": "Thu, 23 Jan 2025 10:35:59 GMT"
"recorded_at": "Wed, 05 Feb 2025 13:45:37 GMT"
},
{
"request": {
Expand All @@ -43,7 +43,7 @@
]
},
"method": "delete",
"uri": "https://api.datadoghq.com/api/v2/security/signals/notification_rules/xen-2ux-w4q"
"uri": "https://api.datadoghq.com/api/v2/security/signals/notification_rules/hvb-for-lpm"
},
"response": {
"body": {
Expand All @@ -56,7 +56,7 @@
"message": "No Content"
}
},
"recorded_at": "Thu, 23 Jan 2025 10:35:59 GMT"
"recorded_at": "Wed, 05 Feb 2025 13:45:37 GMT"
}
],
"recorded_with": "VCR 6.0.0"
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2025-02-05T13:45:38.493Z
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"response": {
"body": {
"string": "{\"data\":{\"id\":\"757-rvr-pnu\",\"type\":\"notification_rules\",\"attributes\":{\"created_at\":1737628559864,\"created_by\":{\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"enabled\":true,\"modified_at\":1737628559864,\"modified_by\":{\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"name\":\"Rule 1\",\"selectors\":{\"severities\":[\"critical\"],\"rule_types\":[\"misconfiguration\",\"attack_path\"],\"query\":\"(source:production_service OR env:prod)\",\"trigger_source\":\"security_findings\"},\"targets\":[\"@[email protected]\"],\"time_aggregation\":86400,\"version\":1}}}",
"string": "{\"data\":{\"id\":\"iwz-k3b-tpk\",\"type\":\"notification_rules\",\"attributes\":{\"created_at\":1738763138982,\"created_by\":{\"name\":\"\",\"handle\":\"\"},\"enabled\":true,\"modified_at\":1738763138982,\"modified_by\":{\"name\":\"\",\"handle\":\"\"},\"name\":\"Rule 1\",\"selectors\":{\"severities\":[\"critical\"],\"rule_types\":[\"misconfiguration\",\"attack_path\"],\"query\":\"(source:production_service OR env:prod)\",\"trigger_source\":\"security_findings\"},\"targets\":[\"@[email protected]\"],\"time_aggregation\":86400,\"version\":1}}}",
"encoding": null
},
"headers": {
Expand All @@ -32,7 +32,7 @@
"message": "Created"
}
},
"recorded_at": "Thu, 23 Jan 2025 10:35:59 GMT"
"recorded_at": "Wed, 05 Feb 2025 13:45:38 GMT"
},
{
"request": {
Expand All @@ -43,7 +43,7 @@
]
},
"method": "delete",
"uri": "https://api.datadoghq.com/api/v2/security/vulnerabilities/notification_rules/757-rvr-pnu"
"uri": "https://api.datadoghq.com/api/v2/security/vulnerabilities/notification_rules/iwz-k3b-tpk"
},
"response": {
"body": {
Expand All @@ -56,7 +56,7 @@
"message": "No Content"
}
},
"recorded_at": "Thu, 23 Jan 2025 10:35:59 GMT"
"recorded_at": "Wed, 05 Feb 2025 13:45:38 GMT"
}
],
"recorded_with": "VCR 6.0.0"
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2025-02-05T13:45:43.873Z
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"message": "Not Found"
}
},
"recorded_at": "Wed, 22 Jan 2025 09:50:04 GMT"
"recorded_at": "Wed, 05 Feb 2025 13:45:43 GMT"
}
],
"recorded_with": "VCR 6.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2025-02-05T13:45:44.348Z
Loading

0 comments on commit 90e38ac

Please sign in to comment.