Class: Google::Apis::GkehubV1alpha::PolicycontrollerMembershipSpec

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



2816
2817
2818
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 2816

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

Instance Attribute Details

#policy_controller_hub_configGoogle::Apis::GkehubV1alpha::PolicycontrollerPolicyControllerHubConfig

Configuration for Policy Controller Corresponds to the JSON property policyControllerHubConfig



2809
2810
2811
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 2809

def policy_controller_hub_config
  @policy_controller_hub_config
end

#versionString

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

Returns:

  • (String)


2814
2815
2816
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 2814

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2821
2822
2823
2824
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 2821

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