Reference documentation and code samples for the Google Cloud Gke Hub V1 Client class PolicyController.
Configuration for Policy Controller
Generated from protobuf message google.cloud.gkehub.configmanagement.v1.PolicyController
Namespace
Google \ Cloud \ GkeHub \ ConfigManagement \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ enabled
bool
Enables the installation of Policy Controller. If false, the rest of PolicyController fields take no effect.
↳ template_library_installed
bool
Installs the default template library along with Policy Controller.
↳ audit_interval_seconds
int|string
Sets the interval for Policy Controller Audit Scans (in seconds). When set to 0, this disables audit functionality altogether.
↳ exemptable_namespaces
array
The set of namespaces that are excluded from Policy Controller checks. Namespaces do not need to currently exist on the cluster.
↳ referential_rules_enabled
bool
Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated.
↳ log_denies_enabled
bool
Logs all denies and dry run failures.
getEnabled
Enables the installation of Policy Controller.
If false, the rest of PolicyController fields take no effect.
bool
setEnabled
Enables the installation of Policy Controller.
If false, the rest of PolicyController fields take no effect.
var
bool
$this
getTemplateLibraryInstalled
Installs the default template library along with Policy Controller.
bool
hasTemplateLibraryInstalled
clearTemplateLibraryInstalled
setTemplateLibraryInstalled
Installs the default template library along with Policy Controller.
var
bool
$this
getAuditIntervalSeconds
Sets the interval for Policy Controller Audit Scans (in seconds).
When set to 0, this disables audit functionality altogether.
int|string
hasAuditIntervalSeconds
clearAuditIntervalSeconds
setAuditIntervalSeconds
Sets the interval for Policy Controller Audit Scans (in seconds).
When set to 0, this disables audit functionality altogether.
var
int|string
$this
getExemptableNamespaces
The set of namespaces that are excluded from Policy Controller checks.
Namespaces do not need to currently exist on the cluster.
setExemptableNamespaces
The set of namespaces that are excluded from Policy Controller checks.
Namespaces do not need to currently exist on the cluster.
var
string[]
$this
getReferentialRulesEnabled
Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated.
bool
setReferentialRulesEnabled
Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated.
var
bool
$this
getLogDeniesEnabled
Logs all denies and dry run failures.
bool
setLogDeniesEnabled
Logs all denies and dry run failures.
var
bool
$this