Class: Google::Apis::ContaineranalysisV1alpha1::CisBenchmark

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

A compliance check that is a CIS benchmark.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CisBenchmark

Returns a new instance of CisBenchmark.



595
596
597
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 595

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

Instance Attribute Details

#profile_levelFixnum

The profile level of this CIS benchmark check. Corresponds to the JSON property profileLevel

Returns:

  • (Fixnum)


588
589
590
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 588

def profile_level
  @profile_level
end

#severityString

The severity level of this CIS benchmark check. Corresponds to the JSON property severity

Returns:

  • (String)


593
594
595
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 593

def severity
  @severity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



600
601
602
603
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 600

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