Class: Google::Apis::ClouddeployV1::TargetNotificationEvent
- Inherits:
-
Object
- Object
- Google::Apis::ClouddeployV1::TargetNotificationEvent
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/clouddeploy_v1/classes.rb,
lib/google/apis/clouddeploy_v1/representations.rb,
lib/google/apis/clouddeploy_v1/representations.rb
Overview
Payload proto for "clouddeploy.googleapis.com/target_notification" Platform Log event that describes the failure to send target status change Pub/Sub notification.
Instance Attribute Summary collapse
-
#message ⇒ String
Debug message for when a notification fails to send.
-
#target ⇒ String
The name of the
Target
. -
#type ⇒ String
Type of this notification, e.g.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TargetNotificationEvent
constructor
A new instance of TargetNotificationEvent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TargetNotificationEvent
Returns a new instance of TargetNotificationEvent.
5248 5249 5250 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5248 def initialize(**args) update!(**args) end |
Instance Attribute Details
#message ⇒ String
Debug message for when a notification fails to send.
Corresponds to the JSON property message
5236 5237 5238 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5236 def @message end |
#target ⇒ String
The name of the Target
.
Corresponds to the JSON property target
5241 5242 5243 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5241 def target @target end |
#type ⇒ String
Type of this notification, e.g. for a Pub/Sub failure.
Corresponds to the JSON property type
5246 5247 5248 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5246 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5253 5254 5255 5256 5257 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5253 def update!(**args) @message = args[:message] if args.key?(:message) @target = args[:target] if args.key?(:target) @type = args[:type] if args.key?(:type) end |