class Google::Apis::GameservicesV1beta::ScalingConfig

Autoscaling config for an Agones fleet.

Attributes

fleet_autoscaler_spec[RW]

Required. Agones fleet autoscaler spec. Example spec: agones.dev/site/ docs/reference/fleetautoscaler/ Corresponds to the JSON property `fleetAutoscalerSpec` @return [String]

name[RW]

Required. The name of the Scaling Config Corresponds to the JSON property `name` @return [String]

schedules[RW]

The schedules to which this Scaling Config applies. Corresponds to the JSON property `schedules` @return [Array<Google::Apis::GameservicesV1beta::Schedule>]

selectors[RW]

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. Corresponds to the JSON property `selectors` @return [Array<Google::Apis::GameservicesV1beta::LabelSelector>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/gameservices_v1beta/classes.rb, line 1945
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/gameservices_v1beta/classes.rb, line 1950
def update!(**args)
  @fleet_autoscaler_spec = args[:fleet_autoscaler_spec] if args.key?(:fleet_autoscaler_spec)
  @name = args[:name] if args.key?(:name)
  @schedules = args[:schedules] if args.key?(:schedules)
  @selectors = args[:selectors] if args.key?(:selectors)
end