Exemplo n.º 1
0
 def __init__(self):
     self.config = lib.ConfigHelper()
     self.csv_writer = lib.CsvWriter()
     self.rl_sess = lib.RLSession(self.config.rl_user, self.config.rl_pass,
                                  self.config.rl_cust)
     self.output = [[
         "displayName", "email", "enabled", "firstName", "lastName",
         "roleType"
     ]]
Exemplo n.º 2
0
 def __init__(self):
     self.config = lib.ConfigHelper()
     self.csv_writer = lib.CsvWriter()
     self.rl_sess = lib.RLSession(self.config.rl_user, self.config.rl_pass,
                                  self.config.rl_cust,
                                  self.config.rl_api_base)
     ### CSV Configuration ###
     self.output = [[
         "AccountName", "RRN", "Service", "ResourceName", "PublicIP"
     ]]
Exemplo n.º 3
0
 def __init__(self):
     self.config = lib.ConfigHelper()
     self.csv_writer = lib.CsvWriter()
     self.rl_sess = lib.RLSession(self.config.rl_user, self.config.rl_pass,
                                  self.config.rl_cust,
                                  self.config.rl_api_base)
     self.output = [[
         "AccountNumber", "Name", "Status", "subComponents_name",
         "subComponents_message", "subComponents_remediation"
     ]]
Exemplo n.º 4
0
 def __init__(self):
     self.config = lib.ConfigReader()
     self.csv_writer = lib.CsvWriter()
     self.rl_sess = lib.RLSession(self.config.rl_user, self.config.rl_pass,
                                  self.config.rl_cust,
                                  self.config.rl_api_base)
     self.output = [[
         "Alert ID", "Policy Name", "Policy Type", "Description",
         "Policy Labels", "Policy Severity", "Resource Name", "Cloud Type",
         "Cloud Account Id", "Cloud Account Name", "Region",
         "Recommendation", "Alert Status", "Rating", "Alert Time",
         "Event Occurred", "Dismissed On", "Dismissed By",
         "Dismissal Reason", "Resolved On", "Resolution Reason",
         "Resource ID", "Tags", "Account groups"
     ]]
     self.rrn_cache = {}
Exemplo n.º 5
0
 def __init__(self):
     self.config = lib.ConfigHelper()
     self.server = lib.ServerController()
     self.dict = lib.DictController(self.config)
     self.csv_writer = lib.CsvWriter(self.config)
     self.csv_columns = self.config.csv_columns
Exemplo n.º 6
0
 def __init__(self):
     self.config = lib.ConfigHelper()
     self.csv_writer = lib.CsvWriter()
     self.rl_sess = lib.RLSession(self.config.rl_user,self.config.rl_pass,self.config.rl_cust, self.config.rl_api_base)
     self.output = [["PolicyName", "Description", "CloudType", "RQL"]]