Class: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts
- Inherits:
-
Object
- Object
- Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts
- 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
Output only.
-
#errors ⇒ Fixnum
Output only.
-
#noncompliant ⇒ Fixnum
Output only.
-
#scanned ⇒ Fixnum
Output only.
-
#unenforced ⇒ Fixnum
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts
constructor
A new instance of GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts
Returns a new instance of GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts.
1250 1251 1252 |
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 1250 def initialize(**args) update!(**args) end |
Instance Attribute Details
#compliant ⇒ Fixnum
Output only. Number of scanned resources with zero violations.
Corresponds to the JSON property compliant
1226 1227 1228 |
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 1226 def compliant @compliant end |
#errors ⇒ Fixnum
Output only. Number of resources that returned an error when scanned.
Corresponds to the JSON property errors
1231 1232 1233 |
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 1231 def errors @errors end |
#noncompliant ⇒ Fixnum
Output only. Number of scanned resources with at least one violation.
Corresponds to the JSON property noncompliant
1236 1237 1238 |
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 1236 def noncompliant @noncompliant end |
#scanned ⇒ Fixnum
Output only. Number of resources checked for compliance. Must equal:
unenforced + noncompliant + compliant + error
Corresponds to the JSON property scanned
1242 1243 1244 |
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 1242 def scanned @scanned end |
#unenforced ⇒ Fixnum
Output only. 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
1248 1249 1250 |
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 1248 def unenforced @unenforced end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1255 1256 1257 1258 1259 1260 1261 |
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 1255 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 |