Class: Google::Apis::GameservicesV1beta::ScalingConfig
- Inherits:
-
Object
- Object
- Google::Apis::GameservicesV1beta::ScalingConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/gameservices_v1beta/classes.rb,
generated/google/apis/gameservices_v1beta/representations.rb,
generated/google/apis/gameservices_v1beta/representations.rb
Overview
Autoscaling config for an Agones fleet.
Instance Attribute Summary collapse
-
#fleet_autoscaler_spec ⇒ String
Required.
-
#name ⇒ String
Required.
-
#schedules ⇒ Array<Google::Apis::GameservicesV1beta::Schedule>
The schedules to which this Scaling Config applies.
-
#selectors ⇒ Array<Google::Apis::GameservicesV1beta::LabelSelector>
Labels used to identify the game server clusters to which this Agones scaling config applies.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ScalingConfig
constructor
A new instance of ScalingConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ScalingConfig
Returns a new instance of ScalingConfig.
1837 1838 1839 |
# File 'generated/google/apis/gameservices_v1beta/classes.rb', line 1837 def initialize(**args) update!(**args) end |
Instance Attribute Details
#fleet_autoscaler_spec ⇒ String
Required. Agones fleet autoscaler spec. Example spec: https://agones.dev/site/
docs/reference/fleetautoscaler/
Corresponds to the JSON property fleetAutoscalerSpec
1818 1819 1820 |
# File 'generated/google/apis/gameservices_v1beta/classes.rb', line 1818 def fleet_autoscaler_spec @fleet_autoscaler_spec end |
#name ⇒ String
Required. The name of the Scaling Config
Corresponds to the JSON property name
1823 1824 1825 |
# File 'generated/google/apis/gameservices_v1beta/classes.rb', line 1823 def name @name end |
#schedules ⇒ Array<Google::Apis::GameservicesV1beta::Schedule>
The schedules to which this Scaling Config applies.
Corresponds to the JSON property schedules
1828 1829 1830 |
# File 'generated/google/apis/gameservices_v1beta/classes.rb', line 1828 def schedules @schedules end |
#selectors ⇒ Array<Google::Apis::GameservicesV1beta::LabelSelector>
Labels used to identify the game server clusters to which this Agones scaling
config applies. A game server cluster is subject to this Agones scaling config
if its labels match any of the selector entries.
Corresponds to the JSON property selectors
1835 1836 1837 |
# File 'generated/google/apis/gameservices_v1beta/classes.rb', line 1835 def selectors @selectors end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1842 1843 1844 1845 1846 1847 |
# File 'generated/google/apis/gameservices_v1beta/classes.rb', line 1842 def update!(**args) @fleet_autoscaler_spec = args[:fleet_autoscaler_spec] if args.key?(:fleet_autoscaler_spec) @name = args[:name] if args.key?(:name) @schedules = args[:schedules] if args.key?(:schedules) @selectors = args[:selectors] if args.key?(:selectors) end |