Class: Google::Apis::DlpV2::GooglePrivacyDlpV2ContentItem

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

Returns a new instance of GooglePrivacyDlpV2ContentItem.



992
993
994
# File 'generated/google/apis/dlp_v2/classes.rb', line 992

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

Instance Attribute Details

#byte_itemGoogle::Apis::DlpV2::GooglePrivacyDlpV2ByteContentItem

Container for bytes to inspect or redact. Corresponds to the JSON property byteItem



978
979
980
# File 'generated/google/apis/dlp_v2/classes.rb', line 978

def byte_item
  @byte_item
end

#tableGoogle::Apis::DlpV2::GooglePrivacyDlpV2Table

Structured content to inspect. Up to 50,000 Values per request allowed. See https://cloud.google.com/dlp/docs/inspecting-text#inspecting_a_table to learn more. Corresponds to the JSON property table



985
986
987
# File 'generated/google/apis/dlp_v2/classes.rb', line 985

def table
  @table
end

#valueString

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

Returns:

  • (String)


990
991
992
# File 'generated/google/apis/dlp_v2/classes.rb', line 990

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



997
998
999
1000
1001
# File 'generated/google/apis/dlp_v2/classes.rb', line 997

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