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



673
674
675
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 673

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)


654
655
656
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 654

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



659
660
661
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 659

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)


666
667
668
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 666

def type
  @type
end

#valueString

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

Returns:

  • (String)


671
672
673
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 671

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



678
679
680
681
682
683
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 678

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