Class: Google::Apis::GkehubV1::PolicyControllerPolicyControllerHubState

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



2406
2407
2408
# File 'lib/google/apis/gkehub_v1/classes.rb', line 2406

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>)


2399
2400
2401
# File 'lib/google/apis/gkehub_v1/classes.rb', line 2399

def deployment_states
  @deployment_states
end

#versionGoogle::Apis::GkehubV1::PolicyControllerPolicyControllerHubVersion

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



2404
2405
2406
# File 'lib/google/apis/gkehub_v1/classes.rb', line 2404

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2411
2412
2413
2414
# File 'lib/google/apis/gkehub_v1/classes.rb', line 2411

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