Google Cloud Gke Hub V1 Client - Class PolicyController (0.6.3)

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

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
bool

setEnabled

Enables the installation of Policy Controller.

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

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getTemplateLibraryInstalled

Installs the default template library along with Policy Controller.

Returns
TypeDescription
bool

hasTemplateLibraryInstalled

clearTemplateLibraryInstalled

setTemplateLibraryInstalled

Installs the default template library along with Policy Controller.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getAuditIntervalSeconds

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

When set to 0, this disables audit functionality altogether.

Returns
TypeDescription
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
NameDescription
var int|string
Returns
TypeDescription
$this

getExemptableNamespaces

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

Namespaces do not need to currently exist on the cluster.

Returns
TypeDescription
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
NameDescription
var string[]
Returns
TypeDescription
$this

getReferentialRulesEnabled

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

Returns
TypeDescription
bool

setReferentialRulesEnabled

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

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getLogDeniesEnabled

Logs all denies and dry run failures.

Returns
TypeDescription
bool

setLogDeniesEnabled

Logs all denies and dry run failures.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this