Class: Google::Apis::GkehubV1beta::PolicyControllerMembershipState

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gkehub_v1beta/classes.rb,
lib/google/apis/gkehub_v1beta/representations.rb,
lib/google/apis/gkehub_v1beta/representations.rb

Overview

Policy Controller: State for a single cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PolicyControllerMembershipState

Returns a new instance of PolicyControllerMembershipState.



2619
2620
2621
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2619

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

Instance Attribute Details

#component_statesHash<String,Google::Apis::GkehubV1beta::PolicyControllerOnClusterState>

Currently these include (also serving as map keys): 1. "admission" 2. "audit"

  1. "mutation" Corresponds to the JSON property componentStates


2605
2606
2607
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2605

def component_states
  @component_states
end

#content_statesHash<String,Google::Apis::GkehubV1beta::PolicyControllerOnClusterState>

The state of the template library and any bundles included in the chosen version of the manifest Corresponds to the JSON property contentStates



2611
2612
2613
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2611

def content_states
  @content_states
end

#stateString

The overall Policy Controller lifecycle state observed by the Hub Feature controller. Corresponds to the JSON property state

Returns:

  • (String)


2617
2618
2619
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2617

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2624
2625
2626
2627
2628
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2624

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