module Controls::Client::SecurityControls
A module to encapsulate API methods related to security controls and configurations @since API v1.0 @version v1.0.0
Public Instance Methods
security_controls(control = nil)
click to toggle source
@param [String] control the name of the security control name to
retrieve
@todo warn that this method returns a different object now? @return [Hash] a hash representing a security control
# File lib/controls/client/security_controls.rb, line 14 def security_controls(control = nil) if control get "/security_controls/#{control}" else get '/security_controls' end end
security_controls_coverage(control = nil)
click to toggle source
@param [String] control the name of the security control name to
retrieve
@todo add a since note? this replaces security_controls
and security_controls
now returns a new object @return [Hash] a hash representing a security control coverage
# File lib/controls/client/security_controls.rb, line 26 def security_controls_coverage(control = nil) if control get "/coverage/security_controls/#{control}" else get '/coverage/security_controls' end end
threat_vector_security_controls(vector)
click to toggle source
@param [String] vector the threat vector to search for securuty controls
by
@return [Array<Hash>] a list of hashes representing threats
# File lib/controls/client/security_controls.rb, line 51 def threat_vector_security_controls(vector) get "/threat_vectors/#{vector}/security_controls" end
Also aliased as: security_controls_by_threat_vector
update_security_controls(controls)
click to toggle source
Updates the specified security control(s)