Class: Google::Apis::ComputeBeta::AllocationSpecificSkuAllocation

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

Overview

This allocation 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) ⇒ AllocationSpecificSkuAllocation

Returns a new instance of AllocationSpecificSkuAllocation



1408
1409
1410
# File 'generated/google/apis/compute_beta/classes.rb', line 1408

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

Instance Attribute Details

#countFixnum

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

Returns:

  • (Fixnum)


1396
1397
1398
# File 'generated/google/apis/compute_beta/classes.rb', line 1396

def count
  @count
end

#in_use_countFixnum

[OutputOnly] Indicates how many resource are in use. Corresponds to the JSON property inUseCount

Returns:

  • (Fixnum)


1401
1402
1403
# File 'generated/google/apis/compute_beta/classes.rb', line 1401

def in_use_count
  @in_use_count
end

#instance_propertiesGoogle::Apis::ComputeBeta::AllocationSpecificSkuAllocationAllocatedInstanceProperties

Properties of the SKU instances being reserved. Corresponds to the JSON property instanceProperties



1406
1407
1408
# File 'generated/google/apis/compute_beta/classes.rb', line 1406

def instance_properties
  @instance_properties
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1413
1414
1415
1416
1417
# File 'generated/google/apis/compute_beta/classes.rb', line 1413

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