Class: Google::Apis::HypercomputeclusterV1::ComputeInstance
- Inherits:
-
Object
- Object
- Google::Apis::HypercomputeclusterV1::ComputeInstance
- 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 ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ComputeInstance
constructor
A new instance of ComputeInstance.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#instance ⇒ String
Output only. Name of the VM instance, in the format projects/project/zones/
zone/instances/instance`.
Corresponds to the JSON propertyinstance`
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 |