Class: Google::Apis::CloudbuildV1alpha1::Notification
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV1alpha1::Notification
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudbuild_v1alpha1/classes.rb,
lib/google/apis/cloudbuild_v1alpha1/representations.rb,
lib/google/apis/cloudbuild_v1alpha1/representations.rb
Overview
Notification is the container which holds the data that is relevant to this particular notification.
Instance Attribute Summary collapse
-
#filter ⇒ String
The filter string to use for notification filtering.
-
#http_delivery ⇒ Google::Apis::CloudbuildV1alpha1::HttpDelivery
HTTPDelivery is the delivery configuration for an HTTP notification.
-
#slack_delivery ⇒ Google::Apis::CloudbuildV1alpha1::SlackDelivery
SlackDelivery is the delivery configuration for delivering Slack messages via webhooks.
-
#smtp_delivery ⇒ Google::Apis::CloudbuildV1alpha1::SmtpDelivery
SMTPDelivery is the delivery configuration for an SMTP (email) notification.
-
#struct_delivery ⇒ Hash<String,Object>
Escape hatch for users to supply custom delivery configs.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Notification
constructor
A new instance of Notification.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Notification
Returns a new instance of Notification.
1371 1372 1373 |
# File 'lib/google/apis/cloudbuild_v1alpha1/classes.rb', line 1371 def initialize(**args) update!(**args) end |
Instance Attribute Details
#filter ⇒ String
The filter string to use for notification filtering. Currently, this is
assumed to be a CEL program. See https://opensource.google/projects/cel for
more.
Corresponds to the JSON property filter
1347 1348 1349 |
# File 'lib/google/apis/cloudbuild_v1alpha1/classes.rb', line 1347 def filter @filter end |
#http_delivery ⇒ Google::Apis::CloudbuildV1alpha1::HttpDelivery
HTTPDelivery is the delivery configuration for an HTTP notification.
Corresponds to the JSON property httpDelivery
1352 1353 1354 |
# File 'lib/google/apis/cloudbuild_v1alpha1/classes.rb', line 1352 def http_delivery @http_delivery end |
#slack_delivery ⇒ Google::Apis::CloudbuildV1alpha1::SlackDelivery
SlackDelivery is the delivery configuration for delivering Slack messages via
webhooks. See Slack webhook documentation at: https://api.slack.com/messaging/
webhooks.
Corresponds to the JSON property slackDelivery
1359 1360 1361 |
# File 'lib/google/apis/cloudbuild_v1alpha1/classes.rb', line 1359 def slack_delivery @slack_delivery end |
#smtp_delivery ⇒ Google::Apis::CloudbuildV1alpha1::SmtpDelivery
SMTPDelivery is the delivery configuration for an SMTP (email) notification.
Corresponds to the JSON property smtpDelivery
1364 1365 1366 |
# File 'lib/google/apis/cloudbuild_v1alpha1/classes.rb', line 1364 def smtp_delivery @smtp_delivery end |
#struct_delivery ⇒ Hash<String,Object>
Escape hatch for users to supply custom delivery configs.
Corresponds to the JSON property structDelivery
1369 1370 1371 |
# File 'lib/google/apis/cloudbuild_v1alpha1/classes.rb', line 1369 def struct_delivery @struct_delivery end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1376 1377 1378 1379 1380 1381 1382 |
# File 'lib/google/apis/cloudbuild_v1alpha1/classes.rb', line 1376 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 |