Class: Google::Apis::GkehubV2::PolicyControllerSpec

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



3029
3030
3031
# File 'lib/google/apis/gkehub_v2/classes.rb', line 3029

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

Instance Attribute Details

#policy_controller_hub_configGoogle::Apis::GkehubV2::PolicyControllerHubConfig

Configuration for Policy Controller Corresponds to the JSON property policyControllerHubConfig



3022
3023
3024
# File 'lib/google/apis/gkehub_v2/classes.rb', line 3022

def policy_controller_hub_config
  @policy_controller_hub_config
end

#versionString

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

Returns:

  • (String)


3027
3028
3029
# File 'lib/google/apis/gkehub_v2/classes.rb', line 3027

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3034
3035
3036
3037
# File 'lib/google/apis/gkehub_v2/classes.rb', line 3034

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