Class: Google::Apis::ContaineranalysisV1::ComplianceNote
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1::ComplianceNote
- 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
Instance Attribute Summary collapse
-
#cis_benchmark ⇒ Google::Apis::ContaineranalysisV1::CisBenchmark
A compliance check that is a CIS benchmark.
-
#description ⇒ String
A description about this compliance check.
-
#rationale ⇒ String
A rationale for the existence of this compliance check.
-
#remediation ⇒ String
A description of remediation steps if the compliance check fails.
-
#scan_instructions ⇒ String
Serialized scan instructions with a predefined format.
-
#title ⇒ String
The title that identifies this compliance check.
-
#version ⇒ Array<Google::Apis::ContaineranalysisV1::ComplianceVersion>
The OS and config versions the benchmark applies to.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ComplianceNote
constructor
A new instance of ComplianceNote.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ComplianceNote
Returns a new instance of ComplianceNote.
1211 1212 1213 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1211 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cis_benchmark ⇒ Google::Apis::ContaineranalysisV1::CisBenchmark
A compliance check that is a CIS benchmark.
Corresponds to the JSON property cisBenchmark
1178 1179 1180 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1178 def cis_benchmark @cis_benchmark end |
#description ⇒ String
A description about this compliance check.
Corresponds to the JSON property description
1183 1184 1185 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1183 def description @description end |
#rationale ⇒ String
A rationale for the existence of this compliance check.
Corresponds to the JSON property rationale
1188 1189 1190 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1188 def rationale @rationale end |
#remediation ⇒ String
A description of remediation steps if the compliance check fails.
Corresponds to the JSON property remediation
1193 1194 1195 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1193 def remediation @remediation end |
#scan_instructions ⇒ String
Serialized scan instructions with a predefined format.
Corresponds to the JSON property scanInstructions
NOTE: Values are automatically base64 encoded/decoded in the client library.
1199 1200 1201 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1199 def scan_instructions @scan_instructions end |
#title ⇒ String
The title that identifies this compliance check.
Corresponds to the JSON property title
1204 1205 1206 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1204 def title @title end |
#version ⇒ Array<Google::Apis::ContaineranalysisV1::ComplianceVersion>
The OS and config versions the benchmark applies to.
Corresponds to the JSON property version
1209 1210 1211 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1209 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1216 1217 1218 1219 1220 1221 1222 1223 1224 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1216 def update!(**args) @cis_benchmark = args[:cis_benchmark] if args.key?(:cis_benchmark) @description = args[:description] if args.key?(:description) @rationale = args[:rationale] if args.key?(:rationale) @remediation = args[:remediation] if args.key?(:remediation) @scan_instructions = args[:scan_instructions] if args.key?(:scan_instructions) @title = args[:title] if args.key?(:title) @version = args[:version] if args.key?(:version) end |