Class: Google::Apis::OndemandscanningV1beta1::NonCompliantFile

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NonCompliantFile

Returns a new instance of NonCompliantFile.



1676
1677
1678
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1676

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

Instance Attribute Details

#display_commandString

Command to display the non-compliant files. Corresponds to the JSON property displayCommand

Returns:

  • (String)


1664
1665
1666
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1664

def display_command
  @display_command
end

#pathString

Empty if display_command is set. Corresponds to the JSON property path

Returns:

  • (String)


1669
1670
1671
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1669

def path
  @path
end

#reasonString

Explains why a file is non compliant for a CIS check. Corresponds to the JSON property reason

Returns:

  • (String)


1674
1675
1676
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1674

def reason
  @reason
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1681
1682
1683
1684
1685
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1681

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