Class: Google::Apis::GameservicesV1::DeployedFleetAutoscaler

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gameservices_v1/classes.rb,
lib/google/apis/gameservices_v1/representations.rb,
lib/google/apis/gameservices_v1/representations.rb

Overview

Details about the Agones autoscaler.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DeployedFleetAutoscaler

Returns a new instance of DeployedFleetAutoscaler.



453
454
455
# File 'lib/google/apis/gameservices_v1/classes.rb', line 453

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#autoscalerString

The name of the Agones autoscaler. Corresponds to the JSON property autoscaler

Returns:

  • (String)


441
442
443
# File 'lib/google/apis/gameservices_v1/classes.rb', line 441

def autoscaler
  @autoscaler
end

#fleet_autoscaler_specString

The autoscaler spec retrieved from Agones. Corresponds to the JSON property fleetAutoscalerSpec

Returns:

  • (String)


446
447
448
# File 'lib/google/apis/gameservices_v1/classes.rb', line 446

def fleet_autoscaler_spec
  @fleet_autoscaler_spec
end

#spec_sourceGoogle::Apis::GameservicesV1::SpecSource

Encapsulates Agones fleet spec and Agones autoscaler spec sources. Corresponds to the JSON property specSource



451
452
453
# File 'lib/google/apis/gameservices_v1/classes.rb', line 451

def spec_source
  @spec_source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



458
459
460
461
462
# File 'lib/google/apis/gameservices_v1/classes.rb', line 458

def update!(**args)
  @autoscaler = args[:autoscaler] if args.key?(:autoscaler)
  @fleet_autoscaler_spec = args[:fleet_autoscaler_spec] if args.key?(:fleet_autoscaler_spec)
  @spec_source = args[:spec_source] if args.key?(:spec_source)
end