Class: Google::Apis::GkehubV2alpha::PolicyControllerSpec
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV2alpha::PolicyControllerSpec
- 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
-
#policy_controller_hub_config ⇒ Google::Apis::GkehubV2alpha::PolicyControllerHubConfig
Configuration for Policy Controller Corresponds to the JSON property
policyControllerHubConfig
. -
#version ⇒ String
Version of Policy Controller installed.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PolicyControllerSpec
constructor
A new instance of PolicyControllerSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PolicyControllerSpec
Returns a new instance of PolicyControllerSpec.
2890 2891 2892 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 2890 def initialize(**args) update!(**args) end |
Instance Attribute Details
#policy_controller_hub_config ⇒ Google::Apis::GkehubV2alpha::PolicyControllerHubConfig
Configuration for Policy Controller
Corresponds to the JSON property policyControllerHubConfig
2883 2884 2885 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 2883 def policy_controller_hub_config @policy_controller_hub_config end |
#version ⇒ String
Version of Policy Controller installed.
Corresponds to the JSON property version
2888 2889 2890 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 2888 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2895 2896 2897 2898 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 2895 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 |