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


class Component:
    DESCRIPTION = "Expand a shortened URL"


class Input:
    FOLLOW = "follow"
    URL = "url"
    

class Output:
    URL = "url"
    

class ExpandInput(komand.Input):
    schema = json.loads("""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "follow": {
      "type": "boolean",
      "title": "Follow",
      "description": "Whether to follow the URL",
      "default": false,
      "order": 2
    },
    "url": {
      "type": "string",
      "title": "URL",
      "description": "Shortened URL",
      "order": 1
    }
  },
  "required": [
    "follow",
    "url"
  ]
}
    """)

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


class ExpandOutput(komand.Output):
    schema = json.loads("""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "url": {
      "type": "string",
      "title": "URL",
      "description": "Expanded URL",
      "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 = "Expand a shortened URL"


class Input:
    FOLLOW = "follow"
    URL = "url"
    

class Output:
    URL = "url"
    

class ExpandInput(komand.Input):
    schema = json.loads("""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "follow": {
      "type": "boolean",
      "title": "Follow",
      "description": "Whether to follow the URL",
      "default": false,
      "order": 2
    },
    "url": {
      "type": "string",
      "title": "URL",
      "description": "Shortened URL",
      "order": 1
    }
  },
  "required": [
    "follow",
    "url"
  ]
}
    """)

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


class ExpandOutput(komand.Output):
    schema = json.loads("""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "url": {
      "type": "string",
      "title": "URL",
      "description": "Expanded URL",
      "order": 1
    }
  }
}
    """)

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

# GENERATED BY KOMAND SDK - DO NOT EDIT {   "type": "object",   "title": "Variables",   "properties": {     "follow": {       "type": "boolean",       "title": "Follow",       "description": "Whether to follow the URL",       "default": false,       "order": 2     },     "url": {       "type": "string",       "title": "URL",       "description": "Shortened URL",       "order": 1     }   },   "required": [     "follow",     "url"   ] } {   "type": "object",   "title": "Variables",   "properties": {     "url": {       "type": "string",       "title": "URL",       "description": "Expanded URL",       "order": 1     }   } }