<reponame>lukaszlaszuk/insightconnect-plugins
# GENERATED BY KOMAND SDK - DO NOT EDIT
import insightconnect_plugin_runtime
import json


class Component:
    DESCRIPTION = "URL-encode a URL"


class Input:
    ENCODE_ALL = "encode_all"
    URL = "url"
    

class Output:
    URL = "url"
    

class EncodeInput(insightconnect_plugin_runtime.Input):
    schema = json.loads("""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "encode_all": {
      "type": "boolean",
      "title": "Encode All Characters",
      "description": "If true will encode all special characters",
      "default": false,
      "order": 2
    },
    "url": {
      "type": "string",
      "title": "URL",
      "description": "URL to encode",
      "order": 1
    }
  },
  "required": [
    "url"
  ]
}
    """)

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


class EncodeOutput(insightconnect_plugin_runtime.Output):
    schema = json.loads("""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "url": {
      "type": "string",
      "title": "Encoded URL",
      "description": "Encoded URL",
      "order": 1
    }
  },
  "required": [
    "url"
  ]
}
    """)

    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 = "URL-encode a URL"


class Input:
    ENCODE_ALL = "encode_all"
    URL = "url"
    

class Output:
    URL = "url"
    

class EncodeInput(insightconnect_plugin_runtime.Input):
    schema = json.loads("""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "encode_all": {
      "type": "boolean",
      "title": "Encode All Characters",
      "description": "If true will encode all special characters",
      "default": false,
      "order": 2
    },
    "url": {
      "type": "string",
      "title": "URL",
      "description": "URL to encode",
      "order": 1
    }
  },
  "required": [
    "url"
  ]
}
    """)

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


class EncodeOutput(insightconnect_plugin_runtime.Output):
    schema = json.loads("""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "url": {
      "type": "string",
      "title": "Encoded URL",
      "description": "Encoded URL",
      "order": 1
    }
  },
  "required": [
    "url"
  ]
}
    """)

    def __init__(self):
        super(self.__class__, self).__init__(self.schema)
# GENERATED BY KOMAND SDK - DO NOT EDIT {   "type": "object",   "title": "Variables",   "properties": {     "encode_all": {       "type": "boolean",       "title": "Encode All Characters",       "description": "If true will encode all special characters",       "default": false,       "order": 2     },     "url": {       "type": "string",       "title": "URL",       "description": "URL to encode",       "order": 1     }   },   "required": [     "url"   ] } {   "type": "object",   "title": "Variables",   "properties": {     "url": {       "type": "string",       "title": "Encoded URL",       "description": "Encoded URL",       "order": 1     }   },   "required": [     "url"   ] }