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.



222
223
224
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 222

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

Instance Attribute Details

#membershipString

Optional. 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)


220
221
222
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 220

def membership
  @membership
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



227
228
229
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 227

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