class ProjectsLocationsRealmsGameServerClusters extends Resource (View source)

The "gameServerClusters" collection of methods.

Typical usage is:

 $gameservicesService = new Google\Service\GameServices(...);
 $gameServerClusters = $gameservicesService->gameServerClusters;

Methods

create(string $parent, GameServerCluster $postBody, array $optParams = [])

Creates a new game server cluster in a given project and location.

delete(string $name, array $optParams = [])

Deletes a single game server cluster. (gameServerClusters.delete)

get(string $name, array $optParams = [])

Gets details of a single game server cluster. (gameServerClusters.get)

listProjectsLocationsRealmsGameServerClusters(string $parent, array $optParams = [])

Lists game server clusters in a given project and location.

patch(string $name, GameServerCluster $postBody, array $optParams = [])

Patches a single game server cluster. (gameServerClusters.patch)

previewCreate(string $parent, GameServerCluster $postBody, array $optParams = [])

Previews creation of a new game server cluster in a given project and location. (gameServerClusters.previewCreate)

previewDelete(string $name, array $optParams = [])

Previews deletion of a single game server cluster.

previewUpdate(string $name, GameServerCluster $postBody, array $optParams = [])

Previews updating a GameServerCluster. (gameServerClusters.previewUpdate)

Details

Operation create(string $parent, GameServerCluster $postBody, array $optParams = [])

Creates a new game server cluster in a given project and location.

(gameServerClusters.create)

Parameters

string $parent

Required. The parent resource name, in the following form: projects/{project}/locations/{locationId}/realms/{realmId}.

GameServerCluster $postBody
array $optParams

Optional parameters.

Return Value

Operation

Operation delete(string $name, array $optParams = [])

Deletes a single game server cluster. (gameServerClusters.delete)

Parameters

string $name

Required. The name of the game server cluster to delete, in the following form: projects/{project}/locations/{locationId}/gameServerC lusters/{gameServerClusterId}.

array $optParams

Optional parameters.

Return Value

Operation

GameServerCluster get(string $name, array $optParams = [])

Gets details of a single game server cluster. (gameServerClusters.get)

Parameters

string $name

Required. The name of the game server cluster to retrieve, in the following form: projects/{project}/locations/{locationId}/r ealms/{realmId}/gameServerClusters/{gameServerClusterId}.

array $optParams

Optional parameters.

Return Value

GameServerCluster

ListGameServerClustersResponse listProjectsLocationsRealmsGameServerClusters(string $parent, array $optParams = [])

Lists game server clusters in a given project and location.

(gameServerClusters.listProjectsLocationsRealmsGameServerClusters)

Parameters

string $parent

Required. The parent resource name, in the following form: projects/{project}/locations/{locationId}/realms/{realmId}.

array $optParams

Optional parameters.

Return Value

ListGameServerClustersResponse

Operation patch(string $name, GameServerCluster $postBody, array $optParams = [])

Patches a single game server cluster. (gameServerClusters.patch)

Parameters

string $name

Required. The resource name of the game server cluster, in the following form: projects/{project}/locations/{locationId}/realms/{rea lmId}/gameServerClusters/{gameServerClusterId}. For example, projects/my- project/locations/global/realms/zanzibar/gameServerClusters/my-gke-cluster.

GameServerCluster $postBody
array $optParams

Optional parameters.

Return Value

Operation

PreviewCreateGameServerClusterResponse previewCreate(string $parent, GameServerCluster $postBody, array $optParams = [])

Previews creation of a new game server cluster in a given project and location. (gameServerClusters.previewCreate)

Parameters

string $parent

Required. The parent resource name, in the following form: projects/{project}/locations/{locationId}/realms/{realmId}.

GameServerCluster $postBody
array $optParams

Optional parameters.

Return Value

PreviewCreateGameServerClusterResponse

PreviewDeleteGameServerClusterResponse previewDelete(string $name, array $optParams = [])

Previews deletion of a single game server cluster.

(gameServerClusters.previewDelete)

Parameters

string $name

Required. The name of the game server cluster to delete, in the following form: projects/{project}/locations/{locationId}/gameServerC lusters/{gameServerClusterId}.

array $optParams

Optional parameters.

Return Value

PreviewDeleteGameServerClusterResponse

PreviewUpdateGameServerClusterResponse previewUpdate(string $name, GameServerCluster $postBody, array $optParams = [])

Previews updating a GameServerCluster. (gameServerClusters.previewUpdate)

Parameters

string $name

Required. The resource name of the game server cluster, in the following form: projects/{project}/locations/{locationId}/realms/{rea lmId}/gameServerClusters/{gameServerClusterId}. For example, projects/my- project/locations/global/realms/zanzibar/gameServerClusters/my-gke-cluster.

GameServerCluster $postBody
array $optParams

Optional parameters.

Return Value

PreviewUpdateGameServerClusterResponse