Class: Google::Apis::HealthcareV1beta1::NotificationConfig
- Inherits:
-
Object
- Object
- Google::Apis::HealthcareV1beta1::NotificationConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/healthcare_v1beta1/classes.rb,
generated/google/apis/healthcare_v1beta1/representations.rb,
generated/google/apis/healthcare_v1beta1/representations.rb
Overview
Specifies where to send notifications upon changes to a data store.
Instance Attribute Summary collapse
-
#pubsub_topic ⇒ String
The Cloud Pub/Sub topic that notifications of changes are published on.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NotificationConfig
constructor
A new instance of NotificationConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ NotificationConfig
Returns a new instance of NotificationConfig.
2099 2100 2101 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 2099 def initialize(**args) update!(**args) end |
Instance Attribute Details
#pubsub_topic ⇒ String
The Cloud Pub/Sub topic that
notifications of changes are published on. Supplied by the client.
PubsubMessage.Data contains 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 causes the calls that send notifications to fail.
If a notification can't be published to Cloud Pub/Sub, errors are logged to
Stackdriver (see Viewing
logs). If the number of
errors exceeds a certain rate, some aren't submitted.
Corresponds to the JSON property pubsubTopic
2097 2098 2099 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 2097 def pubsub_topic @pubsub_topic end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2104 2105 2106 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 2104 def update!(**args) @pubsub_topic = args[:pubsub_topic] if args.key?(:pubsub_topic) end |