Class: Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate

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

Overview

The DeidentifyTemplates contains instructions on how to deidentify content. See https://cloud.google.com/dlp/docs/concepts-templates to learn more.

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) ⇒ GooglePrivacyDlpV2DeidentifyTemplate

Returns a new instance of GooglePrivacyDlpV2DeidentifyTemplate



1747
1748
1749
# File 'generated/google/apis/dlp_v2/classes.rb', line 1747

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

Instance Attribute Details

#create_timeString

The creation timestamp of a inspectTemplate, output only field. Corresponds to the JSON property createTime

Returns:

  • (String)


1717
1718
1719
# File 'generated/google/apis/dlp_v2/classes.rb', line 1717

def create_time
  @create_time
end

#deidentify_configGoogle::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyConfig

The configuration that controls how the data will change. Corresponds to the JSON property deidentifyConfig



1722
1723
1724
# File 'generated/google/apis/dlp_v2/classes.rb', line 1722

def deidentify_config
  @deidentify_config
end

#descriptionString

Short description (max 256 chars). Corresponds to the JSON property description

Returns:

  • (String)


1727
1728
1729
# File 'generated/google/apis/dlp_v2/classes.rb', line 1727

def description
  @description
end

#display_nameString

Display name (max 256 chars). Corresponds to the JSON property displayName

Returns:

  • (String)


1732
1733
1734
# File 'generated/google/apis/dlp_v2/classes.rb', line 1732

def display_name
  @display_name
end

#nameString

The template name. Output only. The template will have one of the following formats: projects/PROJECT_ID/deidentifyTemplates/TEMPLATE_ID OR organizations/ORGANIZATION_ID/deidentifyTemplates/TEMPLATE_ID Corresponds to the JSON property name

Returns:

  • (String)


1740
1741
1742
# File 'generated/google/apis/dlp_v2/classes.rb', line 1740

def name
  @name
end

#update_timeString

The last update timestamp of a inspectTemplate, output only field. Corresponds to the JSON property updateTime

Returns:

  • (String)


1745
1746
1747
# File 'generated/google/apis/dlp_v2/classes.rb', line 1745

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1752
1753
1754
1755
1756
1757
1758
1759
# File 'generated/google/apis/dlp_v2/classes.rb', line 1752

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @deidentify_config = args[:deidentify_config] if args.key?(:deidentify_config)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @name = args[:name] if args.key?(:name)
  @update_time = args[:update_time] if args.key?(:update_time)
end