Class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1ContentItem

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dlp_v2beta1/classes.rb,
generated/google/apis/dlp_v2beta1/representations.rb,
generated/google/apis/dlp_v2beta1/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) ⇒ GooglePrivacyDlpV2beta1ContentItem

Returns a new instance of GooglePrivacyDlpV2beta1ContentItem



765
766
767
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 765

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)


746
747
748
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 746

def data
  @data
end

#tableGoogle::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Table

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



751
752
753
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 751

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)


758
759
760
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 758

def type
  @type
end

#valueString

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

Returns:

  • (String)


763
764
765
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 763

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



770
771
772
773
774
775
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 770

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