Skip to content

Commit dca0183

Browse files
feat: Automated regeneration of dlp v2 client (googleapis#22039)
Auto-created at 2025-03-09 10:42:04 +0000 using the toys pull request generator.
1 parent b548b10 commit dca0183

File tree

5 files changed

+216
-2
lines changed

5 files changed

+216
-2
lines changed

api_names_out.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211558,6 +211558,20 @@
211558211558
"/dlp:v2/GooglePrivacyDlpV2DataProfileConfigSnapshot/inspectConfig": inspect_config
211559211559
"/dlp:v2/GooglePrivacyDlpV2DataProfileConfigSnapshot/inspectTemplateModifiedTime": inspect_template_modified_time
211560211560
"/dlp:v2/GooglePrivacyDlpV2DataProfileConfigSnapshot/inspectTemplateName": inspect_template_name
211561+
"/dlp:v2/GooglePrivacyDlpV2DataProfileFinding": google_privacy_dlp_v2_data_profile_finding
211562+
"/dlp:v2/GooglePrivacyDlpV2DataProfileFinding/dataProfileResourceName": data_profile_resource_name
211563+
"/dlp:v2/GooglePrivacyDlpV2DataProfileFinding/findingId": finding_id
211564+
"/dlp:v2/GooglePrivacyDlpV2DataProfileFinding/infotype": infotype
211565+
"/dlp:v2/GooglePrivacyDlpV2DataProfileFinding/location": location
211566+
"/dlp:v2/GooglePrivacyDlpV2DataProfileFinding/quote": quote
211567+
"/dlp:v2/GooglePrivacyDlpV2DataProfileFinding/quoteInfo": quote_info
211568+
"/dlp:v2/GooglePrivacyDlpV2DataProfileFinding/resourceVisibility": resource_visibility
211569+
"/dlp:v2/GooglePrivacyDlpV2DataProfileFinding/timestamp": timestamp
211570+
"/dlp:v2/GooglePrivacyDlpV2DataProfileFindingLocation": google_privacy_dlp_v2_data_profile_finding_location
211571+
"/dlp:v2/GooglePrivacyDlpV2DataProfileFindingLocation/containerName": container_name
211572+
"/dlp:v2/GooglePrivacyDlpV2DataProfileFindingLocation/dataProfileFindingRecordLocation": data_profile_finding_record_location
211573+
"/dlp:v2/GooglePrivacyDlpV2DataProfileFindingRecordLocation": google_privacy_dlp_v2_data_profile_finding_record_location
211574+
"/dlp:v2/GooglePrivacyDlpV2DataProfileFindingRecordLocation/field": field
211561211575
"/dlp:v2/GooglePrivacyDlpV2DataProfileJobConfig": google_privacy_dlp_v2_data_profile_job_config
211562211576
"/dlp:v2/GooglePrivacyDlpV2DataProfileJobConfig/dataProfileActions": data_profile_actions
211563211577
"/dlp:v2/GooglePrivacyDlpV2DataProfileJobConfig/dataProfileActions/data_profile_action": data_profile_action
@@ -211809,6 +211823,7 @@
211809211823
"/dlp:v2/GooglePrivacyDlpV2ExclusionRule/regex": regex
211810211824
"/dlp:v2/GooglePrivacyDlpV2Export": google_privacy_dlp_v2_export
211811211825
"/dlp:v2/GooglePrivacyDlpV2Export/profileTable": profile_table
211826+
"/dlp:v2/GooglePrivacyDlpV2Export/sampleFindingsTable": sample_findings_table
211812211827
"/dlp:v2/GooglePrivacyDlpV2Expressions": google_privacy_dlp_v2_expressions
211813211828
"/dlp:v2/GooglePrivacyDlpV2Expressions/conditions": conditions
211814211829
"/dlp:v2/GooglePrivacyDlpV2Expressions/logicalOperator": logical_operator
@@ -211871,6 +211886,7 @@
211871211886
"/dlp:v2/GooglePrivacyDlpV2FileStoreDataProfile/resourceLabels": resource_labels
211872211887
"/dlp:v2/GooglePrivacyDlpV2FileStoreDataProfile/resourceLabels/resource_label": resource_label
211873211888
"/dlp:v2/GooglePrivacyDlpV2FileStoreDataProfile/resourceVisibility": resource_visibility
211889+
"/dlp:v2/GooglePrivacyDlpV2FileStoreDataProfile/sampleFindingsTable": sample_findings_table
211874211890
"/dlp:v2/GooglePrivacyDlpV2FileStoreDataProfile/sensitivityScore": sensitivity_score
211875211891
"/dlp:v2/GooglePrivacyDlpV2FileStoreDataProfile/state": state
211876211892
"/dlp:v2/GooglePrivacyDlpV2FileStoreInfoTypeSummary": google_privacy_dlp_v2_file_store_info_type_summary
@@ -212482,6 +212498,7 @@
212482212498
"/dlp:v2/GooglePrivacyDlpV2TableDataProfile/resourceLabels/resource_label": resource_label
212483212499
"/dlp:v2/GooglePrivacyDlpV2TableDataProfile/resourceVisibility": resource_visibility
212484212500
"/dlp:v2/GooglePrivacyDlpV2TableDataProfile/rowCount": row_count
212501+
"/dlp:v2/GooglePrivacyDlpV2TableDataProfile/sampleFindingsTable": sample_findings_table
212485212502
"/dlp:v2/GooglePrivacyDlpV2TableDataProfile/scannedColumnCount": scanned_column_count
212486212503
"/dlp:v2/GooglePrivacyDlpV2TableDataProfile/sensitivityScore": sensitivity_score
212487212504
"/dlp:v2/GooglePrivacyDlpV2TableDataProfile/state": state

generated/google-apis-dlp_v2/CHANGELOG.md

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

3+
### v0.84.0 (2025-03-09)
4+
5+
* Regenerated from discovery document revision 20250305
6+
37
### v0.83.0 (2025-03-02)
48

59
* Regenerated from discovery document revision 20250226

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

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2548,6 +2548,117 @@ def update!(**args)
25482548
end
25492549
end
25502550

2551+
# Details about a piece of potentially sensitive information that was detected
2552+
# when the data resource was profiled.
2553+
class GooglePrivacyDlpV2DataProfileFinding
2554+
include Google::Apis::Core::Hashable
2555+
2556+
# Resource name of the data profile associated with the finding.
2557+
# Corresponds to the JSON property `dataProfileResourceName`
2558+
# @return [String]
2559+
attr_accessor :data_profile_resource_name
2560+
2561+
# A unique identifier for the finding.
2562+
# Corresponds to the JSON property `findingId`
2563+
# @return [String]
2564+
attr_accessor :finding_id
2565+
2566+
# Type of information detected by the API.
2567+
# Corresponds to the JSON property `infotype`
2568+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType]
2569+
attr_accessor :infotype
2570+
2571+
# Location of a data profile finding within a resource.
2572+
# Corresponds to the JSON property `location`
2573+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DataProfileFindingLocation]
2574+
attr_accessor :location
2575+
2576+
# The content that was found. Even if the content is not textual, it may be
2577+
# converted to a textual representation here. If the finding exceeds 4096 bytes
2578+
# in length, the quote may be omitted.
2579+
# Corresponds to the JSON property `quote`
2580+
# @return [String]
2581+
attr_accessor :quote
2582+
2583+
# Message for infoType-dependent details parsed from quote.
2584+
# Corresponds to the JSON property `quoteInfo`
2585+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2QuoteInfo]
2586+
attr_accessor :quote_info
2587+
2588+
# How broadly a resource has been shared.
2589+
# Corresponds to the JSON property `resourceVisibility`
2590+
# @return [String]
2591+
attr_accessor :resource_visibility
2592+
2593+
# Timestamp when the finding was detected.
2594+
# Corresponds to the JSON property `timestamp`
2595+
# @return [String]
2596+
attr_accessor :timestamp
2597+
2598+
def initialize(**args)
2599+
update!(**args)
2600+
end
2601+
2602+
# Update properties of this object
2603+
def update!(**args)
2604+
@data_profile_resource_name = args[:data_profile_resource_name] if args.key?(:data_profile_resource_name)
2605+
@finding_id = args[:finding_id] if args.key?(:finding_id)
2606+
@infotype = args[:infotype] if args.key?(:infotype)
2607+
@location = args[:location] if args.key?(:location)
2608+
@quote = args[:quote] if args.key?(:quote)
2609+
@quote_info = args[:quote_info] if args.key?(:quote_info)
2610+
@resource_visibility = args[:resource_visibility] if args.key?(:resource_visibility)
2611+
@timestamp = args[:timestamp] if args.key?(:timestamp)
2612+
end
2613+
end
2614+
2615+
# Location of a data profile finding within a resource.
2616+
class GooglePrivacyDlpV2DataProfileFindingLocation
2617+
include Google::Apis::Core::Hashable
2618+
2619+
# Name of the container where the finding is located. The top-level name is the
2620+
# source file name or table name. Names of some common storage containers are
2621+
# formatted as follows: * BigQuery tables: ``project_id`:`dataset_id`.`table_id``
2622+
# * Cloud Storage files: `gs://`bucket`/`path``
2623+
# Corresponds to the JSON property `containerName`
2624+
# @return [String]
2625+
attr_accessor :container_name
2626+
2627+
# Location of a finding within a resource that produces a table data profile.
2628+
# Corresponds to the JSON property `dataProfileFindingRecordLocation`
2629+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DataProfileFindingRecordLocation]
2630+
attr_accessor :data_profile_finding_record_location
2631+
2632+
def initialize(**args)
2633+
update!(**args)
2634+
end
2635+
2636+
# Update properties of this object
2637+
def update!(**args)
2638+
@container_name = args[:container_name] if args.key?(:container_name)
2639+
@data_profile_finding_record_location = args[:data_profile_finding_record_location] if args.key?(:data_profile_finding_record_location)
2640+
end
2641+
end
2642+
2643+
# Location of a finding within a resource that produces a table data profile.
2644+
class GooglePrivacyDlpV2DataProfileFindingRecordLocation
2645+
include Google::Apis::Core::Hashable
2646+
2647+
# General identifier of a data field in a storage service.
2648+
# Corresponds to the JSON property `field`
2649+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2FieldId]
2650+
attr_accessor :field
2651+
2652+
def initialize(**args)
2653+
update!(**args)
2654+
end
2655+
2656+
# Update properties of this object
2657+
def update!(**args)
2658+
@field = args[:field] if args.key?(:field)
2659+
end
2660+
end
2661+
25512662
# Configuration for setting up a job to scan resources for profile generation.
25522663
# Only one data profile configuration may exist per organization, folder, or
25532664
# project. The generated data profiles are retained according to the [data
@@ -4590,13 +4701,21 @@ class GooglePrivacyDlpV2Export
45904701
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2BigQueryTable]
45914702
attr_accessor :profile_table
45924703

4704+
# Message defining the location of a BigQuery table. A table is uniquely
4705+
# identified by its project_id, dataset_id, and table_name. Within a query a
4706+
# table is often referenced with a string in the format of: `:.` or `..`.
4707+
# Corresponds to the JSON property `sampleFindingsTable`
4708+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2BigQueryTable]
4709+
attr_accessor :sample_findings_table
4710+
45934711
def initialize(**args)
45944712
update!(**args)
45954713
end
45964714

45974715
# Update properties of this object
45984716
def update!(**args)
45994717
@profile_table = args[:profile_table] if args.key?(:profile_table)
4718+
@sample_findings_table = args[:sample_findings_table] if args.key?(:sample_findings_table)
46004719
end
46014720
end
46024721

@@ -4997,6 +5116,13 @@ class GooglePrivacyDlpV2FileStoreDataProfile
49975116
# @return [String]
49985117
attr_accessor :resource_visibility
49995118

5119+
# Message defining the location of a BigQuery table. A table is uniquely
5120+
# identified by its project_id, dataset_id, and table_name. Within a query a
5121+
# table is often referenced with a string in the format of: `:.` or `..`.
5122+
# Corresponds to the JSON property `sampleFindingsTable`
5123+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2BigQueryTable]
5124+
attr_accessor :sample_findings_table
5125+
50005126
# Score is calculated from of all elements in the data profile. A higher level
50015127
# means the data is more sensitive.
50025128
# Corresponds to the JSON property `sensitivityScore`
@@ -5036,6 +5162,7 @@ def update!(**args)
50365162
@resource_attributes = args[:resource_attributes] if args.key?(:resource_attributes)
50375163
@resource_labels = args[:resource_labels] if args.key?(:resource_labels)
50385164
@resource_visibility = args[:resource_visibility] if args.key?(:resource_visibility)
5165+
@sample_findings_table = args[:sample_findings_table] if args.key?(:sample_findings_table)
50395166
@sensitivity_score = args[:sensitivity_score] if args.key?(:sensitivity_score)
50405167
@state = args[:state] if args.key?(:state)
50415168
end
@@ -9817,6 +9944,13 @@ class GooglePrivacyDlpV2TableDataProfile
98179944
# @return [Fixnum]
98189945
attr_accessor :row_count
98199946

9947+
# Message defining the location of a BigQuery table. A table is uniquely
9948+
# identified by its project_id, dataset_id, and table_name. Within a query a
9949+
# table is often referenced with a string in the format of: `:.` or `..`.
9950+
# Corresponds to the JSON property `sampleFindingsTable`
9951+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2BigQueryTable]
9952+
attr_accessor :sample_findings_table
9953+
98209954
# The number of columns profiled in the table.
98219955
# Corresponds to the JSON property `scannedColumnCount`
98229956
# @return [Fixnum]
@@ -9871,6 +10005,7 @@ def update!(**args)
987110005
@resource_labels = args[:resource_labels] if args.key?(:resource_labels)
987210006
@resource_visibility = args[:resource_visibility] if args.key?(:resource_visibility)
987310007
@row_count = args[:row_count] if args.key?(:row_count)
10008+
@sample_findings_table = args[:sample_findings_table] if args.key?(:sample_findings_table)
987410009
@scanned_column_count = args[:scanned_column_count] if args.key?(:scanned_column_count)
987510010
@sensitivity_score = args[:sensitivity_score] if args.key?(:sensitivity_score)
987610011
@state = args[:state] if args.key?(:state)

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

Lines changed: 2 additions & 2 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.83.0"
19+
GEM_VERSION = "0.84.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.16.0"
2323

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

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

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,24 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
430430
include Google::Apis::Core::JsonObjectSupport
431431
end
432432

433+
class GooglePrivacyDlpV2DataProfileFinding
434+
class Representation < Google::Apis::Core::JsonRepresentation; end
435+
436+
include Google::Apis::Core::JsonObjectSupport
437+
end
438+
439+
class GooglePrivacyDlpV2DataProfileFindingLocation
440+
class Representation < Google::Apis::Core::JsonRepresentation; end
441+
442+
include Google::Apis::Core::JsonObjectSupport
443+
end
444+
445+
class GooglePrivacyDlpV2DataProfileFindingRecordLocation
446+
class Representation < Google::Apis::Core::JsonRepresentation; end
447+
448+
include Google::Apis::Core::JsonObjectSupport
449+
end
450+
433451
class GooglePrivacyDlpV2DataProfileJobConfig
434452
class Representation < Google::Apis::Core::JsonRepresentation; end
435453

@@ -2717,6 +2735,40 @@ class Representation < Google::Apis::Core::JsonRepresentation
27172735
end
27182736
end
27192737

2738+
class GooglePrivacyDlpV2DataProfileFinding
2739+
# @private
2740+
class Representation < Google::Apis::Core::JsonRepresentation
2741+
property :data_profile_resource_name, as: 'dataProfileResourceName'
2742+
property :finding_id, as: 'findingId'
2743+
property :infotype, as: 'infotype', class: Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType::Representation
2744+
2745+
property :location, as: 'location', class: Google::Apis::DlpV2::GooglePrivacyDlpV2DataProfileFindingLocation, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2DataProfileFindingLocation::Representation
2746+
2747+
property :quote, as: 'quote'
2748+
property :quote_info, as: 'quoteInfo', class: Google::Apis::DlpV2::GooglePrivacyDlpV2QuoteInfo, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2QuoteInfo::Representation
2749+
2750+
property :resource_visibility, as: 'resourceVisibility'
2751+
property :timestamp, as: 'timestamp'
2752+
end
2753+
end
2754+
2755+
class GooglePrivacyDlpV2DataProfileFindingLocation
2756+
# @private
2757+
class Representation < Google::Apis::Core::JsonRepresentation
2758+
property :container_name, as: 'containerName'
2759+
property :data_profile_finding_record_location, as: 'dataProfileFindingRecordLocation', class: Google::Apis::DlpV2::GooglePrivacyDlpV2DataProfileFindingRecordLocation, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2DataProfileFindingRecordLocation::Representation
2760+
2761+
end
2762+
end
2763+
2764+
class GooglePrivacyDlpV2DataProfileFindingRecordLocation
2765+
# @private
2766+
class Representation < Google::Apis::Core::JsonRepresentation
2767+
property :field, as: 'field', class: Google::Apis::DlpV2::GooglePrivacyDlpV2FieldId, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2FieldId::Representation
2768+
2769+
end
2770+
end
2771+
27202772
class GooglePrivacyDlpV2DataProfileJobConfig
27212773
# @private
27222774
class Representation < Google::Apis::Core::JsonRepresentation
@@ -3323,6 +3375,8 @@ class GooglePrivacyDlpV2Export
33233375
class Representation < Google::Apis::Core::JsonRepresentation
33243376
property :profile_table, as: 'profileTable', class: Google::Apis::DlpV2::GooglePrivacyDlpV2BigQueryTable, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2BigQueryTable::Representation
33253377

3378+
property :sample_findings_table, as: 'sampleFindingsTable', class: Google::Apis::DlpV2::GooglePrivacyDlpV2BigQueryTable, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2BigQueryTable::Representation
3379+
33263380
end
33273381
end
33283382

@@ -3441,6 +3495,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
34413495

34423496
hash :resource_labels, as: 'resourceLabels'
34433497
property :resource_visibility, as: 'resourceVisibility'
3498+
property :sample_findings_table, as: 'sampleFindingsTable', class: Google::Apis::DlpV2::GooglePrivacyDlpV2BigQueryTable, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2BigQueryTable::Representation
3499+
34443500
property :sensitivity_score, as: 'sensitivityScore', class: Google::Apis::DlpV2::GooglePrivacyDlpV2SensitivityScore, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2SensitivityScore::Representation
34453501

34463502
property :state, as: 'state'
@@ -4948,6 +5004,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
49485004
hash :resource_labels, as: 'resourceLabels'
49495005
property :resource_visibility, as: 'resourceVisibility'
49505006
property :row_count, :numeric_string => true, as: 'rowCount'
5007+
property :sample_findings_table, as: 'sampleFindingsTable', class: Google::Apis::DlpV2::GooglePrivacyDlpV2BigQueryTable, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2BigQueryTable::Representation
5008+
49515009
property :scanned_column_count, :numeric_string => true, as: 'scannedColumnCount'
49525010
property :sensitivity_score, as: 'sensitivityScore', class: Google::Apis::DlpV2::GooglePrivacyDlpV2SensitivityScore, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2SensitivityScore::Representation
49535011

0 commit comments

Comments
 (0)