Class: Google::Apis::ComputeAlpha::InstanceMoveRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstanceMoveRequest

Returns a new instance of InstanceMoveRequest.



18596
18597
18598
# File 'lib/google/apis/compute_alpha/classes.rb', line 18596

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

Instance Attribute Details

#destination_zoneString

The URL of the destination zone to move the instance. This can be a full or partial URL. For example, the following are all valid URLs to a zone: - https:/ /www.googleapis.com/compute/v1/projects/project/zones/zone - projects/project/ zones/zone - zones/zone Corresponds to the JSON property destinationZone

Returns:

  • (String)


18586
18587
18588
# File 'lib/google/apis/compute_alpha/classes.rb', line 18586

def destination_zone
  @destination_zone
end

#target_instanceString

The URL of the target instance to move. This can be a full or partial URL. For example, the following are all valid URLs to an instance: - https://www. googleapis.com/compute/v1/projects/project/zones/zone /instances/instance - projects/project/zones/zone/instances/instance - zones/zone/instances/instance Corresponds to the JSON property targetInstance

Returns:

  • (String)


18594
18595
18596
# File 'lib/google/apis/compute_alpha/classes.rb', line 18594

def target_instance
  @target_instance
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18601
18602
18603
18604
# File 'lib/google/apis/compute_alpha/classes.rb', line 18601

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