<gh_stars>10-100
# GENERATED BY KOMAND SDK - DO NOT EDIT
import komand
import json


class Input:
    CERTIFICATE = "certificate"
    CERTIFICATE_PASSPHRASE = "certificate_passphrase"
    PORT = "port"
    SERVER = "server"
    

class ConnectionSchema(komand.Input):
    schema = json.loads("""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "certificate": {
      "type": "string",
      "title": "Certificate",
      "displayType": "bytes",
      "description": "Base64-encoded certificate to authenticate with the host input API",
      "format": "bytes",
      "order": 3
    },
    "certificate_passphrase": {
      "$ref": "#/definitions/credential_secret_key",
      "title": "Certificate Passphrase",
      "description": "The passphrase to access the certificate",
      "order": 4
    },
    "port": {
      "type": "integer",
      "title": "Port",
      "description": "Enter the port to connect to the host input API (Default:8307)",
      "default": 8307,
      "order": 2
    },
    "server": {
      "type": "string",
      "title": "Server Address",
      "description": "Enter the address for the server",
      "order": 1
    }
  },
  "definitions": {
    "credential_secret_key": {
      "id": "credential_secret_key",
      "type": "object",
      "title": "Credential: Secret Key",
      "description": "A shared secret key",
      "properties": {
        "secretKey": {
          "type": "string",
          "title": "Secret Key",
          "displayType": "password",
          "description": "The shared secret key",
          "format": "password"
        }
      },
      "required": [
        "secretKey"
      ]
    }
  }
}
    """)

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