Class: Google::Apis::HealthcareV1::PubsubDestination
- Inherits:
-
Object
- Object
- Google::Apis::HealthcareV1::PubsubDestination
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/healthcare_v1/classes.rb,
lib/google/apis/healthcare_v1/representations.rb,
lib/google/apis/healthcare_v1/representations.rb
Overview
The Pub/Sub output destination. The Cloud Healthcare Service Agent requires
the roles/pubsub.publisher
Cloud IAM role on the Pub/Sub topic.
Instance Attribute Summary collapse
-
#pubsub_topic ⇒ String
The Pub/Sub topic that Pub/Sub messages are published on.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PubsubDestination
constructor
A new instance of PubsubDestination.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PubsubDestination
Returns a new instance of PubsubDestination.
4206 4207 4208 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 4206 def initialize(**args) update!(**args) end |
Instance Attribute Details
#pubsub_topic ⇒ String
The Pub/Sub topic that Pub/Sub
messages are published on. Supplied by the client. The PubsubMessage
contains the following fields: * PubsubMessage.Data
contains the resource
name. * PubsubMessage.MessageId
is the ID of this notification. It is
guaranteed to be unique within the topic. * PubsubMessage.PublishTime
is the
time when the message was published. Topic names must be scoped to a project. The Cloud Healthcare
API service account, service-PROJECT_NUMBER@gcp-sa-healthcare.iam.
gserviceaccount.com, must have publisher permissions on the given Pub/Sub
topic. Not having adequate permissions causes the calls that send
notifications to fail.
Corresponds to the JSON property pubsubTopic
4204 4205 4206 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 4204 def pubsub_topic @pubsub_topic end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4211 4212 4213 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 4211 def update!(**args) @pubsub_topic = args[:pubsub_topic] if args.key?(:pubsub_topic) end |