Class: Google::Apis::ComputeAlpha::FutureReservationSpecificSkuProperties

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FutureReservationSpecificSkuProperties

Returns a new instance of FutureReservationSpecificSkuProperties.



10259
10260
10261
# File 'lib/google/apis/compute_alpha/classes.rb', line 10259

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

Instance Attribute Details

#instance_propertiesGoogle::Apis::ComputeAlpha::AllocationSpecificSkuAllocationReservedInstanceProperties

Properties of the SKU instances being reserved. Next ID: 9 Corresponds to the JSON property instanceProperties



10251
10252
10253
# File 'lib/google/apis/compute_alpha/classes.rb', line 10251

def instance_properties
  @instance_properties
end

#total_countFixnum

Total number of instances for which capacity assurance is requested at a future time period. Corresponds to the JSON property totalCount

Returns:

  • (Fixnum)


10257
10258
10259
# File 'lib/google/apis/compute_alpha/classes.rb', line 10257

def total_count
  @total_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10264
10265
10266
10267
# File 'lib/google/apis/compute_alpha/classes.rb', line 10264

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