Class: Google::Apis::GameservicesV1beta::TargetFleet

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gameservices_v1beta/classes.rb,
lib/google/apis/gameservices_v1beta/representations.rb,
lib/google/apis/gameservices_v1beta/representations.rb

Overview

Target Agones fleet specification.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TargetFleet

Returns a new instance of TargetFleet.



2169
2170
2171
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 2169

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

Instance Attribute Details

#nameString

The name of the Agones fleet. Corresponds to the JSON property name

Returns:

  • (String)


2162
2163
2164
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 2162

def name
  @name
end

#spec_sourceGoogle::Apis::GameservicesV1beta::SpecSource

Encapsulates Agones fleet spec and Agones autoscaler spec sources. Corresponds to the JSON property specSource



2167
2168
2169
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 2167

def spec_source
  @spec_source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2174
2175
2176
2177
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 2174

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