Class: Google::Apis::GameservicesV1::DeployedFleet

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

Agones fleet specification and details.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#fleetString

The name of the Agones fleet. Corresponds to the JSON property fleet

Returns:

  • (String)


403
404
405
# File 'lib/google/apis/gameservices_v1/classes.rb', line 403

def fleet
  @fleet
end

#fleet_specString

The fleet spec retrieved from the Agones fleet. Corresponds to the JSON property fleetSpec

Returns:

  • (String)


408
409
410
# File 'lib/google/apis/gameservices_v1/classes.rb', line 408

def fleet_spec
  @fleet_spec
end

#spec_sourceGoogle::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

#statusGoogle::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