Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::AdvancedMachineFeatures.
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).
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#enable_nested_virtualization
defenable_nested_virtualization()->::Boolean
Returns
(::Boolean) — Whether to enable nested virtualization or not (default is false).
value (::Boolean) — Whether to enable nested virtualization or not (default is false).
Returns
(::Boolean) — Whether to enable nested virtualization or not (default is false).
#enable_uefi_networking
defenable_uefi_networking()->::Boolean
Returns
(::Boolean) — Whether to enable UEFI networking for instance creation.
#enable_uefi_networking=
defenable_uefi_networking=(value)->::Boolean
Parameter
value (::Boolean) — Whether to enable UEFI networking for instance creation.
Returns
(::Boolean) — Whether to enable UEFI networking for instance creation.
#performance_monitoring_unit
defperformance_monitoring_unit()->::String
Returns
(::String) — Type of Performance Monitoring Unit requested on instance.
Check the PerformanceMonitoringUnit enum for the list of possible values.
#performance_monitoring_unit=
defperformance_monitoring_unit=(value)->::String
Parameter
value (::String) — Type of Performance Monitoring Unit requested on instance.
Check the PerformanceMonitoringUnit enum for the list of possible values.
Returns
(::String) — Type of Performance Monitoring Unit requested on instance.
Check the PerformanceMonitoringUnit enum for the list of possible values.
#threads_per_core
defthreads_per_core()->::Integer
Returns
(::Integer) — 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.
#threads_per_core=
defthreads_per_core=(value)->::Integer
Parameter
value (::Integer) — 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.
Returns
(::Integer) — 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.
#turbo_mode
defturbo_mode()->::String
Returns
(::String) — Turbo frequency mode to use for the instance. Supported modes include: * ALL_CORE_MAX Using empty string or not setting this field will use the platform-specific default turbo mode.
#turbo_mode=
defturbo_mode=(value)->::String
Parameter
value (::String) — Turbo frequency mode to use for the instance. Supported modes include: * ALL_CORE_MAX Using empty string or not setting this field will use the platform-specific default turbo mode.
Returns
(::String) — Turbo frequency mode to use for the instance. Supported modes include: * ALL_CORE_MAX Using empty string or not setting this field will use the platform-specific default turbo mode.
#visible_core_count
defvisible_core_count()->::Integer
Returns
(::Integer) — 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.
#visible_core_count=
defvisible_core_count=(value)->::Integer
Parameter
value (::Integer) — 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.
Returns
(::Integer) — 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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-29 UTC."],[],[],null,["# Google Cloud Compute V1 API - Class Google::Cloud::Compute::V1::AdvancedMachineFeatures (v3.0.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.0.0 (latest)](/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-AdvancedMachineFeatures)\n- [2.22.0](/ruby/docs/reference/google-cloud-compute-v1/2.22.0/Google-Cloud-Compute-V1-AdvancedMachineFeatures)\n- [2.21.1](/ruby/docs/reference/google-cloud-compute-v1/2.21.1/Google-Cloud-Compute-V1-AdvancedMachineFeatures)\n- [2.20.0](/ruby/docs/reference/google-cloud-compute-v1/2.20.0/Google-Cloud-Compute-V1-AdvancedMachineFeatures)\n- [2.19.1](/ruby/docs/reference/google-cloud-compute-v1/2.19.1/Google-Cloud-Compute-V1-AdvancedMachineFeatures)\n- [2.18.0](/ruby/docs/reference/google-cloud-compute-v1/2.18.0/Google-Cloud-Compute-V1-AdvancedMachineFeatures)\n- [2.17.0](/ruby/docs/reference/google-cloud-compute-v1/2.17.0/Google-Cloud-Compute-V1-AdvancedMachineFeatures)\n- [2.16.0](/ruby/docs/reference/google-cloud-compute-v1/2.16.0/Google-Cloud-Compute-V1-AdvancedMachineFeatures)\n- [2.15.0](/ruby/docs/reference/google-cloud-compute-v1/2.15.0/Google-Cloud-Compute-V1-AdvancedMachineFeatures)\n- [2.14.0](/ruby/docs/reference/google-cloud-compute-v1/2.14.0/Google-Cloud-Compute-V1-AdvancedMachineFeatures)\n- [2.13.0](/ruby/docs/reference/google-cloud-compute-v1/2.13.0/Google-Cloud-Compute-V1-AdvancedMachineFeatures)\n- [2.12.0](/ruby/docs/reference/google-cloud-compute-v1/2.12.0/Google-Cloud-Compute-V1-AdvancedMachineFeatures)\n- [2.11.0](/ruby/docs/reference/google-cloud-compute-v1/2.11.0/Google-Cloud-Compute-V1-AdvancedMachineFeatures)\n- [2.10.0](/ruby/docs/reference/google-cloud-compute-v1/2.10.0/Google-Cloud-Compute-V1-AdvancedMachineFeatures)\n- [2.9.0](/ruby/docs/reference/google-cloud-compute-v1/2.9.0/Google-Cloud-Compute-V1-AdvancedMachineFeatures)\n- [2.8.0](/ruby/docs/reference/google-cloud-compute-v1/2.8.0/Google-Cloud-Compute-V1-AdvancedMachineFeatures)\n- [2.7.2](/ruby/docs/reference/google-cloud-compute-v1/2.7.2/Google-Cloud-Compute-V1-AdvancedMachineFeatures)\n- [2.6.0](/ruby/docs/reference/google-cloud-compute-v1/2.6.0/Google-Cloud-Compute-V1-AdvancedMachineFeatures)\n- [2.5.0](/ruby/docs/reference/google-cloud-compute-v1/2.5.0/Google-Cloud-Compute-V1-AdvancedMachineFeatures)\n- [2.4.0](/ruby/docs/reference/google-cloud-compute-v1/2.4.0/Google-Cloud-Compute-V1-AdvancedMachineFeatures)\n- [2.3.0](/ruby/docs/reference/google-cloud-compute-v1/2.3.0/Google-Cloud-Compute-V1-AdvancedMachineFeatures)\n- [2.2.0](/ruby/docs/reference/google-cloud-compute-v1/2.2.0/Google-Cloud-Compute-V1-AdvancedMachineFeatures)\n- [2.1.0](/ruby/docs/reference/google-cloud-compute-v1/2.1.0/Google-Cloud-Compute-V1-AdvancedMachineFeatures)\n- [2.0.0](/ruby/docs/reference/google-cloud-compute-v1/2.0.0/Google-Cloud-Compute-V1-AdvancedMachineFeatures)\n- [1.10.0](/ruby/docs/reference/google-cloud-compute-v1/1.10.0/Google-Cloud-Compute-V1-AdvancedMachineFeatures)\n- [1.9.0](/ruby/docs/reference/google-cloud-compute-v1/1.9.0/Google-Cloud-Compute-V1-AdvancedMachineFeatures)\n- [1.8.0](/ruby/docs/reference/google-cloud-compute-v1/1.8.0/Google-Cloud-Compute-V1-AdvancedMachineFeatures)\n- [1.7.1](/ruby/docs/reference/google-cloud-compute-v1/1.7.1/Google-Cloud-Compute-V1-AdvancedMachineFeatures)\n- [1.6.0](/ruby/docs/reference/google-cloud-compute-v1/1.6.0/Google-Cloud-Compute-V1-AdvancedMachineFeatures)\n- [1.5.0](/ruby/docs/reference/google-cloud-compute-v1/1.5.0/Google-Cloud-Compute-V1-AdvancedMachineFeatures)\n- [1.4.0](/ruby/docs/reference/google-cloud-compute-v1/1.4.0/Google-Cloud-Compute-V1-AdvancedMachineFeatures)\n- [1.3.0](/ruby/docs/reference/google-cloud-compute-v1/1.3.0/Google-Cloud-Compute-V1-AdvancedMachineFeatures)\n- [1.2.0](/ruby/docs/reference/google-cloud-compute-v1/1.2.0/Google-Cloud-Compute-V1-AdvancedMachineFeatures)\n- [1.1.0](/ruby/docs/reference/google-cloud-compute-v1/1.1.0/Google-Cloud-Compute-V1-AdvancedMachineFeatures)\n- [1.0.0](/ruby/docs/reference/google-cloud-compute-v1/1.0.0/Google-Cloud-Compute-V1-AdvancedMachineFeatures)\n- [0.5.0](/ruby/docs/reference/google-cloud-compute-v1/0.5.0/Google-Cloud-Compute-V1-AdvancedMachineFeatures) \nReference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::AdvancedMachineFeatures.\n\nSpecifies 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). \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #enable_nested_virtualization\n\n def enable_nested_virtualization() -\u003e ::Boolean\n\n**Returns**\n\n- (::Boolean) --- Whether to enable nested virtualization or not (default is false).\n\n### #enable_nested_virtualization=\n\n def enable_nested_virtualization=(value) -\u003e ::Boolean\n\n**Parameter**\n\n- **value** (::Boolean) --- Whether to enable nested virtualization or not (default is false). \n**Returns**\n\n- (::Boolean) --- Whether to enable nested virtualization or not (default is false).\n\n### #enable_uefi_networking\n\n def enable_uefi_networking() -\u003e ::Boolean\n\n**Returns**\n\n- (::Boolean) --- Whether to enable UEFI networking for instance creation.\n\n### #enable_uefi_networking=\n\n def enable_uefi_networking=(value) -\u003e ::Boolean\n\n**Parameter**\n\n- **value** (::Boolean) --- Whether to enable UEFI networking for instance creation. \n**Returns**\n\n- (::Boolean) --- Whether to enable UEFI networking for instance creation.\n\n### #performance_monitoring_unit\n\n def performance_monitoring_unit() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Type of Performance Monitoring Unit requested on instance. Check the PerformanceMonitoringUnit enum for the list of possible values.\n\n### #performance_monitoring_unit=\n\n def performance_monitoring_unit=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Type of Performance Monitoring Unit requested on instance. Check the PerformanceMonitoringUnit enum for the list of possible values. \n**Returns**\n\n- (::String) --- Type of Performance Monitoring Unit requested on instance. Check the PerformanceMonitoringUnit enum for the list of possible values.\n\n### #threads_per_core\n\n def threads_per_core() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- 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.\n\n### #threads_per_core=\n\n def threads_per_core=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- 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. \n**Returns**\n\n- (::Integer) --- 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.\n\n### #turbo_mode\n\n def turbo_mode() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Turbo frequency mode to use for the instance. Supported modes include: \\* ALL_CORE_MAX Using empty string or not setting this field will use the platform-specific default turbo mode.\n\n### #turbo_mode=\n\n def turbo_mode=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Turbo frequency mode to use for the instance. Supported modes include: \\* ALL_CORE_MAX Using empty string or not setting this field will use the platform-specific default turbo mode. \n**Returns**\n\n- (::String) --- Turbo frequency mode to use for the instance. Supported modes include: \\* ALL_CORE_MAX Using empty string or not setting this field will use the platform-specific default turbo mode.\n\n### #visible_core_count\n\n def visible_core_count() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- 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.\n\n### #visible_core_count=\n\n def visible_core_count=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- 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. \n**Returns**\n\n- (::Integer) --- 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."]]