Google Cloud Managed Kafka V1 Client - Class Cluster (0.2.3)

Reference documentation and code samples for the Google Cloud Managed Kafka V1 Client class Cluster.

An Apache Kafka cluster deployed in a location.

Generated from protobuf message google.cloud.managedkafka.v1.Cluster

Namespace

Google \ Cloud \ ManagedKafka \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ gcp_config
GcpConfig

Required. Configuration properties for a Kafka cluster deployed to Google Cloud Platform.

↳ name
string

Identifier. The name of the cluster. Structured like: projects/{project_number}/locations/{location}/clusters/{cluster_id}

↳ create_time
Google\Protobuf\Timestamp

Output only. The time when the cluster was created.

↳ update_time
Google\Protobuf\Timestamp

Output only. The time when the cluster was last updated.

↳ labels
array| Google\Protobuf\Internal\MapField

Optional. Labels as key value pairs.

↳ capacity_config
CapacityConfig

Required. Capacity configuration for the Kafka cluster.

↳ rebalance_config
RebalanceConfig

Optional. Rebalance configuration for the Kafka cluster.

↳ state
int

Output only. The current state of the cluster.

↳ satisfies_pzi
bool

Output only. Reserved for future use.

↳ satisfies_pzs
bool

Output only. Reserved for future use.

getGcpConfig

Required. Configuration properties for a Kafka cluster deployed to Google Cloud Platform.

Returns
Type
Description
GcpConfig |null

hasGcpConfig

setGcpConfig

Required. Configuration properties for a Kafka cluster deployed to Google Cloud Platform.

Parameter
Name
Description
var
Returns
Type
Description
$this

getName

Identifier. The name of the cluster. Structured like: projects/{project_number}/locations/{location}/clusters/{cluster_id}

Returns
Type
Description
string

setName

Identifier. The name of the cluster. Structured like: projects/{project_number}/locations/{location}/clusters/{cluster_id}

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getCreateTime

Output only. The time when the cluster was created.

Returns
Type
Description

hasCreateTime

clearCreateTime

setCreateTime

Output only. The time when the cluster was created.

Parameter
Name
Description
Returns
Type
Description
$this

getUpdateTime

Output only. The time when the cluster was last updated.

Returns
Type
Description

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The time when the cluster was last updated.

Parameter
Name
Description
Returns
Type
Description
$this

getLabels

Optional. Labels as key value pairs.

Returns
Type
Description

setLabels

Optional. Labels as key value pairs.

Parameter
Name
Description
Returns
Type
Description
$this

getCapacityConfig

Required. Capacity configuration for the Kafka cluster.

Returns
Type
Description

hasCapacityConfig

clearCapacityConfig

setCapacityConfig

Required. Capacity configuration for the Kafka cluster.

Parameter
Name
Description
Returns
Type
Description
$this

getRebalanceConfig

Optional. Rebalance configuration for the Kafka cluster.

Returns
Type
Description

hasRebalanceConfig

clearRebalanceConfig

setRebalanceConfig

Optional. Rebalance configuration for the Kafka cluster.

Parameter
Name
Description
Returns
Type
Description
$this

getState

Output only. The current state of the cluster.

Returns
Type
Description
int

setState

Output only. The current state of the cluster.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getSatisfiesPzi

Output only. Reserved for future use.

Returns
Type
Description
bool

hasSatisfiesPzi

clearSatisfiesPzi

setSatisfiesPzi

Output only. Reserved for future use.

Parameter
Name
Description
var
bool
Returns
Type
Description
$this

getSatisfiesPzs

Output only. Reserved for future use.

Returns
Type
Description
bool

hasSatisfiesPzs

clearSatisfiesPzs

setSatisfiesPzs

Output only. Reserved for future use.

Parameter
Name
Description
var
bool
Returns
Type
Description
$this

getPlatformConfig

Returns
Type
Description
string
Create a Mobile Website
View Site in Mobile | Classic
Share by: