Class: Google::Apis::GkehubV1alpha::PolicycontrollerPolicyControllerHubState

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

State of the Policy Controller.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PolicycontrollerPolicyControllerHubState

Returns a new instance of PolicycontrollerPolicyControllerHubState.



3009
3010
3011
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 3009

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

Instance Attribute Details

#deployment_statesHash<String,String>

Map from deployment name to deployment state. Example deployments are gatekeeper-controller-manager, gatekeeper-audit deployment, and gatekeeper- mutation. Corresponds to the JSON property deploymentStates

Returns:

  • (Hash<String,String>)


3002
3003
3004
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 3002

def deployment_states
  @deployment_states
end

#versionGoogle::Apis::GkehubV1alpha::PolicycontrollerPolicyControllerHubVersion

The build version of Gatekeeper that Policy Controller is using. Corresponds to the JSON property version



3007
3008
3009
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 3007

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3014
3015
3016
3017
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 3014

def update!(**args)
  @deployment_states = args[:deployment_states] if args.key?(:deployment_states)
  @version = args[:version] if args.key?(:version)
end