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.
208 209 210 |
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 208 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`
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 |