Class: Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate

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 inspectTemplate contains a configuration (set of types of sensitive data to be detected) to be used anywhere you otherwise would normally specify InspectConfig. See https://cloud.google.com/dlp/docs/concepts-templates to learn more.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2InspectTemplate

Returns a new instance of GooglePrivacyDlpV2InspectTemplate.



3631
3632
3633
# File 'lib/google/apis/dlp_v2/classes.rb', line 3631

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

Instance Attribute Details

#create_timeString

Output only. The creation timestamp of an inspectTemplate. Corresponds to the JSON property createTime

Returns:

  • (String)


3601
3602
3603
# File 'lib/google/apis/dlp_v2/classes.rb', line 3601

def create_time
  @create_time
end

#descriptionString

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

Returns:

  • (String)


3606
3607
3608
# File 'lib/google/apis/dlp_v2/classes.rb', line 3606

def description
  @description
end

#display_nameString

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

Returns:

  • (String)


3611
3612
3613
# File 'lib/google/apis/dlp_v2/classes.rb', line 3611

def display_name
  @display_name
end

#inspect_configGoogle::Apis::DlpV2::GooglePrivacyDlpV2InspectConfig

Configuration description of the scanning process. When used with redactContent only info_types and min_likelihood are currently used. Corresponds to the JSON property inspectConfig



3617
3618
3619
# File 'lib/google/apis/dlp_v2/classes.rb', line 3617

def inspect_config
  @inspect_config
end

#nameString

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

Returns:

  • (String)


3624
3625
3626
# File 'lib/google/apis/dlp_v2/classes.rb', line 3624

def name
  @name
end

#update_timeString

Output only. The last update timestamp of an inspectTemplate. Corresponds to the JSON property updateTime

Returns:

  • (String)


3629
3630
3631
# File 'lib/google/apis/dlp_v2/classes.rb', line 3629

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3636
3637
3638
3639
3640
3641
3642
3643
# File 'lib/google/apis/dlp_v2/classes.rb', line 3636

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