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

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

A game server config resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GameServerConfig

Returns a new instance of GameServerConfig.



817
818
819
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 817

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

Instance Attribute Details

#create_timeString

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

Returns:

  • (String)


780
781
782
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 780

def create_time
  @create_time
end

#descriptionString

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

Returns:

  • (String)


785
786
787
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 785

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



791
792
793
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 791

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>)


797
798
799
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 797

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)


805
806
807
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 805

def name
  @name
end

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

The autoscaling settings. Corresponds to the JSON property scalingConfigs



810
811
812
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 810

def scaling_configs
  @scaling_configs
end

#update_timeString

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

Returns:

  • (String)


815
816
817
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 815

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



822
823
824
825
826
827
828
829
830
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 822

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