Class: Google::Apis::HypercomputeclusterV1::NewReservedInstancesConfig

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

When set in a ComputeResourceConfig, indicates that VM instances should be created from a reservation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NewReservedInstancesConfig

Returns a new instance of NewReservedInstancesConfig.



1323
1324
1325
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 1323

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

Instance Attribute Details

#reservationString

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`

Returns:

  • (String)


1321
1322
1323
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 1321

def reservation
  @reservation
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1328
1329
1330
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 1328

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