Class: Google::Apis::GameservicesV1::GameServerCluster
- Inherits:
-
Object
- Object
- Google::Apis::GameservicesV1::GameServerCluster
- 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 cluster resource.
Instance Attribute Summary collapse
-
#cluster_state ⇒ Google::Apis::GameservicesV1::KubernetesClusterState
The state of the Kubernetes cluster.
-
#connection_info ⇒ Google::Apis::GameservicesV1::GameServerClusterConnectionInfo
The game server cluster connection information.
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
Human readable description of the cluster.
-
#etag ⇒ String
Used to perform consistent read-modify-write updates.
-
#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.
713 714 715 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 713 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cluster_state ⇒ Google::Apis::GameservicesV1::KubernetesClusterState
The state of the Kubernetes cluster.
Corresponds to the JSON property clusterState
671 672 673 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 671 def cluster_state @cluster_state end |
#connection_info ⇒ Google::Apis::GameservicesV1::GameServerClusterConnectionInfo
The game server cluster connection information.
Corresponds to the JSON property connectionInfo
676 677 678 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 676 def connection_info @connection_info end |
#create_time ⇒ String
Output only. The creation time.
Corresponds to the JSON property createTime
681 682 683 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 681 def create_time @create_time end |
#description ⇒ String
Human readable description of the cluster.
Corresponds to the JSON property description
686 687 688 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 686 def description @description end |
#etag ⇒ String
Used to perform consistent read-modify-write updates. If not set, a blind "
overwrite" update happens.
Corresponds to the JSON property etag
692 693 694 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 692 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
698 699 700 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 698 def labels @labels end |
#name ⇒ String
Required. The resource name of the game server cluster, in the following form:
projects/
project/locations/
locationId/realms/
realmId/gameServerClusters/
gameServerClusterId`. For example,
projects/my-project/locations/global/
realms/zanzibar/gameServerClusters/my-gke-cluster.
Corresponds to the JSON property
name`
706 707 708 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 706 def name @name end |
#update_time ⇒ String
Output only. The last-modified time.
Corresponds to the JSON property updateTime
711 712 713 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 711 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
718 719 720 721 722 723 724 725 726 727 |
# File 'lib/google/apis/gameservices_v1/classes.rb', line 718 def update!(**args) @cluster_state = args[:cluster_state] if args.key?(:cluster_state) @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 |