<reponame>kingandunion/avalon-resilient-connector<gh_stars>0
# -*- coding: utf-8 -*-

"""Generate the Resilient customizations required for avalon"""

from __future__ import print_function
from resilient_circuits.util import *

def codegen_reload_data():
    """Parameters to codegen used to generate the avalon package"""
    reload_params = {"package": u"avalon",
                    "incident_fields": [u"avalon_auto_refresh", u"avalon_auto_refresh_time", u"avalon_last_pull_time", u"avalon_workspace_id"], 
                    "action_fields": [], 
                    "functions_params": [], 
                    "datatables": [], 
                    "message_destinations": [u"avalon_actions"], 
                    "functions": [u"avalon_void"], 
                    "phases": [], 
                    "automatic_tasks": [], 
                    "scripts": [], 
                    "workflows": [],
                    "actions": [u"Avalon: Create Workspace", u"Avalon: Pull Nodes", u"Avalon: Push Artifact", u"Avalon: Push Artifacts", u"Avalon: Start Auto-refresh", u"Avalon: Stop Auto-refresh"] 
                    }
    return reload_params


def customization_data(client=None):
    """Produce any customization definitions (types, fields, message destinations, etc)
       that should be installed by `resilient-circuits customize`
    """

    # This import data contains:
    #   Incident fields:
    #     avalon_auto_refresh
    #     avalon_auto_refresh_time
    #     avalon_last_pull_time
    #     avalon_workspace_id
    #   Message Destinations:
    #     avalon_actions
    #   Functions:
    #     avalon_void
    #   Rules:
    #     Avalon: Create Workspace
    #     Avalon: Pull Nodes
    #     Avalon: Push Artifact
    #     Avalon: Push Artifacts
    #     Avalon: Start Auto-refresh
    #     Avalon: Stop Auto-refresh


    yield ImportDefinition(u"""
<KEY>
<KEY>
"""
    )
# -*- coding: utf-8 -*-

"""Generate the Resilient customizations required for avalon"""

from __future__ import print_function
from resilient_circuits.util import *

def codegen_reload_data():
    """Parameters to codegen used to generate the avalon package"""
    reload_params = {"package": u"avalon",
                    "incident_fields": [u"avalon_auto_refresh", u"avalon_auto_refresh_time", u"avalon_last_pull_time", u"avalon_workspace_id"], 
                    "action_fields": [], 
                    "functions_params": [], 
                    "datatables": [], 
                    "message_destinations": [u"avalon_actions"], 
                    "functions": [u"avalon_void"], 
                    "phases": [], 
                    "automatic_tasks": [], 
                    "scripts": [], 
                    "workflows": [],
                    "actions": [u"Avalon: Create Workspace", u"Avalon: Pull Nodes", u"Avalon: Push Artifact", u"Avalon: Push Artifacts", u"Avalon: Start Auto-refresh", u"Avalon: Stop Auto-refresh"] 
                    }
    return reload_params


def customization_data(client=None):
    """Produce any customization definitions (types, fields, message destinations, etc)
       that should be installed by `resilient-circuits customize`
    """

    # This import data contains:
    #   Incident fields:
    #     avalon_auto_refresh
    #     avalon_auto_refresh_time
    #     avalon_last_pull_time
    #     avalon_workspace_id
    #   Message Destinations:
    #     avalon_actions
    #   Functions:
    #     avalon_void
    #   Rules:
    #     Avalon: Create Workspace
    #     Avalon: Pull Nodes
    #     Avalon: Push Artifact
    #     Avalon: Push Artifacts
    #     Avalon: Start Auto-refresh
    #     Avalon: Stop Auto-refresh


    yield ImportDefinition(u"""
<KEY>
<KEY>
"""
    )
# -*- coding: utf-8 -*- Generate the Resilient customizations required for avalon Parameters to codegen used to generate the avalon package Produce any customization definitions (types, fields, message destinations, etc)        that should be installed by `resilient-circuits customize` # This import data contains: #   Incident fields: #     avalon_auto_refresh #     avalon_auto_refresh_time #     avalon_last_pull_time #     avalon_workspace_id #   Message Destinations: #     avalon_actions #   Functions: #     avalon_void #   Rules: #     Avalon: Create Workspace #     Avalon: Pull Nodes #     Avalon: Push Artifact #     Avalon: Push Artifacts #     Avalon: Start Auto-refresh #     Avalon: Stop Auto-refresh <KEY> <KEY>