Class: Google::Apis::ClouddeployV1::CustomTargetTypeNotificationEvent

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/customtargettype_notification" Platform Log event that describes the failure to send a custom target type status change Pub/Sub notification.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CustomTargetTypeNotificationEvent

Returns a new instance of CustomTargetTypeNotificationEvent.



1560
1561
1562
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1560

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

Instance Attribute Details

#custom_target_typeString

The name of the CustomTargetType. Corresponds to the JSON property customTargetType

Returns:

  • (String)


1543
1544
1545
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1543

def custom_target_type
  @custom_target_type
end

#custom_target_type_uidString

Unique identifier of the CustomTargetType. Corresponds to the JSON property customTargetTypeUid

Returns:

  • (String)


1548
1549
1550
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1548

def custom_target_type_uid
  @custom_target_type_uid
end

#messageString

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

Returns:

  • (String)


1553
1554
1555
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1553

def message
  @message
end

#typeString

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

Returns:

  • (String)


1558
1559
1560
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1558

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1565
1566
1567
1568
1569
1570
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1565

def update!(**args)
  @custom_target_type = args[:custom_target_type] if args.key?(:custom_target_type)
  @custom_target_type_uid = args[:custom_target_type_uid] if args.key?(:custom_target_type_uid)
  @message = args[:message] if args.key?(:message)
  @type = args[:type] if args.key?(:type)
end