Class: Google::Apis::GameservicesV1beta::GameServerCluster

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 cluster resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GameServerCluster

Returns a new instance of GameServerCluster.



714
715
716
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 714

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

Instance Attribute Details

#cluster_stateGoogle::Apis::GameservicesV1beta::KubernetesClusterState

The state of the Kubernetes cluster. Corresponds to the JSON property clusterState



672
673
674
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 672

def cluster_state
  @cluster_state
end

#connection_infoGoogle::Apis::GameservicesV1beta::GameServerClusterConnectionInfo

The game server cluster connection information. Corresponds to the JSON property connectionInfo



677
678
679
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 677

def connection_info
  @connection_info
end

#create_timeString

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

Returns:

  • (String)


682
683
684
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 682

def create_time
  @create_time
end

#descriptionString

Human readable description of the cluster. Corresponds to the JSON property description

Returns:

  • (String)


687
688
689
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 687

def description
  @description
end

#etagString

Used to perform consistent read-modify-write updates. If not set, a blind " overwrite" update happens. Corresponds to the JSON property etag

Returns:

  • (String)


693
694
695
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 693

def etag
  @etag
end

#labelsHash<String,String>

The labels associated with this game server cluster. Each label is a key-value pair. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


699
700
701
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 699

def labels
  @labels
end

#nameString

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 propertyname`

Returns:

  • (String)


707
708
709
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 707

def name
  @name
end

#update_timeString

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

Returns:

  • (String)


712
713
714
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 712

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



719
720
721
722
723
724
725
726
727
728
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 719

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