Class: Google::Apis::OndemandscanningV1beta1::ComplianceOccurrence
- Inherits:
-
Object
- Object
- Google::Apis::OndemandscanningV1beta1::ComplianceOccurrence
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/ondemandscanning_v1beta1/classes.rb,
lib/google/apis/ondemandscanning_v1beta1/representations.rb,
lib/google/apis/ondemandscanning_v1beta1/representations.rb
Overview
An indication that the compliance checks in the associated ComplianceNote were not satisfied for particular resources or a specified reason.
Instance Attribute Summary collapse
-
#non_compliance_reason ⇒ String
Corresponds to the JSON property
nonComplianceReason
. -
#non_compliant_files ⇒ Array<Google::Apis::OndemandscanningV1beta1::NonCompliantFile>
Corresponds to the JSON property
nonCompliantFiles
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ComplianceOccurrence
constructor
A new instance of ComplianceOccurrence.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ComplianceOccurrence
Returns a new instance of ComplianceOccurrence.
566 567 568 |
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 566 def initialize(**args) update!(**args) end |
Instance Attribute Details
#non_compliance_reason ⇒ String
Corresponds to the JSON property nonComplianceReason
559 560 561 |
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 559 def non_compliance_reason @non_compliance_reason end |
#non_compliant_files ⇒ Array<Google::Apis::OndemandscanningV1beta1::NonCompliantFile>
Corresponds to the JSON property nonCompliantFiles
564 565 566 |
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 564 def non_compliant_files @non_compliant_files end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
571 572 573 574 |
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 571 def update!(**args) @non_compliance_reason = args[:non_compliance_reason] if args.key?(:non_compliance_reason) @non_compliant_files = args[:non_compliant_files] if args.key?(:non_compliant_files) end |