Class: Google::Apis::CloudbuildV1::WebhookConfig
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV1::WebhookConfig
- 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
WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger's webhook URL.
Instance Attribute Summary collapse
-
#secret ⇒ String
Required.
-
#state ⇒ String
Potential issues with the underlying Pub/Sub subscription configuration.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WebhookConfig
constructor
A new instance of WebhookConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ WebhookConfig
Returns a new instance of WebhookConfig.
4369 4370 4371 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 4369 def initialize(**args) update!(**args) end |
Instance Attribute Details
#secret ⇒ String
Required. Resource name for the secret required as a URL parameter.
Corresponds to the JSON property secret
4361 4362 4363 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 4361 def secret @secret end |
#state ⇒ String
Potential issues with the underlying Pub/Sub subscription configuration. Only
populated on get requests.
Corresponds to the JSON property state
4367 4368 4369 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 4367 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4374 4375 4376 4377 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 4374 def update!(**args) @secret = args[:secret] if args.key?(:secret) @state = args[:state] if args.key?(:state) end |