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.



1984
1985
1986
# File 'lib/google/apis/dlp_v2/classes.rb', line 1984

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



1959
1960
1961
# File 'lib/google/apis/dlp_v2/classes.rb', line 1959

def byte_item
  @byte_item
end

#content_metadataGoogle::Apis::DlpV2::GooglePrivacyDlpV2ContentMetadata

Metadata on content to be scanned. Corresponds to the JSON property contentMetadata



1964
1965
1966
# File 'lib/google/apis/dlp_v2/classes.rb', line 1964

def 
  @content_metadata
end

#conversationGoogle::Apis::DlpV2::GooglePrivacyDlpV2Conversation

Complete conversation or slice of a conversation. It is assumed that all included messages are contiguous and ordered in chronological order. Corresponds to the JSON property conversation



1970
1971
1972
# File 'lib/google/apis/dlp_v2/classes.rb', line 1970

def conversation
  @conversation
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



1977
1978
1979
# File 'lib/google/apis/dlp_v2/classes.rb', line 1977

def table
  @table
end

#valueString

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

Returns:

  • (String)


1982
1983
1984
# File 'lib/google/apis/dlp_v2/classes.rb', line 1982

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1989
1990
1991
1992
1993
1994
1995
# File 'lib/google/apis/dlp_v2/classes.rb', line 1989

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