Class: Google::Apis::GkehubV1::GkeCluster

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gkehub_v1/classes.rb,
lib/google/apis/gkehub_v1/representations.rb,
lib/google/apis/gkehub_v1/representations.rb

Overview

GkeCluster contains information specific to GKE clusters.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GkeCluster

Returns a new instance of GkeCluster.



364
365
366
# File 'lib/google/apis/gkehub_v1/classes.rb', line 364

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

Instance Attribute Details

Immutable. Self-link of the GCP resource for the GKE cluster. For example: // container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my- cluster Zonal clusters are also supported. Corresponds to the JSON property resourceLink

Returns:

  • (String)


362
363
364
# File 'lib/google/apis/gkehub_v1/classes.rb', line 362

def resource_link
  @resource_link
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



369
370
371
# File 'lib/google/apis/gkehub_v1/classes.rb', line 369

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