Class: Google::Apis::ClouddeployV1::JobRunNotificationEvent

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/jobrun_notification" Platform Log event that describes the failure to send JobRun resource update Pub/Sub notification.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ JobRunNotificationEvent

Returns a new instance of JobRunNotificationEvent.



1510
1511
1512
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1510

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

Instance Attribute Details

#job_runString

The name of the JobRun. Corresponds to the JSON property jobRun

Returns:

  • (String)


1478
1479
1480
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1478

def job_run
  @job_run
end

#messageString

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

Returns:

  • (String)


1483
1484
1485
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1483

def message
  @message
end

#pipeline_uidString

Unique identifier of the DeliveryPipeline. Corresponds to the JSON property pipelineUid

Returns:

  • (String)


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

def pipeline_uid
  @pipeline_uid
end

#release_uidString

Unique identifier of the Release. Corresponds to the JSON property releaseUid

Returns:

  • (String)


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

def release_uid
  @release_uid
end

#rollout_uidString

Unique identifier of the Rollout. Corresponds to the JSON property rolloutUid

Returns:

  • (String)


1498
1499
1500
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1498

def rollout_uid
  @rollout_uid
end

#target_idString

ID of the Target. Corresponds to the JSON property targetId

Returns:

  • (String)


1503
1504
1505
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1503

def target_id
  @target_id
end

#typeString

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

Returns:

  • (String)


1508
1509
1510
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1508

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1515
1516
1517
1518
1519
1520
1521
1522
1523
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1515

def update!(**args)
  @job_run = args[:job_run] if args.key?(:job_run)
  @message = args[:message] if args.key?(:message)
  @pipeline_uid = args[:pipeline_uid] if args.key?(:pipeline_uid)
  @release_uid = args[:release_uid] if args.key?(:release_uid)
  @rollout_uid = args[:rollout_uid] if args.key?(:rollout_uid)
  @target_id = args[:target_id] if args.key?(:target_id)
  @type = args[:type] if args.key?(:type)
end