Class: Google::Apis::ContaineranalysisV1::ComplianceNote

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ComplianceNote

Returns a new instance of ComplianceNote.



1127
1128
1129
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1127

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

Instance Attribute Details

#cis_benchmarkGoogle::Apis::ContaineranalysisV1::CisBenchmark

A compliance check that is a CIS benchmark. Corresponds to the JSON property cisBenchmark



1094
1095
1096
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1094

def cis_benchmark
  @cis_benchmark
end

#descriptionString

A description about this compliance check. Corresponds to the JSON property description

Returns:

  • (String)


1099
1100
1101
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1099

def description
  @description
end

#rationaleString

A rationale for the existence of this compliance check. Corresponds to the JSON property rationale

Returns:

  • (String)


1104
1105
1106
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1104

def rationale
  @rationale
end

#remediationString

A description of remediation steps if the compliance check fails. Corresponds to the JSON property remediation

Returns:

  • (String)


1109
1110
1111
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1109

def remediation
  @remediation
end

#scan_instructionsString

Serialized scan instructions with a predefined format. Corresponds to the JSON property scanInstructions NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


1115
1116
1117
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1115

def scan_instructions
  @scan_instructions
end

#titleString

The title that identifies this compliance check. Corresponds to the JSON property title

Returns:

  • (String)


1120
1121
1122
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1120

def title
  @title
end

#versionArray<Google::Apis::ContaineranalysisV1::ComplianceVersion>

The OS and config versions the benchmark applies to. Corresponds to the JSON property version



1125
1126
1127
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1125

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1132
1133
1134
1135
1136
1137
1138
1139
1140
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1132

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