Skip to content

Commit 05d2165

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 5a0128a of spec repo
1 parent 4c1f6aa commit 05d2165

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

.generated-info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"spec_repo_commit": "1e6c346",
3-
"generated": "2025-08-25 18:45:37.801"
2+
"spec_repo_commit": "5a0128a",
3+
"generated": "2025-08-26 18:38:16.356"
44
}

.generator/schemas/v2/openapi.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39445,6 +39445,12 @@ components:
3944539445
replacement_string:
3944639446
description: Required if type == 'replacement_string'.
3944739447
type: string
39448+
should_save_match:
39449+
description: "Only valid when type == `replacement_string`. When enabled,
39450+
matches can be unmasked in logs by users with \u2018Data Scanner Unmask\u2019
39451+
permission. As a security best practice, avoid masking for highly-sensitive,
39452+
long-lived data."
39453+
type: boolean
3944839454
type:
3944939455
$ref: '#/components/schemas/SensitiveDataScannerTextReplacementType'
3945039456
type: object

lib/datadog_api_client/v2/models/sensitive_data_scanner_text_replacement.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ class SensitiveDataScannerTextReplacement
2828
# Required if type == 'replacement_string'.
2929
attr_accessor :replacement_string
3030

31+
# Only valid when type == `replacement_string`. When enabled, matches can be unmasked in logs by users with ‘Data Scanner Unmask’ permission. As a security best practice, avoid masking for highly-sensitive, long-lived data.
32+
attr_accessor :should_save_match
33+
3134
# Type of the replacement text. None means no replacement.
3235
# hash means the data will be stubbed. replacement_string means that
3336
# one can chose a text to replace the data. partial_replacement_from_beginning
@@ -44,6 +47,7 @@ def self.attribute_map
4447
{
4548
:'number_of_chars' => :'number_of_chars',
4649
:'replacement_string' => :'replacement_string',
50+
:'should_save_match' => :'should_save_match',
4751
:'type' => :'type'
4852
}
4953
end
@@ -54,6 +58,7 @@ def self.openapi_types
5458
{
5559
:'number_of_chars' => :'Integer',
5660
:'replacement_string' => :'String',
61+
:'should_save_match' => :'Boolean',
5762
:'type' => :'SensitiveDataScannerTextReplacementType'
5863
}
5964
end
@@ -84,6 +89,10 @@ def initialize(attributes = {})
8489
self.replacement_string = attributes[:'replacement_string']
8590
end
8691

92+
if attributes.key?(:'should_save_match')
93+
self.should_save_match = attributes[:'should_save_match']
94+
end
95+
8796
if attributes.key?(:'type')
8897
self.type = attributes[:'type']
8998
end
@@ -135,6 +144,7 @@ def ==(o)
135144
self.class == o.class &&
136145
number_of_chars == o.number_of_chars &&
137146
replacement_string == o.replacement_string &&
147+
should_save_match == o.should_save_match &&
138148
type == o.type &&
139149
additional_properties == o.additional_properties
140150
end
@@ -143,7 +153,7 @@ def ==(o)
143153
# @return [Integer] Hash code
144154
# @!visibility private
145155
def hash
146-
[number_of_chars, replacement_string, type, additional_properties].hash
156+
[number_of_chars, replacement_string, should_save_match, type, additional_properties].hash
147157
end
148158
end
149159
end

0 commit comments

Comments
 (0)