Class: Google::Apis::ClouddeployV1::AnthosCluster

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 an Anthos Cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AnthosCluster

Returns a new instance of AnthosCluster.



36
37
38
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 36

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

Instance Attribute Details

#membershipString

Membership of the GKE Hub-registered cluster to which to apply the Skaffold configuration. Format is projects/project/locations/location/memberships/ membership_name`. Corresponds to the JSON propertymembership`

Returns:

  • (String)


34
35
36
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 34

def membership
  @membership
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



41
42
43
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 41

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