Skip to content

Commit eeb4263

Browse files
feat: Automated regeneration of dlp v2 client (#10075)
Auto-created at 2022-06-15 11:09:23 +0000 using the toys pull request generator.
1 parent 2dc5535 commit eeb4263

File tree

5 files changed

+78
-4
lines changed

5 files changed

+78
-4
lines changed

api_names_out.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129409,7 +129409,13 @@
129409129409
"/dlp:v2/GooglePrivacyDlpV2InfoType": google_privacy_dlp_v2_info_type
129410129410
"/dlp:v2/GooglePrivacyDlpV2InfoType/name": name
129411129411
"/dlp:v2/GooglePrivacyDlpV2InfoType/version": version
129412+
"/dlp:v2/GooglePrivacyDlpV2InfoTypeCategory": google_privacy_dlp_v2_info_type_category
129413+
"/dlp:v2/GooglePrivacyDlpV2InfoTypeCategory/industryCategory": industry_category
129414+
"/dlp:v2/GooglePrivacyDlpV2InfoTypeCategory/locationCategory": location_category
129415+
"/dlp:v2/GooglePrivacyDlpV2InfoTypeCategory/typeCategory": type_category
129412129416
"/dlp:v2/GooglePrivacyDlpV2InfoTypeDescription": google_privacy_dlp_v2_info_type_description
129417+
"/dlp:v2/GooglePrivacyDlpV2InfoTypeDescription/categories": categories
129418+
"/dlp:v2/GooglePrivacyDlpV2InfoTypeDescription/categories/category": category
129413129419
"/dlp:v2/GooglePrivacyDlpV2InfoTypeDescription/description": description
129414129420
"/dlp:v2/GooglePrivacyDlpV2InfoTypeDescription/displayName": display_name
129415129421
"/dlp:v2/GooglePrivacyDlpV2InfoTypeDescription/name": name

generated/google-apis-dlp_v2/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release history for google-apis-dlp_v2
22

3+
### v0.25.0 (2022-06-15)
4+
5+
* Regenerated from discovery document revision 20220612
6+
* Regenerated using generator version 0.6.0
7+
38
### v0.24.0 (2022-06-03)
49

510
* Regenerated using generator version 0.5.0

generated/google-apis-dlp_v2/lib/google/apis/dlp_v2/classes.rb

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,14 @@ class GooglePrivacyDlpV2CharacterMaskConfig
629629
attr_accessor :masking_character
630630

631631
# Number of characters to mask. If not set, all matching chars will be masked.
632-
# Skipped characters do not count towards this tally.
632+
# Skipped characters do not count towards this tally. If `number_to_mask` is
633+
# negative, this denotes inverse masking. Cloud DLP masks all but a number of
634+
# characters. For example, suppose you have the following values: - `
635+
# masking_character` is `*` - `number_to_mask` is `-4` - `reverse_order` is `
636+
# false` - `CharsToIgnore` includes `-` - Input string is `1234-5678-9012-3456`
637+
# The resulting de-identified string is `****-****-****-3456`. Cloud DLP masks
638+
# all but the last four characters. If `reverse_order` is `true`, all but the
639+
# first four characters are masked as `1234-****-****-****`.
633640
# Corresponds to the JSON property `numberToMask`
634641
# @return [Fixnum]
635642
attr_accessor :number_to_mask
@@ -3190,10 +3197,48 @@ def update!(**args)
31903197
end
31913198
end
31923199

3200+
# Classification of infoTypes to organize them according to geographic location,
3201+
# industry, and data type.
3202+
class GooglePrivacyDlpV2InfoTypeCategory
3203+
include Google::Apis::Core::Hashable
3204+
3205+
# The group of relevant businesses where this infoType is commonly used
3206+
# Corresponds to the JSON property `industryCategory`
3207+
# @return [String]
3208+
attr_accessor :industry_category
3209+
3210+
# The region or country that issued the ID or document represented by the
3211+
# infoType.
3212+
# Corresponds to the JSON property `locationCategory`
3213+
# @return [String]
3214+
attr_accessor :location_category
3215+
3216+
# The class of identifiers where this infoType belongs
3217+
# Corresponds to the JSON property `typeCategory`
3218+
# @return [String]
3219+
attr_accessor :type_category
3220+
3221+
def initialize(**args)
3222+
update!(**args)
3223+
end
3224+
3225+
# Update properties of this object
3226+
def update!(**args)
3227+
@industry_category = args[:industry_category] if args.key?(:industry_category)
3228+
@location_category = args[:location_category] if args.key?(:location_category)
3229+
@type_category = args[:type_category] if args.key?(:type_category)
3230+
end
3231+
end
3232+
31933233
# InfoType description.
31943234
class GooglePrivacyDlpV2InfoTypeDescription
31953235
include Google::Apis::Core::Hashable
31963236

3237+
# The category of the infoType.
3238+
# Corresponds to the JSON property `categories`
3239+
# @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2InfoTypeCategory>]
3240+
attr_accessor :categories
3241+
31973242
# Description of the infotype. Translated when language is provided in the
31983243
# request.
31993244
# Corresponds to the JSON property `description`
@@ -3221,6 +3266,7 @@ def initialize(**args)
32213266

32223267
# Update properties of this object
32233268
def update!(**args)
3269+
@categories = args[:categories] if args.key?(:categories)
32243270
@description = args[:description] if args.key?(:description)
32253271
@display_name = args[:display_name] if args.key?(:display_name)
32263272
@name = args[:name] if args.key?(:name)

generated/google-apis-dlp_v2/lib/google/apis/dlp_v2/gem_version.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module DlpV2
1818
# Version of the google-apis-dlp_v2 gem
19-
GEM_VERSION = "0.24.0"
19+
GEM_VERSION = "0.25.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.5.0"
22+
GENERATOR_VERSION = "0.6.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20220506"
25+
REVISION = "20220612"
2626
end
2727
end
2828
end

generated/google-apis-dlp_v2/lib/google/apis/dlp_v2/representations.rb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
532532
include Google::Apis::Core::JsonObjectSupport
533533
end
534534

535+
class GooglePrivacyDlpV2InfoTypeCategory
536+
class Representation < Google::Apis::Core::JsonRepresentation; end
537+
538+
include Google::Apis::Core::JsonObjectSupport
539+
end
540+
535541
class GooglePrivacyDlpV2InfoTypeDescription
536542
class Representation < Google::Apis::Core::JsonRepresentation; end
537543

@@ -2181,9 +2187,20 @@ class Representation < Google::Apis::Core::JsonRepresentation
21812187
end
21822188
end
21832189

2190+
class GooglePrivacyDlpV2InfoTypeCategory
2191+
# @private
2192+
class Representation < Google::Apis::Core::JsonRepresentation
2193+
property :industry_category, as: 'industryCategory'
2194+
property :location_category, as: 'locationCategory'
2195+
property :type_category, as: 'typeCategory'
2196+
end
2197+
end
2198+
21842199
class GooglePrivacyDlpV2InfoTypeDescription
21852200
# @private
21862201
class Representation < Google::Apis::Core::JsonRepresentation
2202+
collection :categories, as: 'categories', class: Google::Apis::DlpV2::GooglePrivacyDlpV2InfoTypeCategory, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2InfoTypeCategory::Representation
2203+
21872204
property :description, as: 'description'
21882205
property :display_name, as: 'displayName'
21892206
property :name, as: 'name'

0 commit comments

Comments
 (0)