Class: Google::Apis::OndemandscanningV1::ComplianceOccurrence

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ComplianceOccurrence

Returns a new instance of ComplianceOccurrence.



672
673
674
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 672

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

Instance Attribute Details

#non_compliance_reasonString

Corresponds to the JSON property nonComplianceReason

Returns:

  • (String)


665
666
667
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 665

def non_compliance_reason
  @non_compliance_reason
end

#non_compliant_filesArray<Google::Apis::OndemandscanningV1::NonCompliantFile>

Corresponds to the JSON property nonCompliantFiles



670
671
672
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 670

def non_compliant_files
  @non_compliant_files
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



677
678
679
680
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 677

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