Class: Google::Apis::ComputeAlpha::AdvancedMachineFeatures

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

Specifies options for controlling advanced machine features. Options that would traditionally be configured in a BIOS belong here. Features that require operating system support may have corresponding entries in the GuestOsFeatures of an Image (e.g., whether or not the OS in the Image supports nested virtualization being enabled or disabled).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AdvancedMachineFeatures

Returns a new instance of AdvancedMachineFeatures.



1188
1189
1190
# File 'lib/google/apis/compute_alpha/classes.rb', line 1188

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

Instance Attribute Details

#enable_nested_virtualizationBoolean Also known as: enable_nested_virtualization?

Whether to enable nested virtualization or not (default is false). Corresponds to the JSON property enableNestedVirtualization

Returns:

  • (Boolean)


1159
1160
1161
# File 'lib/google/apis/compute_alpha/classes.rb', line 1159

def enable_nested_virtualization
  @enable_nested_virtualization
end

#enable_uefi_networkingBoolean Also known as: enable_uefi_networking?

Whether to enable UEFI networking for instance creation. Corresponds to the JSON property enableUefiNetworking

Returns:

  • (Boolean)


1165
1166
1167
# File 'lib/google/apis/compute_alpha/classes.rb', line 1165

def enable_uefi_networking
  @enable_uefi_networking
end

#numa_node_countFixnum

The number of vNUMA nodes. Corresponds to the JSON property numaNodeCount

Returns:

  • (Fixnum)


1171
1172
1173
# File 'lib/google/apis/compute_alpha/classes.rb', line 1171

def numa_node_count
  @numa_node_count
end

#threads_per_coreFixnum

The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed. Corresponds to the JSON property threadsPerCore

Returns:

  • (Fixnum)


1178
1179
1180
# File 'lib/google/apis/compute_alpha/classes.rb', line 1178

def threads_per_core
  @threads_per_core
end

#visible_core_countFixnum

The number of physical cores to expose to an instance. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance's nominal CPU count and the underlying platform's SMT width. Corresponds to the JSON property visibleCoreCount

Returns:

  • (Fixnum)


1186
1187
1188
# File 'lib/google/apis/compute_alpha/classes.rb', line 1186

def visible_core_count
  @visible_core_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1193
1194
1195
1196
1197
1198
1199
# File 'lib/google/apis/compute_alpha/classes.rb', line 1193

def update!(**args)
  @enable_nested_virtualization = args[:enable_nested_virtualization] if args.key?(:enable_nested_virtualization)
  @enable_uefi_networking = args[:enable_uefi_networking] if args.key?(:enable_uefi_networking)
  @numa_node_count = args[:numa_node_count] if args.key?(:numa_node_count)
  @threads_per_core = args[:threads_per_core] if args.key?(:threads_per_core)
  @visible_core_count = args[:visible_core_count] if args.key?(:visible_core_count)
end