Skip to content

Commit c1e096b

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add use_recommended_keywords attribute to sensitive data scanner rule spec (#2075)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 19259ec commit c1e096b

File tree

3 files changed

+26
-8
lines changed

3 files changed

+26
-8
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2024-10-28 23:07:48.631310",
8-
"spec_repo_commit": "4251a422"
7+
"regenerated": "2024-10-29 20:46:33.498190",
8+
"spec_repo_commit": "c0b9551e"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-10-28 23:07:48.650835",
13-
"spec_repo_commit": "4251a422"
12+
"regenerated": "2024-10-29 20:46:33.516450",
13+
"spec_repo_commit": "c0b9551e"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21870,6 +21870,13 @@ components:
2187021870
items:
2187121871
type: string
2187221872
type: array
21873+
use_recommended_keywords:
21874+
description: 'Should the rule use the underlying standard pattern keyword
21875+
configuration. If set to `true`, the rule must be tied
21876+
21877+
to a standard pattern. If set to `false`, the specified keywords and `character_count`
21878+
are applied.'
21879+
type: boolean
2187321880
required:
2187421881
- keywords
2187521882
- character_count

lib/datadog_api_client/v2/models/sensitive_data_scanner_included_keyword_configuration.rb

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,19 @@ class SensitiveDataScannerIncludedKeywordConfiguration
3232
# The number of keywords in the list must be less than or equal to 30.
3333
attr_reader :keywords
3434

35+
# Should the rule use the underlying standard pattern keyword configuration. If set to `true`, the rule must be tied
36+
# to a standard pattern. If set to `false`, the specified keywords and `character_count` are applied.
37+
attr_accessor :use_recommended_keywords
38+
3539
attr_accessor :additional_properties
3640

3741
# Attribute mapping from ruby-style variable name to JSON key.
3842
# @!visibility private
3943
def self.attribute_map
4044
{
4145
:'character_count' => :'character_count',
42-
:'keywords' => :'keywords'
46+
:'keywords' => :'keywords',
47+
:'use_recommended_keywords' => :'use_recommended_keywords'
4348
}
4449
end
4550

@@ -48,7 +53,8 @@ def self.attribute_map
4853
def self.openapi_types
4954
{
5055
:'character_count' => :'Integer',
51-
:'keywords' => :'Array<String>'
56+
:'keywords' => :'Array<String>',
57+
:'use_recommended_keywords' => :'Boolean'
5258
}
5359
end
5460

@@ -79,6 +85,10 @@ def initialize(attributes = {})
7985
self.keywords = value
8086
end
8187
end
88+
89+
if attributes.key?(:'use_recommended_keywords')
90+
self.use_recommended_keywords = attributes[:'use_recommended_keywords']
91+
end
8292
end
8393

8494
# Check to see if the all the properties in the model are valid
@@ -145,15 +155,16 @@ def ==(o)
145155
return true if self.equal?(o)
146156
self.class == o.class &&
147157
character_count == o.character_count &&
148-
keywords == o.keywords
158+
keywords == o.keywords &&
159+
use_recommended_keywords == o.use_recommended_keywords
149160
additional_properties == o.additional_properties
150161
end
151162

152163
# Calculates hash code according to all attributes.
153164
# @return [Integer] Hash code
154165
# @!visibility private
155166
def hash
156-
[character_count, keywords].hash
167+
[character_count, keywords, use_recommended_keywords].hash
157168
end
158169
end
159170
end

0 commit comments

Comments
 (0)