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.



2303
2304
2305
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2303

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)


2285
2286
2287
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2285

def cluster_name
  @cluster_name
end

#membership_specGoogle::Apis::GkehubV1beta::PolicyControllerMembershipSpec

Policy Controller: Configuration for a single cluster. Intended to parallel the PolicyController CR. Corresponds to the JSON property membershipSpec



2291
2292
2293
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2291

def membership_spec
  @membership_spec
end

#policy_controller_hub_stateGoogle::Apis::GkehubV1beta::PolicyControllerHubState

State of the Policy Controller. Corresponds to the JSON property policyControllerHubState



2296
2297
2298
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2296

def policy_controller_hub_state
  @policy_controller_hub_state
end

#stateString

The lifecycle state Policy Controller is in. Corresponds to the JSON property state

Returns:

  • (String)


2301
2302
2303
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2301

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2308
2309
2310
2311
2312
2313
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2308

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