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.



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

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)


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

def instance
  @instance
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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