Skip to content

Commit

Permalink
[SEC-19271] Update documentation about updating tags for Default Rules (
Browse files Browse the repository at this point in the history
#2488)

Co-authored-by: ci.datadog-api-spec <[email protected]>
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 May 10, 2024
1 parent 9ecb1ee commit 240a40a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 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.6",
"regenerated": "2024-05-09 08:09:02.314306",
"spec_repo_commit": "f983a01b"
"regenerated": "2024-05-09 17:36:04.071231",
"spec_repo_commit": "c5ba75e0"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-05-09 08:09:02.342068",
"spec_repo_commit": "f983a01b"
"regenerated": "2024-05-09 17:36:04.095359",
"spec_repo_commit": "c5ba75e0"
}
}
}
5 changes: 4 additions & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32613,7 +32613,10 @@ paths:
must be included. For example, when modifying a query all queries must be
included.

Default rules can only be updated to be enabled and to change notifications.'
Default rules can only be updated to be enabled, to change notifications,
or to update

the tags (default tags cannot be removed).'
operationId: UpdateSecurityMonitoringRule
parameters:
- $ref: '#/components/parameters/SecurityMonitoringRuleID'
Expand Down
3 changes: 2 additions & 1 deletion api/datadogV2/api_security_monitoring.go
Original file line number Diff line number Diff line change
Expand Up @@ -2121,7 +2121,8 @@ func (a *SecurityMonitoringApi) UpdateSecurityFilter(ctx _context.Context, secur
// UpdateSecurityMonitoringRule Update an existing rule.
// Update an existing rule. When updating `cases`, `queries` or `options`, the whole field
// must be included. For example, when modifying a query all queries must be included.
// Default rules can only be updated to be enabled and to change notifications.
// Default rules can only be updated to be enabled, to change notifications, or to update
// the tags (default tags cannot be removed).
func (a *SecurityMonitoringApi) UpdateSecurityMonitoringRule(ctx _context.Context, ruleId string, body SecurityMonitoringRuleUpdatePayload) (SecurityMonitoringRuleResponse, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodPut
Expand Down

0 comments on commit 240a40a

Please sign in to comment.