Class: Google::Apis::ClouddeployV1::RolloutUpdateEvent

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/rollout_update" Platform Log event that describes the rollout update event.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RolloutUpdateEvent

Returns a new instance of RolloutUpdateEvent.



4522
4523
4524
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4522

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

Instance Attribute Details

#messageString

Debug message for when a rollout update event occurs. Corresponds to the JSON property message

Returns:

  • (String)


4483
4484
4485
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4483

def message
  @message
end

#pipeline_uidString

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

Returns:

  • (String)


4488
4489
4490
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4488

def pipeline_uid
  @pipeline_uid
end

#releaseString

The name of the Release. Corresponds to the JSON property release

Returns:

  • (String)


4493
4494
4495
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4493

def release
  @release
end

#release_uidString

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

Returns:

  • (String)


4498
4499
4500
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4498

def release_uid
  @release_uid
end

#rolloutString

The name of the rollout. rollout_uid is not in this log message because we write some of these log messages at rollout creation time, before we've generated the uid. Corresponds to the JSON property rollout

Returns:

  • (String)


4505
4506
4507
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4505

def rollout
  @rollout
end

#rollout_update_typeString

The type of the rollout update. Corresponds to the JSON property rolloutUpdateType

Returns:

  • (String)


4510
4511
4512
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4510

def rollout_update_type
  @rollout_update_type
end

#target_idString

ID of the target. Corresponds to the JSON property targetId

Returns:

  • (String)


4515
4516
4517
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4515

def target_id
  @target_id
end

#typeString

Type of this notification, e.g. for a rollout update event. Corresponds to the JSON property type

Returns:

  • (String)


4520
4521
4522
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4520

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4527

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