Skip to content
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-13 18:05:03.218231",
"spec_repo_commit": "493effcf"
"regenerated": "2023-12-14 10:49:31.800938",
"spec_repo_commit": "43a99a56"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2023-12-13 18:05:03.266658",
"spec_repo_commit": "493effcf"
"regenerated": "2023-12-14 10:49:31.815282",
"spec_repo_commit": "43a99a56"
}
}
}
13 changes: 13 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16320,6 +16320,12 @@ components:
pattern:
description: Not included if there is a relationship to a standard pattern.
type: string
priority:
description: Integer from 1 (high) to 5 (low) indicating rule issue severity.
format: int64
maximum: 5
minimum: 1
type: integer
tags:
description: List of tags.
items:
Expand Down Expand Up @@ -16475,6 +16481,13 @@ components:
pattern:
description: Regex to match.
type: string
priority:
description: Integer from 1 (high) to 5 (low) indicating standard pattern
issue severity.
format: int64
maximum: 5
minimum: 1
type: integer
tags:
description: List of tags.
items:
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2023-01-24T13:12:12.388Z
2023-12-13T09:06:38.820Z

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
@@ -1 +1 @@
2023-01-24T13:12:20.575Z
2023-12-13T09:06:40.913Z

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

1 change: 1 addition & 0 deletions examples/v2/sensitive-data-scanner/CreateScanningRule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"sensitive_data:true",
],
is_enabled: true,
priority: 1,
}),
relationships: DatadogAPIClient::V2::SensitiveDataScannerRuleRelationships.new({
group: DatadogAPIClient::V2::SensitiveDataScannerGroupData.new({
Expand Down
1 change: 1 addition & 0 deletions examples/v2/sensitive-data-scanner/UpdateScanningRule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"sensitive_data:true",
],
is_enabled: true,
priority: 5,
}),
relationships: DatadogAPIClient::V2::SensitiveDataScannerRuleRelationships.new({
group: DatadogAPIClient::V2::SensitiveDataScannerGroupData.new({
Expand Down
4 changes: 2 additions & 2 deletions features/v2/sensitive_data_scanner.feature
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Feature: Sensitive Data Scanner
Given a valid "configuration" in the system
And there is a valid "scanning_group" in the system
And new "CreateScanningRule" request
And body with value {"meta":{},"data":{"type":"sensitive_data_scanner_rule","attributes":{"name":"{{ unique }}","pattern":"pattern", "namespaces": ["admin"], "excluded_namespaces": ["admin.name"], "text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"is_enabled":true},"relationships":{"group":{"data":{"type":"{{ group.data.type }}","id":"{{ group.data.id }}"}}}}}
And body with value {"meta":{},"data":{"type":"sensitive_data_scanner_rule","attributes":{"name":"{{ unique }}","pattern":"pattern", "namespaces": ["admin"], "excluded_namespaces": ["admin.name"], "text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"is_enabled":true,"priority":1},"relationships":{"group":{"data":{"type":"{{ group.data.type }}","id":"{{ group.data.id }}"}}}}}
When the request is sent
Then the response status is 200 OK
And the response "data.type" is equal to "sensitive_data_scanner_rule"
Expand Down Expand Up @@ -196,6 +196,6 @@ Feature: Sensitive Data Scanner
And the "scanning_group" has a "scanning_rule"
And new "UpdateScanningRule" request
And request contains "rule_id" parameter from "rule.data.id"
And body with value {"meta":{},"data":{"id": "{{ rule.data.id }}", "type":"sensitive_data_scanner_rule","attributes":{"name":"{{ unique }}","pattern":"pattern","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"is_enabled":true},"relationships":{"group":{"data":{"type":"{{ group.data.type }}","id":"{{ group.data.id }}"}}}}}
And body with value {"meta":{},"data":{"id": "{{ rule.data.id }}", "type":"sensitive_data_scanner_rule","attributes":{"name":"{{ unique }}","pattern":"pattern","text_replacement":{"type":"none"},"tags":["sensitive_data:true"],"is_enabled":true,"priority":5},"relationships":{"group":{"data":{"type":"{{ group.data.type }}","id":"{{ group.data.id }}"}}}}}
When the request is sent
Then the response status is 200 OK
Loading