Google Cloud Game Servers V1 Client - Class DeployedFleet (1.2.3)

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

Agones fleet specification and details.

Generated from protobuf message google.cloud.gaming.v1.DeployedFleetDetails.DeployedFleet

Namespace

Google \ Cloud \ Gaming \ V1 \ DeployedFleetDetails

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ fleet string

The name of the Agones fleet.

↳ fleet_spec string

The fleet spec retrieved from the Agones fleet.

↳ spec_source Google\Cloud\Gaming\V1\SpecSource

The source spec that is used to create the Agones fleet. The GameServerConfig resource may no longer exist in the system.

↳ status Google\Cloud\Gaming\V1\DeployedFleetDetails\DeployedFleet\DeployedFleetStatus

The current status of the Agones fleet. Includes count of game servers in various states.

getFleet

The name of the Agones fleet.

Returns
TypeDescription
string

setFleet

The name of the Agones fleet.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getFleetSpec

The fleet spec retrieved from the Agones fleet.

Returns
TypeDescription
string

setFleetSpec

The fleet spec retrieved from the Agones fleet.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSpecSource

The source spec that is used to create the Agones fleet.

The GameServerConfig resource may no longer exist in the system.

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

hasSpecSource

clearSpecSource

setSpecSource

The source spec that is used to create the Agones fleet.

The GameServerConfig resource may no longer exist in the system.

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

getStatus

The current status of the Agones fleet.

Includes count of game servers in various states.

Returns
TypeDescription
Google\Cloud\Gaming\V1\DeployedFleetDetails\DeployedFleet\DeployedFleetStatus|null

hasStatus

clearStatus

setStatus

The current status of the Agones fleet.

Includes count of game servers in various states.

Parameter
NameDescription
var Google\Cloud\Gaming\V1\DeployedFleetDetails\DeployedFleet\DeployedFleetStatus
Returns
TypeDescription
$this