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

Allow creation of Application Security detection rules from the v2 API #2300

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": "2023-12-04 18:32:07.810092",
"spec_repo_commit": "07df9ec5"
"regenerated": "2023-12-05 09:51:26.936550",
"spec_repo_commit": "60646909"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2023-12-04 18:32:07.832646",
"spec_repo_commit": "07df9ec5"
"regenerated": "2023-12-05 09:51:26.961165",
"spec_repo_commit": "60646909"
}
}
}
2 changes: 2 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14961,10 +14961,12 @@ components:
SecurityMonitoringRuleTypeCreate:
description: The rule type.
enum:
- application_security
- log_detection
- workload_security
type: string
x-enum-varnames:
- APPLICATION_SECURITY
- LOG_DETECTION
- WORKLOAD_SECURITY
SecurityMonitoringRuleTypeRead:
Expand Down
6 changes: 4 additions & 2 deletions api/datadogV2/model_security_monitoring_rule_type_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ type SecurityMonitoringRuleTypeCreate string

// List of SecurityMonitoringRuleTypeCreate.
const (
SECURITYMONITORINGRULETYPECREATE_LOG_DETECTION SecurityMonitoringRuleTypeCreate = "log_detection"
SECURITYMONITORINGRULETYPECREATE_WORKLOAD_SECURITY SecurityMonitoringRuleTypeCreate = "workload_security"
SECURITYMONITORINGRULETYPECREATE_APPLICATION_SECURITY SecurityMonitoringRuleTypeCreate = "application_security"
SECURITYMONITORINGRULETYPECREATE_LOG_DETECTION SecurityMonitoringRuleTypeCreate = "log_detection"
SECURITYMONITORINGRULETYPECREATE_WORKLOAD_SECURITY SecurityMonitoringRuleTypeCreate = "workload_security"
)

var allowedSecurityMonitoringRuleTypeCreateEnumValues = []SecurityMonitoringRuleTypeCreate{
SECURITYMONITORINGRULETYPECREATE_APPLICATION_SECURITY,
SECURITYMONITORINGRULETYPECREATE_LOG_DETECTION,
SECURITYMONITORINGRULETYPECREATE_WORKLOAD_SECURITY,
}
Expand Down
Loading