Class: Google::Apis::WorkspaceeventsV1::NotificationEndpoint

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_topicString

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 propertypubsubTopic`

Returns:

  • (String)


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