class Google::Apis::CloudbuildV1beta1::Notification

Notification is the container which holds the data that is relevant to this particular notification.

Attributes

filter[RW]

The filter string to use for notification filtering. Currently, this is assumed to be a CEL program. See opensource.google/projects/cel for more. Corresponds to the JSON property `filter` @return [String]

http_delivery[RW]

HTTPDelivery is the delivery configuration for an HTTP notification. Corresponds to the JSON property `httpDelivery` @return [Google::Apis::CloudbuildV1beta1::HttpDelivery]

slack_delivery[RW]

SlackDelivery is the delivery configuration for delivering Slack messages via webhooks. See Slack webhook documentation at: api.slack.com/messaging/ webhooks. Corresponds to the JSON property `slackDelivery` @return [Google::Apis::CloudbuildV1beta1::SlackDelivery]

smtp_delivery[RW]

SMTPDelivery is the delivery configuration for an SMTP (email) notification. Corresponds to the JSON property `smtpDelivery` @return [Google::Apis::CloudbuildV1beta1::SmtpDelivery]

struct_delivery[RW]

Escape hatch for users to supply custom delivery configs. Corresponds to the JSON property `structDelivery` @return [Hash<String,Object>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudbuild_v1beta1/classes.rb, line 1172
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudbuild_v1beta1/classes.rb, line 1177
def update!(**args)
  @filter = args[:filter] if args.key?(:filter)
  @http_delivery = args[:http_delivery] if args.key?(:http_delivery)
  @slack_delivery = args[:slack_delivery] if args.key?(:slack_delivery)
  @smtp_delivery = args[:smtp_delivery] if args.key?(:smtp_delivery)
  @struct_delivery = args[:struct_delivery] if args.key?(:struct_delivery)
end