Class: Google::Apis::ContaineranalysisV1alpha1::ComplianceVersion

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

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.



699
700
701
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 699

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

Instance Attribute Details

#cpe_uriString

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

Returns:

  • (String)


691
692
693
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 691

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)


697
698
699
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 697

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



704
705
706
707
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 704

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