Class: Google::Apis::GameservicesV1::DeployedFleetAutoscaler
- Inherits:
-
Object
- Object
- Google::Apis::GameservicesV1::DeployedFleetAutoscaler
- 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
-
#autoscaler ⇒ String
The name of the Agones autoscaler.
-
#fleet_autoscaler_spec ⇒ String
The autoscaler spec retrieved from Agones.
-
#spec_source ⇒ Google::Apis::GameservicesV1::SpecSource
Encapsulates Agones fleet spec and Agones autoscaler spec sources.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DeployedFleetAutoscaler
constructor
A new instance of DeployedFleetAutoscaler.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#autoscaler ⇒ String
The name of the Agones autoscaler.
Corresponds to the JSON property autoscaler
441 442 443 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 441 def autoscaler @autoscaler end |
#fleet_autoscaler_spec ⇒ String
The autoscaler spec retrieved from Agones.
Corresponds to the JSON property fleetAutoscalerSpec
446 447 448 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 446 def fleet_autoscaler_spec @fleet_autoscaler_spec end |
#spec_source ⇒ Google::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 |