Class: Google::Apis::ComputeBeta::AllocationSpecificSkuAllocationAllocatedInstanceProperties

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

Properties of the SKU instances being reserved.

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) ⇒ AllocationSpecificSkuAllocationAllocatedInstanceProperties

Returns a new instance of AllocationSpecificSkuAllocationAllocatedInstanceProperties



1447
1448
1449
# File 'generated/google/apis/compute_beta/classes.rb', line 1447

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

Instance Attribute Details

#guest_acceleratorsArray<Google::Apis::ComputeBeta::AcceleratorConfig>

Specifies accelerator type and count. Corresponds to the JSON property guestAccelerators



1427
1428
1429
# File 'generated/google/apis/compute_beta/classes.rb', line 1427

def guest_accelerators
  @guest_accelerators
end

#local_ssdsArray<Google::Apis::ComputeBeta::AllocationSpecificSkuAllocationAllocatedInstancePropertiesAllocatedDisk>

Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd. Corresponds to the JSON property localSsds



1433
1434
1435
# File 'generated/google/apis/compute_beta/classes.rb', line 1433

def local_ssds
  @local_ssds
end

#machine_typeString

Specifies type of machine (name only) which has fixed number of vCPUs and fixed amount of memory. This also includes specifying custom machine type following custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern. Corresponds to the JSON property machineType

Returns:

  • (String)


1440
1441
1442
# File 'generated/google/apis/compute_beta/classes.rb', line 1440

def machine_type
  @machine_type
end

#min_cpu_platformString

Minimum cpu platform the allocation. Corresponds to the JSON property minCpuPlatform

Returns:

  • (String)


1445
1446
1447
# File 'generated/google/apis/compute_beta/classes.rb', line 1445

def min_cpu_platform
  @min_cpu_platform
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1452
1453
1454
1455
1456
1457
# File 'generated/google/apis/compute_beta/classes.rb', line 1452

def update!(**args)
  @guest_accelerators = args[:guest_accelerators] if args.key?(:guest_accelerators)
  @local_ssds = args[:local_ssds] if args.key?(:local_ssds)
  @machine_type = args[:machine_type] if args.key?(:machine_type)
  @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform)
end