Class: Google::Apis::DlpV2::GooglePrivacyDlpV2PubSubNotification
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2::GooglePrivacyDlpV2PubSubNotification
- 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
Send a Pub/Sub message into the given Pub/Sub topic to connect other systems
to data profile generation. The message payload data will be the byte
serialization of DataProfilePubSubMessage
.
Instance Attribute Summary collapse
-
#detail_of_message ⇒ String
How much data to include in the Pub/Sub message.
-
#event ⇒ String
The type of event that triggers a Pub/Sub.
-
#pubsub_condition ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DataProfilePubSubCondition
A condition for determining whether a Pub/Sub should be triggered.
-
#topic ⇒ String
Cloud Pub/Sub topic to send notifications to.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2PubSubNotification
constructor
A new instance of GooglePrivacyDlpV2PubSubNotification.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2PubSubNotification
Returns a new instance of GooglePrivacyDlpV2PubSubNotification.
8046 8047 8048 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 8046 def initialize(**args) update!(**args) end |
Instance Attribute Details
#detail_of_message ⇒ String
How much data to include in the Pub/Sub message. If the user wishes to limit
the size of the message, they can use resource_name and fetch the profile
fields they wish to. Per table profile (not per column).
Corresponds to the JSON property detailOfMessage
8027 8028 8029 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 8027 def @detail_of_message end |
#event ⇒ String
The type of event that triggers a Pub/Sub. At most one PubSubNotification
per EventType is permitted.
Corresponds to the JSON property event
8033 8034 8035 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 8033 def event @event end |
#pubsub_condition ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DataProfilePubSubCondition
A condition for determining whether a Pub/Sub should be triggered.
Corresponds to the JSON property pubsubCondition
8038 8039 8040 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 8038 def pubsub_condition @pubsub_condition end |
#topic ⇒ String
Cloud Pub/Sub topic to send notifications to. Format is projects/project
/
topics/topic
.
Corresponds to the JSON property topic
8044 8045 8046 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 8044 def topic @topic end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8051 8052 8053 8054 8055 8056 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 8051 def update!(**args) @detail_of_message = args[:detail_of_message] if args.key?(:detail_of_message) @event = args[:event] if args.key?(:event) @pubsub_condition = args[:pubsub_condition] if args.key?(:pubsub_condition) @topic = args[:topic] if args.key?(:topic) end |