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.



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

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)


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

def event
  @event
end

#profileGoogle::Apis::DlpV2::GooglePrivacyDlpV2TableDataProfile

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



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

def profile
  @profile
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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