Google Cloud AlloyDB for PostgreSQL V1 Client - Class MachineConfig (1.4.1)

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.

Parameter
Name
Description
var
string
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: