Class: Google::Apis::WorkspaceeventsV1::NotificationEndpoint
- Inherits:
-
Object
- Object
- Google::Apis::WorkspaceeventsV1::NotificationEndpoint
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/workspaceevents_v1/classes.rb,
lib/google/apis/workspaceevents_v1/representations.rb,
lib/google/apis/workspaceevents_v1/representations.rb
Overview
The endpoint where the subscription delivers events.
Instance Attribute Summary collapse
-
#pubsub_topic ⇒ String
Immutable.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NotificationEndpoint
constructor
A new instance of NotificationEndpoint.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NotificationEndpoint
Returns a new instance of NotificationEndpoint.
65 66 67 |
# File 'lib/google/apis/workspaceevents_v1/classes.rb', line 65 def initialize(**args) update!(**args) end |
Instance Attribute Details
#pubsub_topic ⇒ String
Immutable. The Cloud Pub/Sub topic that receives events for the subscription.
Format: projects/
project/topics/
topic`You must create the topic in the
same Google Cloud project where you create this subscription. When the topic
receives events, the events are encoded as Cloud Pub/Sub messages. For details,
see the [Google Cloud Pub/Sub Protocol Binding for CloudEvents](https://
github.com/googleapis/google-cloudevents/blob/main/docs/spec/pubsub.md).
Corresponds to the JSON property
pubsubTopic`
63 64 65 |
# File 'lib/google/apis/workspaceevents_v1/classes.rb', line 63 def pubsub_topic @pubsub_topic end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
70 71 72 |
# File 'lib/google/apis/workspaceevents_v1/classes.rb', line 70 def update!(**args) @pubsub_topic = args[:pubsub_topic] if args.key?(:pubsub_topic) end |