Class: Google::Apis::GameservicesV1beta::GameServerConfig

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

A game server config resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GameServerConfig

Returns a new instance of GameServerConfig.



801
802
803
# File 'generated/google/apis/gameservices_v1beta/classes.rb', line 801

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

Instance Attribute Details

#create_timeString

Output only. The creation time. Corresponds to the JSON property createTime

Returns:

  • (String)


764
765
766
# File 'generated/google/apis/gameservices_v1beta/classes.rb', line 764

def create_time
  @create_time
end

#descriptionString

The description of the game server config. Corresponds to the JSON property description

Returns:

  • (String)


769
770
771
# File 'generated/google/apis/gameservices_v1beta/classes.rb', line 769

def description
  @description
end

#fleet_configsArray<Google::Apis::GameservicesV1beta::FleetConfig>

FleetConfig contains a list of Agones fleet specs. Only one FleetConfig is allowed. Corresponds to the JSON property fleetConfigs



775
776
777
# File 'generated/google/apis/gameservices_v1beta/classes.rb', line 775

def fleet_configs
  @fleet_configs
end

#labelsHash<String,String>

The labels associated with this game server config. Each label is a key-value pair. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


781
782
783
# File 'generated/google/apis/gameservices_v1beta/classes.rb', line 781

def labels
  @labels
end

#nameString

The resource name of the game server config, in the following form: projects/ project/locations/location/gameServerDeployments/deployment/configs/ config`. For example,projects/my-project/locations/global/ gameServerDeployments/my-game/configs/my-config. Corresponds to the JSON propertyname`

Returns:

  • (String)


789
790
791
# File 'generated/google/apis/gameservices_v1beta/classes.rb', line 789

def name
  @name
end

#scaling_configsArray<Google::Apis::GameservicesV1beta::ScalingConfig>

The autoscaling settings. Corresponds to the JSON property scalingConfigs



794
795
796
# File 'generated/google/apis/gameservices_v1beta/classes.rb', line 794

def scaling_configs
  @scaling_configs
end

#update_timeString

Output only. The last-modified time. Corresponds to the JSON property updateTime

Returns:

  • (String)


799
800
801
# File 'generated/google/apis/gameservices_v1beta/classes.rb', line 799

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



806
807
808
809
810
811
812
813
814
# File 'generated/google/apis/gameservices_v1beta/classes.rb', line 806

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @fleet_configs = args[:fleet_configs] if args.key?(:fleet_configs)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @scaling_configs = args[:scaling_configs] if args.key?(:scaling_configs)
  @update_time = args[:update_time] if args.key?(:update_time)
end