Class: Google::Apis::GameservicesV1::ScalingConfig
- Inherits:
-
Object
- Object
- Google::Apis::GameservicesV1::ScalingConfig
- 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
Autoscaling config for an Agones fleet.
Instance Attribute Summary collapse
-
#fleet_autoscaler_spec ⇒ String
Required.
-
#name ⇒ String
Required.
-
#schedules ⇒ Array<Google::Apis::GameservicesV1::Schedule>
The schedules to which this scaling config applies.
-
#selectors ⇒ Array<Google::Apis::GameservicesV1::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.
1898 1899 1900 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 1898 def initialize(**args) update!(**args) end |
Instance Attribute Details
#fleet_autoscaler_spec ⇒ String
Required. Agones fleet autoscaler spec (see example spec).
Corresponds to the JSON property fleetAutoscalerSpec
1879 1880 1881 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 1879 def fleet_autoscaler_spec @fleet_autoscaler_spec end |
#name ⇒ String
Required. The name of the scaling config.
Corresponds to the JSON property name
1884 1885 1886 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 1884 def name @name end |
#schedules ⇒ Array<Google::Apis::GameservicesV1::Schedule>
The schedules to which this scaling config applies.
Corresponds to the JSON property schedules
1889 1890 1891 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 1889 def schedules @schedules end |
#selectors ⇒ Array<Google::Apis::GameservicesV1::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
1896 1897 1898 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 1896 def selectors @selectors end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1903 1904 1905 1906 1907 1908 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 1903 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 |