Esempio n. 1
0
    def __init__(self):
        super(OrganizationsController, self).__init__()
        self._audit = AuditHelper(self, "<res_name>")

        # actions
        self._register(["import"], self._import,
                       self._print_import_completions)
        self._register(["export"], self._export,
                       self._print_export_completions)
        self._register(["reset-secret"], self._reset_secret,
                       self._print_entity_completions)
        self._register(["audit"], self._audit.audit,
                       self._print_entity_completions)
        self._register_action_doc(self._audit.audit_doc())

        self._register_action_doc(self._export_doc())
        self._register_action_doc(self._import_doc())
        self._register_action_doc(self._reset_secret_doc())
        self._register_action_doc(self._audit.audit_doc())

        # subcontrollers
        self._register_subcontroller(["settings"],
                                     OrganizationSettingsController())
        self._register_subcontroller(["groups"], GroupsController())

        self._doc = "Organizations handling."
Esempio n. 2
0
    def __init__(self):
        super(HostsController, self).__init__()
        self._audit = AuditHelper(self, "<org_name> <env_name> <res_name>")

        # subcontrollers
        self._register_subcontroller(["settings"], HostSettingsController())
        self._register_subcontroller(["instance"], InstancesController())
        self._register_subcontroller(["applications"], ApplicationContextController())
        self._register_subcontroller(["distribution"], DistributionContextController())
        self._register_subcontroller(["platform"], PlatformContextController())
        self._register_subcontroller(["compliance"], ComplianceController())
        self._register_subcontroller(["changes"], ChangeController())
        self._register_subcontroller(["alerts"], MonitoringAlertController())
        self._register_subcontroller(["live"], LiveController())

        # actions
        self._register(["provision"], self._provision, self._print_entity_completions)
        self._register(["render-tree"], self._render_tree, self._print_tree_completions)
        self._register(["clone"], self._clone, self._print_entity_completions)
        self._register(["audit"], self._audit.audit, self._print_entity_completions)
        self._register(["vnc"], self._vnc, self._print_entity_completions)

        self._doc = "Hosts handling."
        self._update_action_doc_params("list", "<org_name> <env_name>")
        self._update_action_doc_params("add", "<org_name>  <env_name>")
        self._update_action_doc_params("delete", "<org_name>  <env_name> <res_name>")
        self._update_action_doc_params("update", "<org_name>  <env_name> <res_name>")
        self._update_action_doc_params("show", "<org_name>  <env_name> <res_name>")
        self._register_action_doc(self._provision_doc())
        self._register_action_doc(self._render_tree_doc())
        self._register_action_doc(self._clone_doc())
        self._register_action_doc(self._audit.audit_doc())
        self._register_action_doc(self._vnc_doc())
    def __init__(self):
        super(EnvironmentsController, self).__init__()
        self._audit = AuditHelper(self, "<org_name> <res_name>")
        
        # subcontrollers
        self._register_subcontroller(["settings"], EnvironmentSettingsController())

        # actions
        self._register(["import"], self._import, self._print_import_completions)
        self._register(["audit-logs"], self._audit.audit, self._print_entity_completions)
        self._register_action_doc(self._audit.audit_doc())
        
        self._notificationLog = NotificationLogHelper(self, "<org_name> <res_name>")
        self._register(["notification-logs"], self._notificationLog.notification_log, self._print_entity_completions)
        self._register_action_doc(self._notificationLog.notification_log_doc())
        
        self._agentLog = AgentLogHelper(self, "<org_name> <res_name>")
        self._register(["agent-logs"], self._agentLog.agent_log, self._print_entity_completions)
        self._register_action_doc(self._agentLog.agent_log_doc())
        
        self._otherLog = OtherLogHelper(self, "<org_name> <res_name>")
        self._register(["other-logs"], self._otherLog.other_log, self._print_entity_completions)
        self._register_action_doc(self._otherLog.other_log_doc())

        self._register_subcontroller(["groups"], EnvironmentGroupsController())
        self._register_action_doc(self._import_doc())

        self._doc = "Environments handling."
Esempio n. 4
0
    def __init__(self):
        super(OrganizationsController, self).__init__()
        self._audit = AuditHelper(self, "<res_name>")
        self._notificationLog = NotificationLogHelper(self, "<res_name>")
        self._agentLog = AgentLogHelper(self, "<res_name>")
        self._otherLog = OtherLogHelper(self, "<res_name>")

        # actions
        self._register(["import"], self._import,
                       self._print_import_completions)
        self._register(["export"], self._export,
                       self._print_export_completions)
        self._register(["reset-secret"], self._reset_secret,
                       self._print_entity_completions)
        self._register(["audit-logs"], self._audit.audit,
                       self._print_entity_completions)
        self._register(["notification-logs"],
                       self._notificationLog.notification_log,
                       self._print_entity_completions)
        self._register(["agent-logs"], self._agentLog.agent_log,
                       self._print_entity_completions)
        self._register(["other-logs"], self._otherLog.other_log,
                       self._print_entity_completions)

        self._register_action_doc(self._audit.audit_doc())
        self._register_action_doc(self._export_doc())
        self._register_action_doc(self._import_doc())
        self._register_action_doc(self._reset_secret_doc())
        self._register_action_doc(self._audit.audit_doc())
        self._register_action_doc(self._notificationLog.notification_log_doc())
        self._register_action_doc(self._agentLog.agent_log_doc())
        self._register_action_doc(self._otherLog.other_log_doc())

        # subcontrollers
        self._register_subcontroller(["settings"],
                                     OrganizationSettingsController())
        self._register_subcontroller(["groups"],
                                     OrganizationGroupsController())
        self._register_subcontroller(["jobs"], JobsController())
        self._register_subcontroller(["notification-channels"],
                                     NotificationsController())
        self._register_subcontroller(["application-keys"],
                                     ApplicationKeysController())
        self._register_subcontroller(["orchestrations"],
                                     OrchestrationsController())

        self._doc = "Organizations handling."