Class: Google::Apis::CloudbuildV1::SlackDelivery

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudbuild_v1/classes.rb,
generated/google/apis/cloudbuild_v1/representations.rb,
generated/google/apis/cloudbuild_v1/representations.rb

Overview

SlackDelivery is the delivery configuration for delivering Slack messages via webhooks. See Slack webhook documentation at: https://api.slack.com/messaging/ webhooks.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SlackDelivery

Returns a new instance of SlackDelivery.


1475
1476
1477
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 1475

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

Instance Attribute Details

#webhook_uriGoogle::Apis::CloudbuildV1::NotifierSecretRef

NotifierSecretRef contains the reference to a secret stored in the corresponding NotifierSpec. Corresponds to the JSON property webhookUri


1473
1474
1475
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 1473

def webhook_uri
  @webhook_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1480
1481
1482
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 1480

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