Class: Google::Apis::GkehubV1::MembershipFeatureState

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

MembershipFeatureState contains Feature status information for a single Membership.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MembershipFeatureState

Returns a new instance of MembershipFeatureState.



1740
1741
1742
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1740

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

Instance Attribute Details

#configmanagementGoogle::Apis::GkehubV1::ConfigManagementMembershipState

Anthos Config Management: State for a single cluster. Corresponds to the JSON property configmanagement



1731
1732
1733
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1731

def configmanagement
  @configmanagement
end

#stateGoogle::Apis::GkehubV1::FeatureState

FeatureState describes the high-level state of a Feature. It may be used to describe a Feature's state at the environ-level, or per-membershop, depending on the context. Corresponds to the JSON property state



1738
1739
1740
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1738

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1745
1746
1747
1748
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1745

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