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.



1487
1488
1489
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1487

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)


1470
1471
1472
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1470

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)


1475
1476
1477
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1475

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)


1480
1481
1482
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1480

def message
  @message
end

#typeString

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

Returns:

  • (String)


1485
1486
1487
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1485

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1492
1493
1494
1495
1496
1497
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1492

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