Policy Simulator V1 API - Class Google::Cloud::PolicySimulator::V1::OrgPolicyViolationsPreview::ResourceCounts (v1.4.0)

Reference documentation and code samples for the Policy Simulator V1 API class Google::Cloud::PolicySimulator::V1::OrgPolicyViolationsPreview::ResourceCounts.

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

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#compliant

def compliant() -> ::Integer
Returns
  • (::Integer) — Output only. Number of scanned resources with zero violations.

#errors

def errors() -> ::Integer
Returns
  • (::Integer) — Output only. Number of resources that returned an error when scanned.

#noncompliant

def noncompliant() -> ::Integer
Returns
  • (::Integer) — Output only. Number of scanned resources with at least one violation.

#scanned

def scanned() -> ::Integer
Returns
  • (::Integer) — Output only. Number of resources checked for compliance.

    Must equal: unenforced + noncompliant + compliant + error

#unenforced

def unenforced() -> ::Integer
Returns
  • (::Integer) — Output only. Number of resources where the constraint was not enforced, i.e. the Policy set enforced: false for that resource.