Class: Google::Apis::GameservicesV1::DeployedFleetStatus
- Inherits:
-
Object
- Object
- Google::Apis::GameservicesV1::DeployedFleetStatus
- 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
DeployedFleetStatus has details about the Agones fleets, such as how many are running, how many are allocated, and so on.
Instance Attribute Summary collapse
-
#allocated_replicas ⇒ Fixnum
The number of GameServer replicas in the ALLOCATED state in this fleet.
-
#ready_replicas ⇒ Fixnum
The number of GameServer replicas in the READY state in this fleet.
-
#replicas ⇒ Fixnum
The total number of current GameServer replicas in this fleet.
-
#reserved_replicas ⇒ Fixnum
The number of GameServer replicas in the RESERVED state in this fleet.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DeployedFleetStatus
constructor
A new instance of DeployedFleetStatus.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DeployedFleetStatus
Returns a new instance of DeployedFleetStatus.
517 518 519 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 517 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allocated_replicas ⇒ Fixnum
The number of GameServer replicas in the ALLOCATED state in this fleet.
Corresponds to the JSON property allocatedReplicas
498 499 500 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 498 def allocated_replicas @allocated_replicas end |
#ready_replicas ⇒ Fixnum
The number of GameServer replicas in the READY state in this fleet.
Corresponds to the JSON property readyReplicas
503 504 505 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 503 def ready_replicas @ready_replicas end |
#replicas ⇒ Fixnum
The total number of current GameServer replicas in this fleet.
Corresponds to the JSON property replicas
508 509 510 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 508 def replicas @replicas end |
#reserved_replicas ⇒ Fixnum
The number of GameServer replicas in the RESERVED state in this fleet.
Reserved instances won't be deleted on scale down, but won't cause an
autoscaler to scale up.
Corresponds to the JSON property reservedReplicas
515 516 517 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 515 def reserved_replicas @reserved_replicas end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
522 523 524 525 526 527 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 522 def update!(**args) @allocated_replicas = args[:allocated_replicas] if args.key?(:allocated_replicas) @ready_replicas = args[:ready_replicas] if args.key?(:ready_replicas) @replicas = args[:replicas] if args.key?(:replicas) @reserved_replicas = args[:reserved_replicas] if args.key?(:reserved_replicas) end |