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.



1005
1006
1007
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 1005

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)


1003
1004
1005
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 1003

def membership
  @membership
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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