Class: Google::Apis::CloudbuildV1::WebhookConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WebhookConfig

Returns a new instance of WebhookConfig.



2082
2083
2084
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2082

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#secretString

Required. Resource name for the secret required as a URL parameter. Corresponds to the JSON property secret

Returns:

  • (String)


2074
2075
2076
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2074

def secret
  @secret
end

#stateString

Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests. Corresponds to the JSON property state

Returns:

  • (String)


2080
2081
2082
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2080

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2087
2088
2089
2090
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2087

def update!(**args)
  @secret = args[:secret] if args.key?(:secret)
  @state = args[:state] if args.key?(:state)
end