Class: Google::Apis::ClouddeployV1::TargetNotificationEvent

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TargetNotificationEvent

Returns a new instance of TargetNotificationEvent.



5159
5160
5161
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5159

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

Instance Attribute Details

#messageString

Debug message for when a notification fails to send. Corresponds to the JSON property message

Returns:

  • (String)


5147
5148
5149
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5147

def message
  @message
end

#targetString

The name of the Target. Corresponds to the JSON property target

Returns:

  • (String)


5152
5153
5154
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5152

def target
  @target
end

#typeString

Type of this notification, e.g. for a Pub/Sub failure. Corresponds to the JSON property type

Returns:

  • (String)


5157
5158
5159
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5157

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5164
5165
5166
5167
5168
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5164

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