Skip to content

Add support for the api_security detection rule type #2633

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:52.416901",
"spec_repo_commit": "5f7cad1f"
"regenerated": "2025-06-19 12:11:27.987573",
"spec_repo_commit": "a171e0a8"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-06-18 14:53:52.465865",
"spec_repo_commit": "5f7cad1f"
"regenerated": "2025-06-19 12:11:28.060491",
"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 @@ -16,15 +16,17 @@ class SecurityMonitoringRuleTypeCreate(ModelSimple):
"""
The rule type.

:param value: Must be one of ["application_security", "log_detection", "workload_security"].
:param value: Must be one of ["api_security", "application_security", "log_detection", "workload_security"].
:type value: str
"""

allowed_values = {
"api_security",
"application_security",
"log_detection",
"workload_security",
}
API_SECURITY: ClassVar["SecurityMonitoringRuleTypeCreate"]
APPLICATION_SECURITY: ClassVar["SecurityMonitoringRuleTypeCreate"]
LOG_DETECTION: ClassVar["SecurityMonitoringRuleTypeCreate"]
WORKLOAD_SECURITY: ClassVar["SecurityMonitoringRuleTypeCreate"]
Expand All @@ -36,6 +38,7 @@ def openapi_types(_):
}


SecurityMonitoringRuleTypeCreate.API_SECURITY = SecurityMonitoringRuleTypeCreate("api_security")
SecurityMonitoringRuleTypeCreate.APPLICATION_SECURITY = SecurityMonitoringRuleTypeCreate("application_security")
SecurityMonitoringRuleTypeCreate.LOG_DETECTION = SecurityMonitoringRuleTypeCreate("log_detection")
SecurityMonitoringRuleTypeCreate.WORKLOAD_SECURITY = SecurityMonitoringRuleTypeCreate("workload_security")
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class SecurityMonitoringRuleTypeRead(ModelSimple):
"""
The rule type.

:param value: Must be one of ["log_detection", "infrastructure_configuration", "workload_security", "cloud_configuration", "application_security"].
:param value: Must be one of ["log_detection", "infrastructure_configuration", "workload_security", "cloud_configuration", "application_security", "api_security"].
:type value: str
"""

Expand All @@ -26,12 +26,14 @@ class SecurityMonitoringRuleTypeRead(ModelSimple):
"workload_security",
"cloud_configuration",
"application_security",
"api_security",
}
LOG_DETECTION: ClassVar["SecurityMonitoringRuleTypeRead"]
INFRASTRUCTURE_CONFIGURATION: ClassVar["SecurityMonitoringRuleTypeRead"]
WORKLOAD_SECURITY: ClassVar["SecurityMonitoringRuleTypeRead"]
CLOUD_CONFIGURATION: ClassVar["SecurityMonitoringRuleTypeRead"]
APPLICATION_SECURITY: ClassVar["SecurityMonitoringRuleTypeRead"]
API_SECURITY: ClassVar["SecurityMonitoringRuleTypeRead"]

@cached_property
def openapi_types(_):
Expand All @@ -47,3 +49,4 @@ def openapi_types(_):
SecurityMonitoringRuleTypeRead.WORKLOAD_SECURITY = SecurityMonitoringRuleTypeRead("workload_security")
SecurityMonitoringRuleTypeRead.CLOUD_CONFIGURATION = SecurityMonitoringRuleTypeRead("cloud_configuration")
SecurityMonitoringRuleTypeRead.APPLICATION_SECURITY = SecurityMonitoringRuleTypeRead("application_security")
SecurityMonitoringRuleTypeRead.API_SECURITY = SecurityMonitoringRuleTypeRead("api_security")