class Google::Apis::GkehubV1::ConfigManagementPolicyController

Configuration for Policy Controller

Attributes

audit_interval_seconds[RW]

Sets the interval for Policy Controller Audit Scans (in seconds). When set to 0, this disables audit functionality altogether. Corresponds to the JSON property `auditIntervalSeconds` @return [Fixnum]

enabled[RW]

Enables the installation of Policy Controller. If false, the rest of PolicyController fields take no effect. Corresponds to the JSON property `enabled` @return [Boolean]

enabled?[RW]

Enables the installation of Policy Controller. If false, the rest of PolicyController fields take no effect. Corresponds to the JSON property `enabled` @return [Boolean]

exemptable_namespaces[RW]

The set of namespaces that are excluded from Policy Controller checks. Namespaces do not need to currently exist on the cluster. Corresponds to the JSON property `exemptableNamespaces` @return [Array<String>]

log_denies_enabled[RW]

Logs all denies and dry run failures. Corresponds to the JSON property `logDeniesEnabled` @return [Boolean]

log_denies_enabled?[RW]

Logs all denies and dry run failures. Corresponds to the JSON property `logDeniesEnabled` @return [Boolean]

referential_rules_enabled[RW]

Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated. Corresponds to the JSON property `referentialRulesEnabled` @return [Boolean]

referential_rules_enabled?[RW]

Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated. Corresponds to the JSON property `referentialRulesEnabled` @return [Boolean]

template_library_installed[RW]

Installs the default template library along with Policy Controller. Corresponds to the JSON property `templateLibraryInstalled` @return [Boolean]

template_library_installed?[RW]

Installs the default template library along with Policy Controller. Corresponds to the JSON property `templateLibraryInstalled` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/gkehub_v1/classes.rb, line 878
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/gkehub_v1/classes.rb, line 883
def update!(**args)
  @audit_interval_seconds = args[:audit_interval_seconds] if args.key?(:audit_interval_seconds)
  @enabled = args[:enabled] if args.key?(:enabled)
  @exemptable_namespaces = args[:exemptable_namespaces] if args.key?(:exemptable_namespaces)
  @log_denies_enabled = args[:log_denies_enabled] if args.key?(:log_denies_enabled)
  @referential_rules_enabled = args[:referential_rules_enabled] if args.key?(:referential_rules_enabled)
  @template_library_installed = args[:template_library_installed] if args.key?(:template_library_installed)
end