Reference documentation and code samples for the Cloud Bigtable V2 Client class Cluster.
A resizable group of nodes in a particular cloud location, capable of serving all Tables in the parent Instance.
Generated from protobuf message google.bigtable.admin.v2.Cluster
Namespace
Google \ Cloud \ Bigtable \ Admin \ V2Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
The unique name of the cluster. Values are of the form |
↳ location |
string
Immutable. The location where this cluster's nodes and storage reside. For best performance, clients should be located as close as possible to this cluster. Currently only zones are supported, so values should be of the form |
↳ state |
int
Output only. The current state of the cluster. |
↳ serve_nodes |
int
The number of nodes allocated to this cluster. More nodes enable higher throughput and more consistent performance. |
↳ cluster_config |
Google\Cloud\Bigtable\Admin\V2\Cluster\ClusterConfig
Configuration for this cluster. |
↳ default_storage_type |
int
Immutable. The type of storage used by this cluster to serve its parent instance's tables, unless explicitly overridden. |
↳ encryption_config |
Google\Cloud\Bigtable\Admin\V2\Cluster\EncryptionConfig
Immutable. The encryption configuration for CMEK-protected clusters. |
getName
The unique name of the cluster. Values are of the form
projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*
.
Returns | |
---|---|
Type | Description |
string |
setName
The unique name of the cluster. Values are of the form
projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*
.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getLocation
Immutable. The location where this cluster's nodes and storage reside. For best
performance, clients should be located as close as possible to this
cluster. Currently only zones are supported, so values should be of the
form projects/{project}/locations/{zone}
.
Returns | |
---|---|
Type | Description |
string |
setLocation
Immutable. The location where this cluster's nodes and storage reside. For best
performance, clients should be located as close as possible to this
cluster. Currently only zones are supported, so values should be of the
form projects/{project}/locations/{zone}
.
Parameter | |
---|---|
Name | Description |
var |
string
|
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 |
getServeNodes
The number of nodes allocated to this cluster. More nodes enable higher throughput and more consistent performance.
Returns | |
---|---|
Type | Description |
int |
setServeNodes
The number of nodes allocated to this cluster. More nodes enable higher throughput and more consistent performance.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getClusterConfig
Configuration for this cluster.
Returns | |
---|---|
Type | Description |
Google\Cloud\Bigtable\Admin\V2\Cluster\ClusterConfig|null |
hasClusterConfig
setClusterConfig
Configuration for this cluster.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Bigtable\Admin\V2\Cluster\ClusterConfig
|
Returns | |
---|---|
Type | Description |
$this |
getDefaultStorageType
Immutable. The type of storage used by this cluster to serve its parent instance's tables, unless explicitly overridden.
Returns | |
---|---|
Type | Description |
int |
setDefaultStorageType
Immutable. The type of storage used by this cluster to serve its parent instance's tables, unless explicitly overridden.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getEncryptionConfig
Immutable. The encryption configuration for CMEK-protected clusters.
Returns | |
---|---|
Type | Description |
Google\Cloud\Bigtable\Admin\V2\Cluster\EncryptionConfig|null |
hasEncryptionConfig
clearEncryptionConfig
setEncryptionConfig
Immutable. The encryption configuration for CMEK-protected clusters.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Bigtable\Admin\V2\Cluster\EncryptionConfig
|
Returns | |
---|---|
Type | Description |
$this |
getConfig
Returns | |
---|---|
Type | Description |
string |