Class: Google::Apis::GameservicesV1beta::GameServerCluster
- Inherits:
-
Object
- Object
- Google::Apis::GameservicesV1beta::GameServerCluster
- 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 cluster resource.
Instance Attribute Summary collapse
-
#allocation_priority ⇒ String
Optional.
-
#connection_info ⇒ Google::Apis::GameservicesV1beta::GameServerClusterConnectionInfo
The game server cluster connection information.
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
Human readable description of the cluster.
-
#etag ⇒ String
ETag of the resource.
-
#labels ⇒ Hash<String,String>
The labels associated with this game server cluster.
-
#name ⇒ String
Required.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GameServerCluster
constructor
A new instance of GameServerCluster.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GameServerCluster
Returns a new instance of GameServerCluster.
722 723 724 |
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 722 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allocation_priority ⇒ String
Optional. The allocation priority assigned to the game server cluster. Game
server clusters receive new game server allocations based on the relative
allocation priorites set for each cluster, if the realm is configured for
multicluster allocation.
Corresponds to the JSON property allocationPriority
681 682 683 |
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 681 def allocation_priority @allocation_priority end |
#connection_info ⇒ Google::Apis::GameservicesV1beta::GameServerClusterConnectionInfo
The game server cluster connection information.
Corresponds to the JSON property connectionInfo
686 687 688 |
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 686 def connection_info @connection_info end |
#create_time ⇒ String
Output only. The creation time.
Corresponds to the JSON property createTime
691 692 693 |
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 691 def create_time @create_time end |
#description ⇒ String
Human readable description of the cluster.
Corresponds to the JSON property description
696 697 698 |
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 696 def description @description end |
#etag ⇒ String
ETag of the resource.
Corresponds to the JSON property etag
701 702 703 |
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 701 def etag @etag end |
#labels ⇒ Hash<String,String>
The labels associated with this game server cluster. Each label is a key-value
pair.
Corresponds to the JSON property labels
707 708 709 |
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 707 def labels @labels end |
#name ⇒ String
Required. The resource name of the game server cluster, in the following form:
projects/project/locations/location/realms/realm/gameServerClusters/
cluster`. For example,projects/my-project/locations/location/realms/
zanzibar/gameServerClusters/my-onprem-cluster.
Corresponds to the JSON propertyname`
715 716 717 |
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 715 def name @name end |
#update_time ⇒ String
Output only. The last-modified time.
Corresponds to the JSON property updateTime
720 721 722 |
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 720 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
727 728 729 730 731 732 733 734 735 736 |
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 727 def update!(**args) @allocation_priority = args[:allocation_priority] if args.key?(:allocation_priority) @connection_info = args[:connection_info] if args.key?(:connection_info) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @etag = args[:etag] if args.key?(:etag) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @update_time = args[:update_time] if args.key?(:update_time) end |