# GENERATED BY KOMAND SDK - DO NOT EDIT
import insightconnect_plugin_runtime
import json


class Component:
    DESCRIPTION = "Download attachment"


class Input:
    ATTRIBUTE_ID = "attribute_id"
    

class Output:
    ATTACHMENT = "attachment"
    

class DownloadAttachmentInput(insightconnect_plugin_runtime.Input):
    schema = json.loads("""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "attribute_id": {
      "type": "string",
      "title": "Attribute ID",
      "description": "Attribute ID of attachment or malware sample",
      "order": 1
    }
  },
  "required": [
    "attribute_id"
  ]
}
    """)

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


class DownloadAttachmentOutput(insightconnect_plugin_runtime.Output):
    schema = json.loads("""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "attachment": {
      "type": "string",
      "title": "Attachment",
      "displayType": "bytes",
      "description": "Attachment",
      "format": "bytes",
      "order": 1
    }
  }
}
    """)

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

b749b382241684dd01439d0134ba4cbfdcf28c73
<mask token>


class Output:
    ATTACHMENT = 'attachment'


class DownloadAttachmentInput(insightconnect_plugin_runtime.Input):
    schema = json.loads(
        """
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "attribute_id": {
      "type": "string",
      "title": "Attribute ID",
      "description": "Attribute ID of attachment or malware sample",
      "order": 1
    }
  },
  "required": [
    "attribute_id"
  ]
}
    """
        )

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


class DownloadAttachmentOutput(insightconnect_plugin_runtime.Output):
    schema = json.loads(
        """
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "attachment": {
      "type": "string",
      "title": "Attachment",
      "displayType": "bytes",
      "description": "Attachment",
      "format": "bytes",
      "order": 1
    }
  }
}
    """
        )

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

<mask token>


class Input:
    <mask token>


class Output:
    ATTACHMENT = 'attachment'


class DownloadAttachmentInput(insightconnect_plugin_runtime.Input):
    schema = json.loads(
        """
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "attribute_id": {
      "type": "string",
      "title": "Attribute ID",
      "description": "Attribute ID of attachment or malware sample",
      "order": 1
    }
  },
  "required": [
    "attribute_id"
  ]
}
    """
        )

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


class DownloadAttachmentOutput(insightconnect_plugin_runtime.Output):
    schema = json.loads(
        """
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "attachment": {
      "type": "string",
      "title": "Attachment",
      "displayType": "bytes",
      "description": "Attachment",
      "format": "bytes",
      "order": 1
    }
  }
}
    """
        )

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

<mask token>


class Component:
    <mask token>


class Input:
    ATTRIBUTE_ID = 'attribute_id'


class Output:
    ATTACHMENT = 'attachment'


class DownloadAttachmentInput(insightconnect_plugin_runtime.Input):
    schema = json.loads(
        """
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "attribute_id": {
      "type": "string",
      "title": "Attribute ID",
      "description": "Attribute ID of attachment or malware sample",
      "order": 1
    }
  },
  "required": [
    "attribute_id"
  ]
}
    """
        )

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


class DownloadAttachmentOutput(insightconnect_plugin_runtime.Output):
    schema = json.loads(
        """
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "attachment": {
      "type": "string",
      "title": "Attachment",
      "displayType": "bytes",
      "description": "Attachment",
      "format": "bytes",
      "order": 1
    }
  }
}
    """
        )

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

<mask token>


class Component:
    DESCRIPTION = 'Download attachment'


class Input:
    ATTRIBUTE_ID = 'attribute_id'


class Output:
    ATTACHMENT = 'attachment'


class DownloadAttachmentInput(insightconnect_plugin_runtime.Input):
    schema = json.loads(
        """
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "attribute_id": {
      "type": "string",
      "title": "Attribute ID",
      "description": "Attribute ID of attachment or malware sample",
      "order": 1
    }
  },
  "required": [
    "attribute_id"
  ]
}
    """
        )

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


class DownloadAttachmentOutput(insightconnect_plugin_runtime.Output):
    schema = json.loads(
        """
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "attachment": {
      "type": "string",
      "title": "Attachment",
      "displayType": "bytes",
      "description": "Attachment",
      "format": "bytes",
      "order": 1
    }
  }
}
    """
        )

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

# GENERATED BY KOMAND SDK - DO NOT EDIT
import insightconnect_plugin_runtime
import json


class Component:
    DESCRIPTION = "Download attachment"


class Input:
    ATTRIBUTE_ID = "attribute_id"
    

class Output:
    ATTACHMENT = "attachment"
    

class DownloadAttachmentInput(insightconnect_plugin_runtime.Input):
    schema = json.loads("""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "attribute_id": {
      "type": "string",
      "title": "Attribute ID",
      "description": "Attribute ID of attachment or malware sample",
      "order": 1
    }
  },
  "required": [
    "attribute_id"
  ]
}
    """)

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


class DownloadAttachmentOutput(insightconnect_plugin_runtime.Output):
    schema = json.loads("""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "attachment": {
      "type": "string",
      "title": "Attachment",
      "displayType": "bytes",
      "description": "Attachment",
      "format": "bytes",
      "order": 1
    }
  }
}
    """)

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