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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dlp_v2/classes.rb,
lib/google/apis/dlp_v2/representations.rb,
lib/google/apis/dlp_v2/representations.rb

Overview

Type of content to inspect.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2ContentItem

Returns a new instance of GooglePrivacyDlpV2ContentItem.



1829
1830
1831
# File 'lib/google/apis/dlp_v2/classes.rb', line 1829

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



1815
1816
1817
# File 'lib/google/apis/dlp_v2/classes.rb', line 1815

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/sensitive-data-protection/docs/inspecting-structured- text#inspecting_a_table to learn more. Corresponds to the JSON property table



1822
1823
1824
# File 'lib/google/apis/dlp_v2/classes.rb', line 1822

def table
  @table
end

#valueString

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

Returns:

  • (String)


1827
1828
1829
# File 'lib/google/apis/dlp_v2/classes.rb', line 1827

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1834
1835
1836
1837
1838
# File 'lib/google/apis/dlp_v2/classes.rb', line 1834

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