Class: Google::Apis::GameservicesV1beta::FleetConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_specString

Agones fleet spec. Example spec: https://agones.dev/site/docs/reference/fleet/ . Corresponds to the JSON property fleetSpec

Returns:

  • (String)


653
654
655
# File 'generated/google/apis/gameservices_v1beta/classes.rb', line 653

def fleet_spec
  @fleet_spec
end

#nameString

The name of the FleetConfig. Corresponds to the JSON property name

Returns:

  • (String)


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