Class: Google::Apis::DlpV2::GooglePrivacyDlpV2ByteContentItem

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

Container for bytes to inspect or redact.

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

Returns a new instance of GooglePrivacyDlpV2ByteContentItem.



513
514
515
# File 'generated/google/apis/dlp_v2/classes.rb', line 513

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)


506
507
508
# File 'generated/google/apis/dlp_v2/classes.rb', line 506

def data
  @data
end

#typeString

The type of data stored in the bytes string. Default will be TEXT_UTF8. Corresponds to the JSON property type

Returns:

  • (String)


511
512
513
# File 'generated/google/apis/dlp_v2/classes.rb', line 511

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



518
519
520
521
# File 'generated/google/apis/dlp_v2/classes.rb', line 518

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