Class: Google::Apis::GameservicesV1::SpecSource
- Inherits:
-
Object
- Object
- Google::Apis::GameservicesV1::SpecSource
- 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
-
#game_server_config_name ⇒ String
The game server config resource.
-
#name ⇒ String
The name of the Agones leet config or Agones scaling config used to derive the Agones fleet or Agones autoscaler spec.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SpecSource
constructor
A new instance of SpecSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SpecSource
Returns a new instance of SpecSource.
2031 2032 2033 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 2031 def initialize(**args) update!(**args) end |
Instance Attribute Details
#game_server_config_name ⇒ String
The game server config resource. Uses the form: projects/project/locations/
location/gameServerDeployments/deployment_id/configs/config_id`.
Corresponds to the JSON propertygameServerConfigName`
2023 2024 2025 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 2023 def game_server_config_name @game_server_config_name end |
#name ⇒ String
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
2029 2030 2031 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 2029 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2036 2037 2038 2039 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 2036 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 |