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.



2565
2566
2567
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2565

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

Instance Attribute Details

#cluster_nameString

The user-defined name for the cluster used by ClusterSelectors to group clusters together. This should match Membership's membership_name, unless the user installed PC on the cluster manually prior to enabling the PC hub feature. Unique within a Policy Controller installation. Corresponds to the JSON property clusterName

Returns:

  • (String)


2551
2552
2553
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2551

def cluster_name
  @cluster_name
end

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

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

  1. "mutation" 4. "constraint template library" Corresponds to the JSON property componentStates


2557
2558
2559
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2557

def component_states
  @component_states
end

#stateString

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

Returns:

  • (String)


2563
2564
2565
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2563

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2570
2571
2572
2573
2574
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2570

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