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.



7967
7968
7969
# File 'lib/google/apis/dlp_v2/classes.rb', line 7967

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

Instance Attribute Details

#idString

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

Returns:

  • (String)


7960
7961
7962
# File 'lib/google/apis/dlp_v2/classes.rb', line 7960

def id
  @id
end

#valueString

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

Returns:

  • (String)


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

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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