Class: Google::Apis::ComputeBeta::AllocationSpecificSkuReservation

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

Overview

This reservation type allows to pre allocate specific instance configuration. Next ID: 5

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AllocationSpecificSkuReservation

Returns a new instance of AllocationSpecificSkuReservation.



1231
1232
1233
# File 'lib/google/apis/compute_beta/classes.rb', line 1231

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)


1219
1220
1221
# File 'lib/google/apis/compute_beta/classes.rb', line 1219

def count
  @count
end

#in_use_countFixnum

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

Returns:

  • (Fixnum)


1224
1225
1226
# File 'lib/google/apis/compute_beta/classes.rb', line 1224

def in_use_count
  @in_use_count
end

#instance_propertiesGoogle::Apis::ComputeBeta::AllocationSpecificSkuAllocationReservedInstanceProperties

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



1229
1230
1231
# File 'lib/google/apis/compute_beta/classes.rb', line 1229

def instance_properties
  @instance_properties
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1236
1237
1238
1239
1240
# File 'lib/google/apis/compute_beta/classes.rb', line 1236

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