Class: Google::Apis::DlpV2::GooglePrivacyDlpV2FileLabel

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dlp_v2/classes.rb,
lib/google/apis/dlp_v2/representations.rb,
lib/google/apis/dlp_v2/representations.rb

Overview

Represents a file label.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2FileLabel

Returns a new instance of GooglePrivacyDlpV2FileLabel.



5515
5516
5517
# File 'lib/google/apis/dlp_v2/classes.rb', line 5515

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

Instance Attribute Details

#google_drive_labelGoogle::Apis::DlpV2::GooglePrivacyDlpV2GoogleDriveLabelMetadata

Google Drive labels published by Google. Corresponds to the JSON property googleDriveLabel



5508
5509
5510
# File 'lib/google/apis/dlp_v2/classes.rb', line 5508

def google_drive_label
  @google_drive_label
end

#sensitivity_labelGoogle::Apis::DlpV2::GooglePrivacyDlpV2SensitivityLabelMetadata

Sensitivity labels published by Microsoft. Corresponds to the JSON property sensitivityLabel



5513
5514
5515
# File 'lib/google/apis/dlp_v2/classes.rb', line 5513

def sensitivity_label
  @sensitivity_label
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5520
5521
5522
5523
# File 'lib/google/apis/dlp_v2/classes.rb', line 5520

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