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

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

Instance Method Summary collapse

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_replicasFixnum

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

Returns:

  • (Fixnum)


504
505
506
# File 'generated/google/apis/gameservices_v1/classes.rb', line 504

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)


509
510
511
# File 'generated/google/apis/gameservices_v1/classes.rb', line 509

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)


514
515
516
# File 'generated/google/apis/gameservices_v1/classes.rb', line 514

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)


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