Class: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ContentItem

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

Container structure for the content to inspect.

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

Returns a new instance of GooglePrivacyDlpV2beta2ContentItem



2264
2265
2266
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 2264

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

Instance Attribute Details

#dataString

Content data to inspect or redact. Corresponds to the JSON property data NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


2245
2246
2247
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 2245

def data
  @data
end

#tableGoogle::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2Table

Structured content to inspect. Up to 50,000 Values per request allowed. Corresponds to the JSON property table



2250
2251
2252
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 2250

def table
  @table
end

#typeString

Type of the content, as defined in Content-Type HTTP header. Supported types are: all "text" types, octet streams, PNG images, JPEG images. Corresponds to the JSON property type

Returns:

  • (String)


2257
2258
2259
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 2257

def type
  @type
end

#valueString

String data to inspect or redact. Corresponds to the JSON property value

Returns:

  • (String)


2262
2263
2264
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 2262

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2269
2270
2271
2272
2273
2274
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 2269

def update!(**args)
  @data = args[:data] if args.key?(:data)
  @table = args[:table] if args.key?(:table)
  @type = args[:type] if args.key?(:type)
  @value = args[:value] if args.key?(:value)
end