Class: Google::Apis::GameservicesV1::DeployedFleetAutoscaler
- Inherits:
-
Object
- Object
- Google::Apis::GameservicesV1::DeployedFleetAutoscaler
- 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
-
#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.
459 460 461 |
# File 'generated/google/apis/gameservices_v1/classes.rb', line 459 def initialize(**args) update!(**args) end |
Instance Attribute Details
#autoscaler ⇒ String
The name of the Agones autoscaler.
Corresponds to the JSON property autoscaler
447 448 449 |
# File 'generated/google/apis/gameservices_v1/classes.rb', line 447 def autoscaler @autoscaler end |
#fleet_autoscaler_spec ⇒ String
The autoscaler spec retrieved from Agones.
Corresponds to the JSON property fleetAutoscalerSpec
452 453 454 |
# File 'generated/google/apis/gameservices_v1/classes.rb', line 452 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
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 |