@@ -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 )
0 commit comments