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
27 changes: 27 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -259315,6 +259315,8 @@
"/dlp:v2/GooglePrivacyDlpV2ContentLocation/metadataLocation": metadata_location
"/dlp:v2/GooglePrivacyDlpV2ContentLocation/recordLocation": record_location
"/dlp:v2/GooglePrivacyDlpV2ContentMetadata": google_privacy_dlp_v2_content_metadata
"/dlp:v2/GooglePrivacyDlpV2ContentMetadata/fileLabels": file_labels
"/dlp:v2/GooglePrivacyDlpV2ContentMetadata/fileLabels/file_label": file_label
"/dlp:v2/GooglePrivacyDlpV2ContentMetadata/properties": properties
"/dlp:v2/GooglePrivacyDlpV2ContentMetadata/properties/property": property
"/dlp:v2/GooglePrivacyDlpV2ContentPolicy": google_privacy_dlp_v2_content_policy
Expand Down Expand Up @@ -259395,6 +259397,7 @@
"/dlp:v2/GooglePrivacyDlpV2CustomInfoType/detectionRules/detection_rule": detection_rule
"/dlp:v2/GooglePrivacyDlpV2CustomInfoType/dictionary": dictionary
"/dlp:v2/GooglePrivacyDlpV2CustomInfoType/exclusionType": exclusion_type
"/dlp:v2/GooglePrivacyDlpV2CustomInfoType/fileLabelInfoType": file_label_info_type
"/dlp:v2/GooglePrivacyDlpV2CustomInfoType/infoType": info_type
"/dlp:v2/GooglePrivacyDlpV2CustomInfoType/likelihood": likelihood
"/dlp:v2/GooglePrivacyDlpV2CustomInfoType/metadataKeyValueExpression": metadata_key_value_expression
Expand Down Expand Up @@ -259728,6 +259731,12 @@
"/dlp:v2/GooglePrivacyDlpV2FileClusterType/cluster": cluster
"/dlp:v2/GooglePrivacyDlpV2FileExtensionInfo": google_privacy_dlp_v2_file_extension_info
"/dlp:v2/GooglePrivacyDlpV2FileExtensionInfo/fileExtension": file_extension
"/dlp:v2/GooglePrivacyDlpV2FileLabel": google_privacy_dlp_v2_file_label
"/dlp:v2/GooglePrivacyDlpV2FileLabel/googleDriveLabel": google_drive_label
"/dlp:v2/GooglePrivacyDlpV2FileLabel/sensitivityLabel": sensitivity_label
"/dlp:v2/GooglePrivacyDlpV2FileLabelInfoType": google_privacy_dlp_v2_file_label_info_type
"/dlp:v2/GooglePrivacyDlpV2FileLabelInfoType/googleDriveLabel": google_drive_label
"/dlp:v2/GooglePrivacyDlpV2FileLabelInfoType/sensitivityLabel": sensitivity_label
"/dlp:v2/GooglePrivacyDlpV2FileSet": google_privacy_dlp_v2_file_set
"/dlp:v2/GooglePrivacyDlpV2FileSet/regexFileSet": regex_file_set
"/dlp:v2/GooglePrivacyDlpV2FileSet/url": url
Expand Down Expand Up @@ -259804,6 +259813,14 @@
"/dlp:v2/GooglePrivacyDlpV2FixedSizeBucketingConfig/upperBound": upper_bound
"/dlp:v2/GooglePrivacyDlpV2FullyInside": google_privacy_dlp_v2_fully_inside
"/dlp:v2/GooglePrivacyDlpV2GlobalProcessing": google_privacy_dlp_v2_global_processing
"/dlp:v2/GooglePrivacyDlpV2GoogleDriveLabel": google_privacy_dlp_v2_google_drive_label
"/dlp:v2/GooglePrivacyDlpV2GoogleDriveLabel/labelFieldsToMatch": label_fields_to_match
"/dlp:v2/GooglePrivacyDlpV2GoogleDriveLabel/labelFieldsToMatch/label_fields_to_match": label_fields_to_match
"/dlp:v2/GooglePrivacyDlpV2GoogleDriveLabel/labelId": label_id
"/dlp:v2/GooglePrivacyDlpV2GoogleDriveLabelMetadata": google_privacy_dlp_v2_google_drive_label_metadata
"/dlp:v2/GooglePrivacyDlpV2GoogleDriveLabelMetadata/labelFields": label_fields
"/dlp:v2/GooglePrivacyDlpV2GoogleDriveLabelMetadata/labelFields/label_field": label_field
"/dlp:v2/GooglePrivacyDlpV2GoogleDriveLabelMetadata/labelId": label_id
"/dlp:v2/GooglePrivacyDlpV2HotwordRule": google_privacy_dlp_v2_hotword_rule
"/dlp:v2/GooglePrivacyDlpV2HotwordRule/hotwordRegex": hotword_regex
"/dlp:v2/GooglePrivacyDlpV2HotwordRule/likelihoodAdjustment": likelihood_adjustment
Expand Down Expand Up @@ -260044,6 +260061,12 @@
"/dlp:v2/GooglePrivacyDlpV2LDiversityResult": google_privacy_dlp_v2_l_diversity_result
"/dlp:v2/GooglePrivacyDlpV2LDiversityResult/sensitiveValueFrequencyHistogramBuckets": sensitive_value_frequency_histogram_buckets
"/dlp:v2/GooglePrivacyDlpV2LDiversityResult/sensitiveValueFrequencyHistogramBuckets/sensitive_value_frequency_histogram_bucket": sensitive_value_frequency_histogram_bucket
"/dlp:v2/GooglePrivacyDlpV2LabelField": google_privacy_dlp_v2_label_field
"/dlp:v2/GooglePrivacyDlpV2LabelField/id": id
"/dlp:v2/GooglePrivacyDlpV2LabelField/value": value
"/dlp:v2/GooglePrivacyDlpV2LabelFieldMetadata": google_privacy_dlp_v2_label_field_metadata
"/dlp:v2/GooglePrivacyDlpV2LabelFieldMetadata/id": id
"/dlp:v2/GooglePrivacyDlpV2LabelFieldMetadata/value": value
"/dlp:v2/GooglePrivacyDlpV2LargeCustomDictionaryConfig": google_privacy_dlp_v2_large_custom_dictionary_config
"/dlp:v2/GooglePrivacyDlpV2LargeCustomDictionaryConfig/bigQueryField": big_query_field
"/dlp:v2/GooglePrivacyDlpV2LargeCustomDictionaryConfig/cloudStorageFileSet": cloud_storage_file_set
Expand Down Expand Up @@ -260364,6 +260387,10 @@
"/dlp:v2/GooglePrivacyDlpV2SelectedInfoTypes": google_privacy_dlp_v2_selected_info_types
"/dlp:v2/GooglePrivacyDlpV2SelectedInfoTypes/infoTypes": info_types
"/dlp:v2/GooglePrivacyDlpV2SelectedInfoTypes/infoTypes/info_type": info_type
"/dlp:v2/GooglePrivacyDlpV2SensitivityLabel": google_privacy_dlp_v2_sensitivity_label
"/dlp:v2/GooglePrivacyDlpV2SensitivityLabel/guid": guid
"/dlp:v2/GooglePrivacyDlpV2SensitivityLabelMetadata": google_privacy_dlp_v2_sensitivity_label_metadata
"/dlp:v2/GooglePrivacyDlpV2SensitivityLabelMetadata/guid": guid
"/dlp:v2/GooglePrivacyDlpV2SensitivityScore": google_privacy_dlp_v2_sensitivity_score
"/dlp:v2/GooglePrivacyDlpV2SensitivityScore/score": score
"/dlp:v2/GooglePrivacyDlpV2StatisticalTable": google_privacy_dlp_v2_statistical_table
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-dlp_v2/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-dlp_v2

### v0.111.0 (2026-07-05)

* Regenerated from discovery document revision 20260620

### v0.110.0 (2026-06-21)

* Regenerated from discovery document revision 20260606
Expand Down
230 changes: 218 additions & 12 deletions generated/google-apis-dlp_v2/lib/google/apis/dlp_v2/classes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2119,6 +2119,11 @@ def update!(**args)
class GooglePrivacyDlpV2ContentMetadata
include Google::Apis::Core::Hashable

# Optional. The file labels associated with the content.
# Corresponds to the JSON property `fileLabels`
# @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2FileLabel>]
attr_accessor :file_labels

# User provided key-value pairs of content metadata.
# Corresponds to the JSON property `properties`
# @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2KeyValueMetadataProperty>]
Expand All @@ -2130,6 +2135,7 @@ def initialize(**args)

# Update properties of this object
def update!(**args)
@file_labels = args[:file_labels] if args.key?(:file_labels)
@properties = args[:properties] if args.key?(:properties)
end
end
Expand Down Expand Up @@ -2794,6 +2800,11 @@ class GooglePrivacyDlpV2CustomInfoType
# @return [String]
attr_accessor :exclusion_type

# Configuration for a custom infoType that detects file labels.
# Corresponds to the JSON property `fileLabelInfoType`
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2FileLabelInfoType]
attr_accessor :file_label_info_type

# Type of information detected by the API.
# Corresponds to the JSON property `infoType`
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType]
Expand Down Expand Up @@ -2849,6 +2860,7 @@ def update!(**args)
@detection_rules = args[:detection_rules] if args.key?(:detection_rules)
@dictionary = args[:dictionary] if args.key?(:dictionary)
@exclusion_type = args[:exclusion_type] if args.key?(:exclusion_type)
@file_label_info_type = args[:file_label_info_type] if args.key?(:file_label_info_type)
@info_type = args[:info_type] if args.key?(:info_type)
@likelihood = args[:likelihood] if args.key?(:likelihood)
@metadata_key_value_expression = args[:metadata_key_value_expression] if args.key?(:metadata_key_value_expression)
Expand Down Expand Up @@ -5486,6 +5498,56 @@ def update!(**args)
end
end

# Represents a file label.
class GooglePrivacyDlpV2FileLabel
include Google::Apis::Core::Hashable

# Google Drive labels published by Google.
# Corresponds to the JSON property `googleDriveLabel`
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2GoogleDriveLabelMetadata]
attr_accessor :google_drive_label

# Sensitivity labels published by Microsoft.
# Corresponds to the JSON property `sensitivityLabel`
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2SensitivityLabelMetadata]
attr_accessor :sensitivity_label

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@google_drive_label = args[:google_drive_label] if args.key?(:google_drive_label)
@sensitivity_label = args[:sensitivity_label] if args.key?(:sensitivity_label)
end
end

# Configuration for a custom infoType that detects file labels.
class GooglePrivacyDlpV2FileLabelInfoType
include Google::Apis::Core::Hashable

# Google Drive labels published by Google.
# Corresponds to the JSON property `googleDriveLabel`
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2GoogleDriveLabel]
attr_accessor :google_drive_label

# Sensitivity labels published by Microsoft.
# Corresponds to the JSON property `sensitivityLabel`
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2SensitivityLabel]
attr_accessor :sensitivity_label

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@google_drive_label = args[:google_drive_label] if args.key?(:google_drive_label)
@sensitivity_label = args[:sensitivity_label] if args.key?(:sensitivity_label)
end
end

# Set of files to scan.
class GooglePrivacyDlpV2FileSet
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -6059,6 +6121,58 @@ def update!(**args)
end
end

# Google Drive labels published by Google.
class GooglePrivacyDlpV2GoogleDriveLabel
include Google::Apis::Core::Hashable

# The field values of the Google Drive label to match.
# Corresponds to the JSON property `labelFieldsToMatch`
# @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2LabelField>]
attr_accessor :label_fields_to_match

# The [label ID](https://developers.google.com/workspace/drive/labels/guides/
# overview) of the Google Drive label.
# Corresponds to the JSON property `labelId`
# @return [String]
attr_accessor :label_id

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@label_fields_to_match = args[:label_fields_to_match] if args.key?(:label_fields_to_match)
@label_id = args[:label_id] if args.key?(:label_id)
end
end

# Google Drive labels published by Google.
class GooglePrivacyDlpV2GoogleDriveLabelMetadata
include Google::Apis::Core::Hashable

# The field values of the Google Drive label
# Corresponds to the JSON property `labelFields`
# @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2LabelFieldMetadata>]
attr_accessor :label_fields

# The [label ID](https://developers.google.com/workspace/drive/labels/guides/
# overview) of the Google Drive label.
# Corresponds to the JSON property `labelId`
# @return [String]
attr_accessor :label_id

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@label_fields = args[:label_fields] if args.key?(:label_fields)
@label_id = args[:label_id] if args.key?(:label_id)
end
end

# The rule that adjusts the likelihood of findings within a certain proximity of
# hotwords.
class GooglePrivacyDlpV2HotwordRule
Expand Down Expand Up @@ -7829,6 +7943,60 @@ def update!(**args)
end
end

# The field values of the Google Drive label to match.
class GooglePrivacyDlpV2LabelField
include Google::Apis::Core::Hashable

# The identifier of the Label Field.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id

# The value of the Label Field to match.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@value = args[:value] if args.key?(:value)
end
end

# The field values of the Google Drive label
class GooglePrivacyDlpV2LabelFieldMetadata
include Google::Apis::Core::Hashable

# The identifier of the Label Field.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id

# Set of primitive values supported by the system. Note that for the purposes of
# inspection or transformation, the number of bytes considered to comprise a '
# Value' is based on its representation as a UTF-8 encoded string. For example,
# if 'integer_value' is set to 123456789, the number of bytes would be counted
# as 9, even though an int64 only holds up to 8 bytes of data.
# Corresponds to the JSON property `value`
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2Value]
attr_accessor :value

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@value = args[:value] if args.key?(:value)
end
end

# Configuration for a custom dictionary created from a data source of any size
# up to the maximum size defined in the [limits](https://cloud.google.com/
# sensitive-data-protection/limits) page. The artifacts of dictionary creation
Expand Down Expand Up @@ -10509,6 +10677,44 @@ def update!(**args)
end
end

# Sensitivity labels published by Microsoft.
class GooglePrivacyDlpV2SensitivityLabel
include Google::Apis::Core::Hashable

# The GUID of the sensitivity label.
# Corresponds to the JSON property `guid`
# @return [String]
attr_accessor :guid

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@guid = args[:guid] if args.key?(:guid)
end
end

# Sensitivity labels published by Microsoft.
class GooglePrivacyDlpV2SensitivityLabelMetadata
include Google::Apis::Core::Hashable

# Required. The GUID of the sensitivity label.
# Corresponds to the JSON property `guid`
# @return [String]
attr_accessor :guid

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@guid = args[:guid] if args.key?(:guid)
end
end

# Score is calculated from of all elements in the data profile. A higher level
# means the data is more sensitive.
class GooglePrivacyDlpV2SensitivityScore
Expand Down Expand Up @@ -10642,7 +10848,7 @@ class GooglePrivacyDlpV2StoredInfoType
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoTypeVersion]
attr_accessor :current_version

# Resource name.
# Output only. Resource name.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
Expand Down Expand Up @@ -10762,28 +10968,28 @@ class GooglePrivacyDlpV2StoredInfoTypeVersion
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoTypeConfig]
attr_accessor :config

# Create timestamp of the version. Read-only, determined by the system when the
# version is created.
# Output only. Create timestamp of the version. Read-only, determined by the
# system when the version is created.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time

# Errors that occurred when creating this storedInfoType version, or anomalies
# detected in the storedInfoType data that render it unusable. Only the five
# most recent errors will be displayed, with the most recent error appearing
# first. For example, some of the data for stored custom dictionaries is put in
# the user's Cloud Storage bucket, and if this data is modified or deleted by
# the user or another system, the dictionary becomes invalid. If any errors
# occur, fix the problem indicated by the error message and use the
# Output only. Errors that occurred when creating this storedInfoType version,
# or anomalies detected in the storedInfoType data that render it unusable. Only
# the five most recent errors will be displayed, with the most recent error
# appearing first. For example, some of the data for stored custom dictionaries
# is put in the user's Cloud Storage bucket, and if this data is modified or
# deleted by the user or another system, the dictionary becomes invalid. If any
# errors occur, fix the problem indicated by the error message and use the
# UpdateStoredInfoType API method to create another version of the
# storedInfoType to continue using it, reusing the same `config` if it was not
# the source of the error.
# Corresponds to the JSON property `errors`
# @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2Error>]
attr_accessor :errors

# Stored info type version state. Read-only, updated by the system during
# dictionary creation.
# Output only. Stored info type version state. Read-only, updated by the system
# during dictionary creation.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
Expand Down
Loading
Loading