Class: Google::Apis::GameservicesV1beta::GameServerConfig
- Inherits:
-
Object
- Object
- Google::Apis::GameservicesV1beta::GameServerConfig
- 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
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
The description of the game server config.
-
#fleet_configs ⇒ Array<Google::Apis::GameservicesV1beta::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/location/gameServerDeployments/deployment/configs/config``. -
#scaling_configs ⇒ Array<Google::Apis::GameservicesV1beta::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.
817 818 819 |
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 817 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The creation time.
Corresponds to the JSON property createTime
780 781 782 |
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 780 def create_time @create_time end |
#description ⇒ String
The description of the game server config.
Corresponds to the JSON property description
785 786 787 |
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 785 def description @description end |
#fleet_configs ⇒ Array<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 |
#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
797 798 799 |
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 797 def labels @labels end |
#name ⇒ String
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`
805 806 807 |
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 805 def name @name end |
#scaling_configs ⇒ Array<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_time ⇒ String
Output only. The last-modified time.
Corresponds to the JSON property updateTime
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 |