Class: Google::Apis::ContaineranalysisV1::ComplianceOccurrence
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1::ComplianceOccurrence
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/containeranalysis_v1/classes.rb,
lib/google/apis/containeranalysis_v1/representations.rb,
lib/google/apis/containeranalysis_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
-
#non_compliance_reason ⇒ String
Corresponds to the JSON property
nonComplianceReason
. -
#non_compliant_files ⇒ Array<Google::Apis::ContaineranalysisV1::NonCompliantFile>
Corresponds to the JSON property
nonCompliantFiles
. -
#version ⇒ Google::Apis::ContaineranalysisV1::ComplianceVersion
Describes the CIS benchmark version that is applicable to a given OS and os version.
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.
1300 1301 1302 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1300 def initialize(**args) update!(**args) end |
Instance Attribute Details
#non_compliance_reason ⇒ String
Corresponds to the JSON property nonComplianceReason
1287 1288 1289 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1287 def non_compliance_reason @non_compliance_reason end |
#non_compliant_files ⇒ Array<Google::Apis::ContaineranalysisV1::NonCompliantFile>
Corresponds to the JSON property nonCompliantFiles
1292 1293 1294 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1292 def non_compliant_files @non_compliant_files end |
#version ⇒ Google::Apis::ContaineranalysisV1::ComplianceVersion
Describes the CIS benchmark version that is applicable to a given OS and os
version.
Corresponds to the JSON property version
1298 1299 1300 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1298 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1305 1306 1307 1308 1309 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1305 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) @version = args[:version] if args.key?(:version) end |