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

Remove deprecated AgentRule field in Security Rules API for CWS #1268

Merged
merged 2 commits into from
Dec 23, 2021
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.5.1.dev2",
"regenerated": "2021-12-22 22:13:09.436091",
"spec_repo_commit": "861a3c0"
"regenerated": "2021-12-22 23:23:11.898875",
"spec_repo_commit": "2f072b0"
},
"v2": {
"apigentools_version": "1.5.1.dev2",
"regenerated": "2021-12-22 22:13:09.456795",
"spec_repo_commit": "861a3c0"
"regenerated": "2021-12-22 23:23:11.918615",
"spec_repo_commit": "2f072b0"
}
}
}
22 changes: 0 additions & 22 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4695,8 +4695,6 @@ components:
SecurityMonitoringRuleQuery:
description: Query for matching rule.
properties:
agentRule:
$ref: '#/components/schemas/SecurityMonitoringRuntimeAgentRule'
aggregation:
$ref: '#/components/schemas/SecurityMonitoringRuleQueryAggregation'
distinctFields:
Expand Down Expand Up @@ -4741,8 +4739,6 @@ components:
SecurityMonitoringRuleQueryCreate:
description: Query for matching rule.
properties:
agentRule:
$ref: '#/components/schemas/SecurityMonitoringRuntimeAgentRule'
aggregation:
$ref: '#/components/schemas/SecurityMonitoringRuleQueryAggregation'
distinctFields:
Expand Down Expand Up @@ -4925,24 +4921,6 @@ components:
maximum: 2147483647
type: integer
type: object
SecurityMonitoringRuntimeAgentRule:
description: The Agent rule.
properties:
agentRuleId:
description: The Agent rule ID. Must be unique within the rule.
example: etc_shadow
type: string
expression:
description: 'A Runtime Security expression determines what activity should
be collected by the Datadog Agent.

These logical expressions can use predefined operators and attributes.
Tags cannot be used in Runtime

Security expressions. Instead, allow or deny based on tags under the advanced
option.'
type: string
type: object
SecurityMonitoringSignal:
description: Object description of a security signal.
properties:
Expand Down
2 changes: 0 additions & 2 deletions api/v2/datadog/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,6 @@ docs/SecurityMonitoringRuleSeverity.md
docs/SecurityMonitoringRuleTypeCreate.md
docs/SecurityMonitoringRuleTypeRead.md
docs/SecurityMonitoringRuleUpdatePayload.md
docs/SecurityMonitoringRuntimeAgentRule.md
docs/SecurityMonitoringSignal.md
docs/SecurityMonitoringSignalAttributes.md
docs/SecurityMonitoringSignalListRequest.md
Expand Down Expand Up @@ -667,7 +666,6 @@ model_security_monitoring_rule_severity.go
model_security_monitoring_rule_type_create.go
model_security_monitoring_rule_type_read.go
model_security_monitoring_rule_update_payload.go
model_security_monitoring_runtime_agent_rule.go
model_security_monitoring_signal.go
model_security_monitoring_signal_attributes.go
model_security_monitoring_signal_list_request.go
Expand Down
1 change: 0 additions & 1 deletion api/v2/datadog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,6 @@ Class | Method | HTTP request | Description
- [SecurityMonitoringRuleTypeCreate](docs/SecurityMonitoringRuleTypeCreate.md)
- [SecurityMonitoringRuleTypeRead](docs/SecurityMonitoringRuleTypeRead.md)
- [SecurityMonitoringRuleUpdatePayload](docs/SecurityMonitoringRuleUpdatePayload.md)
- [SecurityMonitoringRuntimeAgentRule](docs/SecurityMonitoringRuntimeAgentRule.md)
- [SecurityMonitoringSignal](docs/SecurityMonitoringSignal.md)
- [SecurityMonitoringSignalAttributes](docs/SecurityMonitoringSignalAttributes.md)
- [SecurityMonitoringSignalListRequest](docs/SecurityMonitoringSignalListRequest.md)
Expand Down
26 changes: 0 additions & 26 deletions api/v2/datadog/docs/SecurityMonitoringRuleQuery.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

Name | Type | Description | Notes
---- | ---- | ----------- | ------
**AgentRule** | Pointer to [**SecurityMonitoringRuntimeAgentRule**](SecurityMonitoringRuntimeAgentRule.md) | | [optional]
**Aggregation** | Pointer to [**SecurityMonitoringRuleQueryAggregation**](SecurityMonitoringRuleQueryAggregation.md) | | [optional]
**DistinctFields** | Pointer to **[]string** | Field for which the cardinality is measured. Sent as an array. | [optional]
**GroupByFields** | Pointer to **[]string** | Fields to group by. | [optional]
Expand All @@ -31,31 +30,6 @@ NewSecurityMonitoringRuleQueryWithDefaults instantiates a new SecurityMonitoring
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set.

### GetAgentRule

`func (o *SecurityMonitoringRuleQuery) GetAgentRule() SecurityMonitoringRuntimeAgentRule`

GetAgentRule returns the AgentRule field if non-nil, zero value otherwise.

### GetAgentRuleOk

`func (o *SecurityMonitoringRuleQuery) GetAgentRuleOk() (*SecurityMonitoringRuntimeAgentRule, bool)`

GetAgentRuleOk returns a tuple with the AgentRule field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetAgentRule

`func (o *SecurityMonitoringRuleQuery) SetAgentRule(v SecurityMonitoringRuntimeAgentRule)`

SetAgentRule sets AgentRule field to given value.

### HasAgentRule

`func (o *SecurityMonitoringRuleQuery) HasAgentRule() bool`

HasAgentRule returns a boolean if a field has been set.

### GetAggregation

`func (o *SecurityMonitoringRuleQuery) GetAggregation() SecurityMonitoringRuleQueryAggregation`
Expand Down
26 changes: 0 additions & 26 deletions api/v2/datadog/docs/SecurityMonitoringRuleQueryCreate.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

Name | Type | Description | Notes
---- | ---- | ----------- | ------
**AgentRule** | Pointer to [**SecurityMonitoringRuntimeAgentRule**](SecurityMonitoringRuntimeAgentRule.md) | | [optional]
**Aggregation** | Pointer to [**SecurityMonitoringRuleQueryAggregation**](SecurityMonitoringRuleQueryAggregation.md) | | [optional]
**DistinctFields** | Pointer to **[]string** | Field for which the cardinality is measured. Sent as an array. | [optional]
**GroupByFields** | Pointer to **[]string** | Fields to group by. | [optional]
Expand All @@ -31,31 +30,6 @@ NewSecurityMonitoringRuleQueryCreateWithDefaults instantiates a new SecurityMoni
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set.

### GetAgentRule

`func (o *SecurityMonitoringRuleQueryCreate) GetAgentRule() SecurityMonitoringRuntimeAgentRule`

GetAgentRule returns the AgentRule field if non-nil, zero value otherwise.

### GetAgentRuleOk

`func (o *SecurityMonitoringRuleQueryCreate) GetAgentRuleOk() (*SecurityMonitoringRuntimeAgentRule, bool)`

GetAgentRuleOk returns a tuple with the AgentRule field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetAgentRule

`func (o *SecurityMonitoringRuleQueryCreate) SetAgentRule(v SecurityMonitoringRuntimeAgentRule)`

SetAgentRule sets AgentRule field to given value.

### HasAgentRule

`func (o *SecurityMonitoringRuleQueryCreate) HasAgentRule() bool`

HasAgentRule returns a boolean if a field has been set.

### GetAggregation

`func (o *SecurityMonitoringRuleQueryCreate) GetAggregation() SecurityMonitoringRuleQueryAggregation`
Expand Down
38 changes: 0 additions & 38 deletions api/v2/datadog/model_security_monitoring_rule_query.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 0 additions & 38 deletions api/v2/datadog/model_security_monitoring_rule_query_create.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ func main() {
GroupByFields: &[]string{},
DistinctFields: &[]string{},
Metric: datadog.PtrString(""),
AgentRule: &datadog.SecurityMonitoringRuntimeAgentRule{
AgentRuleId: datadog.PtrString("kernel_module_unlink_2"),
Expression: datadog.PtrString("(open.flags & ((O_CREAT|O_RDWR|O_WRONLY|O_TRUNC)) > 0)"),
},
},
},
Filters: &[]datadog.SecurityMonitoringFilter{},
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2021-08-16T07:49:00.464Z
2021-12-22T16:20:11.758Z
Loading