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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/gameservices_v1/classes.rb,
generated/google/apis/gameservices_v1/representations.rb,
generated/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.



459
460
461
# File 'generated/google/apis/gameservices_v1/classes.rb', line 459

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

Instance Attribute Details

#autoscalerString

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

Returns:

  • (String)


447
448
449
# File 'generated/google/apis/gameservices_v1/classes.rb', line 447

def autoscaler
  @autoscaler
end

#fleet_autoscaler_specString

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

Returns:

  • (String)


452
453
454
# File 'generated/google/apis/gameservices_v1/classes.rb', line 452

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



457
458
459
# File 'generated/google/apis/gameservices_v1/classes.rb', line 457

def spec_source
  @spec_source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



464
465
466
467
468
# File 'generated/google/apis/gameservices_v1/classes.rb', line 464

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