Class: Google::Apis::ComputeV1::AllocationSpecificSkuReservation

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

Overview

This reservation type allows to pre allocate specific instance configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AllocationSpecificSkuReservation

Returns a new instance of AllocationSpecificSkuReservation.



1147
1148
1149
# File 'generated/google/apis/compute_v1/classes.rb', line 1147

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)


1135
1136
1137
# File 'generated/google/apis/compute_v1/classes.rb', line 1135

def count
  @count
end

#in_use_countFixnum

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

Returns:

  • (Fixnum)


1140
1141
1142
# File 'generated/google/apis/compute_v1/classes.rb', line 1140

def in_use_count
  @in_use_count
end

#instance_propertiesGoogle::Apis::ComputeV1::AllocationSpecificSkuAllocationReservedInstanceProperties

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



1145
1146
1147
# File 'generated/google/apis/compute_v1/classes.rb', line 1145

def instance_properties
  @instance_properties
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1152
1153
1154
1155
1156
# File 'generated/google/apis/compute_v1/classes.rb', line 1152

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