Class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoTypeDescription

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dlp_v2beta1/classes.rb,
generated/google/apis/dlp_v2beta1/representations.rb,
generated/google/apis/dlp_v2beta1/representations.rb

Overview

Description of the information type (infoType).

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2beta1InfoTypeDescription

Returns a new instance of GooglePrivacyDlpV2beta1InfoTypeDescription



1551
1552
1553
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1551

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

Instance Attribute Details

#categoriesArray<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1CategoryDescription>

List of categories this infoType belongs to. Corresponds to the JSON property categories



1539
1540
1541
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1539

def categories
  @categories
end

#display_nameString

Human readable form of the infoType name. Corresponds to the JSON property displayName

Returns:

  • (String)


1544
1545
1546
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1544

def display_name
  @display_name
end

#nameString

Internal name of the infoType. Corresponds to the JSON property name

Returns:

  • (String)


1549
1550
1551
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1549

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1556
1557
1558
1559
1560
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1556

def update!(**args)
  @categories = args[:categories] if args.key?(:categories)
  @display_name = args[:display_name] if args.key?(:display_name)
  @name = args[:name] if args.key?(:name)
end