Reference documentation and code samples for the AlloyDB V1ALPHA API class Google::Cloud::AlloyDB::V1alpha::Instance::MachineConfig.
MachineConfig describes the configuration of a machine.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#cpu_count
defcpu_count()->::Integer
Returns
(::Integer) — The number of CPU's in the VM instance.
#cpu_count=
defcpu_count=(value)->::Integer
Parameter
value (::Integer) — The number of CPU's in the VM instance.
Returns
(::Integer) — The number of CPU's in the VM instance.
#machine_type
defmachine_type()->::String
Returns
(::String) — Machine type of the VM instance. E.g. "n2-highmem-4",
"n2-highmem-8", "c4a-highmem-4-lssd".
cpu_count must match the number of vCPUs in the machine type.
#machine_type=
defmachine_type=(value)->::String
Parameter
value (::String) — Machine type of the VM instance. E.g. "n2-highmem-4",
"n2-highmem-8", "c4a-highmem-4-lssd".
cpu_count must match the number of vCPUs in the machine type.
Returns
(::String) — Machine type of the VM instance. E.g. "n2-highmem-4",
"n2-highmem-8", "c4a-highmem-4-lssd".
cpu_count must match the number of vCPUs in the machine type.
[[["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-09-04 UTC."],[],[],null,["# AlloyDB V1ALPHA API - Class Google::Cloud::AlloyDB::V1alpha::Instance::MachineConfig (v0.14.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.14.1 (latest)](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/latest/Google-Cloud-AlloyDB-V1alpha-Instance-MachineConfig)\n- [0.14.0](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.14.0/Google-Cloud-AlloyDB-V1alpha-Instance-MachineConfig)\n- [0.13.0](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.13.0/Google-Cloud-AlloyDB-V1alpha-Instance-MachineConfig)\n- [0.12.0](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.12.0/Google-Cloud-AlloyDB-V1alpha-Instance-MachineConfig)\n- [0.11.1](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.11.1/Google-Cloud-AlloyDB-V1alpha-Instance-MachineConfig)\n- [0.10.0](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.10.0/Google-Cloud-AlloyDB-V1alpha-Instance-MachineConfig)\n- [0.9.0](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.9.0/Google-Cloud-AlloyDB-V1alpha-Instance-MachineConfig)\n- [0.8.0](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.8.0/Google-Cloud-AlloyDB-V1alpha-Instance-MachineConfig)\n- [0.7.2](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.7.2/Google-Cloud-AlloyDB-V1alpha-Instance-MachineConfig)\n- [0.6.0](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.6.0/Google-Cloud-AlloyDB-V1alpha-Instance-MachineConfig)\n- [0.5.2](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.5.2/Google-Cloud-AlloyDB-V1alpha-Instance-MachineConfig)\n- [0.4.0](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.4.0/Google-Cloud-AlloyDB-V1alpha-Instance-MachineConfig)\n- [0.3.0](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.3.0/Google-Cloud-AlloyDB-V1alpha-Instance-MachineConfig)\n- [0.2.0](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.2.0/Google-Cloud-AlloyDB-V1alpha-Instance-MachineConfig)\n- [0.1.0](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.1.0/Google-Cloud-AlloyDB-V1alpha-Instance-MachineConfig) \nReference documentation and code samples for the AlloyDB V1ALPHA API class Google::Cloud::AlloyDB::V1alpha::Instance::MachineConfig.\n\nMachineConfig describes the configuration of a machine. \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### #cpu_count\n\n def cpu_count() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- The number of CPU's in the VM instance.\n\n### #cpu_count=\n\n def cpu_count=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- The number of CPU's in the VM instance. \n**Returns**\n\n- (::Integer) --- The number of CPU's in the VM instance.\n\n### #machine_type\n\n def machine_type() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Machine type of the VM instance. E.g. \"n2-highmem-4\", \"n2-highmem-8\", \"c4a-highmem-4-lssd\". cpu_count must match the number of vCPUs in the machine type.\n\n### #machine_type=\n\n def machine_type=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Machine type of the VM instance. E.g. \"n2-highmem-4\", \"n2-highmem-8\", \"c4a-highmem-4-lssd\". cpu_count must match the number of vCPUs in the machine type. \n**Returns**\n\n- (::String) --- Machine type of the VM instance. E.g. \"n2-highmem-4\", \"n2-highmem-8\", \"c4a-highmem-4-lssd\". cpu_count must match the number of vCPUs in the machine type."]]