Class: Google::Apis::GameservicesV1::TargetFleetAutoscaler
- Inherits:
-
Object
- Object
- Google::Apis::GameservicesV1::TargetFleetAutoscaler
- 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
Target Agones autoscaler policy reference.
Instance Attribute Summary collapse
-
#name ⇒ String
The name of the Agones autoscaler.
-
#spec_source ⇒ Google::Apis::GameservicesV1::SpecSource
Encapsulates Agones fleet spec and Agones autoscaler spec sources.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TargetFleetAutoscaler
constructor
A new instance of TargetFleetAutoscaler.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TargetFleetAutoscaler
Returns a new instance of TargetFleetAutoscaler.
2147 2148 2149 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 2147 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
The name of the Agones autoscaler.
Corresponds to the JSON property name
2140 2141 2142 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 2140 def name @name end |
#spec_source ⇒ Google::Apis::GameservicesV1::SpecSource
Encapsulates Agones fleet spec and Agones autoscaler spec sources.
Corresponds to the JSON property specSource
2145 2146 2147 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 2145 def spec_source @spec_source end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2152 2153 2154 2155 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 2152 def update!(**args) @name = args[:name] if args.key?(:name) @spec_source = args[:spec_source] if args.key?(:spec_source) end |