Class: Google::Apis::GkehubV1beta::PolicyControllerMembershipSpec

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: Configuration for a single cluster. Intended to parallel the PolicyController CR.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PolicyControllerMembershipSpec

Returns a new instance of PolicyControllerMembershipSpec.



2264
2265
2266
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2264

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

Instance Attribute Details

#policy_controller_hub_configGoogle::Apis::GkehubV1beta::PolicyControllerHubConfig

Configuration for Policy Controller Corresponds to the JSON property policyControllerHubConfig



2257
2258
2259
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2257

def policy_controller_hub_config
  @policy_controller_hub_config
end

#versionString

Version of Policy Controller installed. Corresponds to the JSON property version

Returns:

  • (String)


2262
2263
2264
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2262

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2269
2270
2271
2272
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2269

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