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.



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

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



6161
6162
6163
# File 'lib/google/apis/dlp_v2/classes.rb', line 6161

def label_fields
  @label_fields
end

#label_idString

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

Returns:

  • (String)


6167
6168
6169
# File 'lib/google/apis/dlp_v2/classes.rb', line 6167

def label_id
  @label_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6174
6175
6176
6177
# File 'lib/google/apis/dlp_v2/classes.rb', line 6174

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