Class: Google::Apis::GameservicesV1::DeployedFleet
- Inherits:
-
Object
- Object
- Google::Apis::GameservicesV1::DeployedFleet
- 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
Agones fleet specification and details.
Instance Attribute Summary collapse
-
#fleet ⇒ String
The name of the Agones fleet.
-
#fleet_spec ⇒ String
The fleet spec retrieved from the Agones fleet.
-
#spec_source ⇒ Google::Apis::GameservicesV1::SpecSource
Encapsulates Agones fleet spec and Agones autoscaler spec sources.
-
#status ⇒ Google::Apis::GameservicesV1::DeployedFleetStatus
DeployedFleetStatus has details about the Agones fleets, such as how many are running, how many are allocated, and so on.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DeployedFleet
constructor
A new instance of DeployedFleet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DeployedFleet
Returns a new instance of DeployedFleet.
421 422 423 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 421 def initialize(**args) update!(**args) end |
Instance Attribute Details
#fleet ⇒ String
The name of the Agones fleet.
Corresponds to the JSON property fleet
403 404 405 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 403 def fleet @fleet end |
#fleet_spec ⇒ String
The fleet spec retrieved from the Agones fleet.
Corresponds to the JSON property fleetSpec
408 409 410 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 408 def fleet_spec @fleet_spec end |
#spec_source ⇒ Google::Apis::GameservicesV1::SpecSource
Encapsulates Agones fleet spec and Agones autoscaler spec sources.
Corresponds to the JSON property specSource
413 414 415 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 413 def spec_source @spec_source end |
#status ⇒ Google::Apis::GameservicesV1::DeployedFleetStatus
DeployedFleetStatus has details about the Agones fleets, such as how many are
running, how many are allocated, and so on.
Corresponds to the JSON property status
419 420 421 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 419 def status @status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
426 427 428 429 430 431 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 426 def update!(**args) @fleet = args[:fleet] if args.key?(:fleet) @fleet_spec = args[:fleet_spec] if args.key?(:fleet_spec) @spec_source = args[:spec_source] if args.key?(:spec_source) @status = args[:status] if args.key?(:status) end |