@@ -2119,6 +2119,11 @@ def update!(**args)
21192119 class GooglePrivacyDlpV2ContentMetadata
21202120 include Google::Apis::Core::Hashable
21212121
2122+ # Optional. The file labels associated with the content.
2123+ # Corresponds to the JSON property `fileLabels`
2124+ # @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2FileLabel>]
2125+ attr_accessor :file_labels
2126+
21222127 # User provided key-value pairs of content metadata.
21232128 # Corresponds to the JSON property `properties`
21242129 # @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2KeyValueMetadataProperty>]
@@ -2130,6 +2135,7 @@ def initialize(**args)
21302135
21312136 # Update properties of this object
21322137 def update!(**args)
2138+ @file_labels = args[:file_labels] if args.key?(:file_labels)
21332139 @properties = args[:properties] if args.key?(:properties)
21342140 end
21352141 end
@@ -2794,6 +2800,11 @@ class GooglePrivacyDlpV2CustomInfoType
27942800 # @return [String]
27952801 attr_accessor :exclusion_type
27962802
2803+ # Configuration for a custom infoType that detects file labels.
2804+ # Corresponds to the JSON property `fileLabelInfoType`
2805+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2FileLabelInfoType]
2806+ attr_accessor :file_label_info_type
2807+
27972808 # Type of information detected by the API.
27982809 # Corresponds to the JSON property `infoType`
27992810 # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType]
@@ -2849,6 +2860,7 @@ def update!(**args)
28492860 @detection_rules = args[:detection_rules] if args.key?(:detection_rules)
28502861 @dictionary = args[:dictionary] if args.key?(:dictionary)
28512862 @exclusion_type = args[:exclusion_type] if args.key?(:exclusion_type)
2863+ @file_label_info_type = args[:file_label_info_type] if args.key?(:file_label_info_type)
28522864 @info_type = args[:info_type] if args.key?(:info_type)
28532865 @likelihood = args[:likelihood] if args.key?(:likelihood)
28542866 @metadata_key_value_expression = args[:metadata_key_value_expression] if args.key?(:metadata_key_value_expression)
@@ -5486,6 +5498,56 @@ def update!(**args)
54865498 end
54875499 end
54885500
5501+ # Represents a file label.
5502+ class GooglePrivacyDlpV2FileLabel
5503+ include Google::Apis::Core::Hashable
5504+
5505+ # Google Drive labels published by Google.
5506+ # Corresponds to the JSON property `googleDriveLabel`
5507+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2GoogleDriveLabelMetadata]
5508+ attr_accessor :google_drive_label
5509+
5510+ # Sensitivity labels published by Microsoft.
5511+ # Corresponds to the JSON property `sensitivityLabel`
5512+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2SensitivityLabelMetadata]
5513+ attr_accessor :sensitivity_label
5514+
5515+ def initialize(**args)
5516+ update!(**args)
5517+ end
5518+
5519+ # Update properties of this object
5520+ def update!(**args)
5521+ @google_drive_label = args[:google_drive_label] if args.key?(:google_drive_label)
5522+ @sensitivity_label = args[:sensitivity_label] if args.key?(:sensitivity_label)
5523+ end
5524+ end
5525+
5526+ # Configuration for a custom infoType that detects file labels.
5527+ class GooglePrivacyDlpV2FileLabelInfoType
5528+ include Google::Apis::Core::Hashable
5529+
5530+ # Google Drive labels published by Google.
5531+ # Corresponds to the JSON property `googleDriveLabel`
5532+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2GoogleDriveLabel]
5533+ attr_accessor :google_drive_label
5534+
5535+ # Sensitivity labels published by Microsoft.
5536+ # Corresponds to the JSON property `sensitivityLabel`
5537+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2SensitivityLabel]
5538+ attr_accessor :sensitivity_label
5539+
5540+ def initialize(**args)
5541+ update!(**args)
5542+ end
5543+
5544+ # Update properties of this object
5545+ def update!(**args)
5546+ @google_drive_label = args[:google_drive_label] if args.key?(:google_drive_label)
5547+ @sensitivity_label = args[:sensitivity_label] if args.key?(:sensitivity_label)
5548+ end
5549+ end
5550+
54895551 # Set of files to scan.
54905552 class GooglePrivacyDlpV2FileSet
54915553 include Google::Apis::Core::Hashable
@@ -6059,6 +6121,58 @@ def update!(**args)
60596121 end
60606122 end
60616123
6124+ # Google Drive labels published by Google.
6125+ class GooglePrivacyDlpV2GoogleDriveLabel
6126+ include Google::Apis::Core::Hashable
6127+
6128+ # The field values of the Google Drive label to match.
6129+ # Corresponds to the JSON property `labelFieldsToMatch`
6130+ # @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2LabelField>]
6131+ attr_accessor :label_fields_to_match
6132+
6133+ # The [label ID](https://developers.google.com/workspace/drive/labels/guides/
6134+ # overview) of the Google Drive label.
6135+ # Corresponds to the JSON property `labelId`
6136+ # @return [String]
6137+ attr_accessor :label_id
6138+
6139+ def initialize(**args)
6140+ update!(**args)
6141+ end
6142+
6143+ # Update properties of this object
6144+ def update!(**args)
6145+ @label_fields_to_match = args[:label_fields_to_match] if args.key?(:label_fields_to_match)
6146+ @label_id = args[:label_id] if args.key?(:label_id)
6147+ end
6148+ end
6149+
6150+ # Google Drive labels published by Google.
6151+ class GooglePrivacyDlpV2GoogleDriveLabelMetadata
6152+ include Google::Apis::Core::Hashable
6153+
6154+ # The field values of the Google Drive label
6155+ # Corresponds to the JSON property `labelFields`
6156+ # @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2LabelFieldMetadata>]
6157+ attr_accessor :label_fields
6158+
6159+ # The [label ID](https://developers.google.com/workspace/drive/labels/guides/
6160+ # overview) of the Google Drive label.
6161+ # Corresponds to the JSON property `labelId`
6162+ # @return [String]
6163+ attr_accessor :label_id
6164+
6165+ def initialize(**args)
6166+ update!(**args)
6167+ end
6168+
6169+ # Update properties of this object
6170+ def update!(**args)
6171+ @label_fields = args[:label_fields] if args.key?(:label_fields)
6172+ @label_id = args[:label_id] if args.key?(:label_id)
6173+ end
6174+ end
6175+
60626176 # The rule that adjusts the likelihood of findings within a certain proximity of
60636177 # hotwords.
60646178 class GooglePrivacyDlpV2HotwordRule
@@ -7829,6 +7943,60 @@ def update!(**args)
78297943 end
78307944 end
78317945
7946+ # The field values of the Google Drive label to match.
7947+ class GooglePrivacyDlpV2LabelField
7948+ include Google::Apis::Core::Hashable
7949+
7950+ # The identifier of the Label Field.
7951+ # Corresponds to the JSON property `id`
7952+ # @return [String]
7953+ attr_accessor :id
7954+
7955+ # The value of the Label Field to match.
7956+ # Corresponds to the JSON property `value`
7957+ # @return [String]
7958+ attr_accessor :value
7959+
7960+ def initialize(**args)
7961+ update!(**args)
7962+ end
7963+
7964+ # Update properties of this object
7965+ def update!(**args)
7966+ @id = args[:id] if args.key?(:id)
7967+ @value = args[:value] if args.key?(:value)
7968+ end
7969+ end
7970+
7971+ # The field values of the Google Drive label
7972+ class GooglePrivacyDlpV2LabelFieldMetadata
7973+ include Google::Apis::Core::Hashable
7974+
7975+ # The identifier of the Label Field.
7976+ # Corresponds to the JSON property `id`
7977+ # @return [String]
7978+ attr_accessor :id
7979+
7980+ # Set of primitive values supported by the system. Note that for the purposes of
7981+ # inspection or transformation, the number of bytes considered to comprise a '
7982+ # Value' is based on its representation as a UTF-8 encoded string. For example,
7983+ # if 'integer_value' is set to 123456789, the number of bytes would be counted
7984+ # as 9, even though an int64 only holds up to 8 bytes of data.
7985+ # Corresponds to the JSON property `value`
7986+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2Value]
7987+ attr_accessor :value
7988+
7989+ def initialize(**args)
7990+ update!(**args)
7991+ end
7992+
7993+ # Update properties of this object
7994+ def update!(**args)
7995+ @id = args[:id] if args.key?(:id)
7996+ @value = args[:value] if args.key?(:value)
7997+ end
7998+ end
7999+
78328000 # Configuration for a custom dictionary created from a data source of any size
78338001 # up to the maximum size defined in the [limits](https://cloud.google.com/
78348002 # sensitive-data-protection/limits) page. The artifacts of dictionary creation
@@ -10509,6 +10677,44 @@ def update!(**args)
1050910677 end
1051010678 end
1051110679
10680+ # Sensitivity labels published by Microsoft.
10681+ class GooglePrivacyDlpV2SensitivityLabel
10682+ include Google::Apis::Core::Hashable
10683+
10684+ # The GUID of the sensitivity label.
10685+ # Corresponds to the JSON property `guid`
10686+ # @return [String]
10687+ attr_accessor :guid
10688+
10689+ def initialize(**args)
10690+ update!(**args)
10691+ end
10692+
10693+ # Update properties of this object
10694+ def update!(**args)
10695+ @guid = args[:guid] if args.key?(:guid)
10696+ end
10697+ end
10698+
10699+ # Sensitivity labels published by Microsoft.
10700+ class GooglePrivacyDlpV2SensitivityLabelMetadata
10701+ include Google::Apis::Core::Hashable
10702+
10703+ # Required. The GUID of the sensitivity label.
10704+ # Corresponds to the JSON property `guid`
10705+ # @return [String]
10706+ attr_accessor :guid
10707+
10708+ def initialize(**args)
10709+ update!(**args)
10710+ end
10711+
10712+ # Update properties of this object
10713+ def update!(**args)
10714+ @guid = args[:guid] if args.key?(:guid)
10715+ end
10716+ end
10717+
1051210718 # Score is calculated from of all elements in the data profile. A higher level
1051310719 # means the data is more sensitive.
1051410720 class GooglePrivacyDlpV2SensitivityScore
@@ -10642,7 +10848,7 @@ class GooglePrivacyDlpV2StoredInfoType
1064210848 # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoTypeVersion]
1064310849 attr_accessor :current_version
1064410850
10645- # Resource name.
10851+ # Output only. Resource name.
1064610852 # Corresponds to the JSON property `name`
1064710853 # @return [String]
1064810854 attr_accessor :name
@@ -10762,28 +10968,28 @@ class GooglePrivacyDlpV2StoredInfoTypeVersion
1076210968 # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoTypeConfig]
1076310969 attr_accessor :config
1076410970
10765- # Create timestamp of the version. Read-only, determined by the system when the
10766- # version is created.
10971+ # Output only. Create timestamp of the version. Read-only, determined by the
10972+ # system when the version is created.
1076710973 # Corresponds to the JSON property `createTime`
1076810974 # @return [String]
1076910975 attr_accessor :create_time
1077010976
10771- # Errors that occurred when creating this storedInfoType version, or anomalies
10772- # detected in the storedInfoType data that render it unusable. Only the five
10773- # most recent errors will be displayed, with the most recent error appearing
10774- # first. For example, some of the data for stored custom dictionaries is put in
10775- # the user's Cloud Storage bucket, and if this data is modified or deleted by
10776- # the user or another system, the dictionary becomes invalid. If any errors
10777- # occur, fix the problem indicated by the error message and use the
10977+ # Output only. Errors that occurred when creating this storedInfoType version,
10978+ # or anomalies detected in the storedInfoType data that render it unusable. Only
10979+ # the five most recent errors will be displayed, with the most recent error
10980+ # appearing first. For example, some of the data for stored custom dictionaries
10981+ # is put in the user's Cloud Storage bucket, and if this data is modified or
10982+ # deleted by the user or another system, the dictionary becomes invalid. If any
10983+ # errors occur, fix the problem indicated by the error message and use the
1077810984 # UpdateStoredInfoType API method to create another version of the
1077910985 # storedInfoType to continue using it, reusing the same `config` if it was not
1078010986 # the source of the error.
1078110987 # Corresponds to the JSON property `errors`
1078210988 # @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2Error>]
1078310989 attr_accessor :errors
1078410990
10785- # Stored info type version state. Read-only, updated by the system during
10786- # dictionary creation.
10991+ # Output only. Stored info type version state. Read-only, updated by the system
10992+ # during dictionary creation.
1078710993 # Corresponds to the JSON property `state`
1078810994 # @return [String]
1078910995 attr_accessor :state
0 commit comments