Class: Google::Apis::GkehubV2alpha::PolicyControllerSpec

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

Returns a new instance of PolicyControllerSpec.



2998
2999
3000
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 2998

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

Instance Attribute Details

#policy_controller_hub_configGoogle::Apis::GkehubV2alpha::PolicyControllerHubConfig

Configuration for Policy Controller Corresponds to the JSON property policyControllerHubConfig



2991
2992
2993
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 2991

def policy_controller_hub_config
  @policy_controller_hub_config
end

#versionString

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

Returns:

  • (String)


2996
2997
2998
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 2996

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3003
3004
3005
3006
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 3003

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