Class: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts
- Inherits:
-
Object
- Object
- Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/policysimulator_v1/classes.rb,
lib/google/apis/policysimulator_v1/representations.rb,
lib/google/apis/policysimulator_v1/representations.rb
Overview
A summary of the state of all resources scanned for compliance with the changed OrgPolicy.
Instance Attribute Summary collapse
-
#compliant ⇒ Fixnum
Number of scanned resources with zero violations.
-
#errors ⇒ Fixnum
Number of resources that returned an error when scanned.
-
#noncompliant ⇒ Fixnum
Number of scanned resources with at least one violation.
-
#scanned ⇒ Fixnum
Number of resources checked for compliance.
-
#unenforced ⇒ Fixnum
Number of resources where the constraint was not enforced, i.e.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts
constructor
A new instance of GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts
Returns a new instance of GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts.
1402 1403 1404 |
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 1402 def initialize(**args) update!(**args) end |
Instance Attribute Details
#compliant ⇒ Fixnum
Number of scanned resources with zero violations.
Corresponds to the JSON property compliant
1378 1379 1380 |
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 1378 def compliant @compliant end |
#errors ⇒ Fixnum
Number of resources that returned an error when scanned.
Corresponds to the JSON property errors
1383 1384 1385 |
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 1383 def errors @errors end |
#noncompliant ⇒ Fixnum
Number of scanned resources with at least one violation.
Corresponds to the JSON property noncompliant
1388 1389 1390 |
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 1388 def noncompliant @noncompliant end |
#scanned ⇒ Fixnum
Number of resources checked for compliance. Must equal: unenforced +
noncompliant + compliant + error
Corresponds to the JSON property scanned
1394 1395 1396 |
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 1394 def scanned @scanned end |
#unenforced ⇒ Fixnum
Number of resources where the constraint was not enforced, i.e. the Policy set
enforced: false for that resource.
Corresponds to the JSON property unenforced
1400 1401 1402 |
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 1400 def unenforced @unenforced end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1407 1408 1409 1410 1411 1412 1413 |
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 1407 def update!(**args) @compliant = args[:compliant] if args.key?(:compliant) @errors = args[:errors] if args.key?(:errors) @noncompliant = args[:noncompliant] if args.key?(:noncompliant) @scanned = args[:scanned] if args.key?(:scanned) @unenforced = args[:unenforced] if args.key?(:unenforced) end |