Class: Google::Apis::GameservicesV1::SpecSource

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

Encapsulates Agones fleet spec and Agones autoscaler spec sources.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SpecSource

Returns a new instance of SpecSource.



2025
2026
2027
# File 'lib/google/apis/gameservices_v1/classes.rb', line 2025

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#game_server_config_nameString

The game server config resource. Uses the form: projects/project/locations/ locationId/gameServerDeployments/deploymentId/configs/configId`. Corresponds to the JSON propertygameServerConfigName`

Returns:

  • (String)


2017
2018
2019
# File 'lib/google/apis/gameservices_v1/classes.rb', line 2017

def game_server_config_name
  @game_server_config_name
end

#nameString

The name of the Agones fleet config or Agones scaling config used to derive the Agones fleet or Agones autoscaler spec. Corresponds to the JSON property name

Returns:

  • (String)


2023
2024
2025
# File 'lib/google/apis/gameservices_v1/classes.rb', line 2023

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2030
2031
2032
2033
# File 'lib/google/apis/gameservices_v1/classes.rb', line 2030

def update!(**args)
  @game_server_config_name = args[:game_server_config_name] if args.key?(:game_server_config_name)
  @name = args[:name] if args.key?(:name)
end