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

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/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.



1388
1389
1390
# File 'lib/google/apis/compute_alpha/classes.rb', line 1388

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)


1366
1367
1368
# File 'lib/google/apis/compute_alpha/classes.rb', line 1366

def assured_count
  @assured_count
end

#countFixnum

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

Returns:

  • (Fixnum)


1371
1372
1373
# File 'lib/google/apis/compute_alpha/classes.rb', line 1371

def count
  @count
end

#in_use_countFixnum

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

Returns:

  • (Fixnum)


1376
1377
1378
# File 'lib/google/apis/compute_alpha/classes.rb', line 1376

def in_use_count
  @in_use_count
end

#instance_propertiesGoogle::Apis::ComputeAlpha::AllocationSpecificSkuAllocationReservedInstanceProperties

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



1381
1382
1383
# File 'lib/google/apis/compute_alpha/classes.rb', line 1381

def instance_properties
  @instance_properties
end

#source_instance_templateString

Specific URL of the instance template used in the reservation Corresponds to the JSON property sourceInstanceTemplate

Returns:

  • (String)


1386
1387
1388
# File 'lib/google/apis/compute_alpha/classes.rb', line 1386

def source_instance_template
  @source_instance_template
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1393
1394
1395
1396
1397
1398
1399
# File 'lib/google/apis/compute_alpha/classes.rb', line 1393

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)
  @source_instance_template = args[:source_instance_template] if args.key?(:source_instance_template)
end