Reference documentation and code samples for the Google Cloud AlloyDB for PostgreSQL V1 Client class MachineConfig.
MachineConfig describes the configuration of a machine.
Generated from protobuf message google.cloud.alloydb.v1.Instance.MachineConfig
Namespace
Google \ Cloud \ AlloyDb \ V1 \ Instance
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ cpu_count
int
The number of CPU's in the VM instance.
↳ machine_type
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.
getCpuCount
The number of CPU's in the VM instance.
Returns
Type
Description
int
setCpuCount
The number of CPU's in the VM instance.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getMachineType
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
Type
Description
string
setMachineType
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-08-28 UTC."],[],[],null,["# Google Cloud AlloyDB for PostgreSQL V1 Client - Class MachineConfig (1.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.1 (latest)](/php/docs/reference/cloud-alloydb/latest/V1.Instance.MachineConfig)\n- [1.4.0](/php/docs/reference/cloud-alloydb/1.4.0/V1.Instance.MachineConfig)\n- [1.3.0](/php/docs/reference/cloud-alloydb/1.3.0/V1.Instance.MachineConfig)\n- [1.2.0](/php/docs/reference/cloud-alloydb/1.2.0/V1.Instance.MachineConfig)\n- [1.1.3](/php/docs/reference/cloud-alloydb/1.1.3/V1.Instance.MachineConfig)\n- [1.0.0](/php/docs/reference/cloud-alloydb/1.0.0/V1.Instance.MachineConfig)\n- [0.10.3](/php/docs/reference/cloud-alloydb/0.10.3/V1.Instance.MachineConfig)\n- [0.9.0](/php/docs/reference/cloud-alloydb/0.9.0/V1.Instance.MachineConfig)\n- [0.8.0](/php/docs/reference/cloud-alloydb/0.8.0/V1.Instance.MachineConfig)\n- [0.7.1](/php/docs/reference/cloud-alloydb/0.7.1/V1.Instance.MachineConfig)\n- [0.6.0](/php/docs/reference/cloud-alloydb/0.6.0/V1.Instance.MachineConfig)\n- [0.5.0](/php/docs/reference/cloud-alloydb/0.5.0/V1.Instance.MachineConfig)\n- [0.4.0](/php/docs/reference/cloud-alloydb/0.4.0/V1.Instance.MachineConfig)\n- [0.3.0](/php/docs/reference/cloud-alloydb/0.3.0/V1.Instance.MachineConfig)\n- [0.2.1](/php/docs/reference/cloud-alloydb/0.2.1/V1.Instance.MachineConfig)\n- [0.1.3](/php/docs/reference/cloud-alloydb/0.1.3/V1.Instance.MachineConfig) \nReference documentation and code samples for the Google Cloud AlloyDB for PostgreSQL V1 Client class MachineConfig.\n\nMachineConfig describes the configuration of a machine.\n\nGenerated from protobuf message `google.cloud.alloydb.v1.Instance.MachineConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ AlloyDb \\\\ V1 \\\\ Instance\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getCpuCount\n\nThe number of CPU's in the VM instance.\n\n### setCpuCount\n\nThe number of CPU's in the VM instance.\n\n### getMachineType\n\nMachine type of the VM instance. E.g. \"n2-highmem-4\",\n\"n2-highmem-8\", \"c4a-highmem-4-lssd\".\n\ncpu_count must match the number of vCPUs in the machine type.\n\n### setMachineType\n\nMachine type of the VM instance. E.g. \"n2-highmem-4\",\n\"n2-highmem-8\", \"c4a-highmem-4-lssd\".\n\ncpu_count must match the number of vCPUs in the machine type."]]