Class: Google::Apis::ContaineranalysisV1alpha1::ComplianceOccurrence

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



1151
1152
1153
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 1151

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

Instance Attribute Details

#non_compliance_reasonString

The reason for non compliance of these files. Corresponds to the JSON property nonComplianceReason

Returns:

  • (String)


1138
1139
1140
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 1138

def non_compliance_reason
  @non_compliance_reason
end

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

A list of files which are violating compliance checks. Corresponds to the JSON property nonCompliantFiles



1143
1144
1145
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 1143

def non_compliant_files
  @non_compliant_files
end

#versionGoogle::Apis::ContaineranalysisV1alpha1::ComplianceVersion

Describes the CIS benchmark version that is applicable to a given OS and os version. Corresponds to the JSON property version



1149
1150
1151
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 1149

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1156
1157
1158
1159
1160
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 1156

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