Google Cloud Gke Hub V1 Client - Class PolicyController (1.0.0-RC1)

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 \ V1

Methods

__construct

Constructor.

Parameters
Name Description
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.

Returns
Type Description
bool

setEnabled

Enables the installation of Policy Controller.

If false, the rest of PolicyController fields take no effect.

Parameter
Name Description
var bool
Returns
Type Description
$this

getTemplateLibraryInstalled

Installs the default template library along with Policy Controller.

Returns
Type Description
bool

hasTemplateLibraryInstalled

clearTemplateLibraryInstalled

setTemplateLibraryInstalled

Installs the default template library along with Policy Controller.

Parameter
Name Description
var bool
Returns
Type Description
$this

getAuditIntervalSeconds

Sets the interval for Policy Controller Audit Scans (in seconds).

When set to 0, this disables audit functionality altogether.

Returns
Type Description
int|string

hasAuditIntervalSeconds

clearAuditIntervalSeconds

setAuditIntervalSeconds

Sets the interval for Policy Controller Audit Scans (in seconds).

When set to 0, this disables audit functionality altogether.

Parameter
Name Description
var int|string
Returns
Type Description
$this

getExemptableNamespaces

The set of namespaces that are excluded from Policy Controller checks.

Namespaces do not need to currently exist on the cluster.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setExemptableNamespaces

The set of namespaces that are excluded from Policy Controller checks.

Namespaces do not need to currently exist on the cluster.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getReferentialRulesEnabled

Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated.

Returns
Type Description
bool

setReferentialRulesEnabled

Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated.

Parameter
Name Description
var bool
Returns
Type Description
$this

getLogDeniesEnabled

Logs all denies and dry run failures.

Returns
Type Description
bool

setLogDeniesEnabled

Logs all denies and dry run failures.

Parameter
Name Description
var bool
Returns
Type Description
$this