Google Cloud Policy Simulator V1 Client - Class ResourceCounts (1.2.0)

Reference documentation and code samples for the Google Cloud Policy Simulator V1 Client class ResourceCounts.

A summary of the state of all resources scanned for compliance with the changed OrgPolicy.

Generated from protobuf message google.cloud.policysimulator.v1.OrgPolicyViolationsPreview.ResourceCounts

Namespace

Google \ Cloud \ PolicySimulator \ V1 \ OrgPolicyViolationsPreview

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ scanned int

Output only. Number of resources checked for compliance. Must equal: unenforced + noncompliant + compliant + error

↳ noncompliant int

Output only. Number of scanned resources with at least one violation.

↳ compliant int

Output only. Number of scanned resources with zero violations.

↳ unenforced int

Output only. Number of resources where the constraint was not enforced, i.e. the Policy set enforced: false for that resource.

↳ errors int

Output only. Number of resources that returned an error when scanned.

getScanned

Output only. Number of resources checked for compliance.

Must equal: unenforced + noncompliant + compliant + error

Returns
Type Description
int

setScanned

Output only. Number of resources checked for compliance.

Must equal: unenforced + noncompliant + compliant + error

Parameter
Name Description
var int
Returns
Type Description
$this

getNoncompliant

Output only. Number of scanned resources with at least one violation.

Returns
Type Description
int

setNoncompliant

Output only. Number of scanned resources with at least one violation.

Parameter
Name Description
var int
Returns
Type Description
$this

getCompliant

Output only. Number of scanned resources with zero violations.

Returns
Type Description
int

setCompliant

Output only. Number of scanned resources with zero violations.

Parameter
Name Description
var int
Returns
Type Description
$this

getUnenforced

Output only. Number of resources where the constraint was not enforced, i.e. the Policy set enforced: false for that resource.

Returns
Type Description
int

setUnenforced

Output only. Number of resources where the constraint was not enforced, i.e. the Policy set enforced: false for that resource.

Parameter
Name Description
var int
Returns
Type Description
$this

getErrors

Output only. Number of resources that returned an error when scanned.

Returns
Type Description
int

setErrors

Output only. Number of resources that returned an error when scanned.

Parameter
Name Description
var int
Returns
Type Description
$this