# Cloud Gaming V1 API - Class Google::Cloud::Gaming::V1::ScalingConfig (v0.7.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.7.0 (latest)](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gaming-v1/latest/Google-Cloud-Gaming-V1-ScalingConfig)
- [0.6.0](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gaming-v1/0.6.0/Google-Cloud-Gaming-V1-ScalingConfig)
- [0.5.0](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gaming-v1/0.5.0/Google-Cloud-Gaming-V1-ScalingConfig)
- [0.4.4](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gaming-v1/0.4.4/Google-Cloud-Gaming-V1-ScalingConfig)
Reference documentation and code samples for the Cloud Gaming V1 API class Google::Cloud::Gaming::V1::ScalingConfig.

Autoscaling config for an Agones fleet.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #fleet_autoscaler_spec

    def fleet_autoscaler_spec() -> ::String

**Returns**

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

### #fleet_autoscaler_spec=

    def fleet_autoscaler_spec=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Agones fleet autoscaler spec. Example spec: https://agones.dev/site/docs/reference/fleetautoscaler/
**Returns**

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

### #name

    def name() -> ::String

**Returns**

- (::String) --- Required. The name of the Scaling Config

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The name of the Scaling Config
**Returns**

- (::String) --- Required. The name of the Scaling Config

### #schedules

    def schedules() -> ::Array<::Google::Cloud::Gaming::V1::Schedule>

**Returns**

- (::Array\<[::Google::Cloud::Gaming::V1::Schedule](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gaming-v1/latest/Google-Cloud-Gaming-V1-Schedule)\>) --- The schedules to which this Scaling Config applies.

### #schedules=

    def schedules=(value) -> ::Array<::Google::Cloud::Gaming::V1::Schedule>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Gaming::V1::Schedule](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gaming-v1/latest/Google-Cloud-Gaming-V1-Schedule)\>) --- The schedules to which this Scaling Config applies.
**Returns**

- (::Array\<[::Google::Cloud::Gaming::V1::Schedule](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gaming-v1/latest/Google-Cloud-Gaming-V1-Schedule)\>) --- The schedules to which this Scaling Config applies.

### #selectors

    def selectors() -> ::Array<::Google::Cloud::Gaming::V1::LabelSelector>

**Returns**

- (::Array\<[::Google::Cloud::Gaming::V1::LabelSelector](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gaming-v1/latest/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.

### #selectors=

    def selectors=(value) -> ::Array<::Google::Cloud::Gaming::V1::LabelSelector>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Gaming::V1::LabelSelector](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gaming-v1/latest/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.
**Returns**

- (::Array\<[::Google::Cloud::Gaming::V1::LabelSelector](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gaming-v1/latest/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.