class Google::Apis::CloudbuildV1::PubsubConfig

PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.

Attributes

service_account_email[RW]

Service account that will make the push request. Corresponds to the JSON property `serviceAccountEmail` @return [String]

state[RW]

Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests. Corresponds to the JSON property `state` @return [String]

subscription[RW]

Output only. Name of the subscription. Format is `projects/`project`/ subscriptions/`subscription“. Corresponds to the JSON property `subscription` @return [String]

topic[RW]

The name of the topic from which this subscription is receiving messages. Format is `projects/`project`/topics/`topic“. Corresponds to the JSON property `topic` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudbuild_v1/classes.rb, line 2194
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudbuild_v1/classes.rb, line 2199
def update!(**args)
  @service_account_email = args[:service_account_email] if args.key?(:service_account_email)
  @state = args[:state] if args.key?(:state)
  @subscription = args[:subscription] if args.key?(:subscription)
  @topic = args[:topic] if args.key?(:topic)
end