Class: Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/policysimulator_v1beta/classes.rb,
lib/google/apis/policysimulator_v1beta/representations.rb,
lib/google/apis/policysimulator_v1beta/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) ⇒ GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts

Returns a new instance of GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts.



827
828
829
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 827

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

Instance Attribute Details

#compliantFixnum

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

Returns:

  • (Fixnum)


803
804
805
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 803

def compliant
  @compliant
end

#errorsFixnum

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

Returns:

  • (Fixnum)


808
809
810
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 808

def errors
  @errors
end

#noncompliantFixnum

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

Returns:

  • (Fixnum)


813
814
815
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 813

def noncompliant
  @noncompliant
end

#scannedFixnum

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

Returns:

  • (Fixnum)


819
820
821
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 819

def scanned
  @scanned
end

#unenforcedFixnum

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

Returns:

  • (Fixnum)


825
826
827
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 825

def unenforced
  @unenforced
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



832
833
834
835
836
837
838
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 832

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