Class: Google::Apis::ContaineranalysisV1alpha1::NonCompliantFile
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1alpha1::NonCompliantFile
- 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
Details about files that caused a compliance check to fail.
Instance Attribute Summary collapse
-
#display_command ⇒ String
Command to display the non-compliant files.
-
#path ⇒ String
display_command is a single command that can be used to display a list of non compliant files.
-
#reason ⇒ String
Explains why a file is non compliant for a CIS check.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NonCompliantFile
constructor
A new instance of NonCompliantFile.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NonCompliantFile
Returns a new instance of NonCompliantFile.
3736 3737 3738 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3736 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_command ⇒ String
Command to display the non-compliant files.
Corresponds to the JSON property displayCommand
3722 3723 3724 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3722 def display_command @display_command end |
#path ⇒ String
display_command is a single command that can be used to display a list of non
compliant files. When there is no such command, we can also iterate a list of
non compliant file using 'path'. Empty if display_command is set.
Corresponds to the JSON property path
3729 3730 3731 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3729 def path @path end |
#reason ⇒ String
Explains why a file is non compliant for a CIS check.
Corresponds to the JSON property reason
3734 3735 3736 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3734 def reason @reason end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3741 3742 3743 3744 3745 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3741 def update!(**args) @display_command = args[:display_command] if args.key?(:display_command) @path = args[:path] if args.key?(:path) @reason = args[:reason] if args.key?(:reason) end |