Class: Google::Apis::ClouddeployV1::GkeCluster

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

Overview

Information specifying a GKE Cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GkeCluster

Returns a new instance of GkeCluster.



586
587
588
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 586

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

Instance Attribute Details

#clusterString

Information specifying a GKE Cluster. Format is projects/project_id/ locations/location_id/clusters/cluster_id. Corresponds to the JSON propertycluster`

Returns:

  • (String)


584
585
586
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 584

def cluster
  @cluster
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



591
592
593
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 591

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