Class: Google::Apis::ComputeAlpha::ReservationBlockPhysicalTopologyInstance

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

Overview

The instances information for a given Block

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ReservationBlockPhysicalTopologyInstance

Returns a new instance of ReservationBlockPhysicalTopologyInstance.



58349
58350
58351
# File 'lib/google/apis/compute_alpha/classes.rb', line 58349

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

Instance Attribute Details

#instance_idFixnum

The InstanceId of the instance Corresponds to the JSON property instanceId

Returns:

  • (Fixnum)


58337
58338
58339
# File 'lib/google/apis/compute_alpha/classes.rb', line 58337

def instance_id
  @instance_id
end

#physical_host_topologyGoogle::Apis::ComputeAlpha::ReservationBlockPhysicalTopologyInstancePhysicalHostTopology

The PhysicalHostTopology of the instance within a Block resource. Corresponds to the JSON property physicalHostTopology



58342
58343
58344
# File 'lib/google/apis/compute_alpha/classes.rb', line 58342

def physical_host_topology
  @physical_host_topology
end

#project_idFixnum

Project where the instance lives Corresponds to the JSON property projectId

Returns:

  • (Fixnum)


58347
58348
58349
# File 'lib/google/apis/compute_alpha/classes.rb', line 58347

def project_id
  @project_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



58354
58355
58356
58357
58358
# File 'lib/google/apis/compute_alpha/classes.rb', line 58354

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