Class: Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts
- Inherits:
-
Object
- Object
- Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/policysimulator_v1alpha/classes.rb,
lib/google/apis/policysimulator_v1alpha/representations.rb,
lib/google/apis/policysimulator_v1alpha/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) ⇒ 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.
1876 1877 1878 |
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 1876 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
1852 1853 1854 |
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 1852 def compliant @compliant end |
#errors ⇒ Fixnum
Output only. Number of resources that returned an error when scanned.
Corresponds to the JSON property errors
1857 1858 1859 |
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 1857 def errors @errors end |
#noncompliant ⇒ Fixnum
Output only. Number of scanned resources with at least one violation.
Corresponds to the JSON property noncompliant
1862 1863 1864 |
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 1862 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
1868 1869 1870 |
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 1868 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
1874 1875 1876 |
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 1874 def unenforced @unenforced end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1881 1882 1883 1884 1885 1886 1887 |
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 1881 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 |