Class: Google::Apis::DlpV2::GooglePrivacyDlpV2LabelField

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

The field values of the Google Drive label to match.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2LabelField

Returns a new instance of GooglePrivacyDlpV2LabelField.



7971
7972
7973
# File 'lib/google/apis/dlp_v2/classes.rb', line 7971

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

Instance Attribute Details

#idString

The identifier of the Label Field. Corresponds to the JSON property id

Returns:

  • (String)


7964
7965
7966
# File 'lib/google/apis/dlp_v2/classes.rb', line 7964

def id
  @id
end

#valueString

The value of the Label Field to match. Corresponds to the JSON property value

Returns:

  • (String)


7969
7970
7971
# File 'lib/google/apis/dlp_v2/classes.rb', line 7969

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7976
7977
7978
7979
# File 'lib/google/apis/dlp_v2/classes.rb', line 7976

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