[
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "const",
          "type": "address"
        }
      ],
      "stateMutability": "nonpayable",
      "type": "constructor"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "address",
          "name": "previousOwner",
          "type": "address"
        },
        {
          "indexed": true,
          "internalType": "address",
          "name": "newOwner",
          "type": "address"
        }
      ],
      "name": "OwnershipTransferred",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "vmId",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "string",
          "name": "intranetIp",
          "type": "string"
        },
        {
          "indexed": false,
          "internalType": "string",
          "name": "externalIp",
          "type": "string"
        },
        {
          "indexed": false,
          "internalType": "string",
          "name": "exSshPort",
          "type": "string"
        },
        {
          "indexed": false,
          "internalType": "string",
          "name": "exVncPort",
          "type": "string"
        },
        {
          "indexed": false,
          "internalType": "string",
          "name": "inSshPort",
          "type": "string"
        },
        {
          "indexed": false,
          "internalType": "string",
          "name": "inVncPort",
          "type": "string"
        }
      ],
      "name": "UpdateNetworkInfoEvent",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "vmId",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "string",
          "name": "cpuCost",
          "type": "string"
        },
        {
          "indexed": false,
          "internalType": "string",
          "name": "memoryCost",
          "type": "string"
        },
        {
          "indexed": false,
          "internalType": "string",
          "name": "gpuCost",
          "type": "string"
        },
        {
          "indexed": false,
          "internalType": "string",
          "name": "diskCost",
          "type": "string"
        }
      ],
      "name": "UpdateResourceInfoEvent",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "vmId",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "uint64",
          "name": "cpuNum",
          "type": "uint64"
        },
        {
          "indexed": false,
          "internalType": "uint64",
          "name": "memoryNum",
          "type": "uint64"
        },
        {
          "indexed": false,
          "internalType": "uint64",
          "name": "gpuNum",
          "type": "uint64"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "disk",
          "type": "uint256"
        }
      ],
      "name": "UpdateVMInfoEvent",
      "type": "event"
    },
    {
      "inputs": [],
      "name": "_const",
      "outputs": [
        {
          "internalType": "contract ICloudConstant",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "_admin",
          "type": "address"
        }
      ],
      "name": "addAdmin",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "owner",
          "type": "address"
        },
        {
          "internalType": "string",
          "name": "taskId",
          "type": "string"
        },
        {
          "internalType": "uint256",
          "name": "vmId",
          "type": "uint256"
        },
        {
          "internalType": "string",
          "name": "clusterId",
          "type": "string"
        },
        {
          "internalType": "string",
          "name": "globalIdentify",
          "type": "string"
        },
        {
          "internalType": "string",
          "name": "hostId",
          "type": "string"
        },
        {
          "internalType": "string",
          "name": "vmName",
          "type": "string"
        },
        {
          "internalType": "string",
          "name": "os",
          "type": "string"
        }
      ],
      "name": "addVirtualMachine",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "vmid",
          "type": "uint256"
        },
        {
          "internalType": "string",
          "name": "user",
          "type": "string"
        },
        {
          "internalType": "string",
          "name": "pwd",
          "type": "string"
        }
      ],
      "name": "addVmUser",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "_admin",
          "type": "address"
        }
      ],
      "name": "delAdmin",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "string",
          "name": "taskId",
          "type": "string"
        }
      ],
      "name": "getVmInfo",
      "outputs": [
        {
          "internalType": "string",
          "name": "externalIp",
          "type": "string"
        },
        {
          "internalType": "string",
          "name": "externalPort",
          "type": "string"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "_addr",
          "type": "address"
        }
      ],
      "name": "isAdmin",
      "outputs": [
        {
          "internalType": "bool",
          "name": "",
          "type": "bool"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "owner",
      "outputs": [
        {
          "internalType": "address",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "renounceOwnership",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "const",
          "type": "address"
        }
      ],
      "name": "setConstant",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "newOwner",
          "type": "address"
        }
      ],
      "name": "transferOwnership",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "vmId",
          "type": "uint256"
        },
        {
          "internalType": "string",
          "name": "cpuCost",
          "type": "string"
        },
        {
          "internalType": "string",
          "name": "memoryCost",
          "type": "string"
        },
        {
          "internalType": "string",
          "name": "gpuCost",
          "type": "string"
        },
        {
          "internalType": "string",
          "name": "diskCost",
          "type": "string"
        }
      ],
      "name": "updateResourceInfo",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "vmId",
          "type": "uint256"
        },
        {
          "internalType": "uint64",
          "name": "cpuNum",
          "type": "uint64"
        },
        {
          "internalType": "uint64",
          "name": "memoryNum",
          "type": "uint64"
        },
        {
          "internalType": "uint64",
          "name": "gpuNum",
          "type": "uint64"
        },
        {
          "internalType": "uint256",
          "name": "disk",
          "type": "uint256"
        }
      ],
      "name": "updateVMInfoEvent",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "vmId",
          "type": "uint256"
        },
        {
          "internalType": "string",
          "name": "intranetIp",
          "type": "string"
        },
        {
          "internalType": "string",
          "name": "externalIp",
          "type": "string"
        },
        {
          "internalType": "string",
          "name": "exSshPort",
          "type": "string"
        },
        {
          "internalType": "string",
          "name": "exVncPort",
          "type": "string"
        },
        {
          "internalType": "string",
          "name": "inSshPort",
          "type": "string"
        },
        {
          "internalType": "string",
          "name": "inVncPort",
          "type": "string"
        }
      ],
      "name": "updateVmNetworkInfo",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "name": "vmData",
      "outputs": [
        {
          "internalType": "string",
          "name": "",
          "type": "string"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    }
  ]