Class: Google::Apis::HypercomputeclusterV1::ComputeInstance

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

Overview

Details about a Compute Engine instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ComputeInstance

Returns a new instance of ComputeInstance.



208
209
210
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 208

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

Instance Attribute Details

#instanceString

Output only. Name of the VM instance, in the format projects/project/zones/ zone/instances/instance`. Corresponds to the JSON propertyinstance`

Returns:

  • (String)


206
207
208
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 206

def instance
  @instance
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



213
214
215
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 213

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