Class: Google::Apis::GameservicesV1::PreviewCreateGameServerClusterResponse

Inherits:
Object
  • Object
show all
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

Response message for GameServerClustersService.PreviewCreateGameServerCluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PreviewCreateGameServerClusterResponse

Returns a new instance of PreviewCreateGameServerClusterResponse.



1610
1611
1612
# File 'lib/google/apis/gameservices_v1/classes.rb', line 1610

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

Instance Attribute Details

#cluster_stateGoogle::Apis::GameservicesV1::KubernetesClusterState

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



1598
1599
1600
# File 'lib/google/apis/gameservices_v1/classes.rb', line 1598

def cluster_state
  @cluster_state
end

#etagString

The ETag of the game server cluster. Corresponds to the JSON property etag

Returns:

  • (String)


1603
1604
1605
# File 'lib/google/apis/gameservices_v1/classes.rb', line 1603

def etag
  @etag
end

#target_stateGoogle::Apis::GameservicesV1::TargetState

Encapsulates the Target state. Corresponds to the JSON property targetState



1608
1609
1610
# File 'lib/google/apis/gameservices_v1/classes.rb', line 1608

def target_state
  @target_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1615
1616
1617
1618
1619
# File 'lib/google/apis/gameservices_v1/classes.rb', line 1615

def update!(**args)
  @cluster_state = args[:cluster_state] if args.key?(:cluster_state)
  @etag = args[:etag] if args.key?(:etag)
  @target_state = args[:target_state] if args.key?(:target_state)
end