Class: Google::Apis::GameservicesV1beta::TargetFleetAutoscaler

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



2127
2128
2129
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 2127

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

Instance Attribute Details

#nameString

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

Returns:

  • (String)


2120
2121
2122
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 2120

def name
  @name
end

#spec_sourceGoogle::Apis::GameservicesV1beta::SpecSource

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



2125
2126
2127
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 2125

def spec_source
  @spec_source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2132
2133
2134
2135
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 2132

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