Class: Google::Apis::ClouddeployV1::AnthosCluster
- Inherits:
-
Object
- Object
- Google::Apis::ClouddeployV1::AnthosCluster
- 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
-
#membership ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AnthosCluster
constructor
A new instance of AnthosCluster.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#membership ⇒ String
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 property
membership`
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 |