Class: Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationAllocatedInstanceProperties
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationAllocatedInstanceProperties
- Defined in:
- generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/representations.rb
Overview
Properties of the SKU instances being reserved.
Instance Attribute Summary collapse
-
#guest_accelerators ⇒ Array<Google::Apis::ComputeAlpha::AcceleratorConfig>
Specifies accelerator type and count.
-
#local_ssds ⇒ Array<Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationAllocatedInstancePropertiesAllocatedDisk>
Specifies amount of local ssd to reserve with each instance.
-
#machine_type ⇒ String
Specifies type of machine (name only) which has fixed number of vCPUs and fixed amount of memory.
-
#min_cpu_platform ⇒ String
Minimum cpu platform the allocation.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AllocationSpecificSkuAllocationAllocatedInstanceProperties
constructor
A new instance of AllocationSpecificSkuAllocationAllocatedInstanceProperties.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ AllocationSpecificSkuAllocationAllocatedInstanceProperties
Returns a new instance of AllocationSpecificSkuAllocationAllocatedInstanceProperties
1468 1469 1470 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 1468 def initialize(**args) update!(**args) end |
Instance Attribute Details
#guest_accelerators ⇒ Array<Google::Apis::ComputeAlpha::AcceleratorConfig>
Specifies accelerator type and count.
Corresponds to the JSON property guestAccelerators
1448 1449 1450 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 1448 def guest_accelerators @guest_accelerators end |
#local_ssds ⇒ Array<Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationAllocatedInstancePropertiesAllocatedDisk>
Specifies amount of local ssd to reserve with each instance. The type of disk
is local-ssd.
Corresponds to the JSON property localSsds
1454 1455 1456 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 1454 def local_ssds @local_ssds end |
#machine_type ⇒ String
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
1461 1462 1463 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 1461 def machine_type @machine_type end |
#min_cpu_platform ⇒ String
Minimum cpu platform the allocation.
Corresponds to the JSON property minCpuPlatform
1466 1467 1468 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 1466 def min_cpu_platform @min_cpu_platform end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1473 1474 1475 1476 1477 1478 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 1473 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 |