コード例 #1
0
ファイル: runner.py プロジェクト: zimmermanc/export_users_csv
 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"
     ]]
コード例 #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"
     ]]
コード例 #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"
     ]]
コード例 #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 = {}
コード例 #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
コード例 #6
0
ファイル: runner.py プロジェクト: ebeuerle/export_rl_policies
 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"]]