<reponame>lukaszlaszuk/insightconnect-plugins<filename>plugins/box/komand_box/actions/upload_file/schema.py
# GENERATED BY KOMAND SDK - DO NOT EDIT
import komand
import json


class Component:
    DESCRIPTION = "Upload file to folder"


class Input:
    FILE = "file"
    FOLDER_ID = "folder_id"
    NAME = "name"
    

class Output:
    STATUS = "status"
    

class UploadFileInput(komand.Input):
    schema = json.loads("""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "file": {
      "type": "string",
      "title": "File",
      "description": "File to upload",
      "order": 3
    },
    "folder_id": {
      "type": "string",
      "title": "Folder ID",
      "description": "Parent folder ID",
      "order": 2
    },
    "name": {
      "type": "string",
      "title": "Name",
      "description": "File name, max. 225 char, no special characters accepted",
      "order": 1
    }
  },
  "required": [
    "file",
    "folder_id",
    "name"
  ]
}
    """)

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


class UploadFileOutput(komand.Output):
    schema = json.loads("""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "status": {
      "type": "boolean",
      "title": "Status",
      "description": "Status",
      "order": 1
    }
  }
}
    """)

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

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


class Component:
    DESCRIPTION = "Upload file to folder"


class Input:
    FILE = "file"
    FOLDER_ID = "folder_id"
    NAME = "name"
    

class Output:
    STATUS = "status"
    

class UploadFileInput(komand.Input):
    schema = json.loads("""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "file": {
      "type": "string",
      "title": "File",
      "description": "File to upload",
      "order": 3
    },
    "folder_id": {
      "type": "string",
      "title": "Folder ID",
      "description": "Parent folder ID",
      "order": 2
    },
    "name": {
      "type": "string",
      "title": "Name",
      "description": "File name, max. 225 char, no special characters accepted",
      "order": 1
    }
  },
  "required": [
    "file",
    "folder_id",
    "name"
  ]
}
    """)

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


class UploadFileOutput(komand.Output):
    schema = json.loads("""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "status": {
      "type": "boolean",
      "title": "Status",
      "description": "Status",
      "order": 1
    }
  }
}
    """)

    def __init__(self):
        super(self.__class__, self).__init__(self.schema)
# GENERATED BY KOMAND SDK - DO NOT EDIT {   "type": "object",   "title": "Variables",   "properties": {     "file": {       "type": "string",       "title": "File",       "description": "File to upload",       "order": 3     },     "folder_id": {       "type": "string",       "title": "Folder ID",       "description": "Parent folder ID",       "order": 2     },     "name": {       "type": "string",       "title": "Name",       "description": "File name, max. 225 char, no special characters accepted",       "order": 1     }   },   "required": [     "file",     "folder_id",     "name"   ] } {   "type": "object",   "title": "Variables",   "properties": {     "status": {       "type": "boolean",       "title": "Status",       "description": "Status",       "order": 1     }   } }