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.



807
808
809
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 807

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

Instance Attribute Details

#create_timeString

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

Returns:

  • (String)


770
771
772
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 770

def create_time
  @create_time
end

#descriptionString

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

Returns:

  • (String)


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

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



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

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


787
788
789
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 787

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)


795
796
797
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 795

def name
  @name
end

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

The autoscaling settings. Corresponds to the JSON property scalingConfigs



800
801
802
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 800

def scaling_configs
  @scaling_configs
end

#update_timeString

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

Returns:

  • (String)


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

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



812
813
814
815
816
817
818
819
820
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 812

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