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

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
Name Description
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
Type Description
string

setName

Required. The name of the Scaling Config

Parameter
Name Description
var string
Returns
Type Description
$this

getFleetAutoscalerSpec

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

Returns
Type Description
string

setFleetAutoscalerSpec

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

Parameter
Name Description
var string
Returns
Type Description
$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
Type Description
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
Name Description
var array<Google\Cloud\Gaming\V1\LabelSelector>
Returns
Type Description
$this

getSchedules

The schedules to which this Scaling Config applies.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setSchedules

The schedules to which this Scaling Config applies.

Parameter
Name Description
var array<Google\Cloud\Gaming\V1\Schedule>
Returns
Type Description
$this