Class: Google::Apis::GameservicesV1beta::TargetFleet
- Inherits:
-
Object
- Object
- Google::Apis::GameservicesV1beta::TargetFleet
- 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
-
#name ⇒ String
The name of the Agones fleet.
-
#spec_source ⇒ Google::Apis::GameservicesV1beta::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.
2102 2103 2104 |
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 2102 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
The name of the Agones fleet.
Corresponds to the JSON property name
2095 2096 2097 |
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 2095 def name @name end |
#spec_source ⇒ Google::Apis::GameservicesV1beta::SpecSource
Encapsulates Agones fleet spec and Agones autoscaler spec sources.
Corresponds to the JSON property specSource
2100 2101 2102 |
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 2100 def spec_source @spec_source end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2107 2108 2109 2110 |
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 2107 def update!(**args) @name = args[:name] if args.key?(:name) @spec_source = args[:spec_source] if args.key?(:spec_source) end |