Class: Google::Apis::ContaineranalysisV1::ComplianceVersion

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ComplianceVersion

Returns a new instance of ComplianceVersion.



1335
1336
1337
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1335

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

Instance Attribute Details

#benchmark_documentString

The name of the document that defines this benchmark, e.g. "CIS Container- Optimized OS". Corresponds to the JSON property benchmarkDocument

Returns:

  • (String)


1321
1322
1323
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1321

def benchmark_document
  @benchmark_document
end

#cpe_uriString

The CPE URI (https://cpe.mitre.org/specification/) this benchmark is applicable to. Corresponds to the JSON property cpeUri

Returns:

  • (String)


1327
1328
1329
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1327

def cpe_uri
  @cpe_uri
end

#versionString

The version of the benchmark. This is set to the version of the OS-specific CIS document the benchmark is defined in. Corresponds to the JSON property version

Returns:

  • (String)


1333
1334
1335
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1333

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1340
1341
1342
1343
1344
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1340

def update!(**args)
  @benchmark_document = args[:benchmark_document] if args.key?(:benchmark_document)
  @cpe_uri = args[:cpe_uri] if args.key?(:cpe_uri)
  @version = args[:version] if args.key?(:version)
end