Class: Google::Apis::GameservicesV1beta::DeployedFleet

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/gameservices_v1beta/classes.rb,
generated/google/apis/gameservices_v1beta/representations.rb,
generated/google/apis/gameservices_v1beta/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.



427
428
429
# File 'generated/google/apis/gameservices_v1beta/classes.rb', line 427

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#fleetString

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

Returns:

  • (String)


409
410
411
# File 'generated/google/apis/gameservices_v1beta/classes.rb', line 409

def fleet
  @fleet
end

#fleet_specString

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

Returns:

  • (String)


414
415
416
# File 'generated/google/apis/gameservices_v1beta/classes.rb', line 414

def fleet_spec
  @fleet_spec
end

#spec_sourceGoogle::Apis::GameservicesV1beta::SpecSource

Encapsulates Agones fleet spec and Agones autoscaler spec sources. Corresponds to the JSON property specSource



419
420
421
# File 'generated/google/apis/gameservices_v1beta/classes.rb', line 419

def spec_source
  @spec_source
end

#statusGoogle::Apis::GameservicesV1beta::DeployedFleetStatus

DeployedFleetStatus has details about the Agones fleets such as how many are running, how many allocated, and so on. Corresponds to the JSON property status



425
426
427
# File 'generated/google/apis/gameservices_v1beta/classes.rb', line 425

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



432
433
434
435
436
437
# File 'generated/google/apis/gameservices_v1beta/classes.rb', line 432

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