Class: Google::Apis::GameservicesV1::DeployedFleetStatus
- Inherits:
-
Object
- Object
- Google::Apis::GameservicesV1::DeployedFleetStatus
- 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
DeployedFleetStatus has details about the Agones fleets such as how many are running, how many 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.
523 524 525 |
# File 'generated/google/apis/gameservices_v1/classes.rb', line 523 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
504 505 506 |
# File 'generated/google/apis/gameservices_v1/classes.rb', line 504 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
509 510 511 |
# File 'generated/google/apis/gameservices_v1/classes.rb', line 509 def ready_replicas @ready_replicas end |
#replicas ⇒ Fixnum
The total number of current GameServer replicas in this fleet.
Corresponds to the JSON property replicas
514 515 516 |
# File 'generated/google/apis/gameservices_v1/classes.rb', line 514 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
521 522 523 |
# File 'generated/google/apis/gameservices_v1/classes.rb', line 521 def reserved_replicas @reserved_replicas end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
528 529 530 531 532 533 |
# File 'generated/google/apis/gameservices_v1/classes.rb', line 528 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 |