Class: Google::Apis::GameservicesV1beta::FleetConfig
- Inherits:
-
Object
- Object
- Google::Apis::GameservicesV1beta::FleetConfig
- 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
Fleet configs for Agones.
Instance Attribute Summary collapse
-
#fleet_spec ⇒ String
Agones fleet spec.
-
#name ⇒ String
The name of the FleetConfig.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FleetConfig
constructor
A new instance of FleetConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FleetConfig
Returns a new instance of FleetConfig.
660 661 662 |
# File 'generated/google/apis/gameservices_v1beta/classes.rb', line 660 def initialize(**args) update!(**args) end |
Instance Attribute Details
#fleet_spec ⇒ String
Agones fleet spec. Example spec: https://agones.dev/site/docs/reference/fleet/
.
Corresponds to the JSON property fleetSpec
653 654 655 |
# File 'generated/google/apis/gameservices_v1beta/classes.rb', line 653 def fleet_spec @fleet_spec end |
#name ⇒ String
The name of the FleetConfig.
Corresponds to the JSON property name
658 659 660 |
# File 'generated/google/apis/gameservices_v1beta/classes.rb', line 658 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
665 666 667 668 |
# File 'generated/google/apis/gameservices_v1beta/classes.rb', line 665 def update!(**args) @fleet_spec = args[:fleet_spec] if args.key?(:fleet_spec) @name = args[:name] if args.key?(:name) end |