Class: Google::Apis::CloudbuildV1::PubsubConfig
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV1::PubsubConfig
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudbuild_v1/classes.rb,
lib/google/apis/cloudbuild_v1/representations.rb,
lib/google/apis/cloudbuild_v1/representations.rb
Overview
PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.
Instance Attribute Summary collapse
-
#service_account_email ⇒ String
Service account that will make the push request.
-
#state ⇒ String
Potential issues with the underlying Pub/Sub subscription configuration.
-
#subscription ⇒ String
Output only.
-
#topic ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PubsubConfig
constructor
A new instance of PubsubConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PubsubConfig
Returns a new instance of PubsubConfig.
3380 3381 3382 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3380 def initialize(**args) update!(**args) end |
Instance Attribute Details
#service_account_email ⇒ String
Service account that will make the push request.
Corresponds to the JSON property serviceAccountEmail
3360 3361 3362 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3360 def service_account_email @service_account_email end |
#state ⇒ String
Potential issues with the underlying Pub/Sub subscription configuration. Only
populated on get requests.
Corresponds to the JSON property state
3366 3367 3368 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3366 def state @state end |
#subscription ⇒ String
Output only. Name of the subscription. Format is projects/
project/
subscriptions/
subscription`.
Corresponds to the JSON property
subscription`
3372 3373 3374 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3372 def subscription @subscription end |
#topic ⇒ String
Optional. The name of the topic from which this subscription is receiving
messages. Format is projects/
project/topics/
topic`.
Corresponds to the JSON property
topic`
3378 3379 3380 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3378 def topic @topic end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3385 3386 3387 3388 3389 3390 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3385 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 |