Class: Google::Apis::CloudbuildV1alpha2::SlackDelivery
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV1alpha2::SlackDelivery
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudbuild_v1alpha2/classes.rb,
lib/google/apis/cloudbuild_v1alpha2/representations.rb,
lib/google/apis/cloudbuild_v1alpha2/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
-
#webhook_uri ⇒ Google::Apis::CloudbuildV1alpha2::NotifierSecretRef
NotifierSecretRef contains the reference to a secret stored in the corresponding NotifierSpec.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SlackDelivery
constructor
A new instance of SlackDelivery.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SlackDelivery
Returns a new instance of SlackDelivery.
1411 1412 1413 |
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 1411 def initialize(**args) update!(**args) end |
Instance Attribute Details
#webhook_uri ⇒ Google::Apis::CloudbuildV1alpha2::NotifierSecretRef
NotifierSecretRef contains the reference to a secret stored in the
corresponding NotifierSpec.
Corresponds to the JSON property webhookUri
1409 1410 1411 |
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 1409 def webhook_uri @webhook_uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1416 1417 1418 |
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 1416 def update!(**args) @webhook_uri = args[:webhook_uri] if args.key?(:webhook_uri) end |