Reference documentation and code samples for the Eventarc V1 API class Google::Cloud::Eventarc::V1::Pubsub.
Represents a Pub/Sub transport.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#subscription
defsubscription()->::String
Returns
(::String) — Output only. The name of the Pub/Sub subscription created and managed by
Eventarc as a transport for the event delivery. Format:
projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}.
#topic
deftopic()->::String
Returns
(::String) — Optional. The name of the Pub/Sub topic created and managed by Eventarc as
a transport for the event delivery. Format:
projects/{PROJECT_ID}/topics/{TOPIC_NAME}.
You can set an existing topic for triggers of the type
google.cloud.pubsub.topic.v1.messagePublished. The topic you provide
here is not deleted by Eventarc at trigger deletion.
#topic=
deftopic=(value)->::String
Parameter
value (::String) — Optional. The name of the Pub/Sub topic created and managed by Eventarc as
a transport for the event delivery. Format:
projects/{PROJECT_ID}/topics/{TOPIC_NAME}.
You can set an existing topic for triggers of the type
google.cloud.pubsub.topic.v1.messagePublished. The topic you provide
here is not deleted by Eventarc at trigger deletion.
Returns
(::String) — Optional. The name of the Pub/Sub topic created and managed by Eventarc as
a transport for the event delivery. Format:
projects/{PROJECT_ID}/topics/{TOPIC_NAME}.
You can set an existing topic for triggers of the type
google.cloud.pubsub.topic.v1.messagePublished. The topic you provide
here is not deleted by Eventarc at trigger deletion.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Eventarc V1 API - Class Google::Cloud::Eventarc::V1::Pubsub (v2.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.0 (latest)](/ruby/docs/reference/google-cloud-eventarc-v1/latest/Google-Cloud-Eventarc-V1-Pubsub)\n- [2.0.1](/ruby/docs/reference/google-cloud-eventarc-v1/2.0.1/Google-Cloud-Eventarc-V1-Pubsub)\n- [1.3.0](/ruby/docs/reference/google-cloud-eventarc-v1/1.3.0/Google-Cloud-Eventarc-V1-Pubsub)\n- [1.2.0](/ruby/docs/reference/google-cloud-eventarc-v1/1.2.0/Google-Cloud-Eventarc-V1-Pubsub)\n- [1.1.0](/ruby/docs/reference/google-cloud-eventarc-v1/1.1.0/Google-Cloud-Eventarc-V1-Pubsub)\n- [1.0.1](/ruby/docs/reference/google-cloud-eventarc-v1/1.0.1/Google-Cloud-Eventarc-V1-Pubsub)\n- [0.10.0](/ruby/docs/reference/google-cloud-eventarc-v1/0.10.0/Google-Cloud-Eventarc-V1-Pubsub)\n- [0.9.2](/ruby/docs/reference/google-cloud-eventarc-v1/0.9.2/Google-Cloud-Eventarc-V1-Pubsub)\n- [0.8.0](/ruby/docs/reference/google-cloud-eventarc-v1/0.8.0/Google-Cloud-Eventarc-V1-Pubsub)\n- [0.7.0](/ruby/docs/reference/google-cloud-eventarc-v1/0.7.0/Google-Cloud-Eventarc-V1-Pubsub)\n- [0.6.0](/ruby/docs/reference/google-cloud-eventarc-v1/0.6.0/Google-Cloud-Eventarc-V1-Pubsub)\n- [0.5.0](/ruby/docs/reference/google-cloud-eventarc-v1/0.5.0/Google-Cloud-Eventarc-V1-Pubsub)\n- [0.4.0](/ruby/docs/reference/google-cloud-eventarc-v1/0.4.0/Google-Cloud-Eventarc-V1-Pubsub)\n- [0.3.0](/ruby/docs/reference/google-cloud-eventarc-v1/0.3.0/Google-Cloud-Eventarc-V1-Pubsub)\n- [0.2.1](/ruby/docs/reference/google-cloud-eventarc-v1/0.2.1/Google-Cloud-Eventarc-V1-Pubsub)\n- [0.1.4](/ruby/docs/reference/google-cloud-eventarc-v1/0.1.4/Google-Cloud-Eventarc-V1-Pubsub) \nReference documentation and code samples for the Eventarc V1 API class Google::Cloud::Eventarc::V1::Pubsub.\n\nRepresents a Pub/Sub transport. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #subscription\n\n def subscription() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Output only. The name of the Pub/Sub subscription created and managed by Eventarc as a transport for the event delivery. Format: `projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}`.\n\n### #topic\n\n def topic() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. The name of the Pub/Sub topic created and managed by Eventarc as a transport for the event delivery. Format: `projects/{PROJECT_ID}/topics/{TOPIC_NAME}`.\n\n\n You can set an existing topic for triggers of the type\n `google.cloud.pubsub.topic.v1.messagePublished`. The topic you provide\n here is not deleted by Eventarc at trigger deletion.\n\n### #topic=\n\n def topic=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. The name of the Pub/Sub topic created and managed by Eventarc as a transport for the event delivery. Format: `projects/{PROJECT_ID}/topics/{TOPIC_NAME}`.\n\n\n You can set an existing topic for triggers of the type\n `google.cloud.pubsub.topic.v1.messagePublished`. The topic you provide\nhere is not deleted by Eventarc at trigger deletion. \n**Returns**\n\n- (::String) --- Optional. The name of the Pub/Sub topic created and managed by Eventarc as a transport for the event delivery. Format: `projects/{PROJECT_ID}/topics/{TOPIC_NAME}`.\n\n\n You can set an existing topic for triggers of the type\n `google.cloud.pubsub.topic.v1.messagePublished`. The topic you provide\n here is not deleted by Eventarc at trigger deletion."]]