Google Cloud Game Servers V1 Client - Class GameServerCluster (1.1.1)

Reference documentation and code samples for the Google Cloud Game Servers V1 Client class GameServerCluster.

A game server cluster resource.

Generated from protobuf message google.cloud.gaming.v1.GameServerCluster

Namespace

Google \ Cloud \ Gaming \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Required. The resource name of the game server cluster, in the following form: projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}. For example, projects/my-project/locations/{location}/realms/zanzibar/gameServerClusters/my-onprem-cluster.

↳ create_time Google\Protobuf\Timestamp

Output only. The creation time.

↳ update_time Google\Protobuf\Timestamp

Output only. The last-modified time.

↳ labels array|Google\Protobuf\Internal\MapField

The labels associated with this game server cluster. Each label is a key-value pair.

↳ connection_info Google\Cloud\Gaming\V1\GameServerClusterConnectionInfo

The game server cluster connection information. This information is used to manage game server clusters.

↳ etag string

ETag of the resource.

↳ description string

Human readable description of the cluster.

↳ cluster_state Google\Cloud\Gaming\V1\KubernetesClusterState

Output only. The state of the Kubernetes cluster, this will be available if 'view' is set to FULL in the relevant List/Get/Preview request.

getName

Required. The resource name of the game server cluster, in the following form: projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}.

For example, projects/my-project/locations/{location}/realms/zanzibar/gameServerClusters/my-onprem-cluster.

Returns
TypeDescription
string

setName

Required. The resource name of the game server cluster, in the following form: projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}.

For example, projects/my-project/locations/{location}/realms/zanzibar/gameServerClusters/my-onprem-cluster.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

Output only. The creation time.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The creation time.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

Output only. The last-modified time.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The last-modified time.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getLabels

The labels associated with this game server cluster. Each label is a key-value pair.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

The labels associated with this game server cluster. Each label is a key-value pair.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getConnectionInfo

The game server cluster connection information. This information is used to manage game server clusters.

Returns
TypeDescription
Google\Cloud\Gaming\V1\GameServerClusterConnectionInfo|null

hasConnectionInfo

clearConnectionInfo

setConnectionInfo

The game server cluster connection information. This information is used to manage game server clusters.

Parameter
NameDescription
var Google\Cloud\Gaming\V1\GameServerClusterConnectionInfo
Returns
TypeDescription
$this

getEtag

ETag of the resource.

Returns
TypeDescription
string

setEtag

ETag of the resource.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDescription

Human readable description of the cluster.

Returns
TypeDescription
string

setDescription

Human readable description of the cluster.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getClusterState

Output only. The state of the Kubernetes cluster, this will be available if 'view' is set to FULL in the relevant List/Get/Preview request.

Returns
TypeDescription
Google\Cloud\Gaming\V1\KubernetesClusterState|null

hasClusterState

clearClusterState

setClusterState

Output only. The state of the Kubernetes cluster, this will be available if 'view' is set to FULL in the relevant List/Get/Preview request.

Parameter
NameDescription
var Google\Cloud\Gaming\V1\KubernetesClusterState
Returns
TypeDescription
$this