Class: Google::Apis::DlpV2::GooglePrivacyDlpV2GoogleDriveLabelMetadata

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

Google Drive labels published by Google.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2GoogleDriveLabelMetadata

Returns a new instance of GooglePrivacyDlpV2GoogleDriveLabelMetadata.



6165
6166
6167
# File 'lib/google/apis/dlp_v2/classes.rb', line 6165

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

Instance Attribute Details

#label_fieldsArray<Google::Apis::DlpV2::GooglePrivacyDlpV2LabelFieldMetadata>

The field values of the Google Drive label Corresponds to the JSON property labelFields



6157
6158
6159
# File 'lib/google/apis/dlp_v2/classes.rb', line 6157

def label_fields
  @label_fields
end

#label_idString

The label ID of the Google Drive label. Corresponds to the JSON property labelId

Returns:

  • (String)


6163
6164
6165
# File 'lib/google/apis/dlp_v2/classes.rb', line 6163

def label_id
  @label_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6170
6171
6172
6173
# File 'lib/google/apis/dlp_v2/classes.rb', line 6170

def update!(**args)
  @label_fields = args[:label_fields] if args.key?(:label_fields)
  @label_id = args[:label_id] if args.key?(:label_id)
end