Class: Google::Apis::ContaineranalysisV1::ComplianceVersion
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1::ComplianceVersion
- 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
-
#cpe_uri ⇒ String
The CPE URI (https://cpe.mitre.org/specification/) this benchmark is applicable to.
-
#version ⇒ String
The version of the benchmark.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ComplianceVersion
constructor
A new instance of ComplianceVersion.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ComplianceVersion
Returns a new instance of ComplianceVersion.
935 936 937 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 935 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cpe_uri ⇒ String
The CPE URI (https://cpe.mitre.org/specification/) this benchmark is
applicable to.
Corresponds to the JSON property cpeUri
927 928 929 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 927 def cpe_uri @cpe_uri end |
#version ⇒ String
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
933 934 935 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 933 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
940 941 942 943 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 940 def update!(**args) @cpe_uri = args[:cpe_uri] if args.key?(:cpe_uri) @version = args[:version] if args.key?(:version) end |