Class: Google::Apis::ClouddeployV1::Targets

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

The targets involved in a single timed promotion.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Targets

Returns a new instance of Targets.



6053
6054
6055
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 6053

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

Instance Attribute Details

#destination_target_idString

Optional. The destination target ID. Corresponds to the JSON property destinationTargetId

Returns:

  • (String)


6046
6047
6048
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 6046

def destination_target_id
  @destination_target_id
end

#source_target_idString

Optional. The source target ID. Corresponds to the JSON property sourceTargetId

Returns:

  • (String)


6051
6052
6053
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 6051

def source_target_id
  @source_target_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6058
6059
6060
6061
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 6058

def update!(**args)
  @destination_target_id = args[:destination_target_id] if args.key?(:destination_target_id)
  @source_target_id = args[:source_target_id] if args.key?(:source_target_id)
end