Class: Google::Apis::DlpV2::GooglePrivacyDlpV2LabelField
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2::GooglePrivacyDlpV2LabelField
- 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
-
#id ⇒ String
The identifier of the Label Field.
-
#value ⇒ String
The value of the Label Field to match.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2LabelField
constructor
A new instance of GooglePrivacyDlpV2LabelField.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#id ⇒ String
The identifier of the Label Field.
Corresponds to the JSON property id
7964 7965 7966 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 7964 def id @id end |
#value ⇒ String
The value of the Label Field to match.
Corresponds to the JSON property value
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 |