Skip to content

Add support for the api_security detection rule type #2927

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

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-06-18 14:53:53.143868",
"spec_repo_commit": "5f7cad1f"
"regenerated": "2025-06-19 12:11:25.008610",
"spec_repo_commit": "a171e0a8"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-06-18 14:53:53.159803",
"spec_repo_commit": "5f7cad1f"
"regenerated": "2025-06-19 12:11:25.024268",
"spec_repo_commit": "a171e0a8"
}
}
}
4 changes: 4 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33412,11 +33412,13 @@ components:
SecurityMonitoringRuleTypeCreate:
description: The rule type.
enum:
- api_security
- application_security
- log_detection
- workload_security
type: string
x-enum-varnames:
- API_SECURITY
- APPLICATION_SECURITY
- LOG_DETECTION
- WORKLOAD_SECURITY
Expand All @@ -33428,13 +33430,15 @@ components:
- workload_security
- cloud_configuration
- application_security
- api_security
type: string
x-enum-varnames:
- LOG_DETECTION
- INFRASTRUCTURE_CONFIGURATION
- WORKLOAD_SECURITY
- CLOUD_CONFIGURATION
- APPLICATION_SECURITY
- API_SECURITY
SecurityMonitoringRuleTypeTest:
description: The rule type.
enum:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ public class SecurityMonitoringRuleTypeCreate extends ModelEnum<String> {

private static final Set<String> allowedValues =
new HashSet<String>(
Arrays.asList("application_security", "log_detection", "workload_security"));
Arrays.asList(
"api_security", "application_security", "log_detection", "workload_security"));

public static final SecurityMonitoringRuleTypeCreate API_SECURITY =
new SecurityMonitoringRuleTypeCreate("api_security");
public static final SecurityMonitoringRuleTypeCreate APPLICATION_SECURITY =
new SecurityMonitoringRuleTypeCreate("application_security");
public static final SecurityMonitoringRuleTypeCreate LOG_DETECTION =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ public class SecurityMonitoringRuleTypeRead extends ModelEnum<String> {
"infrastructure_configuration",
"workload_security",
"cloud_configuration",
"application_security"));
"application_security",
"api_security"));

public static final SecurityMonitoringRuleTypeRead LOG_DETECTION =
new SecurityMonitoringRuleTypeRead("log_detection");
Expand All @@ -42,6 +43,8 @@ public class SecurityMonitoringRuleTypeRead extends ModelEnum<String> {
new SecurityMonitoringRuleTypeRead("cloud_configuration");
public static final SecurityMonitoringRuleTypeRead APPLICATION_SECURITY =
new SecurityMonitoringRuleTypeRead("application_security");
public static final SecurityMonitoringRuleTypeRead API_SECURITY =
new SecurityMonitoringRuleTypeRead("api_security");

SecurityMonitoringRuleTypeRead(String value) {
super(value, allowedValues);
Expand Down