Reference documentation and code samples for the Google Cloud Managed Kafka V1 Client class CapacityConfig.
A capacity configuration of a Kafka cluster.
Generated from protobuf message google.cloud.managedkafka.v1.CapacityConfig
Namespace
Google \ Cloud \ ManagedKafka \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ vcpu_count |
int|string
Required. The number of vCPUs to provision for the cluster. Minimum: 3. |
↳ memory_bytes |
int|string
Required. The memory to provision for the cluster in bytes. The CPU:memory ratio (vCPU:GiB) must be between 1:1 and 1:8. Minimum: 3221225472 (3 GiB). |
getVcpuCount
Required. The number of vCPUs to provision for the cluster. Minimum: 3.
Returns | |
---|---|
Type | Description |
int|string |
setVcpuCount
Required. The number of vCPUs to provision for the cluster. Minimum: 3.
Parameter | |
---|---|
Name | Description |
var |
int|string
|
Returns | |
---|---|
Type | Description |
$this |
getMemoryBytes
Required. The memory to provision for the cluster in bytes.
The CPU:memory ratio (vCPU:GiB) must be between 1:1 and 1:8. Minimum: 3221225472 (3 GiB).
Returns | |
---|---|
Type | Description |
int|string |
setMemoryBytes
Required. The memory to provision for the cluster in bytes.
The CPU:memory ratio (vCPU:GiB) must be between 1:1 and 1:8. Minimum: 3221225472 (3 GiB).
Parameter | |
---|---|
Name | Description |
var |
int|string
|
Returns | |
---|---|
Type | Description |
$this |