Class: Google::Apis::ClouddeployV1::Targets
- Inherits:
-
Object
- Object
- Google::Apis::ClouddeployV1::Targets
- 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
-
#destination_target_id ⇒ String
Optional.
-
#source_target_id ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Targets
constructor
A new instance of Targets.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Targets
Returns a new instance of Targets.
6068 6069 6070 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 6068 def initialize(**args) update!(**args) end |
Instance Attribute Details
#destination_target_id ⇒ String
Optional. The destination target ID.
Corresponds to the JSON property destinationTargetId
6061 6062 6063 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 6061 def destination_target_id @destination_target_id end |
#source_target_id ⇒ String
Optional. The source target ID.
Corresponds to the JSON property sourceTargetId
6066 6067 6068 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 6066 def source_target_id @source_target_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6073 6074 6075 6076 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 6073 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 |