Class: Google::Apis::GameservicesV1::TargetFleet
- Inherits:
-
Object
- Object
- Google::Apis::GameservicesV1::TargetFleet
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/gameservices_v1/classes.rb,
generated/google/apis/gameservices_v1/representations.rb,
generated/google/apis/gameservices_v1/representations.rb
Overview
Target Agones fleet specification.
Instance Attribute Summary collapse
-
#name ⇒ String
The name of the Agones fleet.
-
#spec_source ⇒ Google::Apis::GameservicesV1::SpecSource
Encapsulates Agones fleet spec and Agones autoscaler spec sources.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TargetFleet
constructor
A new instance of TargetFleet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TargetFleet
Returns a new instance of TargetFleet.
2061 2062 2063 |
# File 'generated/google/apis/gameservices_v1/classes.rb', line 2061 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
The name of the Agones fleet.
Corresponds to the JSON property name
2054 2055 2056 |
# File 'generated/google/apis/gameservices_v1/classes.rb', line 2054 def name @name end |
#spec_source ⇒ Google::Apis::GameservicesV1::SpecSource
Encapsulates Agones fleet spec and Agones autoscaler spec sources.
Corresponds to the JSON property specSource
2059 2060 2061 |
# File 'generated/google/apis/gameservices_v1/classes.rb', line 2059 def spec_source @spec_source end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2066 2067 2068 2069 |
# File 'generated/google/apis/gameservices_v1/classes.rb', line 2066 def update!(**args) @name = args[:name] if args.key?(:name) @spec_source = args[:spec_source] if args.key?(:spec_source) end |