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

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

Autoscaling config for an Agones fleet.

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

Namespace

Google \ Cloud \ Gaming \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Required. The name of the Scaling Config

↳ fleet_autoscaler_spec string

Required. Agones fleet autoscaler spec. Example spec: https://agones.dev/site/docs/reference/fleetautoscaler/

↳ selectors array<Google\Cloud\Gaming\V1\LabelSelector>

Labels used to identify the game server clusters to which this Agones scaling config applies. A game server cluster is subject to this Agones scaling config if its labels match any of the selector entries.

↳ schedules array<Google\Cloud\Gaming\V1\Schedule>

The schedules to which this Scaling Config applies.

getName

Required. The name of the Scaling Config

Returns
TypeDescription
string

setName

Required. The name of the Scaling Config

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getFleetAutoscalerSpec

Required. Agones fleet autoscaler spec. Example spec: https://agones.dev/site/docs/reference/fleetautoscaler/

Returns
TypeDescription
string

setFleetAutoscalerSpec

Required. Agones fleet autoscaler spec. Example spec: https://agones.dev/site/docs/reference/fleetautoscaler/

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSelectors

Labels used to identify the game server clusters to which this Agones scaling config applies. A game server cluster is subject to this Agones scaling config if its labels match any of the selector entries.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSelectors

Labels used to identify the game server clusters to which this Agones scaling config applies. A game server cluster is subject to this Agones scaling config if its labels match any of the selector entries.

Parameter
NameDescription
var array<Google\Cloud\Gaming\V1\LabelSelector>
Returns
TypeDescription
$this

getSchedules

The schedules to which this Scaling Config applies.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSchedules

The schedules to which this Scaling Config applies.

Parameter
NameDescription
var array<Google\Cloud\Gaming\V1\Schedule>
Returns
TypeDescription
$this