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

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AllocationSpecificSkuReservation

Returns a new instance of AllocationSpecificSkuReservation.



1208
1209
1210
# File 'lib/google/apis/compute_v1/classes.rb', line 1208

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

Instance Attribute Details

#assured_countFixnum

[Output Only] Indicates how many instances are actually usable currently. Corresponds to the JSON property assuredCount

Returns:

  • (Fixnum)


1191
1192
1193
# File 'lib/google/apis/compute_v1/classes.rb', line 1191

def assured_count
  @assured_count
end

#countFixnum

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

Returns:

  • (Fixnum)


1196
1197
1198
# File 'lib/google/apis/compute_v1/classes.rb', line 1196

def count
  @count
end

#in_use_countFixnum

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

Returns:

  • (Fixnum)


1201
1202
1203
# File 'lib/google/apis/compute_v1/classes.rb', line 1201

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



1206
1207
1208
# File 'lib/google/apis/compute_v1/classes.rb', line 1206

def instance_properties
  @instance_properties
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1213
1214
1215
1216
1217
1218
# File 'lib/google/apis/compute_v1/classes.rb', line 1213

def update!(**args)
  @assured_count = args[:assured_count] if args.key?(:assured_count)
  @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