Class: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts

Returns a new instance of GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts.



1195
1196
1197
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 1195

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)


1171
1172
1173
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 1171

def compliant
  @compliant
end

#errorsFixnum

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

Returns:

  • (Fixnum)


1176
1177
1178
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 1176

def errors
  @errors
end

#noncompliantFixnum

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

Returns:

  • (Fixnum)


1181
1182
1183
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 1181

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)


1187
1188
1189
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 1187

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)


1193
1194
1195
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 1193

def unenforced
  @unenforced
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1200
1201
1202
1203
1204
1205
1206
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 1200

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