Class: Google::Apis::GkehubV2::PolicyControllerSpec
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV2::PolicyControllerSpec
- 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
-
#policy_controller_hub_config ⇒ Google::Apis::GkehubV2::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.
2928 2929 2930 |
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2928 def initialize(**args) update!(**args) end |
Instance Attribute Details
#policy_controller_hub_config ⇒ Google::Apis::GkehubV2::PolicyControllerHubConfig
Configuration for Policy Controller
Corresponds to the JSON property policyControllerHubConfig
2921 2922 2923 |
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2921 def policy_controller_hub_config @policy_controller_hub_config end |
#version ⇒ String
Version of Policy Controller installed.
Corresponds to the JSON property version
2926 2927 2928 |
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2926 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2933 2934 2935 2936 |
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2933 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 |