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.



1314
1315
1316
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 1314

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)


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