Class: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dlp_v2beta2/classes.rb,
generated/google/apis/dlp_v2beta2/representations.rb,
generated/google/apis/dlp_v2beta2/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.

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

Returns a new instance of GooglePrivacyDlpV2beta2InspectTemplate



3513
3514
3515
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3513

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)


3481
3482
3483
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3481

def create_time
  @create_time
end

#descriptionString

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

Returns:

  • (String)


3486
3487
3488
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3486

def description
  @description
end

#display_nameString

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

Returns:

  • (String)


3491
3492
3493
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3491

def display_name
  @display_name
end

#inspect_configGoogle::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectConfig

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



3498
3499
3500
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3498

def inspect_config
  @inspect_config
end

#nameString

The template name. Output only. 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)


3506
3507
3508
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3506

def name
  @name
end

#update_timeString

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

Returns:

  • (String)


3511
3512
3513
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3511

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3518
3519
3520
3521
3522
3523
3524
3525
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3518

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