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.



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

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

Instance Attribute Details

#idString

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

Returns:

  • (String)


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

def id
  @id
end

#valueString

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

Returns:

  • (String)


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

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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