Class: Google::Apis::GameservicesV1::GameServerConfig
- Inherits:
-
Object
- Object
- Google::Apis::GameservicesV1::GameServerConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gameservices_v1/classes.rb,
lib/google/apis/gameservices_v1/representations.rb,
lib/google/apis/gameservices_v1/representations.rb
Overview
A game server config resource.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
The description of the game server config.
-
#fleet_configs ⇒ Array<Google::Apis::GameservicesV1::FleetConfig>
FleetConfig contains a list of Agones fleet specs.
-
#labels ⇒ Hash<String,String>
The labels associated with this game server config.
-
#name ⇒ String
The resource name of the game server config, in the following form:
projects/
project/locations/
locationId/gameServerDeployments/
deploymentId/configs/
configId``. -
#scaling_configs ⇒ Array<Google::Apis::GameservicesV1::ScalingConfig>
The autoscaling settings.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GameServerConfig
constructor
A new instance of GameServerConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GameServerConfig
Returns a new instance of GameServerConfig.
801 802 803 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 801 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The creation time.
Corresponds to the JSON property createTime
764 765 766 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 764 def create_time @create_time end |
#description ⇒ String
The description of the game server config.
Corresponds to the JSON property description
769 770 771 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 769 def description @description end |
#fleet_configs ⇒ Array<Google::Apis::GameservicesV1::FleetConfig>
FleetConfig contains a list of Agones fleet specs. Only one FleetConfig is
allowed.
Corresponds to the JSON property fleetConfigs
775 776 777 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 775 def fleet_configs @fleet_configs end |
#labels ⇒ Hash<String,String>
The labels associated with this game server config. Each label is a key-value
pair.
Corresponds to the JSON property labels
781 782 783 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 781 def labels @labels end |
#name ⇒ String
The resource name of the game server config, in the following form: projects/
project/locations/
locationId/gameServerDeployments/
deploymentId/configs/
configId`. For example,
projects/my-project/locations/global/
gameServerDeployments/my-game/configs/my-config.
Corresponds to the JSON property
name`
789 790 791 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 789 def name @name end |
#scaling_configs ⇒ Array<Google::Apis::GameservicesV1::ScalingConfig>
The autoscaling settings.
Corresponds to the JSON property scalingConfigs
794 795 796 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 794 def scaling_configs @scaling_configs end |
#update_time ⇒ String
Output only. The last-modified time.
Corresponds to the JSON property updateTime
799 800 801 |
# File 'lib/google/apis/gameservices_v1/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 'lib/google/apis/gameservices_v1/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 |