Class: Google::Apis::GameservicesV1::TargetFleetAutoscaler

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

Target Agones autoscaler policy reference.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TargetFleetAutoscaler

Returns a new instance of TargetFleetAutoscaler.



2086
2087
2088
# File 'generated/google/apis/gameservices_v1/classes.rb', line 2086

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

Instance Attribute Details

#nameString

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

Returns:

  • (String)


2079
2080
2081
# File 'generated/google/apis/gameservices_v1/classes.rb', line 2079

def name
  @name
end

#spec_sourceGoogle::Apis::GameservicesV1::SpecSource

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



2084
2085
2086
# File 'generated/google/apis/gameservices_v1/classes.rb', line 2084

def spec_source
  @spec_source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2091
2092
2093
2094
# File 'generated/google/apis/gameservices_v1/classes.rb', line 2091

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @spec_source = args[:spec_source] if args.key?(:spec_source)
end