Class: Google::Apis::DlpV2::GooglePrivacyDlpV2DataProfilePubSubMessage

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

Pub/Sub topic message for a DataProfileAction.PubSubNotification event. To receive a message of protocol buffer schema type, convert the message data to an object of this proto class.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2DataProfilePubSubMessage

Returns a new instance of GooglePrivacyDlpV2DataProfilePubSubMessage.



2673
2674
2675
# File 'lib/google/apis/dlp_v2/classes.rb', line 2673

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

Instance Attribute Details

#eventString

The event that caused the Pub/Sub message to be sent. Corresponds to the JSON property event

Returns:

  • (String)


2660
2661
2662
# File 'lib/google/apis/dlp_v2/classes.rb', line 2660

def event
  @event
end

#file_store_profileGoogle::Apis::DlpV2::GooglePrivacyDlpV2FileStoreDataProfile

The profile for a file store. * Cloud Storage: maps 1:1 with a bucket. * Amazon S3: maps 1:1 with a bucket. Corresponds to the JSON property fileStoreProfile



2666
2667
2668
# File 'lib/google/apis/dlp_v2/classes.rb', line 2666

def file_store_profile
  @file_store_profile
end

#profileGoogle::Apis::DlpV2::GooglePrivacyDlpV2TableDataProfile

The profile for a scanned table. Corresponds to the JSON property profile



2671
2672
2673
# File 'lib/google/apis/dlp_v2/classes.rb', line 2671

def profile
  @profile
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2678
2679
2680
2681
2682
# File 'lib/google/apis/dlp_v2/classes.rb', line 2678

def update!(**args)
  @event = args[:event] if args.key?(:event)
  @file_store_profile = args[:file_store_profile] if args.key?(:file_store_profile)
  @profile = args[:profile] if args.key?(:profile)
end