Class: Google::Apis::HealthcareV1alpha2::NotificationConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/healthcare_v1alpha2/classes.rb,
generated/google/apis/healthcare_v1alpha2/representations.rb,
generated/google/apis/healthcare_v1alpha2/representations.rb

Overview

Specifies where notifications should be sent upon changes to a data store.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ NotificationConfig

Returns a new instance of NotificationConfig



2127
2128
2129
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 2127

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#pubsub_topicString

The Cloud Pub/Sub topic that notifications of changes are published on. Supplied by the client. PubsubMessage.Data will contain the resource name. PubsubMessage.MessageId is the ID of this message. It is guaranteed to be unique within the topic. PubsubMessage.PublishTime is the time at which the message was published. Notifications are only sent if the topic is non-empty. Topic names must be scoped to a project. cloud-healthcare@system.gserviceaccount.com must have publisher permissions on the given Cloud Pub/Sub topic. Not having adequate permissions will cause the calls that send notifications to fail. Corresponds to the JSON property pubsubTopic

Returns:

  • (String)


2125
2126
2127
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 2125

def pubsub_topic
  @pubsub_topic
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2132
2133
2134
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 2132

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