Class: Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts

Returns a new instance of GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts.



1757
1758
1759
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 1757

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#compliantFixnum

Number of scanned resources with zero violations. Corresponds to the JSON property compliant

Returns:

  • (Fixnum)


1733
1734
1735
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 1733

def compliant
  @compliant
end

#errorsFixnum

Number of resources that returned an error when scanned. Corresponds to the JSON property errors

Returns:

  • (Fixnum)


1738
1739
1740
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 1738

def errors
  @errors
end

#noncompliantFixnum

Number of scanned resources with at least one violation. Corresponds to the JSON property noncompliant

Returns:

  • (Fixnum)


1743
1744
1745
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 1743

def noncompliant
  @noncompliant
end

#scannedFixnum

Number of resources checked for compliance. Must equal: unenforced + noncompliant + compliant + error Corresponds to the JSON property scanned

Returns:

  • (Fixnum)


1749
1750
1751
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 1749

def scanned
  @scanned
end

#unenforcedFixnum

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

Returns:

  • (Fixnum)


1755
1756
1757
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 1755

def unenforced
  @unenforced
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1762
1763
1764
1765
1766
1767
1768
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 1762

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