Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change a category in enum for datadog_appsec_waf_custom_rule #570

Merged
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": "2025-04-03 16:27:50.158184",
"spec_repo_commit": "4468962d"
"regenerated": "2025-04-04 12:49:20.380905",
"spec_repo_commit": "73e22797"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-04-03 16:27:50.174263",
"spec_repo_commit": "4468962d"
"regenerated": "2025-04-04 12:49:20.397038",
"spec_repo_commit": "73e22797"
}
}
}
4 changes: 2 additions & 2 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2864,13 +2864,13 @@ components:
enum:
- attack_attempt
- business_logic
- security_responses
- security_response
example: business_logic
type: string
x-enum-varnames:
- ATTACK_ATTEMPT
- BUSINESS_LOGIC
- SECURITY_RESPONSES
- SECURITY_RESPONSE
ApplicationSecurityWafCustomRuleType:
default: custom_rule
description: The type of the resource. The value should always be `custom_rule`.
Expand Down
2 changes: 1 addition & 1 deletion LICENSE-3rdparty.csv
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ deranged,https://github.com/jhpratt/deranged,MIT OR Apache-2.0,Jacob Pratt <jaco
displaydoc,https://github.com/yaahc/displaydoc,MIT OR Apache-2.0,Jane Lusby <[email protected]>
encoding_rs,https://github.com/hsivonen/encoding_rs,(Apache-2.0 OR MIT) AND BSD-3-Clause,Henri Sivonen <[email protected]>
equivalent,https://github.com/indexmap-rs/equivalent,Apache-2.0 OR MIT,The equivalent Authors
errno,https://github.com/lambda-fairy/rust-errno,MIT OR Apache-2.0,Chris Wong <[email protected]>
errno,https://github.com/lambda-fairy/rust-errno,MIT OR Apache-2.0,"Chris Wong <[email protected]>, Dan Gohman <[email protected]>"
fastrand,https://github.com/smol-rs/fastrand,Apache-2.0 OR MIT,Stjepan Glavina <[email protected]>
flate2,https://github.com/rust-lang/flate2-rs,MIT OR Apache-2.0,"Alex Crichton <[email protected]>, Josh Triplett <[email protected]>"
fnv,https://github.com/servo/rust-fnv,Apache-2.0 OR MIT,Alex Crichton <[email protected]>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use serde::{Deserialize, Deserializer, Serialize, Serializer};
pub enum ApplicationSecurityWafCustomRuleTagsCategory {
ATTACK_ATTEMPT,
BUSINESS_LOGIC,
SECURITY_RESPONSES,
SECURITY_RESPONSE,
UnparsedObject(crate::datadog::UnparsedObject),
}

Expand All @@ -18,7 +18,7 @@ impl ToString for ApplicationSecurityWafCustomRuleTagsCategory {
match self {
Self::ATTACK_ATTEMPT => String::from("attack_attempt"),
Self::BUSINESS_LOGIC => String::from("business_logic"),
Self::SECURITY_RESPONSES => String::from("security_responses"),
Self::SECURITY_RESPONSE => String::from("security_response"),
Self::UnparsedObject(v) => v.value.to_string(),
}
}
Expand All @@ -45,7 +45,7 @@ impl<'de> Deserialize<'de> for ApplicationSecurityWafCustomRuleTagsCategory {
Ok(match s.as_str() {
"attack_attempt" => Self::ATTACK_ATTEMPT,
"business_logic" => Self::BUSINESS_LOGIC,
"security_responses" => Self::SECURITY_RESPONSES,
"security_response" => Self::SECURITY_RESPONSE,
_ => Self::UnparsedObject(crate::datadog::UnparsedObject {
value: serde_json::Value::String(s.into()),
}),
Expand Down
Loading