<filename>plugins/trendmicro_apex/icon_trendmicro_apex/actions/quarantine/schema.py
# GENERATED BY KOMAND SDK - DO NOT EDIT
import komand
import json


class Component:
    DESCRIPTION = "Quarantine (isolate) an endpoint"


class Input:
    AGENT = "agent"
    QUARANTINE_STATE = "quarantine_state"
    WHITELIST = "whitelist"
    

class Output:
    RESULT_CODE = "result_code"
    RESULT_CONTENT = "result_content"
    RESULT_DESCRIPTION = "result_description"
    

class QuarantineInput(komand.Input):
    schema = json.loads("""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "agent": {
      "type": "string",
      "title": "Agent",
      "description": "Agent ID, hostname, MAC address, or IP address of the agent to perform the action on",
      "order": 1
    },
    "quarantine_state": {
      "type": "boolean",
      "title": "Quarantine State",
      "description": "True to quarantine host, false to unquarantine host",
      "default": true,
      "order": 2
    },
    "whitelist": {
      "type": "array",
      "title": "Whitelist",
      "description": "This list contains a set of devices that should not be blocked. This can include IPs, hostnames, UUIDs and agent IDs",
      "items": {
        "type": "string"
      },
      "order": 3
    }
  },
  "required": [
    "agent"
  ]
}
    """)

    def __init__(self):
        super(self.__class__, self).__init__(self.schema)


class QuarantineOutput(komand.Output):
    schema = json.loads("""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "result_code": {
      "type": "integer",
      "title": "Result Code",
      "description": "The Apex Central Automation API result code",
      "order": 1
    },
    "result_content": {
      "type": "array",
      "title": "Result Content",
      "description": "The Apex Central Automation API result content",
      "items": {
        "$ref": "#/definitions/result_content"
      },
      "order": 2
    },
    "result_description": {
      "type": "string",
      "title": "Result Description",
      "description": "The Apex Central Automation API result description",
      "order": 3
    }
  },
  "definitions": {
    "result_content": {
      "type": "object",
      "title": "result_content",
      "properties": {
        "capabilities": {
          "type": "array",
          "title": "Capabilities",
          "description": "Result capabilities",
          "items": {
            "type": "string"
          },
          "order": 1
        },
        "entity_id": {
          "type": "string",
          "title": "Entity ID",
          "description": "Result entity ID",
          "order": 2
        },
        "folder_path": {
          "type": "string",
          "title": "Folder Path",
          "description": "Result folder path",
          "order": 3
        },
        "host_name": {
          "type": "string",
          "title": "Host Name",
          "description": "Result host name",
          "order": 4
        },
        "ip_address_list": {
          "type": "string",
          "title": "IP Address List",
          "description": "Result IP address list",
          "order": 5
        },
        "isolation_status": {
          "type": "string",
          "title": "Isolation Status",
          "description": "Result isolation status",
          "order": 6
        },
        "mac_address_list": {
          "type": "string",
          "title": "MAC Address List",
          "description": "Result MAC address list",
          "order": 7
        },
        "managing_server_id": {
          "type": "string",
          "title": "Managing Server ID",
          "description": "Result managing server ID",
          "order": 8
        },
        "product": {
          "type": "string",
          "title": "Product",
          "description": "Result product",
          "order": 9
        }
      }
    }
  }
}
    """)

    def __init__(self):
        super(self.__class__, self).__init__(self.schema)

<filename>plugins/trendmicro_apex/icon_trendmicro_apex/actions/quarantine/schema.py
# GENERATED BY KOMAND SDK - DO NOT EDIT
import komand
import json


class Component:
    DESCRIPTION = "Quarantine (isolate) an endpoint"


class Input:
    AGENT = "agent"
    QUARANTINE_STATE = "quarantine_state"
    WHITELIST = "whitelist"
    

class Output:
    RESULT_CODE = "result_code"
    RESULT_CONTENT = "result_content"
    RESULT_DESCRIPTION = "result_description"
    

class QuarantineInput(komand.Input):
    schema = json.loads("""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "agent": {
      "type": "string",
      "title": "Agent",
      "description": "Agent ID, hostname, MAC address, or IP address of the agent to perform the action on",
      "order": 1
    },
    "quarantine_state": {
      "type": "boolean",
      "title": "Quarantine State",
      "description": "True to quarantine host, false to unquarantine host",
      "default": true,
      "order": 2
    },
    "whitelist": {
      "type": "array",
      "title": "Whitelist",
      "description": "This list contains a set of devices that should not be blocked. This can include IPs, hostnames, UUIDs and agent IDs",
      "items": {
        "type": "string"
      },
      "order": 3
    }
  },
  "required": [
    "agent"
  ]
}
    """)

    def __init__(self):
        super(self.__class__, self).__init__(self.schema)


class QuarantineOutput(komand.Output):
    schema = json.loads("""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "result_code": {
      "type": "integer",
      "title": "Result Code",
      "description": "The Apex Central Automation API result code",
      "order": 1
    },
    "result_content": {
      "type": "array",
      "title": "Result Content",
      "description": "The Apex Central Automation API result content",
      "items": {
        "$ref": "#/definitions/result_content"
      },
      "order": 2
    },
    "result_description": {
      "type": "string",
      "title": "Result Description",
      "description": "The Apex Central Automation API result description",
      "order": 3
    }
  },
  "definitions": {
    "result_content": {
      "type": "object",
      "title": "result_content",
      "properties": {
        "capabilities": {
          "type": "array",
          "title": "Capabilities",
          "description": "Result capabilities",
          "items": {
            "type": "string"
          },
          "order": 1
        },
        "entity_id": {
          "type": "string",
          "title": "Entity ID",
          "description": "Result entity ID",
          "order": 2
        },
        "folder_path": {
          "type": "string",
          "title": "Folder Path",
          "description": "Result folder path",
          "order": 3
        },
        "host_name": {
          "type": "string",
          "title": "Host Name",
          "description": "Result host name",
          "order": 4
        },
        "ip_address_list": {
          "type": "string",
          "title": "IP Address List",
          "description": "Result IP address list",
          "order": 5
        },
        "isolation_status": {
          "type": "string",
          "title": "Isolation Status",
          "description": "Result isolation status",
          "order": 6
        },
        "mac_address_list": {
          "type": "string",
          "title": "MAC Address List",
          "description": "Result MAC address list",
          "order": 7
        },
        "managing_server_id": {
          "type": "string",
          "title": "Managing Server ID",
          "description": "Result managing server ID",
          "order": 8
        },
        "product": {
          "type": "string",
          "title": "Product",
          "description": "Result product",
          "order": 9
        }
      }
    }
  }
}
    """)

    def __init__(self):
        super(self.__class__, self).__init__(self.schema)

# GENERATED BY KOMAND SDK - DO NOT EDIT {   "type": "object",   "title": "Variables",   "properties": {     "agent": {       "type": "string",       "title": "Agent",       "description": "Agent ID, hostname, MAC address, or IP address of the agent to perform the action on",       "order": 1     },     "quarantine_state": {       "type": "boolean",       "title": "Quarantine State",       "description": "True to quarantine host, false to unquarantine host",       "default": true,       "order": 2     },     "whitelist": {       "type": "array",       "title": "Whitelist",       "description": "This list contains a set of devices that should not be blocked. This can include IPs, hostnames, UUIDs and agent IDs",       "items": {         "type": "string"       },       "order": 3     }   },   "required": [     "agent"   ] } {   "type": "object",   "title": "Variables",   "properties": {     "result_code": {       "type": "integer",       "title": "Result Code",       "description": "The Apex Central Automation API result code",       "order": 1     },     "result_content": {       "type": "array",       "title": "Result Content",       "description": "The Apex Central Automation API result content",       "items": {         "$ref": "#/definitions/result_content"       },       "order": 2     },     "result_description": {       "type": "string",       "title": "Result Description",       "description": "The Apex Central Automation API result description",       "order": 3     }   },   "definitions": {     "result_content": {       "type": "object",       "title": "result_content",       "properties": {         "capabilities": {           "type": "array",           "title": "Capabilities",           "description": "Result capabilities",           "items": {             "type": "string"           },           "order": 1         },         "entity_id": {           "type": "string",           "title": "Entity ID",           "description": "Result entity ID",           "order": 2         },         "folder_path": {           "type": "string",           "title": "Folder Path",           "description": "Result folder path",           "order": 3         },         "host_name": {           "type": "string",           "title": "Host Name",           "description": "Result host name",           "order": 4         },         "ip_address_list": {           "type": "string",           "title": "IP Address List",           "description": "Result IP address list",           "order": 5         },         "isolation_status": {           "type": "string",           "title": "Isolation Status",           "description": "Result isolation status",           "order": 6         },         "mac_address_list": {           "type": "string",           "title": "MAC Address List",           "description": "Result MAC address list",           "order": 7         },         "managing_server_id": {           "type": "string",           "title": "Managing Server ID",           "description": "Result managing server ID",           "order": 8         },         "product": {           "type": "string",           "title": "Product",           "description": "Result product",           "order": 9         }       }     }   } }