Class: Google::Apis::GameservicesV1::DeployedFleetStatus

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_replicasFixnum

The number of GameServer replicas in the ALLOCATED state in this fleet. Corresponds to the JSON property allocatedReplicas

Returns:

  • (Fixnum)


498
499
500
# File 'lib/google/apis/gameservices_v1/classes.rb', line 498

def allocated_replicas
  @allocated_replicas
end

#ready_replicasFixnum

The number of GameServer replicas in the READY state in this fleet. Corresponds to the JSON property readyReplicas

Returns:

  • (Fixnum)


503
504
505
# File 'lib/google/apis/gameservices_v1/classes.rb', line 503

def ready_replicas
  @ready_replicas
end

#replicasFixnum

The total number of current GameServer replicas in this fleet. Corresponds to the JSON property replicas

Returns:

  • (Fixnum)


508
509
510
# File 'lib/google/apis/gameservices_v1/classes.rb', line 508

def replicas
  @replicas
end

#reserved_replicasFixnum

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

Returns:

  • (Fixnum)


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