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.



1764
1765
1766
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1764

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



1755
1756
1757
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1755

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



1762
1763
1764
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1762

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1769
1770
1771
1772
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1769

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