Class: Google::Apis::ComputeV1::TargetReference

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_v1/classes.rb,
generated/google/apis/compute_v1/representations.rb,
generated/google/apis/compute_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TargetReference

Returns a new instance of TargetReference.



31669
31670
31671
# File 'generated/google/apis/compute_v1/classes.rb', line 31669

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

Instance Attribute Details

#targetString

Corresponds to the JSON property target

Returns:

  • (String)


31667
31668
31669
# File 'generated/google/apis/compute_v1/classes.rb', line 31667

def target
  @target
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



31674
31675
31676
# File 'generated/google/apis/compute_v1/classes.rb', line 31674

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