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": "2024-10-28 23:07:48.631310",
"spec_repo_commit": "4251a422"
"regenerated": "2024-10-29 20:46:33.498190",
"spec_repo_commit": "c0b9551e"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-10-28 23:07:48.650835",
"spec_repo_commit": "4251a422"
"regenerated": "2024-10-29 20:46:33.516450",
"spec_repo_commit": "c0b9551e"
}
}
}
7 changes: 7 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21870,6 +21870,13 @@ components:
items:
type: string
type: array
use_recommended_keywords:
description: 'Should the rule use the underlying standard pattern keyword
configuration. If set to `true`, the rule must be tied

to a standard pattern. If set to `false`, the specified keywords and `character_count`
are applied.'
type: boolean
required:
- keywords
- character_count
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,19 @@ class SensitiveDataScannerIncludedKeywordConfiguration
# The number of keywords in the list must be less than or equal to 30.
attr_reader :keywords

# Should the rule use the underlying standard pattern keyword configuration. If set to `true`, the rule must be tied
# to a standard pattern. If set to `false`, the specified keywords and `character_count` are applied.
attr_accessor :use_recommended_keywords

attr_accessor :additional_properties

# Attribute mapping from ruby-style variable name to JSON key.
# @!visibility private
def self.attribute_map
{
:'character_count' => :'character_count',
:'keywords' => :'keywords'
:'keywords' => :'keywords',
:'use_recommended_keywords' => :'use_recommended_keywords'
}
end

Expand All @@ -48,7 +53,8 @@ def self.attribute_map
def self.openapi_types
{
:'character_count' => :'Integer',
:'keywords' => :'Array<String>'
:'keywords' => :'Array<String>',
:'use_recommended_keywords' => :'Boolean'
}
end

Expand Down Expand Up @@ -79,6 +85,10 @@ def initialize(attributes = {})
self.keywords = value
end
end

if attributes.key?(:'use_recommended_keywords')
self.use_recommended_keywords = attributes[:'use_recommended_keywords']
end
end

# Check to see if the all the properties in the model are valid
Expand Down Expand Up @@ -145,15 +155,16 @@ def ==(o)
return true if self.equal?(o)
self.class == o.class &&
character_count == o.character_count &&
keywords == o.keywords
keywords == o.keywords &&
use_recommended_keywords == o.use_recommended_keywords
additional_properties == o.additional_properties
end

# Calculates hash code according to all attributes.
# @return [Integer] Hash code
# @!visibility private
def hash
[character_count, keywords].hash
[character_count, keywords, use_recommended_keywords].hash
end
end
end
Loading