Class: Google::Apis::OndemandscanningV1beta1::NonCompliantFile
- Inherits:
-
Object
- Object
- Google::Apis::OndemandscanningV1beta1::NonCompliantFile
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/ondemandscanning_v1beta1/classes.rb,
lib/google/apis/ondemandscanning_v1beta1/representations.rb,
lib/google/apis/ondemandscanning_v1beta1/representations.rb
Overview
Details about files that caused a compliance check to fail. 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'.
Instance Attribute Summary collapse
-
#display_command ⇒ String
Command to display the non-compliant files.
-
#path ⇒ String
Empty if
display_command
is set. -
#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.
2001 2002 2003 |
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 2001 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
1989 1990 1991 |
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1989 def display_command @display_command end |
#path ⇒ String
Empty if display_command
is set.
Corresponds to the JSON property path
1994 1995 1996 |
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1994 def path @path end |
#reason ⇒ String
Explains why a file is non compliant for a CIS check.
Corresponds to the JSON property reason
1999 2000 2001 |
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1999 def reason @reason end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2006 2007 2008 2009 2010 |
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 2006 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 |