Skip to content

Commit

Permalink
Add application_security to security monitoring rule type enum (#1884)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Mar 1, 2023
1 parent f5c0655 commit 3575082
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 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.4",
"regenerated": "2023-03-01 19:51:30.039125",
"spec_repo_commit": "fc9468ac"
"regenerated": "2023-03-01 20:14:33.017342",
"spec_repo_commit": "d6815e0a"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2023-03-01 19:51:30.051769",
"spec_repo_commit": "fc9468ac"
"regenerated": "2023-03-01 20:14:33.030199",
"spec_repo_commit": "d6815e0a"
}
}
}
2 changes: 2 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10242,12 +10242,14 @@ components:
- infrastructure_configuration
- workload_security
- cloud_configuration
- application_security
type: string
x-enum-varnames:
- LOG_DETECTION
- INFRASTRUCTURE_CONFIGURATION
- WORKLOAD_SECURITY
- CLOUD_CONFIGURATION
- APPLICATION_SECURITY
SecurityMonitoringRuleUpdatePayload:
description: Update an existing rule.
properties:
Expand Down
2 changes: 2 additions & 0 deletions api/datadogV2/model_security_monitoring_rule_type_read.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ const (
SECURITYMONITORINGRULETYPEREAD_INFRASTRUCTURE_CONFIGURATION SecurityMonitoringRuleTypeRead = "infrastructure_configuration"
SECURITYMONITORINGRULETYPEREAD_WORKLOAD_SECURITY SecurityMonitoringRuleTypeRead = "workload_security"
SECURITYMONITORINGRULETYPEREAD_CLOUD_CONFIGURATION SecurityMonitoringRuleTypeRead = "cloud_configuration"
SECURITYMONITORINGRULETYPEREAD_APPLICATION_SECURITY SecurityMonitoringRuleTypeRead = "application_security"
)

var allowedSecurityMonitoringRuleTypeReadEnumValues = []SecurityMonitoringRuleTypeRead{
SECURITYMONITORINGRULETYPEREAD_LOG_DETECTION,
SECURITYMONITORINGRULETYPEREAD_INFRASTRUCTURE_CONFIGURATION,
SECURITYMONITORINGRULETYPEREAD_WORKLOAD_SECURITY,
SECURITYMONITORINGRULETYPEREAD_CLOUD_CONFIGURATION,
SECURITYMONITORINGRULETYPEREAD_APPLICATION_SECURITY,
}

// GetAllowedValues reeturns the list of possible values.
Expand Down

0 comments on commit 3575082

Please sign in to comment.