Class: Google::Apis::GkehubV1alpha::PolicyControllerMembershipState

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gkehub_v1alpha/classes.rb,
lib/google/apis/gkehub_v1alpha/representations.rb,
lib/google/apis/gkehub_v1alpha/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.



4346
4347
4348
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 4346

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

Instance Attribute Details

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

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

  1. "mutation" Corresponds to the JSON property componentStates


4327
4328
4329
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 4327

def component_states
  @component_states
end

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

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



4333
4334
4335
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 4333

def content_states
  @content_states
end

#policy_content_stateGoogle::Apis::GkehubV1alpha::PolicyControllerPolicyContentState

The state of the policy controller policy content Corresponds to the JSON property policyContentState



4338
4339
4340
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 4338

def policy_content_state
  @policy_content_state
end

#stateString

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

Returns:

  • (String)


4344
4345
4346
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 4344

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4351
4352
4353
4354
4355
4356
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 4351

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