Class: Google::Apis::ContaineranalysisV1alpha1::NonCompliantFile

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

Details about files that caused a compliance check to fail.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NonCompliantFile

Returns a new instance of NonCompliantFile.



4978
4979
4980
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4978

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)


4964
4965
4966
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4964

def display_command
  @display_command
end

#pathString

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

Returns:

  • (String)


4971
4972
4973
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4971

def path
  @path
end

#reasonString

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

Returns:

  • (String)


4976
4977
4978
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4976

def reason
  @reason
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4983
4984
4985
4986
4987
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4983

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