Class: Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest

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

Request message for CreateInspectTemplate.

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

Returns a new instance of GooglePrivacyDlpV2CreateInspectTemplateRequest.



1254
1255
1256
# File 'generated/google/apis/dlp_v2/classes.rb', line 1254

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

Instance Attribute Details

#inspect_templateGoogle::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate

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. Corresponds to the JSON property inspectTemplate



1238
1239
1240
# File 'generated/google/apis/dlp_v2/classes.rb', line 1238

def inspect_template
  @inspect_template
end

#location_idString

The geographic location to store the inspection template. Reserved for future extensions. Corresponds to the JSON property locationId

Returns:

  • (String)


1244
1245
1246
# File 'generated/google/apis/dlp_v2/classes.rb', line 1244

def location_id
  @location_id
end

#template_idString

The template id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one. Corresponds to the JSON property templateId

Returns:

  • (String)


1252
1253
1254
# File 'generated/google/apis/dlp_v2/classes.rb', line 1252

def template_id
  @template_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1259
1260
1261
1262
1263
# File 'generated/google/apis/dlp_v2/classes.rb', line 1259

def update!(**args)
  @inspect_template = args[:inspect_template] if args.key?(:inspect_template)
  @location_id = args[:location_id] if args.key?(:location_id)
  @template_id = args[:template_id] if args.key?(:template_id)
end