Class: Google::Apis::ComputeAlpha::AllocationSpecificSkuReservation

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

Overview

This reservation type allows to pre allocate specific instance configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AllocationSpecificSkuReservation

Returns a new instance of AllocationSpecificSkuReservation.



1211
1212
1213
# File 'generated/google/apis/compute_alpha/classes.rb', line 1211

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

Instance Attribute Details

#countFixnum

Specifies the number of resources that are allocated. Corresponds to the JSON property count

Returns:

  • (Fixnum)


1199
1200
1201
# File 'generated/google/apis/compute_alpha/classes.rb', line 1199

def count
  @count
end

#in_use_countFixnum

[Output Only] Indicates how many instances are in use. Corresponds to the JSON property inUseCount

Returns:

  • (Fixnum)


1204
1205
1206
# File 'generated/google/apis/compute_alpha/classes.rb', line 1204

def in_use_count
  @in_use_count
end

#instance_propertiesGoogle::Apis::ComputeAlpha::AllocationSpecificSkuAllocationReservedInstanceProperties

Properties of the SKU instances being reserved. Corresponds to the JSON property instanceProperties



1209
1210
1211
# File 'generated/google/apis/compute_alpha/classes.rb', line 1209

def instance_properties
  @instance_properties
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1216
1217
1218
1219
1220
# File 'generated/google/apis/compute_alpha/classes.rb', line 1216

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