Class: Google::Apis::HypercomputeclusterV1::NewReservedInstancesConfig
- Inherits:
-
Object
- Object
- Google::Apis::HypercomputeclusterV1::NewReservedInstancesConfig
- 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
When set in a ComputeResourceConfig, indicates that VM instances should be created from a reservation.
Instance Attribute Summary collapse
-
#reservation ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NewReservedInstancesConfig
constructor
A new instance of NewReservedInstancesConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NewReservedInstancesConfig
Returns a new instance of NewReservedInstancesConfig.
1314 1315 1316 |
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 1314 def initialize(**args) update!(**args) end |
Instance Attribute Details
#reservation ⇒ String
Optional. Immutable. Name of the reservation from which VM instances should be
created, in the format projects/project/zones/zone/reservations/
reservation`.
Corresponds to the JSON propertyreservation`
1312 1313 1314 |
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 1312 def reservation @reservation end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1319 1320 1321 |
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 1319 def update!(**args) @reservation = args[:reservation] if args.key?(:reservation) end |