Class: Google::Apis::DlpV2::GooglePrivacyDlpV2DataProfilePubSubMessage
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2::GooglePrivacyDlpV2DataProfilePubSubMessage
- 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
The message that will be published to a Pub/Sub topic. To receive a message of protocol buffer schema type, convert the message data to an object of this proto class. https://cloud.google.com/pubsub/docs/samples/pubsub-subscribe- proto-messages
Instance Attribute Summary collapse
-
#event ⇒ String
The event that caused the Pub/Sub message to be sent.
-
#profile ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2TableDataProfile
The profile for a scanned table.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2DataProfilePubSubMessage
constructor
A new instance of GooglePrivacyDlpV2DataProfilePubSubMessage.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2DataProfilePubSubMessage
Returns a new instance of GooglePrivacyDlpV2DataProfilePubSubMessage.
1724 1725 1726 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 1724 def initialize(**args) update!(**args) end |
Instance Attribute Details
#event ⇒ String
The event that caused the Pub/Sub message to be sent.
Corresponds to the JSON property event
1717 1718 1719 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 1717 def event @event end |
#profile ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2TableDataProfile
The profile for a scanned table.
Corresponds to the JSON property profile
1722 1723 1724 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 1722 def profile @profile end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1729 1730 1731 1732 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 1729 def update!(**args) @event = args[:event] if args.key?(:event) @profile = args[:profile] if args.key?(:profile) end |