Class: Google::Apis::GameservicesV1beta::SpecSource

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

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.



1964
1965
1966
# File 'generated/google/apis/gameservices_v1beta/classes.rb', line 1964

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

Instance Attribute Details

#game_server_config_nameString

The game server config resource. Uses the form: projects/project/locations/ location/gameServerDeployments/deployment_id/configs/config_id`. Corresponds to the JSON propertygameServerConfigName`

Returns:

  • (String)


1956
1957
1958
# File 'generated/google/apis/gameservices_v1beta/classes.rb', line 1956

def game_server_config_name
  @game_server_config_name
end

#nameString

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

Returns:

  • (String)


1962
1963
1964
# File 'generated/google/apis/gameservices_v1beta/classes.rb', line 1962

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1969
1970
1971
1972
# File 'generated/google/apis/gameservices_v1beta/classes.rb', line 1969

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