Class: Google::Apis::SourcerepoV1::PubsubConfig
- Inherits:
-
Object
- Object
- Google::Apis::SourcerepoV1::PubsubConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/sourcerepo_v1/classes.rb,
generated/google/apis/sourcerepo_v1/representations.rb,
generated/google/apis/sourcerepo_v1/representations.rb
Overview
Configuration to publish a Cloud Pub/Sub message.
Instance Attribute Summary collapse
-
#message_format ⇒ String
The format of the Cloud Pub/Sub messages.
-
#service_account_email ⇒ String
Email address of the service account used for publishing Cloud Pub/Sub messages.
-
#topic ⇒ String
A topic of Cloud Pub/Sub.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PubsubConfig
constructor
A new instance of PubsubConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PubsubConfig
Returns a new instance of PubsubConfig.
612 613 614 |
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 612 def initialize(**args) update!(**args) end |
Instance Attribute Details
#message_format ⇒ String
The format of the Cloud Pub/Sub messages.
Corresponds to the JSON property messageFormat
594 595 596 |
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 594 def @message_format end |
#service_account_email ⇒ String
Email address of the service account used for publishing Cloud Pub/Sub
messages. This service account needs to be in the same project as the
PubsubConfig. When added, the caller needs to have
iam.serviceAccounts.actAs permission on this service account. If
unspecified, it defaults to the compute engine default service account.
Corresponds to the JSON property serviceAccountEmail
603 604 605 |
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 603 def service_account_email @service_account_email end |
#topic ⇒ String
A topic of Cloud Pub/Sub. Values are of the form
projects/<project>/topics/<topic>
. The project needs to be the same
project as this config is in.
Corresponds to the JSON property topic
610 611 612 |
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 610 def topic @topic end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
617 618 619 620 621 |
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 617 def update!(**args) @message_format = args[:message_format] if args.key?(:message_format) @service_account_email = args[:service_account_email] if args.key?(:service_account_email) @topic = args[:topic] if args.key?(:topic) end |