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.



1179
1180
1181
# File 'generated/google/apis/compute_alpha/classes.rb', line 1179

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)


1167
1168
1169
# File 'generated/google/apis/compute_alpha/classes.rb', line 1167

def count
  @count
end

#in_use_countFixnum

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

Returns:

  • (Fixnum)


1172
1173
1174
# File 'generated/google/apis/compute_alpha/classes.rb', line 1172

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



1177
1178
1179
# File 'generated/google/apis/compute_alpha/classes.rb', line 1177

def instance_properties
  @instance_properties
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1184
1185
1186
1187
1188
# File 'generated/google/apis/compute_alpha/classes.rb', line 1184

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