Class: Google::Apis::GameservicesV1beta::GkeHubClusterReference

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

GkeHubClusterReference represents a reference to a Kubernetes cluster registered through GKE Hub.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GkeHubClusterReference

Returns a new instance of GkeHubClusterReference.



1011
1012
1013
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 1011

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

Instance Attribute Details

#membershipString

The full or partial name of a GKE Hub membership, using one of the following forms: * https://gkehub.googleapis.com/v1beta1/projects/project_id/ locations/global/memberships/membership_id* `projects/`project_id`/ locations/global/memberships/`membership_id * membership_id If project is not specified, the project of the GameServerCluster resource is used to generate the full name of the GKE Hub membership. Corresponds to the JSON property membership

Returns:

  • (String)


1009
1010
1011
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 1009

def membership
  @membership
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1016
1017
1018
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 1016

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