mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Revert "CLOUSTACK-5099: Utils.py-has-wrong-reference, cleaned it. As well added Uniform naming convention"
This reverts commit ec00a6fb74042259ceea6add676de3f15e642d4a.
This commit is contained in:
parent
ec00a6fb74
commit
65b12f45b9
@ -22,7 +22,7 @@ import marvin
|
||||
from nose.plugins.attrib import attr
|
||||
from marvin.cloudstackTestCase import *
|
||||
from marvin.cloudstackAPI import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin.remoteSSHClient import remoteSSHClient
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
|
||||
@ -26,7 +26,7 @@ from marvin.cloudstackAPI import *
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin import remoteSSHClient
|
||||
import datetime
|
||||
|
||||
|
||||
|
||||
@ -25,7 +25,7 @@ from marvin.cloudstackAPI import *
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin.remoteSSHClient import remoteSSHClient
|
||||
import datetime
|
||||
|
||||
|
||||
|
||||
@ -22,7 +22,7 @@ from marvin.cloudstackAPI import *
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin import remoteSSHClient
|
||||
from nose.plugins.attrib import attr
|
||||
from marvin.cloudstackException import cloudstackAPIException
|
||||
|
||||
|
||||
@ -20,7 +20,7 @@ from marvin.cloudstackAPI import *
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin import remoteSSHClient
|
||||
from nose.plugins.attrib import attr
|
||||
|
||||
class Services:
|
||||
|
||||
@ -25,7 +25,7 @@ from marvin.cloudstackAPI import *
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin.remoteSSHClient import remoteSSHClient
|
||||
import datetime
|
||||
|
||||
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
import marvin
|
||||
from marvin.cloudstackTestCase import *
|
||||
from marvin.cloudstackAPI import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin import remoteSSHClient
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
|
||||
@ -23,7 +23,7 @@ from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.common import *
|
||||
from nose.plugins.attrib import attr
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin import remoteSSHClient
|
||||
import unittest
|
||||
import random
|
||||
import string
|
||||
|
||||
@ -39,7 +39,7 @@ from marvin.integration.lib.common import (get_domain,
|
||||
from marvin.cloudstackAPI.createEgressFirewallRule import createEgressFirewallRuleCmd
|
||||
from marvin.cloudstackAPI.deleteEgressFirewallRule import deleteEgressFirewallRuleCmd
|
||||
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin.remoteSSHClient import remoteSSHClient
|
||||
import time
|
||||
|
||||
class Services:
|
||||
@ -270,7 +270,7 @@ class TestEgressFWRules(cloudstackTestCase):
|
||||
fd.write(expect_script)
|
||||
fd.close()
|
||||
|
||||
ssh = SshClient(host=sourceip,
|
||||
ssh = remoteSSHClient(host=sourceip,
|
||||
port=22,
|
||||
user='root',
|
||||
passwd=self.services["host_password"])
|
||||
|
||||
@ -22,7 +22,7 @@ import marvin
|
||||
from nose.plugins.attrib import attr
|
||||
from marvin.cloudstackTestCase import *
|
||||
from marvin.cloudstackAPI import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin.remoteSSHClient import remoteSSHClient
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
|
||||
@ -25,7 +25,7 @@ from marvin.cloudstackAPI import *
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin.remoteSSHClient import remoteSSHClient
|
||||
import datetime
|
||||
|
||||
|
||||
@ -314,7 +314,7 @@ class TestEIP(cloudstackTestCase):
|
||||
self.debug("SSH into netscaler: %s" %
|
||||
self.services["netscaler"]["ipaddress"])
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
22,
|
||||
self.services["netscaler"]["username"],
|
||||
@ -458,7 +458,7 @@ class TestEIP(cloudstackTestCase):
|
||||
self.debug("SSH into netscaler: %s" %
|
||||
self.services["netscaler"]["ipaddress"])
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
22,
|
||||
self.services["netscaler"]["username"],
|
||||
@ -657,7 +657,7 @@ class TestEIP(cloudstackTestCase):
|
||||
self.debug("SSH into netscaler: %s" %
|
||||
self.services["netscaler"]["ipaddress"])
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
22,
|
||||
self.services["netscaler"]["username"],
|
||||
@ -871,7 +871,7 @@ class TestEIP(cloudstackTestCase):
|
||||
self.debug("SSH into netscaler: %s" %
|
||||
self.services["netscaler"]["ipaddress"])
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
22,
|
||||
self.services["netscaler"]["username"],
|
||||
@ -1138,7 +1138,7 @@ class TestELB(cloudstackTestCase):
|
||||
self.debug("SSH into netscaler: %s" %
|
||||
self.services["netscaler"]["ipaddress"])
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
22,
|
||||
self.services["netscaler"]["username"],
|
||||
@ -1287,7 +1287,7 @@ class TestELB(cloudstackTestCase):
|
||||
self.debug("SSH into netscaler: %s" %
|
||||
self.services["netscaler"]["ipaddress"])
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
22,
|
||||
self.services["netscaler"]["username"],
|
||||
@ -1366,7 +1366,7 @@ class TestELB(cloudstackTestCase):
|
||||
self.debug("SSH into netscaler: %s" %
|
||||
self.services["netscaler"]["ipaddress"])
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
22,
|
||||
self.services["netscaler"]["username"],
|
||||
@ -1512,7 +1512,7 @@ class TestELB(cloudstackTestCase):
|
||||
self.debug("SSH into netscaler: %s" %
|
||||
self.services["netscaler"]["ipaddress"])
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
22,
|
||||
self.services["netscaler"]["username"],
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
import marvin
|
||||
from marvin.cloudstackTestCase import *
|
||||
from marvin.cloudstackAPI import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin.remoteSSHClient import remoteSSHClient
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
|
||||
@ -38,7 +38,7 @@ from marvin.integration.lib.common import (get_domain,
|
||||
random_gen
|
||||
)
|
||||
from marvin.cloudstackAPI import createLBStickinessPolicy
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin.remoteSSHClient import remoteSSHClient
|
||||
|
||||
|
||||
class Services:
|
||||
@ -383,7 +383,7 @@ class TestHAProxyStickyness(cloudstackTestCase):
|
||||
# If Round Robin Algorithm is chosen,
|
||||
# each ssh command should alternate between VMs
|
||||
|
||||
ssh_1 = SshClient(
|
||||
ssh_1 = remoteSSHClient(
|
||||
ip_addr,
|
||||
22,
|
||||
self.services["natrule"]["username"],
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
import marvin
|
||||
from marvin.cloudstackTestCase import *
|
||||
from marvin.cloudstackAPI import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin.remoteSSHClient import remoteSSHClient
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
|
||||
@ -25,7 +25,7 @@ from marvin.cloudstackAPI import *
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin.remoteSSHClient import remoteSSHClient
|
||||
import datetime
|
||||
|
||||
|
||||
@ -1745,7 +1745,7 @@ class TestGuestNetworkWithNetScaler(cloudstackTestCase):
|
||||
self.debug("SSH into netscaler: %s" %
|
||||
self.services["netscaler"]["ipaddress"])
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
self.services["netscaler"]["port"],
|
||||
self.services["netscaler"]["username"],
|
||||
@ -1891,7 +1891,7 @@ class TestGuestNetworkWithNetScaler(cloudstackTestCase):
|
||||
listall=True
|
||||
)
|
||||
nw = network_list[0]
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
self.services["netscaler"]["port"],
|
||||
self.services["netscaler"]["username"],
|
||||
@ -2051,7 +2051,7 @@ class TestGuestNetworkWithNetScaler(cloudstackTestCase):
|
||||
self.debug("SSH into netscaler: %s" %
|
||||
self.services["netscaler"]["ipaddress"])
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
self.services["netscaler"]["port"],
|
||||
self.services["netscaler"]["username"],
|
||||
@ -2249,7 +2249,7 @@ class TestGuestNetworkShutDown(cloudstackTestCase):
|
||||
self.debug("SSH into netscaler: %s" %
|
||||
self.services["netscaler"]["ipaddress"])
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
self.services["netscaler"]["port"],
|
||||
self.services["netscaler"]["username"],
|
||||
@ -2334,7 +2334,7 @@ class TestGuestNetworkShutDown(cloudstackTestCase):
|
||||
listall=True
|
||||
)
|
||||
nw = network_list[0]
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
self.services["netscaler"]["port"],
|
||||
self.services["netscaler"]["username"],
|
||||
@ -2396,7 +2396,7 @@ class TestGuestNetworkShutDown(cloudstackTestCase):
|
||||
listall=True
|
||||
)
|
||||
nw = network_list[0]
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
self.services["netscaler"]["port"],
|
||||
self.services["netscaler"]["username"],
|
||||
@ -2458,7 +2458,7 @@ class TestGuestNetworkShutDown(cloudstackTestCase):
|
||||
listall=True
|
||||
)
|
||||
nw = network_list[0]
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
self.services["netscaler"]["port"],
|
||||
self.services["netscaler"]["username"],
|
||||
|
||||
@ -25,7 +25,7 @@ from marvin.cloudstackAPI import *
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin.remoteSSHClient import remoteSSHClient
|
||||
import datetime
|
||||
|
||||
|
||||
@ -1228,7 +1228,7 @@ class TestAddMultipleVmsLb(cloudstackTestCase):
|
||||
self.debug("SSH into netscaler: %s" %
|
||||
self.services["netscaler"]["ipaddress"])
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
22,
|
||||
self.services["netscaler"]["username"],
|
||||
@ -2104,7 +2104,7 @@ class TestLoadBalancingRule(cloudstackTestCase):
|
||||
|
||||
self.debug("SSH into Netscaler to verify other resources are deleted")
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
self.services["netscaler"]["port"],
|
||||
self.services["netscaler"]["username"],
|
||||
@ -2430,7 +2430,7 @@ class TestVmWithLb(cloudstackTestCase):
|
||||
)
|
||||
self.debug("SSH into Netscaler to verify other resources are deleted")
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
self.services["netscaler"]["port"],
|
||||
self.services["netscaler"]["username"],
|
||||
@ -2523,7 +2523,7 @@ class TestVmWithLb(cloudstackTestCase):
|
||||
e))
|
||||
self.debug("SSH into Netscaler to rules still persist")
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
self.services["netscaler"]["port"],
|
||||
self.services["netscaler"]["username"],
|
||||
@ -2596,7 +2596,7 @@ class TestVmWithLb(cloudstackTestCase):
|
||||
e))
|
||||
self.debug("SSH into Netscaler to rules still persist")
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
self.services["netscaler"]["port"],
|
||||
self.services["netscaler"]["username"],
|
||||
@ -2709,7 +2709,7 @@ class TestVmWithLb(cloudstackTestCase):
|
||||
e))
|
||||
self.debug("SSH into Netscaler to rules still persist")
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
self.services["netscaler"]["port"],
|
||||
self.services["netscaler"]["username"],
|
||||
@ -2797,7 +2797,7 @@ class TestVmWithLb(cloudstackTestCase):
|
||||
e))
|
||||
self.debug("SSH into Netscaler to rules still persist")
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
self.services["netscaler"]["port"],
|
||||
self.services["netscaler"]["username"],
|
||||
@ -2880,7 +2880,7 @@ class TestVmWithLb(cloudstackTestCase):
|
||||
time.sleep(int(delay[0].value) + int(wait[0].value))
|
||||
self.debug("SSH into Netscaler to rules still persist")
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
self.services["netscaler"]["port"],
|
||||
self.services["netscaler"]["username"],
|
||||
@ -2936,7 +2936,7 @@ class TestVmWithLb(cloudstackTestCase):
|
||||
)
|
||||
self.debug("SSH into Netscaler to verify other resources are deleted")
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
self.services["netscaler"]["port"],
|
||||
self.services["netscaler"]["username"],
|
||||
|
||||
@ -25,7 +25,7 @@ from marvin.cloudstackAPI import *
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin.remoteSSHClient import remoteSSHClient
|
||||
import datetime
|
||||
|
||||
|
||||
@ -300,7 +300,7 @@ class TestLbWithRoundRobin(cloudstackTestCase):
|
||||
self.debug("SSH into netscaler: %s" %
|
||||
self.services["netscaler"]["ipaddress"])
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
self.services["netscaler"]["port"],
|
||||
self.services["netscaler"]["username"],
|
||||
@ -524,7 +524,7 @@ class TestLbWithLeastConn(cloudstackTestCase):
|
||||
self.debug("SSH into netscaler: %s" %
|
||||
self.services["netscaler"]["ipaddress"])
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
self.services["netscaler"]["port"],
|
||||
self.services["netscaler"]["username"],
|
||||
@ -739,7 +739,7 @@ class TestLbWithSourceIp(cloudstackTestCase):
|
||||
self.debug("SSH into netscaler: %s" %
|
||||
self.services["netscaler"]["ipaddress"])
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
self.services["netscaler"]["port"],
|
||||
self.services["netscaler"]["username"],
|
||||
@ -912,7 +912,7 @@ class TestLbAlgoRrLc(cloudstackTestCase):
|
||||
self.debug("SSH into netscaler: %s" %
|
||||
self.services["netscaler"]["ipaddress"])
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
self.services["netscaler"]["port"],
|
||||
self.services["netscaler"]["username"],
|
||||
@ -945,7 +945,7 @@ class TestLbAlgoRrLc(cloudstackTestCase):
|
||||
self.debug("SSH into netscaler: %s" %
|
||||
self.services["netscaler"]["ipaddress"])
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
self.services["netscaler"]["port"],
|
||||
self.services["netscaler"]["username"],
|
||||
@ -1115,7 +1115,7 @@ class TestLbAlgoLcRr(cloudstackTestCase):
|
||||
self.debug("SSH into netscaler: %s" %
|
||||
self.services["netscaler"]["ipaddress"])
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
self.services["netscaler"]["port"],
|
||||
self.services["netscaler"]["username"],
|
||||
@ -1147,7 +1147,7 @@ class TestLbAlgoLcRr(cloudstackTestCase):
|
||||
self.debug("SSH into netscaler: %s" %
|
||||
self.services["netscaler"]["ipaddress"])
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
self.services["netscaler"]["port"],
|
||||
self.services["netscaler"]["username"],
|
||||
@ -1318,7 +1318,7 @@ class TestLbAlgoRrSb(cloudstackTestCase):
|
||||
self.debug("SSH into netscaler: %s" %
|
||||
self.services["netscaler"]["ipaddress"])
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
self.services["netscaler"]["port"],
|
||||
self.services["netscaler"]["username"],
|
||||
@ -1351,7 +1351,7 @@ class TestLbAlgoRrSb(cloudstackTestCase):
|
||||
self.debug("SSH into netscaler: %s" %
|
||||
self.services["netscaler"]["ipaddress"])
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
self.services["netscaler"]["port"],
|
||||
self.services["netscaler"]["username"],
|
||||
@ -1526,7 +1526,7 @@ class TestLbAlgoSbRr(cloudstackTestCase):
|
||||
self.debug("SSH into netscaler: %s" %
|
||||
self.services["netscaler"]["ipaddress"])
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
self.services["netscaler"]["port"],
|
||||
self.services["netscaler"]["username"],
|
||||
@ -1560,7 +1560,7 @@ class TestLbAlgoSbRr(cloudstackTestCase):
|
||||
self.debug("SSH into netscaler: %s" %
|
||||
self.services["netscaler"]["ipaddress"])
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
self.services["netscaler"]["port"],
|
||||
self.services["netscaler"]["username"],
|
||||
@ -1734,7 +1734,7 @@ class TestLbAlgoSbLc(cloudstackTestCase):
|
||||
self.debug("SSH into netscaler: %s" %
|
||||
self.services["netscaler"]["ipaddress"])
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
self.services["netscaler"]["port"],
|
||||
self.services["netscaler"]["username"],
|
||||
@ -1767,7 +1767,7 @@ class TestLbAlgoSbLc(cloudstackTestCase):
|
||||
self.debug("SSH into netscaler: %s" %
|
||||
self.services["netscaler"]["ipaddress"])
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
self.services["netscaler"]["port"],
|
||||
self.services["netscaler"]["username"],
|
||||
@ -1939,7 +1939,7 @@ class TestLbAlgoLcSb(cloudstackTestCase):
|
||||
self.debug("SSH into netscaler: %s" %
|
||||
self.services["netscaler"]["ipaddress"])
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
self.services["netscaler"]["port"],
|
||||
self.services["netscaler"]["username"],
|
||||
@ -1972,7 +1972,7 @@ class TestLbAlgoLcSb(cloudstackTestCase):
|
||||
self.debug("SSH into netscaler: %s" %
|
||||
self.services["netscaler"]["ipaddress"])
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
self.services["netscaler"]["port"],
|
||||
self.services["netscaler"]["username"],
|
||||
|
||||
@ -25,7 +25,7 @@ from marvin.cloudstackAPI import *
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin.remoteSSHClient import remoteSSHClient
|
||||
import datetime
|
||||
|
||||
|
||||
@ -267,7 +267,7 @@ class TestLbStickyPolicy(cloudstackTestCase):
|
||||
self.debug("SSH into netscaler: %s" %
|
||||
self.services["netscaler"]["ipaddress"])
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
self.services["netscaler"]["port"],
|
||||
self.services["netscaler"]["username"],
|
||||
@ -356,7 +356,7 @@ class TestLbStickyPolicy(cloudstackTestCase):
|
||||
self.debug("SSH into netscaler: %s" %
|
||||
self.services["netscaler"]["ipaddress"])
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
self.services["netscaler"]["port"],
|
||||
self.services["netscaler"]["username"],
|
||||
@ -445,7 +445,7 @@ class TestLbStickyPolicy(cloudstackTestCase):
|
||||
self.debug("SSH into netscaler: %s" %
|
||||
self.services["netscaler"]["ipaddress"])
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
self.services["netscaler"]["port"],
|
||||
self.services["netscaler"]["username"],
|
||||
@ -536,7 +536,7 @@ class TestLbStickyPolicy(cloudstackTestCase):
|
||||
self.debug("SSH into netscaler: %s" %
|
||||
self.services["netscaler"]["ipaddress"])
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
self.services["netscaler"]["port"],
|
||||
self.services["netscaler"]["username"],
|
||||
@ -627,7 +627,7 @@ class TestLbStickyPolicy(cloudstackTestCase):
|
||||
self.debug("SSH into netscaler: %s" %
|
||||
self.services["netscaler"]["ipaddress"])
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
self.services["netscaler"]["port"],
|
||||
self.services["netscaler"]["username"],
|
||||
@ -718,7 +718,7 @@ class TestLbStickyPolicy(cloudstackTestCase):
|
||||
self.debug("SSH into netscaler: %s" %
|
||||
self.services["netscaler"]["ipaddress"])
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
self.services["netscaler"]["port"],
|
||||
self.services["netscaler"]["username"],
|
||||
@ -809,7 +809,7 @@ class TestLbStickyPolicy(cloudstackTestCase):
|
||||
self.debug("SSH into netscaler: %s" %
|
||||
self.services["netscaler"]["ipaddress"])
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
self.services["netscaler"]["port"],
|
||||
self.services["netscaler"]["username"],
|
||||
@ -900,7 +900,7 @@ class TestLbStickyPolicy(cloudstackTestCase):
|
||||
self.debug("SSH into netscaler: %s" %
|
||||
self.services["netscaler"]["ipaddress"])
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
self.services["netscaler"]["port"],
|
||||
self.services["netscaler"]["username"],
|
||||
@ -991,7 +991,7 @@ class TestLbStickyPolicy(cloudstackTestCase):
|
||||
self.debug("SSH into netscaler: %s" %
|
||||
self.services["netscaler"]["ipaddress"])
|
||||
try:
|
||||
ssh_client = SshClient(
|
||||
ssh_client = remoteSSHClient(
|
||||
self.services["netscaler"]["ipaddress"],
|
||||
self.services["netscaler"]["port"],
|
||||
self.services["netscaler"]["username"],
|
||||
|
||||
@ -25,7 +25,7 @@ from marvin.cloudstackAPI import *
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin.remoteSSHClient import remoteSSHClient
|
||||
import datetime
|
||||
|
||||
|
||||
|
||||
@ -25,7 +25,7 @@ from marvin.cloudstackAPI import *
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin.remoteSSHClient import remoteSSHClient
|
||||
import datetime
|
||||
|
||||
|
||||
|
||||
@ -23,7 +23,7 @@ from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
from netaddr import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin.remoteSSHClient import remoteSSHClient
|
||||
|
||||
from nose.plugins.attrib import attr
|
||||
|
||||
@ -808,7 +808,7 @@ class TestAssociatePublicIp(cloudstackTestCase):
|
||||
|
||||
self.debug("Trying to SSH to ip: %s" % portableip.ipaddress.ipaddress)
|
||||
|
||||
SshClient(
|
||||
remoteSSHClient(
|
||||
portableip.ipaddress.ipaddress,
|
||||
self.services['natrule']["publicport"],
|
||||
self.virtual_machine.username,
|
||||
@ -1533,7 +1533,7 @@ class TestPortableIpTransferAcrossNetworks(cloudstackTestCase):
|
||||
|
||||
self.debug("Trying to SSH to ip: %s" % portableip.ipaddress.ipaddress)
|
||||
|
||||
SshClient(
|
||||
remoteSSHClient(
|
||||
portableip.ipaddress.ipaddress,
|
||||
self.services['natrule']["publicport"],
|
||||
self.virtual_machine2.username,
|
||||
|
||||
@ -24,7 +24,7 @@ from marvin.cloudstackAPI import *
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin.remoteSSHClient import remoteSSHClient
|
||||
import datetime
|
||||
|
||||
|
||||
|
||||
@ -24,7 +24,7 @@ from marvin.cloudstackAPI import *
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin.remoteSSHClient import remoteSSHClient
|
||||
import datetime
|
||||
|
||||
|
||||
|
||||
@ -24,7 +24,7 @@ from marvin.cloudstackAPI import *
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin.remoteSSHClient import remoteSSHClient
|
||||
import datetime
|
||||
|
||||
|
||||
|
||||
@ -24,7 +24,7 @@ from marvin.cloudstackAPI import *
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin.remoteSSHClient import remoteSSHClient
|
||||
import datetime
|
||||
|
||||
|
||||
|
||||
@ -25,7 +25,7 @@ from marvin.cloudstackAPI import *
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin.remoteSSHClient import remoteSSHClient
|
||||
|
||||
#Import System modules
|
||||
import time
|
||||
@ -361,7 +361,7 @@ class TestDefaultSecurityGroup(cloudstackTestCase):
|
||||
# SSH Attempt to VM should fail
|
||||
with self.assertRaises(Exception):
|
||||
self.debug("SSH into VM: %s" % self.virtual_machine.ssh_ip)
|
||||
ssh = SshClient(
|
||||
ssh = remoteSSHClient.remoteSSHClient(
|
||||
self.virtual_machine.ssh_ip,
|
||||
self.virtual_machine.ssh_port,
|
||||
self.virtual_machine.username,
|
||||
@ -656,7 +656,7 @@ class TestRevokeIngressRule(cloudstackTestCase):
|
||||
# SSH Attempt to VM should fail
|
||||
with self.assertRaises(Exception):
|
||||
self.debug("SSH into VM: %s" % self.virtual_machine.id)
|
||||
SshClient(
|
||||
remoteSSHClient.remoteSSHClient(
|
||||
self.virtual_machine.ssh_ip,
|
||||
self.virtual_machine.ssh_port,
|
||||
self.virtual_machine.username,
|
||||
|
||||
@ -21,7 +21,7 @@ from marvin.cloudstackAPI import *
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin.remoteSSHClient import remoteSSHClient
|
||||
from marvin.integration.lib.utils import is_snapshot_on_nfs
|
||||
import os
|
||||
|
||||
|
||||
@ -22,7 +22,7 @@ import marvin
|
||||
from nose.plugins.attrib import attr
|
||||
from marvin.cloudstackTestCase import *
|
||||
from marvin.cloudstackAPI import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin.remoteSSHClient import remoteSSHClient
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
import marvin
|
||||
from marvin.cloudstackTestCase import *
|
||||
from marvin.cloudstackAPI import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin.remoteSSHClient import remoteSSHClient
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
|
||||
@ -24,7 +24,7 @@ from marvin.cloudstackAPI import *
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin.remoteSSHClient import remoteSSHClient
|
||||
import urllib
|
||||
from random import random
|
||||
#Import System modules
|
||||
|
||||
@ -24,7 +24,7 @@ from marvin.cloudstackAPI import *
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin.remoteSSHClient import remoteSSHClient
|
||||
import datetime
|
||||
|
||||
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
import marvin
|
||||
from marvin.cloudstackTestCase import *
|
||||
from marvin.cloudstackAPI import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin.remoteSSHClient import remoteSSHClient
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
|
||||
@ -25,7 +25,7 @@ from marvin.cloudstackAPI import *
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin.remoteSSHClient import remoteSSHClient
|
||||
import datetime
|
||||
# For more info on ddt refer to http://ddt.readthedocs.org/en/latest/api.html#module-ddt
|
||||
from ddt import ddt, data
|
||||
|
||||
@ -26,7 +26,7 @@ from marvin.cloudstackAPI import *
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin.remoteSSHClient import remoteSSHClient
|
||||
import datetime
|
||||
|
||||
|
||||
|
||||
@ -25,7 +25,7 @@ from marvin.cloudstackAPI import *
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin.remoteSSHClient import remoteSSHClient
|
||||
import datetime
|
||||
|
||||
|
||||
|
||||
@ -25,7 +25,7 @@ from marvin.cloudstackAPI import *
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin.remoteSSHClient import remoteSSHClient
|
||||
from marvin.codes import PASS
|
||||
|
||||
import time
|
||||
|
||||
@ -1,10 +0,0 @@
|
||||
diff a/test/integration/component/test_vpc_vm_life_cycle.py b/test/integration/component/test_vpc_vm_life_cycle.py (rejected hunks)
|
||||
@@ -25,7 +25,7 @@ from marvin.cloudstackAPI import *
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
-from marvin.remoteSSHClient import remoteSSHClient
|
||||
+from marvin.sshClient import SshClient
|
||||
|
||||
import time
|
||||
|
||||
@ -25,7 +25,7 @@ from marvin.cloudstackAPI import *
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin.remoteSSHClient import remoteSSHClient
|
||||
import datetime
|
||||
|
||||
|
||||
|
||||
@ -21,7 +21,7 @@ from marvin.cloudstackAPI import *
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin import remoteSSHClient
|
||||
from nose.plugins.attrib import attr
|
||||
|
||||
class Services:
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
|
||||
from marvin.cloudstackTestCase import *
|
||||
from marvin.cloudstackAPI import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin import remoteSSHClient
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
@ -197,7 +197,7 @@ class TestLoadBalance(cloudstackTestCase):
|
||||
# If Round Robin Algorithm is chosen,
|
||||
# each ssh command should alternate between VMs
|
||||
|
||||
ssh_1 = SshClient(
|
||||
ssh_1 = remoteSSHClient(
|
||||
ip_addr,
|
||||
self.services['lbrule']["publicport"],
|
||||
self.vm_1.username,
|
||||
|
||||
@ -21,7 +21,7 @@ import marvin
|
||||
from marvin.cloudstackException import cloudstackAPIException
|
||||
from marvin.cloudstackTestCase import *
|
||||
from marvin.cloudstackAPI import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin import remoteSSHClient
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
@ -460,7 +460,7 @@ class TestPortForwarding(cloudstackTestCase):
|
||||
"SSHing into VM with IP address %s after NAT rule deletion" %
|
||||
self.virtual_machine.ipaddress)
|
||||
|
||||
SshClient(
|
||||
remoteSSHClient(
|
||||
src_nat_ip_addr.ipaddress,
|
||||
self.virtual_machine.ssh_port,
|
||||
self.virtual_machine.username,
|
||||
@ -578,7 +578,7 @@ class TestPortForwarding(cloudstackTestCase):
|
||||
"SSHing into VM with IP address %s after NAT rule deletion" %
|
||||
self.virtual_machine.ipaddress)
|
||||
|
||||
SshClient(
|
||||
remoteSSHClient(
|
||||
ip_address.ipaddress.ipaddress,
|
||||
self.virtual_machine.ssh_port,
|
||||
self.virtual_machine.username,
|
||||
@ -741,7 +741,7 @@ class TestRebootRouter(cloudstackTestCase):
|
||||
try:
|
||||
self.debug("SSH into VM (ID : %s ) after reboot" % self.vm_1.id)
|
||||
|
||||
SshClient(
|
||||
remoteSSHClient(
|
||||
self.public_ip.ipaddress.ipaddress,
|
||||
self.services["natrule"]["publicport"],
|
||||
self.vm_1.username,
|
||||
@ -883,7 +883,7 @@ class TestReleaseIP(cloudstackTestCase):
|
||||
|
||||
# SSH Attempt though public IP should fail
|
||||
with self.assertRaises(Exception):
|
||||
ssh_2 = SshClient(
|
||||
ssh_2 = remoteSSHClient(
|
||||
self.ip_addr.ipaddress,
|
||||
self.services["natrule"]["publicport"],
|
||||
self.virtual_machine.username,
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
import marvin
|
||||
from marvin.cloudstackTestCase import *
|
||||
from marvin.cloudstackAPI import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin.remoteSSHClient import remoteSSHClient
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
import marvin
|
||||
from marvin.cloudstackTestCase import *
|
||||
from marvin.cloudstackAPI import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin import remoteSSHClient
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
import marvin
|
||||
from marvin.cloudstackTestCase import *
|
||||
from marvin.cloudstackAPI import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin.remoteSSHClient import remoteSSHClient
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
import marvin
|
||||
from marvin.cloudstackTestCase import *
|
||||
from marvin.cloudstackAPI import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin import remoteSSHClient
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
import marvin
|
||||
from marvin.cloudstackTestCase import *
|
||||
from marvin.cloudstackAPI import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin import remoteSSHClient
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
import marvin
|
||||
from marvin.cloudstackTestCase import *
|
||||
from marvin.cloudstackAPI import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin.remoteSSHClient import remoteSSHClient
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
|
||||
@ -21,7 +21,7 @@ import marvin
|
||||
from marvin.cloudstackTestCase import *
|
||||
from marvin.cloudstackException import *
|
||||
from marvin.cloudstackAPI import *
|
||||
from marvin.sshClient import SshClient
|
||||
from marvin.remoteSSHClient import remoteSSHClient
|
||||
from marvin.integration.lib.utils import *
|
||||
from marvin.integration.lib.base import *
|
||||
from marvin.integration.lib.common import *
|
||||
|
||||
@ -1,102 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import unittest
|
||||
import os
|
||||
import sys
|
||||
import logging
|
||||
from functools import partial
|
||||
|
||||
|
||||
def testCaseLogger(message, logger=None):
|
||||
if logger is not None:
|
||||
logger.debug(message)
|
||||
|
||||
|
||||
class TestCaseExecuteEngine(object):
|
||||
def __init__(self, testclient, config, testcaseLogFile=None,
|
||||
testResultLogFile=None):
|
||||
"""
|
||||
Initialize the testcase execution engine, just the basics here
|
||||
@var testcaseLogFile: client log file
|
||||
@var testResultLogFile: summary report file
|
||||
"""
|
||||
self.testclient = testclient
|
||||
self.config = config
|
||||
self.logformat =\
|
||||
logging.Formatter(
|
||||
"%(asctime)s - %(levelname)s - %(name)s - %(message)s")
|
||||
self.loader = unittest.loader.TestLoader()
|
||||
self.suite = None
|
||||
|
||||
if testcaseLogFile is not None:
|
||||
self.logfile = testcaseLogFile
|
||||
self.logger = logging.getLogger("TestCaseExecuteEngine")
|
||||
fh = logging.FileHandler(self.logfile)
|
||||
fh.setFormatter(self.logformat)
|
||||
self.logger.addHandler(fh)
|
||||
self.logger.setLevel(logging.DEBUG)
|
||||
if testResultLogFile is not None:
|
||||
ch = logging.StreamHandler()
|
||||
ch.setLevel(logging.ERROR)
|
||||
ch.setFormatter(self.logformat)
|
||||
self.logger.addHandler(ch)
|
||||
fp = open(testResultLogFile, "w")
|
||||
self.testResultLogFile = fp
|
||||
else:
|
||||
self.testResultLogFile = sys.stdout
|
||||
|
||||
def loadTestsFromDir(self, testDirectory):
|
||||
""" Load the test suites from a package with multiple test files """
|
||||
self.suite = self.loader.discover(testDirectory)
|
||||
self.injectTestCase(self.suite)
|
||||
|
||||
def loadTestsFromFile(self, file_name):
|
||||
""" Load the tests from a single script/module """
|
||||
if os.path.isfile(file_name):
|
||||
self.suite = self.loader.discover(os.path.dirname(file_name),
|
||||
os.path.basename(file_name))
|
||||
self.injectTestCase(self.suite)
|
||||
|
||||
def injectTestCase(self, testSuites):
|
||||
for test in testSuites:
|
||||
if isinstance(test, unittest.BaseTestSuite):
|
||||
self.injectTestCase(test)
|
||||
else:
|
||||
#logger bears the name of the test class
|
||||
testcaselogger = logging.getLogger("%s" % (test))
|
||||
fh = logging.FileHandler(self.logfile)
|
||||
fh.setFormatter(self.logformat)
|
||||
testcaselogger.addHandler(fh)
|
||||
testcaselogger.setLevel(logging.DEBUG)
|
||||
|
||||
#inject testclient and logger into each unittest
|
||||
setattr(test, "testClient", self.testclient)
|
||||
setattr(test, "config", self.config)
|
||||
setattr(test, "debug", partial(testCaseLogger,
|
||||
logger=testcaselogger))
|
||||
setattr(test.__class__, "clstestclient", self.testclient)
|
||||
if hasattr(test, "user"):
|
||||
# attribute when test is entirely executed as user
|
||||
self.testclient.createUserApiClient(test.UserName,
|
||||
test.DomainName,
|
||||
test.AcctType)
|
||||
|
||||
def run(self):
|
||||
if self.suite:
|
||||
unittest.TextTestRunner(stream=self.testResultLogFile,
|
||||
verbosity=2).run(self.suite)
|
||||
@ -1,18 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
#Marvin - The cloudstack test client
|
||||
@ -1,261 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import threading
|
||||
import cloudstackException
|
||||
import time
|
||||
import Queue
|
||||
import copy
|
||||
import sys
|
||||
import jsonHelper
|
||||
import datetime
|
||||
|
||||
|
||||
class job(object):
|
||||
def __init__(self):
|
||||
self.id = None
|
||||
self.cmd = None
|
||||
|
||||
|
||||
class jobStatus(object):
|
||||
def __init__(self):
|
||||
self.result = None
|
||||
self.status = None
|
||||
self.startTime = None
|
||||
self.endTime = None
|
||||
self.duration = None
|
||||
self.jobId = None
|
||||
self.responsecls = None
|
||||
|
||||
def __str__(self):
|
||||
return '{%s}' % str(', '.join('%s : %s' % (k, repr(v)) for (k, v)
|
||||
in self.__dict__.iteritems()))
|
||||
|
||||
|
||||
class workThread(threading.Thread):
|
||||
def __init__(self, in_queue, outqueue, apiClient, db=None, lock=None):
|
||||
threading.Thread.__init__(self)
|
||||
self.inqueue = in_queue
|
||||
self.output = outqueue
|
||||
self.connection = apiClient.connection.__copy__()
|
||||
self.db = None
|
||||
self.lock = lock
|
||||
|
||||
def queryAsynJob(self, job):
|
||||
if job.jobId is None:
|
||||
return job
|
||||
|
||||
try:
|
||||
self.lock.acquire()
|
||||
result = self.connection.poll(job.jobId, job.responsecls).jobresult
|
||||
except cloudstackException.cloudstackAPIException, e:
|
||||
result = str(e)
|
||||
finally:
|
||||
self.lock.release()
|
||||
|
||||
job.result = result
|
||||
return job
|
||||
|
||||
def executeCmd(self, job):
|
||||
cmd = job.cmd
|
||||
|
||||
jobstatus = jobStatus()
|
||||
jobId = None
|
||||
try:
|
||||
self.lock.acquire()
|
||||
|
||||
if cmd.isAsync == "false":
|
||||
jobstatus.startTime = datetime.datetime.now()
|
||||
|
||||
result = self.connection.make_request(cmd)
|
||||
jobstatus.result = result
|
||||
jobstatus.endTime = datetime.datetime.now()
|
||||
jobstatus.duration =\
|
||||
time.mktime(jobstatus.endTime.timetuple()) - time.mktime(
|
||||
jobstatus.startTime.timetuple())
|
||||
else:
|
||||
result = self.connection.make_request(cmd, None, True)
|
||||
if result is None:
|
||||
jobstatus.status = False
|
||||
else:
|
||||
jobId = result.jobid
|
||||
jobstatus.jobId = jobId
|
||||
try:
|
||||
responseName =\
|
||||
cmd.__class__.__name__.replace("Cmd", "Response")
|
||||
jobstatus.responsecls =\
|
||||
jsonHelper.getclassFromName(cmd, responseName)
|
||||
except:
|
||||
pass
|
||||
jobstatus.status = True
|
||||
except cloudstackException.cloudstackAPIException, e:
|
||||
jobstatus.result = str(e)
|
||||
jobstatus.status = False
|
||||
except:
|
||||
jobstatus.status = False
|
||||
jobstatus.result = sys.exc_info()
|
||||
finally:
|
||||
self.lock.release()
|
||||
|
||||
return jobstatus
|
||||
|
||||
def run(self):
|
||||
while self.inqueue.qsize() > 0:
|
||||
job = self.inqueue.get()
|
||||
if isinstance(job, jobStatus):
|
||||
jobstatus = self.queryAsynJob(job)
|
||||
else:
|
||||
jobstatus = self.executeCmd(job)
|
||||
|
||||
self.output.put(jobstatus)
|
||||
self.inqueue.task_done()
|
||||
|
||||
'''release the resource'''
|
||||
self.connection.close()
|
||||
|
||||
|
||||
class jobThread(threading.Thread):
|
||||
def __init__(self, inqueue, interval):
|
||||
threading.Thread.__init__(self)
|
||||
self.inqueue = inqueue
|
||||
self.interval = interval
|
||||
|
||||
def run(self):
|
||||
while self.inqueue.qsize() > 0:
|
||||
job = self.inqueue.get()
|
||||
try:
|
||||
job.run()
|
||||
'''release the api connection'''
|
||||
job.apiClient.connection.close()
|
||||
except:
|
||||
pass
|
||||
|
||||
self.inqueue.task_done()
|
||||
time.sleep(self.interval)
|
||||
|
||||
|
||||
class outputDict(object):
|
||||
def __init__(self):
|
||||
self.lock = threading.Condition()
|
||||
self.dict = {}
|
||||
|
||||
|
||||
class asyncJobMgr(object):
|
||||
def __init__(self, apiClient, db):
|
||||
self.inqueue = Queue.Queue()
|
||||
self.output = outputDict()
|
||||
self.outqueue = Queue.Queue()
|
||||
self.apiClient = apiClient
|
||||
self.db = db
|
||||
|
||||
def submitCmds(self, cmds):
|
||||
if not self.inqueue.empty():
|
||||
return False
|
||||
id = 0
|
||||
ids = []
|
||||
for cmd in cmds:
|
||||
asyncjob = job()
|
||||
asyncjob.id = id
|
||||
asyncjob.cmd = cmd
|
||||
self.inqueue.put(asyncjob)
|
||||
id += 1
|
||||
ids.append(id)
|
||||
return ids
|
||||
|
||||
def updateTimeStamp(self, jobstatus):
|
||||
jobId = jobstatus.jobId
|
||||
if jobId is not None and self.db is not None:
|
||||
result = self.db.execute(
|
||||
"select job_status, created, last_updated from async_job where\
|
||||
id='%s'" % str(jobId))
|
||||
if result is not None and len(result) > 0:
|
||||
if result[0][0] == 1:
|
||||
jobstatus.status = True
|
||||
else:
|
||||
jobstatus.status = False
|
||||
jobstatus.startTime = result[0][1]
|
||||
jobstatus.endTime = result[0][2]
|
||||
delta = jobstatus.endTime - jobstatus.startTime
|
||||
jobstatus.duration = delta.total_seconds()
|
||||
|
||||
def waitForComplete(self, workers=10):
|
||||
self.inqueue.join()
|
||||
lock = threading.Lock()
|
||||
resultQueue = Queue.Queue()
|
||||
'''intermediate result is stored in self.outqueue'''
|
||||
for i in range(workers):
|
||||
worker = workThread(self.outqueue, resultQueue, self.apiClient,
|
||||
self.db, lock)
|
||||
worker.start()
|
||||
|
||||
self.outqueue.join()
|
||||
|
||||
asyncJobResult = []
|
||||
while resultQueue.qsize() > 0:
|
||||
jobstatus = resultQueue.get()
|
||||
self.updateTimeStamp(jobstatus)
|
||||
asyncJobResult.append(jobstatus)
|
||||
|
||||
return asyncJobResult
|
||||
|
||||
def submitCmdsAndWait(self, cmds, workers=10):
|
||||
'''
|
||||
put commands into a queue at first, then start workers numbers
|
||||
threads to execute this commands
|
||||
'''
|
||||
self.submitCmds(cmds)
|
||||
lock = threading.Lock()
|
||||
for i in range(workers):
|
||||
worker = workThread(self.inqueue, self.outqueue, self.apiClient,
|
||||
self.db, lock)
|
||||
worker.start()
|
||||
|
||||
return self.waitForComplete(workers)
|
||||
|
||||
def submitJobExecuteNtimes(self, job, ntimes=1, nums_threads=1,
|
||||
interval=1):
|
||||
'''
|
||||
submit one job and execute the same job ntimes, with nums_threads
|
||||
of threads
|
||||
'''
|
||||
inqueue1 = Queue.Queue()
|
||||
lock = threading.Condition()
|
||||
for i in range(ntimes):
|
||||
newjob = copy.copy(job)
|
||||
setattr(newjob, "apiClient", copy.copy(self.apiClient))
|
||||
setattr(newjob, "lock", lock)
|
||||
inqueue1.put(newjob)
|
||||
|
||||
for i in range(nums_threads):
|
||||
work = jobThread(inqueue1, interval)
|
||||
work.start()
|
||||
inqueue1.join()
|
||||
|
||||
def submitJobs(self, jobs, nums_threads=1, interval=1):
|
||||
'''submit n jobs, execute them with nums_threads of threads'''
|
||||
inqueue1 = Queue.Queue()
|
||||
lock = threading.Condition()
|
||||
|
||||
for job in jobs:
|
||||
setattr(job, "apiClient", copy.copy(self.apiClient))
|
||||
setattr(job, "lock", lock)
|
||||
inqueue1.put(job)
|
||||
|
||||
for i in range(nums_threads):
|
||||
work = jobThread(inqueue1, interval)
|
||||
work.start()
|
||||
inqueue1.join()
|
||||
File diff suppressed because one or more lines are too long
@ -1,141 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Activates a project"""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class activateProjectCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "true"
|
||||
"""id of the project to be modified"""
|
||||
"""Required"""
|
||||
self.id = None
|
||||
self.required = ["id",]
|
||||
|
||||
class activateProjectResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""the id of the project"""
|
||||
self.id = None
|
||||
"""the account name of the project's owner"""
|
||||
self.account = None
|
||||
"""the total number of cpu cores available to be created for this project"""
|
||||
self.cpuavailable = None
|
||||
"""the total number of cpu cores the project can own"""
|
||||
self.cpulimit = None
|
||||
"""the total number of cpu cores owned by project"""
|
||||
self.cputotal = None
|
||||
"""the displaytext of the project"""
|
||||
self.displaytext = None
|
||||
"""the domain name where the project belongs to"""
|
||||
self.domain = None
|
||||
"""the domain id the project belongs to"""
|
||||
self.domainid = None
|
||||
"""the total number of public ip addresses available for this project to acquire"""
|
||||
self.ipavailable = None
|
||||
"""the total number of public ip addresses this project can acquire"""
|
||||
self.iplimit = None
|
||||
"""the total number of public ip addresses allocated for this project"""
|
||||
self.iptotal = None
|
||||
"""the total memory (in MB) available to be created for this project"""
|
||||
self.memoryavailable = None
|
||||
"""the total memory (in MB) the project can own"""
|
||||
self.memorylimit = None
|
||||
"""the total memory (in MB) owned by project"""
|
||||
self.memorytotal = None
|
||||
"""the name of the project"""
|
||||
self.name = None
|
||||
"""the total number of networks available to be created for this project"""
|
||||
self.networkavailable = None
|
||||
"""the total number of networks the project can own"""
|
||||
self.networklimit = None
|
||||
"""the total number of networks owned by project"""
|
||||
self.networktotal = None
|
||||
"""the total primary storage space (in GiB) available to be used for this project"""
|
||||
self.primarystorageavailable = None
|
||||
"""the total primary storage space (in GiB) the project can own"""
|
||||
self.primarystoragelimit = None
|
||||
"""the total primary storage space (in GiB) owned by project"""
|
||||
self.primarystoragetotal = None
|
||||
"""the total secondary storage space (in GiB) available to be used for this project"""
|
||||
self.secondarystorageavailable = None
|
||||
"""the total secondary storage space (in GiB) the project can own"""
|
||||
self.secondarystoragelimit = None
|
||||
"""the total secondary storage space (in GiB) owned by project"""
|
||||
self.secondarystoragetotal = None
|
||||
"""the total number of snapshots available for this project"""
|
||||
self.snapshotavailable = None
|
||||
"""the total number of snapshots which can be stored by this project"""
|
||||
self.snapshotlimit = None
|
||||
"""the total number of snapshots stored by this project"""
|
||||
self.snapshottotal = None
|
||||
"""the state of the project"""
|
||||
self.state = None
|
||||
"""the total number of templates available to be created by this project"""
|
||||
self.templateavailable = None
|
||||
"""the total number of templates which can be created by this project"""
|
||||
self.templatelimit = None
|
||||
"""the total number of templates which have been created by this project"""
|
||||
self.templatetotal = None
|
||||
"""the total number of virtual machines available for this project to acquire"""
|
||||
self.vmavailable = None
|
||||
"""the total number of virtual machines that can be deployed by this project"""
|
||||
self.vmlimit = None
|
||||
"""the total number of virtual machines running for this project"""
|
||||
self.vmrunning = None
|
||||
"""the total number of virtual machines stopped for this project"""
|
||||
self.vmstopped = None
|
||||
"""the total number of virtual machines deployed by this project"""
|
||||
self.vmtotal = None
|
||||
"""the total volume available for this project"""
|
||||
self.volumeavailable = None
|
||||
"""the total volume which can be used by this project"""
|
||||
self.volumelimit = None
|
||||
"""the total volume being used by this project"""
|
||||
self.volumetotal = None
|
||||
"""the total number of vpcs available to be created for this project"""
|
||||
self.vpcavailable = None
|
||||
"""the total number of vpcs the project can own"""
|
||||
self.vpclimit = None
|
||||
"""the total number of vpcs owned by project"""
|
||||
self.vpctotal = None
|
||||
"""the list of resource tags associated with vm"""
|
||||
self.tags = []
|
||||
|
||||
class tags:
|
||||
def __init__(self):
|
||||
""""the account associated with the tag"""
|
||||
self.account = None
|
||||
""""customer associated with the tag"""
|
||||
self.customer = None
|
||||
""""the domain associated with the tag"""
|
||||
self.domain = None
|
||||
""""the ID of the domain associated with the tag"""
|
||||
self.domainid = None
|
||||
""""tag key name"""
|
||||
self.key = None
|
||||
""""the project name where tag belongs to"""
|
||||
self.project = None
|
||||
""""the project id the tag belongs to"""
|
||||
self.projectid = None
|
||||
""""id of the resource"""
|
||||
self.resourceid = None
|
||||
""""resource type"""
|
||||
self.resourcetype = None
|
||||
""""tag value"""
|
||||
self.value = None
|
||||
|
||||
@ -1,40 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Adds acoount to a project"""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class addAccountToProjectCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "true"
|
||||
"""id of the project to add the account to"""
|
||||
"""Required"""
|
||||
self.projectid = None
|
||||
"""name of the account to be added to the project"""
|
||||
self.account = None
|
||||
"""email to which invitation to the project is going to be sent"""
|
||||
self.email = None
|
||||
self.required = ["projectid",]
|
||||
|
||||
class addAccountToProjectResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""any text associated with the success or failure"""
|
||||
self.displaytext = None
|
||||
"""true if operation is executed successfully"""
|
||||
self.success = None
|
||||
|
||||
@ -1,54 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""adds a baremetal dhcp server"""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class addBaremetalDhcpCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "true"
|
||||
"""Type of dhcp device"""
|
||||
"""Required"""
|
||||
self.dhcpservertype = None
|
||||
"""Credentials to reach external dhcp device"""
|
||||
"""Required"""
|
||||
self.password = None
|
||||
"""the Physical Network ID"""
|
||||
"""Required"""
|
||||
self.physicalnetworkid = None
|
||||
"""URL of the external dhcp appliance."""
|
||||
"""Required"""
|
||||
self.url = None
|
||||
"""Credentials to reach external dhcp device"""
|
||||
"""Required"""
|
||||
self.username = None
|
||||
self.required = ["dhcpservertype","password","physicalnetworkid","url","username",]
|
||||
|
||||
class addBaremetalDhcpResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""device id of"""
|
||||
self.id = None
|
||||
"""name of the provider"""
|
||||
self.dhcpservertype = None
|
||||
"""the physical network to which this external dhcp device belongs to"""
|
||||
self.physicalnetworkid = None
|
||||
"""name of the provider"""
|
||||
self.provider = None
|
||||
"""url"""
|
||||
self.url = None
|
||||
|
||||
@ -1,147 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""add a baremetal host"""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class addBaremetalHostCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "false"
|
||||
"""hypervisor type of the host"""
|
||||
"""Required"""
|
||||
self.hypervisor = None
|
||||
"""the password for the host"""
|
||||
"""Required"""
|
||||
self.password = None
|
||||
"""the Pod ID for the host"""
|
||||
"""Required"""
|
||||
self.podid = None
|
||||
"""the host URL"""
|
||||
"""Required"""
|
||||
self.url = None
|
||||
"""the username for the host"""
|
||||
"""Required"""
|
||||
self.username = None
|
||||
"""the Zone ID for the host"""
|
||||
"""Required"""
|
||||
self.zoneid = None
|
||||
"""Allocation state of this Host for allocation of new resources"""
|
||||
self.allocationstate = None
|
||||
"""the cluster ID for the host"""
|
||||
self.clusterid = None
|
||||
"""the cluster name for the host"""
|
||||
self.clustername = None
|
||||
"""list of tags to be added to the host"""
|
||||
self.hosttags = []
|
||||
"""ip address intentionally allocated to this host after provisioning"""
|
||||
self.ipaddress = None
|
||||
self.required = ["hypervisor","password","podid","url","username","zoneid",]
|
||||
|
||||
class addBaremetalHostResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""the ID of the host"""
|
||||
self.id = None
|
||||
"""the cpu average load on the host"""
|
||||
self.averageload = None
|
||||
"""capabilities of the host"""
|
||||
self.capabilities = None
|
||||
"""the cluster ID of the host"""
|
||||
self.clusterid = None
|
||||
"""the cluster name of the host"""
|
||||
self.clustername = None
|
||||
"""the cluster type of the cluster that host belongs to"""
|
||||
self.clustertype = None
|
||||
"""the amount of the host's CPU currently allocated"""
|
||||
self.cpuallocated = None
|
||||
"""the CPU number of the host"""
|
||||
self.cpunumber = None
|
||||
"""the CPU speed of the host"""
|
||||
self.cpuspeed = None
|
||||
"""the amount of the host's CPU currently used"""
|
||||
self.cpuused = None
|
||||
"""the amount of the host's CPU after applying the cpu.overprovisioning.factor"""
|
||||
self.cpuwithoverprovisioning = None
|
||||
"""the date and time the host was created"""
|
||||
self.created = None
|
||||
"""true if the host is disconnected. False otherwise."""
|
||||
self.disconnected = None
|
||||
"""the host's currently allocated disk size"""
|
||||
self.disksizeallocated = None
|
||||
"""the total disk size of the host"""
|
||||
self.disksizetotal = None
|
||||
"""events available for the host"""
|
||||
self.events = None
|
||||
"""true if the host is Ha host (dedicated to vms started by HA process; false otherwise"""
|
||||
self.hahost = None
|
||||
"""true if this host has enough CPU and RAM capacity to migrate a VM to it, false otherwise"""
|
||||
self.hasenoughcapacity = None
|
||||
"""comma-separated list of tags for the host"""
|
||||
self.hosttags = None
|
||||
"""the host hypervisor"""
|
||||
self.hypervisor = None
|
||||
"""the hypervisor version"""
|
||||
self.hypervisorversion = None
|
||||
"""the IP address of the host"""
|
||||
self.ipaddress = None
|
||||
"""true if local storage is active, false otherwise"""
|
||||
self.islocalstorageactive = None
|
||||
"""the date and time the host was last pinged"""
|
||||
self.lastpinged = None
|
||||
"""the management server ID of the host"""
|
||||
self.managementserverid = None
|
||||
"""the amount of the host's memory currently allocated"""
|
||||
self.memoryallocated = None
|
||||
"""the memory total of the host"""
|
||||
self.memorytotal = None
|
||||
"""the amount of the host's memory currently used"""
|
||||
self.memoryused = None
|
||||
"""the name of the host"""
|
||||
self.name = None
|
||||
"""the incoming network traffic on the host"""
|
||||
self.networkkbsread = None
|
||||
"""the outgoing network traffic on the host"""
|
||||
self.networkkbswrite = None
|
||||
"""the OS category ID of the host"""
|
||||
self.oscategoryid = None
|
||||
"""the OS category name of the host"""
|
||||
self.oscategoryname = None
|
||||
"""the Pod ID of the host"""
|
||||
self.podid = None
|
||||
"""the Pod name of the host"""
|
||||
self.podname = None
|
||||
"""the date and time the host was removed"""
|
||||
self.removed = None
|
||||
"""the resource state of the host"""
|
||||
self.resourcestate = None
|
||||
"""the state of the host"""
|
||||
self.state = None
|
||||
"""true if this host is suitable(has enough capacity and satisfies all conditions like hosttags, max guests vm limit etc) to migrate a VM to it , false otherwise"""
|
||||
self.suitableformigration = None
|
||||
"""the host type"""
|
||||
self.type = None
|
||||
"""the host version"""
|
||||
self.version = None
|
||||
"""the Zone ID of the host"""
|
||||
self.zoneid = None
|
||||
"""the Zone name of the host"""
|
||||
self.zonename = None
|
||||
"""the ID of the latest async job acting on this object"""
|
||||
self.jobid = None
|
||||
"""the current status of the latest async job acting on this object"""
|
||||
self.jobstatus = None
|
||||
|
||||
@ -1,51 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""add a baremetal pxe server"""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class addBaremetalPxeKickStartServerCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "true"
|
||||
"""Credentials to reach external pxe device"""
|
||||
"""Required"""
|
||||
self.password = None
|
||||
"""the Physical Network ID"""
|
||||
"""Required"""
|
||||
self.physicalnetworkid = None
|
||||
"""type of pxe device"""
|
||||
"""Required"""
|
||||
self.pxeservertype = None
|
||||
"""Tftp root directory of PXE server"""
|
||||
"""Required"""
|
||||
self.tftpdir = None
|
||||
"""URL of the external pxe device"""
|
||||
"""Required"""
|
||||
self.url = None
|
||||
"""Credentials to reach external pxe device"""
|
||||
"""Required"""
|
||||
self.username = None
|
||||
"""Pod Id"""
|
||||
self.podid = None
|
||||
self.required = ["password","physicalnetworkid","pxeservertype","tftpdir","url","username",]
|
||||
|
||||
class addBaremetalPxeKickStartServerResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""Tftp root directory of PXE server"""
|
||||
self.tftpdir = None
|
||||
|
||||
@ -1,65 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""add a baremetal ping pxe server"""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class addBaremetalPxePingServerCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "true"
|
||||
"""Credentials to reach external pxe device"""
|
||||
"""Required"""
|
||||
self.password = None
|
||||
"""the Physical Network ID"""
|
||||
"""Required"""
|
||||
self.physicalnetworkid = None
|
||||
"""Root directory on PING storage server"""
|
||||
"""Required"""
|
||||
self.pingdir = None
|
||||
"""PING storage server ip"""
|
||||
"""Required"""
|
||||
self.pingstorageserverip = None
|
||||
"""type of pxe device"""
|
||||
"""Required"""
|
||||
self.pxeservertype = None
|
||||
"""Tftp root directory of PXE server"""
|
||||
"""Required"""
|
||||
self.tftpdir = None
|
||||
"""URL of the external pxe device"""
|
||||
"""Required"""
|
||||
self.url = None
|
||||
"""Credentials to reach external pxe device"""
|
||||
"""Required"""
|
||||
self.username = None
|
||||
"""Password of PING storage server"""
|
||||
self.pingcifspassword = None
|
||||
"""Username of PING storage server"""
|
||||
self.pingcifsusername = None
|
||||
"""Pod Id"""
|
||||
self.podid = None
|
||||
self.required = ["password","physicalnetworkid","pingdir","pingstorageserverip","pxeservertype","tftpdir","url","username",]
|
||||
|
||||
class addBaremetalPxePingServerResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""Root directory on PING storage server"""
|
||||
self.pingdir = None
|
||||
"""PING storage server ip"""
|
||||
self.pingstorageserverip = None
|
||||
"""Tftp root directory of PXE server"""
|
||||
self.tftpdir = None
|
||||
|
||||
@ -1,45 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Adds a BigSwitch VNS device"""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class addBigSwitchVnsDeviceCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "true"
|
||||
"""Hostname of ip address of the BigSwitch VNS Controller."""
|
||||
"""Required"""
|
||||
self.hostname = None
|
||||
"""the Physical Network ID"""
|
||||
"""Required"""
|
||||
self.physicalnetworkid = None
|
||||
self.required = ["hostname","physicalnetworkid",]
|
||||
|
||||
class addBigSwitchVnsDeviceResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""device name"""
|
||||
self.bigswitchdevicename = None
|
||||
"""the controller Ip address"""
|
||||
self.hostname = None
|
||||
"""the physical network to which this BigSwitch Vns belongs to"""
|
||||
self.physicalnetworkid = None
|
||||
"""name of the provider"""
|
||||
self.provider = None
|
||||
"""device id of the BigSwitch Vns"""
|
||||
self.vnsdeviceid = None
|
||||
|
||||
@ -1,115 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Adds a new cluster"""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class addClusterCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "false"
|
||||
"""the cluster name"""
|
||||
"""Required"""
|
||||
self.clustername = None
|
||||
"""type of the cluster: CloudManaged, ExternalManaged"""
|
||||
"""Required"""
|
||||
self.clustertype = None
|
||||
"""hypervisor type of the cluster: XenServer,KVM,VMware,Hyperv,BareMetal,Simulator"""
|
||||
"""Required"""
|
||||
self.hypervisor = None
|
||||
"""the Pod ID for the host"""
|
||||
"""Required"""
|
||||
self.podid = None
|
||||
"""the Zone ID for the cluster"""
|
||||
"""Required"""
|
||||
self.zoneid = None
|
||||
"""Allocation state of this cluster for allocation of new resources"""
|
||||
self.allocationstate = None
|
||||
"""Name of virtual switch used for guest traffic in the cluster. This would override zone wide traffic label setting."""
|
||||
self.guestvswitchname = None
|
||||
"""Type of virtual switch used for guest traffic in the cluster. Allowed values are, vmwaresvs (for VMware standard vSwitch) and vmwaredvs (for VMware distributed vSwitch)"""
|
||||
self.guestvswitchtype = None
|
||||
"""the password for the host"""
|
||||
self.password = None
|
||||
"""Name of virtual switch used for public traffic in the cluster. This would override zone wide traffic label setting."""
|
||||
self.publicvswitchname = None
|
||||
"""Type of virtual switch used for public traffic in the cluster. Allowed values are, vmwaresvs (for VMware standard vSwitch) and vmwaredvs (for VMware distributed vSwitch)"""
|
||||
self.publicvswitchtype = None
|
||||
"""the URL"""
|
||||
self.url = None
|
||||
"""the username for the cluster"""
|
||||
self.username = None
|
||||
"""the ipaddress of the VSM associated with this cluster"""
|
||||
self.vsmipaddress = None
|
||||
"""the password for the VSM associated with this cluster"""
|
||||
self.vsmpassword = None
|
||||
"""the username for the VSM associated with this cluster"""
|
||||
self.vsmusername = None
|
||||
self.required = ["clustername","clustertype","hypervisor","podid","zoneid",]
|
||||
|
||||
class addClusterResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""the cluster ID"""
|
||||
self.id = None
|
||||
"""the allocation state of the cluster"""
|
||||
self.allocationstate = None
|
||||
"""the type of the cluster"""
|
||||
self.clustertype = None
|
||||
"""The cpu overcommit ratio of the cluster"""
|
||||
self.cpuovercommitratio = None
|
||||
"""the hypervisor type of the cluster"""
|
||||
self.hypervisortype = None
|
||||
"""whether this cluster is managed by cloudstack"""
|
||||
self.managedstate = None
|
||||
"""The memory overcommit ratio of the cluster"""
|
||||
self.memoryovercommitratio = None
|
||||
"""the cluster name"""
|
||||
self.name = None
|
||||
"""the Pod ID of the cluster"""
|
||||
self.podid = None
|
||||
"""the Pod name of the cluster"""
|
||||
self.podname = None
|
||||
"""the Zone ID of the cluster"""
|
||||
self.zoneid = None
|
||||
"""the Zone name of the cluster"""
|
||||
self.zonename = None
|
||||
"""the capacity of the Cluster"""
|
||||
self.capacity = []
|
||||
|
||||
class capacity:
|
||||
def __init__(self):
|
||||
""""the total capacity available"""
|
||||
self.capacitytotal = None
|
||||
""""the capacity currently in use"""
|
||||
self.capacityused = None
|
||||
""""the Cluster ID"""
|
||||
self.clusterid = None
|
||||
""""the Cluster name"""
|
||||
self.clustername = None
|
||||
""""the percentage of capacity currently in use"""
|
||||
self.percentused = None
|
||||
""""the Pod ID"""
|
||||
self.podid = None
|
||||
""""the Pod name"""
|
||||
self.podname = None
|
||||
""""the capacity type"""
|
||||
self.type = None
|
||||
""""the Zone ID"""
|
||||
self.zoneid = None
|
||||
""""the Zone name"""
|
||||
self.zonename = None
|
||||
|
||||
@ -1,145 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Adds a new host."""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class addHostCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "false"
|
||||
"""hypervisor type of the host"""
|
||||
"""Required"""
|
||||
self.hypervisor = None
|
||||
"""the password for the host"""
|
||||
"""Required"""
|
||||
self.password = None
|
||||
"""the Pod ID for the host"""
|
||||
"""Required"""
|
||||
self.podid = None
|
||||
"""the host URL"""
|
||||
"""Required"""
|
||||
self.url = None
|
||||
"""the username for the host"""
|
||||
"""Required"""
|
||||
self.username = None
|
||||
"""the Zone ID for the host"""
|
||||
"""Required"""
|
||||
self.zoneid = None
|
||||
"""Allocation state of this Host for allocation of new resources"""
|
||||
self.allocationstate = None
|
||||
"""the cluster ID for the host"""
|
||||
self.clusterid = None
|
||||
"""the cluster name for the host"""
|
||||
self.clustername = None
|
||||
"""list of tags to be added to the host"""
|
||||
self.hosttags = []
|
||||
self.required = ["hypervisor","password","podid","url","username","zoneid",]
|
||||
|
||||
class addHostResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""the ID of the host"""
|
||||
self.id = None
|
||||
"""the cpu average load on the host"""
|
||||
self.averageload = None
|
||||
"""capabilities of the host"""
|
||||
self.capabilities = None
|
||||
"""the cluster ID of the host"""
|
||||
self.clusterid = None
|
||||
"""the cluster name of the host"""
|
||||
self.clustername = None
|
||||
"""the cluster type of the cluster that host belongs to"""
|
||||
self.clustertype = None
|
||||
"""the amount of the host's CPU currently allocated"""
|
||||
self.cpuallocated = None
|
||||
"""the CPU number of the host"""
|
||||
self.cpunumber = None
|
||||
"""the CPU speed of the host"""
|
||||
self.cpuspeed = None
|
||||
"""the amount of the host's CPU currently used"""
|
||||
self.cpuused = None
|
||||
"""the amount of the host's CPU after applying the cpu.overprovisioning.factor"""
|
||||
self.cpuwithoverprovisioning = None
|
||||
"""the date and time the host was created"""
|
||||
self.created = None
|
||||
"""true if the host is disconnected. False otherwise."""
|
||||
self.disconnected = None
|
||||
"""the host's currently allocated disk size"""
|
||||
self.disksizeallocated = None
|
||||
"""the total disk size of the host"""
|
||||
self.disksizetotal = None
|
||||
"""events available for the host"""
|
||||
self.events = None
|
||||
"""true if the host is Ha host (dedicated to vms started by HA process; false otherwise"""
|
||||
self.hahost = None
|
||||
"""true if this host has enough CPU and RAM capacity to migrate a VM to it, false otherwise"""
|
||||
self.hasenoughcapacity = None
|
||||
"""comma-separated list of tags for the host"""
|
||||
self.hosttags = None
|
||||
"""the host hypervisor"""
|
||||
self.hypervisor = None
|
||||
"""the hypervisor version"""
|
||||
self.hypervisorversion = None
|
||||
"""the IP address of the host"""
|
||||
self.ipaddress = None
|
||||
"""true if local storage is active, false otherwise"""
|
||||
self.islocalstorageactive = None
|
||||
"""the date and time the host was last pinged"""
|
||||
self.lastpinged = None
|
||||
"""the management server ID of the host"""
|
||||
self.managementserverid = None
|
||||
"""the amount of the host's memory currently allocated"""
|
||||
self.memoryallocated = None
|
||||
"""the memory total of the host"""
|
||||
self.memorytotal = None
|
||||
"""the amount of the host's memory currently used"""
|
||||
self.memoryused = None
|
||||
"""the name of the host"""
|
||||
self.name = None
|
||||
"""the incoming network traffic on the host"""
|
||||
self.networkkbsread = None
|
||||
"""the outgoing network traffic on the host"""
|
||||
self.networkkbswrite = None
|
||||
"""the OS category ID of the host"""
|
||||
self.oscategoryid = None
|
||||
"""the OS category name of the host"""
|
||||
self.oscategoryname = None
|
||||
"""the Pod ID of the host"""
|
||||
self.podid = None
|
||||
"""the Pod name of the host"""
|
||||
self.podname = None
|
||||
"""the date and time the host was removed"""
|
||||
self.removed = None
|
||||
"""the resource state of the host"""
|
||||
self.resourcestate = None
|
||||
"""the state of the host"""
|
||||
self.state = None
|
||||
"""true if this host is suitable(has enough capacity and satisfies all conditions like hosttags, max guests vm limit etc) to migrate a VM to it , false otherwise"""
|
||||
self.suitableformigration = None
|
||||
"""the host type"""
|
||||
self.type = None
|
||||
"""the host version"""
|
||||
self.version = None
|
||||
"""the Zone ID of the host"""
|
||||
self.zoneid = None
|
||||
"""the Zone name of the host"""
|
||||
self.zonename = None
|
||||
"""the ID of the latest async job acting on this object"""
|
||||
self.jobid = None
|
||||
"""the current status of the latest async job acting on this object"""
|
||||
self.jobstatus = None
|
||||
|
||||
@ -1,58 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Adds backup image store."""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class addImageStoreCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "false"
|
||||
"""the image store provider name"""
|
||||
"""Required"""
|
||||
self.provider = None
|
||||
"""the details for the image store. Example: details[0].key=accesskey&details[0].value=s389ddssaa&details[1].key=secretkey&details[1].value=8dshfsss"""
|
||||
self.details = []
|
||||
"""the name for the image store"""
|
||||
self.name = None
|
||||
"""the URL for the image store"""
|
||||
self.url = None
|
||||
"""the Zone ID for the image store"""
|
||||
self.zoneid = None
|
||||
self.required = ["provider",]
|
||||
|
||||
class addImageStoreResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""the ID of the image store"""
|
||||
self.id = None
|
||||
"""the details of the image store"""
|
||||
self.details = None
|
||||
"""the name of the image store"""
|
||||
self.name = None
|
||||
"""the protocol of the image store"""
|
||||
self.protocol = None
|
||||
"""the provider name of the image store"""
|
||||
self.providername = None
|
||||
"""the scope of the image store"""
|
||||
self.scope = None
|
||||
"""the url of the image store"""
|
||||
self.url = None
|
||||
"""the Zone ID of the image store"""
|
||||
self.zoneid = None
|
||||
"""the Zone name of the image store"""
|
||||
self.zonename = None
|
||||
|
||||
@ -1,44 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Assigns secondary IP to NIC"""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class addIpToNicCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "true"
|
||||
"""the ID of the nic to which you want to assign private IP"""
|
||||
"""Required"""
|
||||
self.nicid = None
|
||||
"""Secondary IP Address"""
|
||||
self.ipaddress = None
|
||||
self.required = ["nicid",]
|
||||
|
||||
class addIpToNicResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""the ID of the secondary private IP addr"""
|
||||
self.id = None
|
||||
"""Secondary IP address"""
|
||||
self.ipaddress = None
|
||||
"""the ID of the network"""
|
||||
self.networkid = None
|
||||
"""the ID of the nic"""
|
||||
self.nicid = None
|
||||
"""the ID of the vm"""
|
||||
self.virtualmachineid = None
|
||||
|
||||
@ -1,39 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Add a new Ldap Configuration"""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class addLdapConfigurationCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "false"
|
||||
"""Hostname"""
|
||||
"""Required"""
|
||||
self.hostname = None
|
||||
"""Port"""
|
||||
"""Required"""
|
||||
self.port = None
|
||||
self.required = ["hostname","port",]
|
||||
|
||||
class addLdapConfigurationResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""hostname"""
|
||||
self.hostname = None
|
||||
"""port"""
|
||||
self.port = None
|
||||
|
||||
@ -1,35 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Adds a network device of one of the following types: ExternalDhcp, ExternalFirewall, ExternalLoadBalancer, PxeServer"""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class addNetworkDeviceCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "false"
|
||||
"""parameters for network device"""
|
||||
self.networkdeviceparameterlist = []
|
||||
"""Network device type, now supports ExternalDhcp, PxeServer, NetscalerMPXLoadBalancer, NetscalerVPXLoadBalancer, NetscalerSDXLoadBalancer, F5BigIpLoadBalancer, JuniperSRXFirewall"""
|
||||
self.networkdevicetype = None
|
||||
self.required = []
|
||||
|
||||
class addNetworkDeviceResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""the ID of the network device"""
|
||||
self.id = None
|
||||
|
||||
@ -1,53 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Adds a network serviceProvider to a physical network"""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class addNetworkServiceProviderCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "true"
|
||||
"""the name for the physical network service provider"""
|
||||
"""Required"""
|
||||
self.name = None
|
||||
"""the Physical Network ID to add the provider to"""
|
||||
"""Required"""
|
||||
self.physicalnetworkid = None
|
||||
"""the destination Physical Network ID to bridge to"""
|
||||
self.destinationphysicalnetworkid = None
|
||||
"""the list of services to be enabled for this physical network service provider"""
|
||||
self.servicelist = []
|
||||
self.required = ["name","physicalnetworkid",]
|
||||
|
||||
class addNetworkServiceProviderResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""uuid of the network provider"""
|
||||
self.id = None
|
||||
"""true if individual services can be enabled/disabled"""
|
||||
self.canenableindividualservice = None
|
||||
"""the destination physical network"""
|
||||
self.destinationphysicalnetworkid = None
|
||||
"""the provider name"""
|
||||
self.name = None
|
||||
"""the physical network this belongs to"""
|
||||
self.physicalnetworkid = None
|
||||
"""services for this provider"""
|
||||
self.servicelist = None
|
||||
"""state of the network provider"""
|
||||
self.state = None
|
||||
|
||||
@ -1,374 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Adds VM to specified network by creating a NIC"""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class addNicToVirtualMachineCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "true"
|
||||
"""Network ID"""
|
||||
"""Required"""
|
||||
self.networkid = None
|
||||
"""Virtual Machine ID"""
|
||||
"""Required"""
|
||||
self.virtualmachineid = None
|
||||
"""IP Address for the new network"""
|
||||
self.ipaddress = None
|
||||
self.required = ["networkid","virtualmachineid",]
|
||||
|
||||
class addNicToVirtualMachineResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""the ID of the virtual machine"""
|
||||
self.id = None
|
||||
"""the account associated with the virtual machine"""
|
||||
self.account = None
|
||||
"""the number of cpu this virtual machine is running with"""
|
||||
self.cpunumber = None
|
||||
"""the speed of each cpu"""
|
||||
self.cpuspeed = None
|
||||
"""the amount of the vm's CPU currently used"""
|
||||
self.cpuused = None
|
||||
"""the date when this virtual machine was created"""
|
||||
self.created = None
|
||||
"""the read (io) of disk on the vm"""
|
||||
self.diskioread = None
|
||||
"""the write (io) of disk on the vm"""
|
||||
self.diskiowrite = None
|
||||
"""the read (bytes) of disk on the vm"""
|
||||
self.diskkbsread = None
|
||||
"""the write (bytes) of disk on the vm"""
|
||||
self.diskkbswrite = None
|
||||
"""user generated name. The name of the virtual machine is returned if no displayname exists."""
|
||||
self.displayname = None
|
||||
"""an optional field whether to the display the vm to the end user or not."""
|
||||
self.displayvm = None
|
||||
"""the name of the domain in which the virtual machine exists"""
|
||||
self.domain = None
|
||||
"""the ID of the domain in which the virtual machine exists"""
|
||||
self.domainid = None
|
||||
"""the virtual network for the service offering"""
|
||||
self.forvirtualnetwork = None
|
||||
"""the group name of the virtual machine"""
|
||||
self.group = None
|
||||
"""the group ID of the virtual machine"""
|
||||
self.groupid = None
|
||||
"""Os type ID of the virtual machine"""
|
||||
self.guestosid = None
|
||||
"""true if high-availability is enabled, false otherwise"""
|
||||
self.haenable = None
|
||||
"""the ID of the host for the virtual machine"""
|
||||
self.hostid = None
|
||||
"""the name of the host for the virtual machine"""
|
||||
self.hostname = None
|
||||
"""the hypervisor on which the template runs"""
|
||||
self.hypervisor = None
|
||||
"""instance name of the user vm; this parameter is returned to the ROOT admin only"""
|
||||
self.instancename = None
|
||||
"""true if vm contains XS/VMWare tools inorder to support dynamic scaling of VM cpu/memory."""
|
||||
self.isdynamicallyscalable = None
|
||||
"""an alternate display text of the ISO attached to the virtual machine"""
|
||||
self.isodisplaytext = None
|
||||
"""the ID of the ISO attached to the virtual machine"""
|
||||
self.isoid = None
|
||||
"""the name of the ISO attached to the virtual machine"""
|
||||
self.isoname = None
|
||||
"""ssh key-pair"""
|
||||
self.keypair = None
|
||||
"""the memory allocated for the virtual machine"""
|
||||
self.memory = None
|
||||
"""the name of the virtual machine"""
|
||||
self.name = None
|
||||
"""the incoming network traffic on the vm"""
|
||||
self.networkkbsread = None
|
||||
"""the outgoing network traffic on the host"""
|
||||
self.networkkbswrite = None
|
||||
"""the password (if exists) of the virtual machine"""
|
||||
self.password = None
|
||||
"""true if the password rest feature is enabled, false otherwise"""
|
||||
self.passwordenabled = None
|
||||
"""the project name of the vm"""
|
||||
self.project = None
|
||||
"""the project id of the vm"""
|
||||
self.projectid = None
|
||||
"""public IP address id associated with vm via Static nat rule"""
|
||||
self.publicip = None
|
||||
"""public IP address id associated with vm via Static nat rule"""
|
||||
self.publicipid = None
|
||||
"""device ID of the root volume"""
|
||||
self.rootdeviceid = None
|
||||
"""device type of the root volume"""
|
||||
self.rootdevicetype = None
|
||||
"""the ID of the service offering of the virtual machine"""
|
||||
self.serviceofferingid = None
|
||||
"""the name of the service offering of the virtual machine"""
|
||||
self.serviceofferingname = None
|
||||
"""State of the Service from LB rule"""
|
||||
self.servicestate = None
|
||||
"""the state of the virtual machine"""
|
||||
self.state = None
|
||||
"""an alternate display text of the template for the virtual machine"""
|
||||
self.templatedisplaytext = None
|
||||
"""the ID of the template for the virtual machine. A -1 is returned if the virtual machine was created from an ISO file."""
|
||||
self.templateid = None
|
||||
"""the name of the template for the virtual machine"""
|
||||
self.templatename = None
|
||||
"""the ID of the availablility zone for the virtual machine"""
|
||||
self.zoneid = None
|
||||
"""the name of the availability zone for the virtual machine"""
|
||||
self.zonename = None
|
||||
"""list of affinity groups associated with the virtual machine"""
|
||||
self.affinitygroup = []
|
||||
"""the list of nics associated with vm"""
|
||||
self.nic = []
|
||||
"""list of security groups associated with the virtual machine"""
|
||||
self.securitygroup = []
|
||||
"""the list of resource tags associated with vm"""
|
||||
self.tags = []
|
||||
"""the ID of the latest async job acting on this object"""
|
||||
self.jobid = None
|
||||
"""the current status of the latest async job acting on this object"""
|
||||
self.jobstatus = None
|
||||
|
||||
class affinitygroup:
|
||||
def __init__(self):
|
||||
""""the ID of the affinity group"""
|
||||
self.id = None
|
||||
""""the account owning the affinity group"""
|
||||
self.account = None
|
||||
""""the description of the affinity group"""
|
||||
self.description = None
|
||||
""""the domain name of the affinity group"""
|
||||
self.domain = None
|
||||
""""the domain ID of the affinity group"""
|
||||
self.domainid = None
|
||||
""""the name of the affinity group"""
|
||||
self.name = None
|
||||
""""the type of the affinity group"""
|
||||
self.type = None
|
||||
""""virtual machine Ids associated with this affinity group"""
|
||||
self.virtualmachineIds = None
|
||||
|
||||
class nic:
|
||||
def __init__(self):
|
||||
""""the ID of the nic"""
|
||||
self.id = None
|
||||
""""the broadcast uri of the nic"""
|
||||
self.broadcasturi = None
|
||||
""""the gateway of the nic"""
|
||||
self.gateway = None
|
||||
""""the IPv6 address of network"""
|
||||
self.ip6address = None
|
||||
""""the cidr of IPv6 network"""
|
||||
self.ip6cidr = None
|
||||
""""the gateway of IPv6 network"""
|
||||
self.ip6gateway = None
|
||||
""""the ip address of the nic"""
|
||||
self.ipaddress = None
|
||||
""""true if nic is default, false otherwise"""
|
||||
self.isdefault = None
|
||||
""""the isolation uri of the nic"""
|
||||
self.isolationuri = None
|
||||
""""true if nic is default, false otherwise"""
|
||||
self.macaddress = None
|
||||
""""the netmask of the nic"""
|
||||
self.netmask = None
|
||||
""""the ID of the corresponding network"""
|
||||
self.networkid = None
|
||||
""""the name of the corresponding network"""
|
||||
self.networkname = None
|
||||
""""the Secondary ipv4 addr of nic"""
|
||||
self.secondaryip = None
|
||||
""""the traffic type of the nic"""
|
||||
self.traffictype = None
|
||||
""""the type of the nic"""
|
||||
self.type = None
|
||||
|
||||
class egressrule:
|
||||
def __init__(self):
|
||||
""""account owning the security group rule"""
|
||||
self.account = None
|
||||
""""the CIDR notation for the base IP address of the security group rule"""
|
||||
self.cidr = None
|
||||
""""the ending IP of the security group rule"""
|
||||
self.endport = None
|
||||
""""the code for the ICMP message response"""
|
||||
self.icmpcode = None
|
||||
""""the type of the ICMP message response"""
|
||||
self.icmptype = None
|
||||
""""the protocol of the security group rule"""
|
||||
self.protocol = None
|
||||
""""the id of the security group rule"""
|
||||
self.ruleid = None
|
||||
""""security group name"""
|
||||
self.securitygroupname = None
|
||||
""""the starting IP of the security group rule"""
|
||||
self.startport = None
|
||||
|
||||
class ingressrule:
|
||||
def __init__(self):
|
||||
""""account owning the security group rule"""
|
||||
self.account = None
|
||||
""""the CIDR notation for the base IP address of the security group rule"""
|
||||
self.cidr = None
|
||||
""""the ending IP of the security group rule"""
|
||||
self.endport = None
|
||||
""""the code for the ICMP message response"""
|
||||
self.icmpcode = None
|
||||
""""the type of the ICMP message response"""
|
||||
self.icmptype = None
|
||||
""""the protocol of the security group rule"""
|
||||
self.protocol = None
|
||||
""""the id of the security group rule"""
|
||||
self.ruleid = None
|
||||
""""security group name"""
|
||||
self.securitygroupname = None
|
||||
""""the starting IP of the security group rule"""
|
||||
self.startport = None
|
||||
|
||||
class tags:
|
||||
def __init__(self):
|
||||
""""the account associated with the tag"""
|
||||
self.account = None
|
||||
""""customer associated with the tag"""
|
||||
self.customer = None
|
||||
""""the domain associated with the tag"""
|
||||
self.domain = None
|
||||
""""the ID of the domain associated with the tag"""
|
||||
self.domainid = None
|
||||
""""tag key name"""
|
||||
self.key = None
|
||||
""""the project name where tag belongs to"""
|
||||
self.project = None
|
||||
""""the project id the tag belongs to"""
|
||||
self.projectid = None
|
||||
""""id of the resource"""
|
||||
self.resourceid = None
|
||||
""""resource type"""
|
||||
self.resourcetype = None
|
||||
""""tag value"""
|
||||
self.value = None
|
||||
|
||||
class securitygroup:
|
||||
def __init__(self):
|
||||
""""the ID of the security group"""
|
||||
self.id = None
|
||||
""""the account owning the security group"""
|
||||
self.account = None
|
||||
""""the description of the security group"""
|
||||
self.description = None
|
||||
""""the domain name of the security group"""
|
||||
self.domain = None
|
||||
""""the domain ID of the security group"""
|
||||
self.domainid = None
|
||||
""""the name of the security group"""
|
||||
self.name = None
|
||||
""""the project name of the group"""
|
||||
self.project = None
|
||||
""""the project id of the group"""
|
||||
self.projectid = None
|
||||
""""the list of egress rules associated with the security group"""
|
||||
self.egressrule = []
|
||||
""""account owning the security group rule"""
|
||||
self.account = None
|
||||
""""the CIDR notation for the base IP address of the security group rule"""
|
||||
self.cidr = None
|
||||
""""the ending IP of the security group rule"""
|
||||
self.endport = None
|
||||
""""the code for the ICMP message response"""
|
||||
self.icmpcode = None
|
||||
""""the type of the ICMP message response"""
|
||||
self.icmptype = None
|
||||
""""the protocol of the security group rule"""
|
||||
self.protocol = None
|
||||
""""the id of the security group rule"""
|
||||
self.ruleid = None
|
||||
""""security group name"""
|
||||
self.securitygroupname = None
|
||||
""""the starting IP of the security group rule"""
|
||||
self.startport = None
|
||||
""""the list of ingress rules associated with the security group"""
|
||||
self.ingressrule = []
|
||||
""""account owning the security group rule"""
|
||||
self.account = None
|
||||
""""the CIDR notation for the base IP address of the security group rule"""
|
||||
self.cidr = None
|
||||
""""the ending IP of the security group rule"""
|
||||
self.endport = None
|
||||
""""the code for the ICMP message response"""
|
||||
self.icmpcode = None
|
||||
""""the type of the ICMP message response"""
|
||||
self.icmptype = None
|
||||
""""the protocol of the security group rule"""
|
||||
self.protocol = None
|
||||
""""the id of the security group rule"""
|
||||
self.ruleid = None
|
||||
""""security group name"""
|
||||
self.securitygroupname = None
|
||||
""""the starting IP of the security group rule"""
|
||||
self.startport = None
|
||||
""""the list of resource tags associated with the rule"""
|
||||
self.tags = []
|
||||
""""the account associated with the tag"""
|
||||
self.account = None
|
||||
""""customer associated with the tag"""
|
||||
self.customer = None
|
||||
""""the domain associated with the tag"""
|
||||
self.domain = None
|
||||
""""the ID of the domain associated with the tag"""
|
||||
self.domainid = None
|
||||
""""tag key name"""
|
||||
self.key = None
|
||||
""""the project name where tag belongs to"""
|
||||
self.project = None
|
||||
""""the project id the tag belongs to"""
|
||||
self.projectid = None
|
||||
""""id of the resource"""
|
||||
self.resourceid = None
|
||||
""""resource type"""
|
||||
self.resourcetype = None
|
||||
""""tag value"""
|
||||
self.value = None
|
||||
""""the ID of the latest async job acting on this object"""
|
||||
self.jobid = None
|
||||
""""the current status of the latest async job acting on this object"""
|
||||
self.jobstatus = None
|
||||
|
||||
class tags:
|
||||
def __init__(self):
|
||||
""""the account associated with the tag"""
|
||||
self.account = None
|
||||
""""customer associated with the tag"""
|
||||
self.customer = None
|
||||
""""the domain associated with the tag"""
|
||||
self.domain = None
|
||||
""""the ID of the domain associated with the tag"""
|
||||
self.domainid = None
|
||||
""""tag key name"""
|
||||
self.key = None
|
||||
""""the project name where tag belongs to"""
|
||||
self.project = None
|
||||
""""the project id the tag belongs to"""
|
||||
self.projectid = None
|
||||
""""id of the resource"""
|
||||
self.resourceid = None
|
||||
""""resource type"""
|
||||
self.resourcetype = None
|
||||
""""tag value"""
|
||||
self.value = None
|
||||
|
||||
@ -1,60 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Adds a Nicira NVP device"""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class addNiciraNvpDeviceCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "true"
|
||||
"""Hostname of ip address of the Nicira NVP Controller."""
|
||||
"""Required"""
|
||||
self.hostname = None
|
||||
"""Credentials to access the Nicira Controller API"""
|
||||
"""Required"""
|
||||
self.password = None
|
||||
"""the Physical Network ID"""
|
||||
"""Required"""
|
||||
self.physicalnetworkid = None
|
||||
"""The Transportzone UUID configured on the Nicira Controller"""
|
||||
"""Required"""
|
||||
self.transportzoneuuid = None
|
||||
"""Credentials to access the Nicira Controller API"""
|
||||
"""Required"""
|
||||
self.username = None
|
||||
"""The L3 Gateway Service UUID configured on the Nicira Controller"""
|
||||
self.l3gatewayserviceuuid = None
|
||||
self.required = ["hostname","password","physicalnetworkid","transportzoneuuid","username",]
|
||||
|
||||
class addNiciraNvpDeviceResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""the controller Ip address"""
|
||||
self.hostname = None
|
||||
"""this L3 gateway service Uuid"""
|
||||
self.l3gatewayserviceuuid = None
|
||||
"""device name"""
|
||||
self.niciradevicename = None
|
||||
"""device id of the Nicire Nvp"""
|
||||
self.nvpdeviceid = None
|
||||
"""the physical network to which this Nirica Nvp belongs to"""
|
||||
self.physicalnetworkid = None
|
||||
"""name of the provider"""
|
||||
self.provider = None
|
||||
"""the transport zone Uuid"""
|
||||
self.transportzoneuuid = None
|
||||
|
||||
@ -1,48 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Adds a Region"""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class addRegionCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "false"
|
||||
"""Id of the Region"""
|
||||
"""Required"""
|
||||
self.id = None
|
||||
"""Region service endpoint"""
|
||||
"""Required"""
|
||||
self.endpoint = None
|
||||
"""Name of the region"""
|
||||
"""Required"""
|
||||
self.name = None
|
||||
self.required = ["id","endpoint","name",]
|
||||
|
||||
class addRegionResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""the ID of the region"""
|
||||
self.id = None
|
||||
"""the end point of the region"""
|
||||
self.endpoint = None
|
||||
"""true if GSLB service is enabled in the region, false otherwise"""
|
||||
self.gslbserviceenabled = None
|
||||
"""the name of the region"""
|
||||
self.name = None
|
||||
"""true if security groups support is enabled, false otherwise"""
|
||||
self.portableipserviceenabled = None
|
||||
|
||||
@ -1,42 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Adds detail for the Resource."""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class addResourceDetailCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "true"
|
||||
"""Map of (key/value pairs)"""
|
||||
"""Required"""
|
||||
self.details = []
|
||||
"""resource id to create the details for"""
|
||||
"""Required"""
|
||||
self.resourceid = None
|
||||
"""type of the resource"""
|
||||
"""Required"""
|
||||
self.resourcetype = None
|
||||
self.required = ["details","resourceid","resourcetype",]
|
||||
|
||||
class addResourceDetailResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""any text associated with the success or failure"""
|
||||
self.displaytext = None
|
||||
"""true if operation is executed successfully"""
|
||||
self.success = None
|
||||
|
||||
@ -1,66 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Adds S3"""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class addS3Cmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "false"
|
||||
"""S3 access key"""
|
||||
"""Required"""
|
||||
self.accesskey = None
|
||||
"""name of the template storage bucket"""
|
||||
"""Required"""
|
||||
self.bucket = None
|
||||
"""S3 secret key"""
|
||||
"""Required"""
|
||||
self.secretkey = None
|
||||
"""connection timeout (milliseconds)"""
|
||||
self.connectiontimeout = None
|
||||
"""S3 host name"""
|
||||
self.endpoint = None
|
||||
"""maximum number of times to retry on error"""
|
||||
self.maxerrorretry = None
|
||||
"""socket timeout (milliseconds)"""
|
||||
self.sockettimeout = None
|
||||
"""connect to the S3 endpoint via HTTPS?"""
|
||||
self.usehttps = None
|
||||
self.required = ["accesskey","bucket","secretkey",]
|
||||
|
||||
class addS3Response (baseResponse):
|
||||
def __init__(self):
|
||||
"""the ID of the image store"""
|
||||
self.id = None
|
||||
"""the details of the image store"""
|
||||
self.details = None
|
||||
"""the name of the image store"""
|
||||
self.name = None
|
||||
"""the protocol of the image store"""
|
||||
self.protocol = None
|
||||
"""the provider name of the image store"""
|
||||
self.providername = None
|
||||
"""the scope of the image store"""
|
||||
self.scope = None
|
||||
"""the url of the image store"""
|
||||
self.url = None
|
||||
"""the Zone ID of the image store"""
|
||||
self.zoneid = None
|
||||
"""the Zone name of the image store"""
|
||||
self.zonename = None
|
||||
|
||||
@ -1,52 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Adds secondary storage."""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class addSecondaryStorageCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "false"
|
||||
"""the URL for the secondary storage"""
|
||||
"""Required"""
|
||||
self.url = None
|
||||
"""the Zone ID for the secondary storage"""
|
||||
self.zoneid = None
|
||||
self.required = ["url",]
|
||||
|
||||
class addSecondaryStorageResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""the ID of the image store"""
|
||||
self.id = None
|
||||
"""the details of the image store"""
|
||||
self.details = None
|
||||
"""the name of the image store"""
|
||||
self.name = None
|
||||
"""the protocol of the image store"""
|
||||
self.protocol = None
|
||||
"""the provider name of the image store"""
|
||||
self.providername = None
|
||||
"""the scope of the image store"""
|
||||
self.scope = None
|
||||
"""the url of the image store"""
|
||||
self.url = None
|
||||
"""the Zone ID of the image store"""
|
||||
self.zoneid = None
|
||||
"""the Zone name of the image store"""
|
||||
self.zonename = None
|
||||
|
||||
@ -1,56 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Adds Swift."""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class addSwiftCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "false"
|
||||
"""the URL for swift"""
|
||||
"""Required"""
|
||||
self.url = None
|
||||
"""the account for swift"""
|
||||
self.account = None
|
||||
"""key for the user for swift"""
|
||||
self.key = None
|
||||
"""the username for swift"""
|
||||
self.username = None
|
||||
self.required = ["url",]
|
||||
|
||||
class addSwiftResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""the ID of the image store"""
|
||||
self.id = None
|
||||
"""the details of the image store"""
|
||||
self.details = None
|
||||
"""the name of the image store"""
|
||||
self.name = None
|
||||
"""the protocol of the image store"""
|
||||
self.protocol = None
|
||||
"""the provider name of the image store"""
|
||||
self.providername = None
|
||||
"""the scope of the image store"""
|
||||
self.scope = None
|
||||
"""the url of the image store"""
|
||||
self.url = None
|
||||
"""the Zone ID of the image store"""
|
||||
self.zoneid = None
|
||||
"""the Zone name of the image store"""
|
||||
self.zonename = None
|
||||
|
||||
@ -1,49 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Adds Traffic Monitor Host for Direct Network Usage"""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class addTrafficMonitorCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "false"
|
||||
"""URL of the traffic monitor Host"""
|
||||
"""Required"""
|
||||
self.url = None
|
||||
"""Zone in which to add the external firewall appliance."""
|
||||
"""Required"""
|
||||
self.zoneid = None
|
||||
"""Traffic going into the listed zones will not be metered"""
|
||||
self.excludezones = None
|
||||
"""Traffic going into the listed zones will be metered"""
|
||||
self.includezones = None
|
||||
self.required = ["url","zoneid",]
|
||||
|
||||
class addTrafficMonitorResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""the ID of the external firewall"""
|
||||
self.id = None
|
||||
"""the management IP address of the external firewall"""
|
||||
self.ipaddress = None
|
||||
"""the number of times to retry requests to the external firewall"""
|
||||
self.numretries = None
|
||||
"""the timeout (in seconds) for requests to the external firewall"""
|
||||
self.timeout = None
|
||||
"""the zone ID of the external firewall"""
|
||||
self.zoneid = None
|
||||
|
||||
@ -1,55 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Adds traffic type to a physical network"""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class addTrafficTypeCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "true"
|
||||
"""the Physical Network ID"""
|
||||
"""Required"""
|
||||
self.physicalnetworkid = None
|
||||
"""the trafficType to be added to the physical network"""
|
||||
"""Required"""
|
||||
self.traffictype = None
|
||||
"""The network name label of the physical device dedicated to this traffic on a KVM host"""
|
||||
self.kvmnetworklabel = None
|
||||
"""The VLAN id to be used for Management traffic by VMware host"""
|
||||
self.vlan = None
|
||||
"""The network name label of the physical device dedicated to this traffic on a VMware host"""
|
||||
self.vmwarenetworklabel = None
|
||||
"""The network name label of the physical device dedicated to this traffic on a XenServer host"""
|
||||
self.xennetworklabel = None
|
||||
self.required = ["physicalnetworkid","traffictype",]
|
||||
|
||||
class addTrafficTypeResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""id of the network provider"""
|
||||
self.id = None
|
||||
"""The network name label of the physical device dedicated to this traffic on a KVM host"""
|
||||
self.kvmnetworklabel = None
|
||||
"""the physical network this belongs to"""
|
||||
self.physicalnetworkid = None
|
||||
"""the trafficType to be added to the physical network"""
|
||||
self.traffictype = None
|
||||
"""The network name label of the physical device dedicated to this traffic on a VMware host"""
|
||||
self.vmwarenetworklabel = None
|
||||
"""The network name label of the physical device dedicated to this traffic on a XenServer host"""
|
||||
self.xennetworklabel = None
|
||||
|
||||
@ -1,51 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Adds a Ucs manager"""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class addUcsManagerCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "false"
|
||||
"""the password of UCS"""
|
||||
"""Required"""
|
||||
self.password = None
|
||||
"""the name of UCS url"""
|
||||
"""Required"""
|
||||
self.url = None
|
||||
"""the username of UCS"""
|
||||
"""Required"""
|
||||
self.username = None
|
||||
"""the Zone id for the ucs manager"""
|
||||
"""Required"""
|
||||
self.zoneid = None
|
||||
"""the name of UCS manager"""
|
||||
self.name = None
|
||||
self.required = ["password","url","username","zoneid",]
|
||||
|
||||
class addUcsManagerResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""the ID of the ucs manager"""
|
||||
self.id = None
|
||||
"""the name of ucs manager"""
|
||||
self.name = None
|
||||
"""the url of ucs manager"""
|
||||
self.url = None
|
||||
"""the zone ID of ucs manager"""
|
||||
self.zoneid = None
|
||||
|
||||
@ -1,57 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Adds vpn users"""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class addVpnUserCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "true"
|
||||
"""password for the username"""
|
||||
"""Required"""
|
||||
self.password = None
|
||||
"""username for the vpn user"""
|
||||
"""Required"""
|
||||
self.username = None
|
||||
"""an optional account for the vpn user. Must be used with domainId."""
|
||||
self.account = None
|
||||
"""an optional domainId for the vpn user. If the account parameter is used, domainId must also be used."""
|
||||
self.domainid = None
|
||||
"""add vpn user to the specific project"""
|
||||
self.projectid = None
|
||||
self.required = ["password","username",]
|
||||
|
||||
class addVpnUserResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""the vpn userID"""
|
||||
self.id = None
|
||||
"""the account of the remote access vpn"""
|
||||
self.account = None
|
||||
"""the domain name of the account of the remote access vpn"""
|
||||
self.domain = None
|
||||
"""the domain id of the account of the remote access vpn"""
|
||||
self.domainid = None
|
||||
"""the project name of the vpn"""
|
||||
self.project = None
|
||||
"""the project id of the vpn"""
|
||||
self.projectid = None
|
||||
"""the state of the Vpn User"""
|
||||
self.state = None
|
||||
"""the username of the vpn user"""
|
||||
self.username = None
|
||||
|
||||
@ -1,41 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Archive one or more alerts."""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class archiveAlertsCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "false"
|
||||
"""end date range to archive alerts (including) this date (use format "yyyy-MM-dd" or the new format "yyyy-MM-ddThh:mm:ss")"""
|
||||
self.enddate = None
|
||||
"""the IDs of the alerts"""
|
||||
self.ids = []
|
||||
"""start date range to archive alerts (including) this date (use format "yyyy-MM-dd" or the new format "yyyy-MM-ddThh:mm:ss")"""
|
||||
self.startdate = None
|
||||
"""archive by alert type"""
|
||||
self.type = None
|
||||
self.required = []
|
||||
|
||||
class archiveAlertsResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""any text associated with the success or failure"""
|
||||
self.displaytext = None
|
||||
"""true if operation is executed successfully"""
|
||||
self.success = None
|
||||
|
||||
@ -1,41 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Archive one or more events."""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class archiveEventsCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "false"
|
||||
"""end date range to archive events (including) this date (use format "yyyy-MM-dd" or the new format "yyyy-MM-ddThh:mm:ss")"""
|
||||
self.enddate = None
|
||||
"""the IDs of the events"""
|
||||
self.ids = []
|
||||
"""start date range to archive events (including) this date (use format "yyyy-MM-dd" or the new format "yyyy-MM-ddThh:mm:ss")"""
|
||||
self.startdate = None
|
||||
"""archive by event type"""
|
||||
self.type = None
|
||||
self.required = []
|
||||
|
||||
class archiveEventsResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""any text associated with the success or failure"""
|
||||
self.displaytext = None
|
||||
"""true if operation is executed successfully"""
|
||||
self.success = None
|
||||
|
||||
@ -1,41 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Assign load balancer rule or list of load balancer rules to a global load balancer rules."""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class assignToGlobalLoadBalancerRuleCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "true"
|
||||
"""the ID of the global load balancer rule"""
|
||||
"""Required"""
|
||||
self.id = None
|
||||
"""the list load balancer rules that will be assigned to gloabal load balacner rule"""
|
||||
"""Required"""
|
||||
self.loadbalancerrulelist = []
|
||||
"""Map of LB rule id's and corresponding weights (between 1-100) in the GSLB rule, if not specified weight of a LB rule is defaulted to 1. Specified as 'gslblbruleweightsmap[0].loadbalancerid=UUID&gslblbruleweightsmap[0].weight=10'"""
|
||||
self.gslblbruleweightsmap = []
|
||||
self.required = ["id","loadbalancerrulelist",]
|
||||
|
||||
class assignToGlobalLoadBalancerRuleResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""any text associated with the success or failure"""
|
||||
self.displaytext = None
|
||||
"""true if operation is executed successfully"""
|
||||
self.success = None
|
||||
|
||||
@ -1,39 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Assigns virtual machine or a list of virtual machines to a load balancer rule."""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class assignToLoadBalancerRuleCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "true"
|
||||
"""the ID of the load balancer rule"""
|
||||
"""Required"""
|
||||
self.id = None
|
||||
"""the list of IDs of the virtual machine that are being assigned to the load balancer rule(i.e. virtualMachineIds=1,2,3)"""
|
||||
"""Required"""
|
||||
self.virtualmachineids = []
|
||||
self.required = ["id","virtualmachineids",]
|
||||
|
||||
class assignToLoadBalancerRuleResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""any text associated with the success or failure"""
|
||||
self.displaytext = None
|
||||
"""true if operation is executed successfully"""
|
||||
self.success = None
|
||||
|
||||
@ -1,379 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Change ownership of a VM from one account to another. This API is available for Basic zones with security groups and Advanced zones with guest networks. A root administrator can reassign a VM from any account to any other account in any domain. A domain administrator can reassign a VM to any account in the same domain."""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class assignVirtualMachineCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "false"
|
||||
"""account name of the new VM owner."""
|
||||
"""Required"""
|
||||
self.account = None
|
||||
"""domain id of the new VM owner."""
|
||||
"""Required"""
|
||||
self.domainid = None
|
||||
"""id of the VM to be moved"""
|
||||
"""Required"""
|
||||
self.virtualmachineid = None
|
||||
"""list of new network ids in which the moved VM will participate. In case no network ids are provided the VM will be part of the default network for that zone. In case there is no network yet created for the new account the default network will be created."""
|
||||
self.networkids = []
|
||||
"""list of security group ids to be applied on the virtual machine. In case no security groups are provided the VM is part of the default security group."""
|
||||
self.securitygroupids = []
|
||||
self.required = ["account","domainid","virtualmachineid",]
|
||||
|
||||
class assignVirtualMachineResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""the ID of the virtual machine"""
|
||||
self.id = None
|
||||
"""the account associated with the virtual machine"""
|
||||
self.account = None
|
||||
"""the number of cpu this virtual machine is running with"""
|
||||
self.cpunumber = None
|
||||
"""the speed of each cpu"""
|
||||
self.cpuspeed = None
|
||||
"""the amount of the vm's CPU currently used"""
|
||||
self.cpuused = None
|
||||
"""the date when this virtual machine was created"""
|
||||
self.created = None
|
||||
"""the read (io) of disk on the vm"""
|
||||
self.diskioread = None
|
||||
"""the write (io) of disk on the vm"""
|
||||
self.diskiowrite = None
|
||||
"""the read (bytes) of disk on the vm"""
|
||||
self.diskkbsread = None
|
||||
"""the write (bytes) of disk on the vm"""
|
||||
self.diskkbswrite = None
|
||||
"""user generated name. The name of the virtual machine is returned if no displayname exists."""
|
||||
self.displayname = None
|
||||
"""an optional field whether to the display the vm to the end user or not."""
|
||||
self.displayvm = None
|
||||
"""the name of the domain in which the virtual machine exists"""
|
||||
self.domain = None
|
||||
"""the ID of the domain in which the virtual machine exists"""
|
||||
self.domainid = None
|
||||
"""the virtual network for the service offering"""
|
||||
self.forvirtualnetwork = None
|
||||
"""the group name of the virtual machine"""
|
||||
self.group = None
|
||||
"""the group ID of the virtual machine"""
|
||||
self.groupid = None
|
||||
"""Os type ID of the virtual machine"""
|
||||
self.guestosid = None
|
||||
"""true if high-availability is enabled, false otherwise"""
|
||||
self.haenable = None
|
||||
"""the ID of the host for the virtual machine"""
|
||||
self.hostid = None
|
||||
"""the name of the host for the virtual machine"""
|
||||
self.hostname = None
|
||||
"""the hypervisor on which the template runs"""
|
||||
self.hypervisor = None
|
||||
"""instance name of the user vm; this parameter is returned to the ROOT admin only"""
|
||||
self.instancename = None
|
||||
"""true if vm contains XS/VMWare tools inorder to support dynamic scaling of VM cpu/memory."""
|
||||
self.isdynamicallyscalable = None
|
||||
"""an alternate display text of the ISO attached to the virtual machine"""
|
||||
self.isodisplaytext = None
|
||||
"""the ID of the ISO attached to the virtual machine"""
|
||||
self.isoid = None
|
||||
"""the name of the ISO attached to the virtual machine"""
|
||||
self.isoname = None
|
||||
"""ssh key-pair"""
|
||||
self.keypair = None
|
||||
"""the memory allocated for the virtual machine"""
|
||||
self.memory = None
|
||||
"""the name of the virtual machine"""
|
||||
self.name = None
|
||||
"""the incoming network traffic on the vm"""
|
||||
self.networkkbsread = None
|
||||
"""the outgoing network traffic on the host"""
|
||||
self.networkkbswrite = None
|
||||
"""the password (if exists) of the virtual machine"""
|
||||
self.password = None
|
||||
"""true if the password rest feature is enabled, false otherwise"""
|
||||
self.passwordenabled = None
|
||||
"""the project name of the vm"""
|
||||
self.project = None
|
||||
"""the project id of the vm"""
|
||||
self.projectid = None
|
||||
"""public IP address id associated with vm via Static nat rule"""
|
||||
self.publicip = None
|
||||
"""public IP address id associated with vm via Static nat rule"""
|
||||
self.publicipid = None
|
||||
"""device ID of the root volume"""
|
||||
self.rootdeviceid = None
|
||||
"""device type of the root volume"""
|
||||
self.rootdevicetype = None
|
||||
"""the ID of the service offering of the virtual machine"""
|
||||
self.serviceofferingid = None
|
||||
"""the name of the service offering of the virtual machine"""
|
||||
self.serviceofferingname = None
|
||||
"""State of the Service from LB rule"""
|
||||
self.servicestate = None
|
||||
"""the state of the virtual machine"""
|
||||
self.state = None
|
||||
"""an alternate display text of the template for the virtual machine"""
|
||||
self.templatedisplaytext = None
|
||||
"""the ID of the template for the virtual machine. A -1 is returned if the virtual machine was created from an ISO file."""
|
||||
self.templateid = None
|
||||
"""the name of the template for the virtual machine"""
|
||||
self.templatename = None
|
||||
"""the ID of the availablility zone for the virtual machine"""
|
||||
self.zoneid = None
|
||||
"""the name of the availability zone for the virtual machine"""
|
||||
self.zonename = None
|
||||
"""list of affinity groups associated with the virtual machine"""
|
||||
self.affinitygroup = []
|
||||
"""the list of nics associated with vm"""
|
||||
self.nic = []
|
||||
"""list of security groups associated with the virtual machine"""
|
||||
self.securitygroup = []
|
||||
"""the list of resource tags associated with vm"""
|
||||
self.tags = []
|
||||
"""the ID of the latest async job acting on this object"""
|
||||
self.jobid = None
|
||||
"""the current status of the latest async job acting on this object"""
|
||||
self.jobstatus = None
|
||||
|
||||
class affinitygroup:
|
||||
def __init__(self):
|
||||
""""the ID of the affinity group"""
|
||||
self.id = None
|
||||
""""the account owning the affinity group"""
|
||||
self.account = None
|
||||
""""the description of the affinity group"""
|
||||
self.description = None
|
||||
""""the domain name of the affinity group"""
|
||||
self.domain = None
|
||||
""""the domain ID of the affinity group"""
|
||||
self.domainid = None
|
||||
""""the name of the affinity group"""
|
||||
self.name = None
|
||||
""""the type of the affinity group"""
|
||||
self.type = None
|
||||
""""virtual machine Ids associated with this affinity group"""
|
||||
self.virtualmachineIds = None
|
||||
|
||||
class nic:
|
||||
def __init__(self):
|
||||
""""the ID of the nic"""
|
||||
self.id = None
|
||||
""""the broadcast uri of the nic"""
|
||||
self.broadcasturi = None
|
||||
""""the gateway of the nic"""
|
||||
self.gateway = None
|
||||
""""the IPv6 address of network"""
|
||||
self.ip6address = None
|
||||
""""the cidr of IPv6 network"""
|
||||
self.ip6cidr = None
|
||||
""""the gateway of IPv6 network"""
|
||||
self.ip6gateway = None
|
||||
""""the ip address of the nic"""
|
||||
self.ipaddress = None
|
||||
""""true if nic is default, false otherwise"""
|
||||
self.isdefault = None
|
||||
""""the isolation uri of the nic"""
|
||||
self.isolationuri = None
|
||||
""""true if nic is default, false otherwise"""
|
||||
self.macaddress = None
|
||||
""""the netmask of the nic"""
|
||||
self.netmask = None
|
||||
""""the ID of the corresponding network"""
|
||||
self.networkid = None
|
||||
""""the name of the corresponding network"""
|
||||
self.networkname = None
|
||||
""""the Secondary ipv4 addr of nic"""
|
||||
self.secondaryip = None
|
||||
""""the traffic type of the nic"""
|
||||
self.traffictype = None
|
||||
""""the type of the nic"""
|
||||
self.type = None
|
||||
|
||||
class egressrule:
|
||||
def __init__(self):
|
||||
""""account owning the security group rule"""
|
||||
self.account = None
|
||||
""""the CIDR notation for the base IP address of the security group rule"""
|
||||
self.cidr = None
|
||||
""""the ending IP of the security group rule"""
|
||||
self.endport = None
|
||||
""""the code for the ICMP message response"""
|
||||
self.icmpcode = None
|
||||
""""the type of the ICMP message response"""
|
||||
self.icmptype = None
|
||||
""""the protocol of the security group rule"""
|
||||
self.protocol = None
|
||||
""""the id of the security group rule"""
|
||||
self.ruleid = None
|
||||
""""security group name"""
|
||||
self.securitygroupname = None
|
||||
""""the starting IP of the security group rule"""
|
||||
self.startport = None
|
||||
|
||||
class ingressrule:
|
||||
def __init__(self):
|
||||
""""account owning the security group rule"""
|
||||
self.account = None
|
||||
""""the CIDR notation for the base IP address of the security group rule"""
|
||||
self.cidr = None
|
||||
""""the ending IP of the security group rule"""
|
||||
self.endport = None
|
||||
""""the code for the ICMP message response"""
|
||||
self.icmpcode = None
|
||||
""""the type of the ICMP message response"""
|
||||
self.icmptype = None
|
||||
""""the protocol of the security group rule"""
|
||||
self.protocol = None
|
||||
""""the id of the security group rule"""
|
||||
self.ruleid = None
|
||||
""""security group name"""
|
||||
self.securitygroupname = None
|
||||
""""the starting IP of the security group rule"""
|
||||
self.startport = None
|
||||
|
||||
class tags:
|
||||
def __init__(self):
|
||||
""""the account associated with the tag"""
|
||||
self.account = None
|
||||
""""customer associated with the tag"""
|
||||
self.customer = None
|
||||
""""the domain associated with the tag"""
|
||||
self.domain = None
|
||||
""""the ID of the domain associated with the tag"""
|
||||
self.domainid = None
|
||||
""""tag key name"""
|
||||
self.key = None
|
||||
""""the project name where tag belongs to"""
|
||||
self.project = None
|
||||
""""the project id the tag belongs to"""
|
||||
self.projectid = None
|
||||
""""id of the resource"""
|
||||
self.resourceid = None
|
||||
""""resource type"""
|
||||
self.resourcetype = None
|
||||
""""tag value"""
|
||||
self.value = None
|
||||
|
||||
class securitygroup:
|
||||
def __init__(self):
|
||||
""""the ID of the security group"""
|
||||
self.id = None
|
||||
""""the account owning the security group"""
|
||||
self.account = None
|
||||
""""the description of the security group"""
|
||||
self.description = None
|
||||
""""the domain name of the security group"""
|
||||
self.domain = None
|
||||
""""the domain ID of the security group"""
|
||||
self.domainid = None
|
||||
""""the name of the security group"""
|
||||
self.name = None
|
||||
""""the project name of the group"""
|
||||
self.project = None
|
||||
""""the project id of the group"""
|
||||
self.projectid = None
|
||||
""""the list of egress rules associated with the security group"""
|
||||
self.egressrule = []
|
||||
""""account owning the security group rule"""
|
||||
self.account = None
|
||||
""""the CIDR notation for the base IP address of the security group rule"""
|
||||
self.cidr = None
|
||||
""""the ending IP of the security group rule"""
|
||||
self.endport = None
|
||||
""""the code for the ICMP message response"""
|
||||
self.icmpcode = None
|
||||
""""the type of the ICMP message response"""
|
||||
self.icmptype = None
|
||||
""""the protocol of the security group rule"""
|
||||
self.protocol = None
|
||||
""""the id of the security group rule"""
|
||||
self.ruleid = None
|
||||
""""security group name"""
|
||||
self.securitygroupname = None
|
||||
""""the starting IP of the security group rule"""
|
||||
self.startport = None
|
||||
""""the list of ingress rules associated with the security group"""
|
||||
self.ingressrule = []
|
||||
""""account owning the security group rule"""
|
||||
self.account = None
|
||||
""""the CIDR notation for the base IP address of the security group rule"""
|
||||
self.cidr = None
|
||||
""""the ending IP of the security group rule"""
|
||||
self.endport = None
|
||||
""""the code for the ICMP message response"""
|
||||
self.icmpcode = None
|
||||
""""the type of the ICMP message response"""
|
||||
self.icmptype = None
|
||||
""""the protocol of the security group rule"""
|
||||
self.protocol = None
|
||||
""""the id of the security group rule"""
|
||||
self.ruleid = None
|
||||
""""security group name"""
|
||||
self.securitygroupname = None
|
||||
""""the starting IP of the security group rule"""
|
||||
self.startport = None
|
||||
""""the list of resource tags associated with the rule"""
|
||||
self.tags = []
|
||||
""""the account associated with the tag"""
|
||||
self.account = None
|
||||
""""customer associated with the tag"""
|
||||
self.customer = None
|
||||
""""the domain associated with the tag"""
|
||||
self.domain = None
|
||||
""""the ID of the domain associated with the tag"""
|
||||
self.domainid = None
|
||||
""""tag key name"""
|
||||
self.key = None
|
||||
""""the project name where tag belongs to"""
|
||||
self.project = None
|
||||
""""the project id the tag belongs to"""
|
||||
self.projectid = None
|
||||
""""id of the resource"""
|
||||
self.resourceid = None
|
||||
""""resource type"""
|
||||
self.resourcetype = None
|
||||
""""tag value"""
|
||||
self.value = None
|
||||
""""the ID of the latest async job acting on this object"""
|
||||
self.jobid = None
|
||||
""""the current status of the latest async job acting on this object"""
|
||||
self.jobstatus = None
|
||||
|
||||
class tags:
|
||||
def __init__(self):
|
||||
""""the account associated with the tag"""
|
||||
self.account = None
|
||||
""""customer associated with the tag"""
|
||||
self.customer = None
|
||||
""""the domain associated with the tag"""
|
||||
self.domain = None
|
||||
""""the ID of the domain associated with the tag"""
|
||||
self.domainid = None
|
||||
""""tag key name"""
|
||||
self.key = None
|
||||
""""the project name where tag belongs to"""
|
||||
self.project = None
|
||||
""""the project id the tag belongs to"""
|
||||
self.projectid = None
|
||||
""""id of the resource"""
|
||||
self.resourceid = None
|
||||
""""resource type"""
|
||||
self.resourcetype = None
|
||||
""""tag value"""
|
||||
self.value = None
|
||||
|
||||
@ -1,130 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Acquires and associates a public IP to an account."""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class associateIpAddressCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "true"
|
||||
"""the account to associate with this IP address"""
|
||||
self.account = None
|
||||
"""the ID of the domain to associate with this IP address"""
|
||||
self.domainid = None
|
||||
"""should be set to true if public IP is required to be transferable across zones, if not specified defaults to false"""
|
||||
self.isportable = None
|
||||
"""The network this ip address should be associated to."""
|
||||
self.networkid = None
|
||||
"""Deploy vm for the project"""
|
||||
self.projectid = None
|
||||
"""region ID from where portable ip is to be associated."""
|
||||
self.regionid = None
|
||||
"""the VPC you want the ip address to be associated with"""
|
||||
self.vpcid = None
|
||||
"""the ID of the availability zone you want to acquire an public IP address from"""
|
||||
self.zoneid = None
|
||||
self.required = []
|
||||
|
||||
class associateIpAddressResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""public IP address id"""
|
||||
self.id = None
|
||||
"""the account the public IP address is associated with"""
|
||||
self.account = None
|
||||
"""date the public IP address was acquired"""
|
||||
self.allocated = None
|
||||
"""the ID of the Network associated with the IP address"""
|
||||
self.associatednetworkid = None
|
||||
"""the name of the Network associated with the IP address"""
|
||||
self.associatednetworkname = None
|
||||
"""the domain the public IP address is associated with"""
|
||||
self.domain = None
|
||||
"""the domain ID the public IP address is associated with"""
|
||||
self.domainid = None
|
||||
"""the virtual network for the IP address"""
|
||||
self.forvirtualnetwork = None
|
||||
"""public IP address"""
|
||||
self.ipaddress = None
|
||||
"""is public IP portable across the zones"""
|
||||
self.isportable = None
|
||||
"""true if the IP address is a source nat address, false otherwise"""
|
||||
self.issourcenat = None
|
||||
"""true if this ip is for static nat, false otherwise"""
|
||||
self.isstaticnat = None
|
||||
"""true if this ip is system ip (was allocated as a part of deployVm or createLbRule)"""
|
||||
self.issystem = None
|
||||
"""the ID of the Network where ip belongs to"""
|
||||
self.networkid = None
|
||||
"""the physical network this belongs to"""
|
||||
self.physicalnetworkid = None
|
||||
"""the project name of the address"""
|
||||
self.project = None
|
||||
"""the project id of the ipaddress"""
|
||||
self.projectid = None
|
||||
"""purpose of the IP address. In Acton this value is not null for Ips with isSystem=true, and can have either StaticNat or LB value"""
|
||||
self.purpose = None
|
||||
"""State of the ip address. Can be: Allocatin, Allocated and Releasing"""
|
||||
self.state = None
|
||||
"""virutal machine display name the ip address is assigned to (not null only for static nat Ip)"""
|
||||
self.virtualmachinedisplayname = None
|
||||
"""virutal machine id the ip address is assigned to (not null only for static nat Ip)"""
|
||||
self.virtualmachineid = None
|
||||
"""virutal machine name the ip address is assigned to (not null only for static nat Ip)"""
|
||||
self.virtualmachinename = None
|
||||
"""the ID of the VLAN associated with the IP address. This parameter is visible to ROOT admins only"""
|
||||
self.vlanid = None
|
||||
"""the VLAN associated with the IP address"""
|
||||
self.vlanname = None
|
||||
"""virutal machine (dnat) ip address (not null only for static nat Ip)"""
|
||||
self.vmipaddress = None
|
||||
"""VPC the ip belongs to"""
|
||||
self.vpcid = None
|
||||
"""the ID of the zone the public IP address belongs to"""
|
||||
self.zoneid = None
|
||||
"""the name of the zone the public IP address belongs to"""
|
||||
self.zonename = None
|
||||
"""the list of resource tags associated with ip address"""
|
||||
self.tags = []
|
||||
"""the ID of the latest async job acting on this object"""
|
||||
self.jobid = None
|
||||
"""the current status of the latest async job acting on this object"""
|
||||
self.jobstatus = None
|
||||
|
||||
class tags:
|
||||
def __init__(self):
|
||||
""""the account associated with the tag"""
|
||||
self.account = None
|
||||
""""customer associated with the tag"""
|
||||
self.customer = None
|
||||
""""the domain associated with the tag"""
|
||||
self.domain = None
|
||||
""""the ID of the domain associated with the tag"""
|
||||
self.domainid = None
|
||||
""""tag key name"""
|
||||
self.key = None
|
||||
""""the project name where tag belongs to"""
|
||||
self.project = None
|
||||
""""the project id the tag belongs to"""
|
||||
self.projectid = None
|
||||
""""id of the resource"""
|
||||
self.resourceid = None
|
||||
""""resource type"""
|
||||
self.resourcetype = None
|
||||
""""tag value"""
|
||||
self.value = None
|
||||
|
||||
@ -1,48 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""associate a profile to a blade"""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class associateUcsProfileToBladeCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "true"
|
||||
"""blade id"""
|
||||
"""Required"""
|
||||
self.bladeid = None
|
||||
"""profile dn"""
|
||||
"""Required"""
|
||||
self.profiledn = None
|
||||
"""ucs manager id"""
|
||||
"""Required"""
|
||||
self.ucsmanagerid = None
|
||||
self.required = ["bladeid","profiledn","ucsmanagerid",]
|
||||
|
||||
class associateUcsProfileToBladeResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""ucs blade id"""
|
||||
self.id = None
|
||||
"""ucs blade dn"""
|
||||
self.bladedn = None
|
||||
"""cloudstack host id this blade associates to"""
|
||||
self.hostid = None
|
||||
"""associated ucs profile dn"""
|
||||
self.profiledn = None
|
||||
"""ucs manager id"""
|
||||
self.ucsmanagerid = None
|
||||
|
||||
@ -1,372 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Attaches an ISO to a virtual machine."""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class attachIsoCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "true"
|
||||
"""the ID of the ISO file"""
|
||||
"""Required"""
|
||||
self.id = None
|
||||
"""the ID of the virtual machine"""
|
||||
"""Required"""
|
||||
self.virtualmachineid = None
|
||||
self.required = ["id","virtualmachineid",]
|
||||
|
||||
class attachIsoResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""the ID of the virtual machine"""
|
||||
self.id = None
|
||||
"""the account associated with the virtual machine"""
|
||||
self.account = None
|
||||
"""the number of cpu this virtual machine is running with"""
|
||||
self.cpunumber = None
|
||||
"""the speed of each cpu"""
|
||||
self.cpuspeed = None
|
||||
"""the amount of the vm's CPU currently used"""
|
||||
self.cpuused = None
|
||||
"""the date when this virtual machine was created"""
|
||||
self.created = None
|
||||
"""the read (io) of disk on the vm"""
|
||||
self.diskioread = None
|
||||
"""the write (io) of disk on the vm"""
|
||||
self.diskiowrite = None
|
||||
"""the read (bytes) of disk on the vm"""
|
||||
self.diskkbsread = None
|
||||
"""the write (bytes) of disk on the vm"""
|
||||
self.diskkbswrite = None
|
||||
"""user generated name. The name of the virtual machine is returned if no displayname exists."""
|
||||
self.displayname = None
|
||||
"""an optional field whether to the display the vm to the end user or not."""
|
||||
self.displayvm = None
|
||||
"""the name of the domain in which the virtual machine exists"""
|
||||
self.domain = None
|
||||
"""the ID of the domain in which the virtual machine exists"""
|
||||
self.domainid = None
|
||||
"""the virtual network for the service offering"""
|
||||
self.forvirtualnetwork = None
|
||||
"""the group name of the virtual machine"""
|
||||
self.group = None
|
||||
"""the group ID of the virtual machine"""
|
||||
self.groupid = None
|
||||
"""Os type ID of the virtual machine"""
|
||||
self.guestosid = None
|
||||
"""true if high-availability is enabled, false otherwise"""
|
||||
self.haenable = None
|
||||
"""the ID of the host for the virtual machine"""
|
||||
self.hostid = None
|
||||
"""the name of the host for the virtual machine"""
|
||||
self.hostname = None
|
||||
"""the hypervisor on which the template runs"""
|
||||
self.hypervisor = None
|
||||
"""instance name of the user vm; this parameter is returned to the ROOT admin only"""
|
||||
self.instancename = None
|
||||
"""true if vm contains XS/VMWare tools inorder to support dynamic scaling of VM cpu/memory."""
|
||||
self.isdynamicallyscalable = None
|
||||
"""an alternate display text of the ISO attached to the virtual machine"""
|
||||
self.isodisplaytext = None
|
||||
"""the ID of the ISO attached to the virtual machine"""
|
||||
self.isoid = None
|
||||
"""the name of the ISO attached to the virtual machine"""
|
||||
self.isoname = None
|
||||
"""ssh key-pair"""
|
||||
self.keypair = None
|
||||
"""the memory allocated for the virtual machine"""
|
||||
self.memory = None
|
||||
"""the name of the virtual machine"""
|
||||
self.name = None
|
||||
"""the incoming network traffic on the vm"""
|
||||
self.networkkbsread = None
|
||||
"""the outgoing network traffic on the host"""
|
||||
self.networkkbswrite = None
|
||||
"""the password (if exists) of the virtual machine"""
|
||||
self.password = None
|
||||
"""true if the password rest feature is enabled, false otherwise"""
|
||||
self.passwordenabled = None
|
||||
"""the project name of the vm"""
|
||||
self.project = None
|
||||
"""the project id of the vm"""
|
||||
self.projectid = None
|
||||
"""public IP address id associated with vm via Static nat rule"""
|
||||
self.publicip = None
|
||||
"""public IP address id associated with vm via Static nat rule"""
|
||||
self.publicipid = None
|
||||
"""device ID of the root volume"""
|
||||
self.rootdeviceid = None
|
||||
"""device type of the root volume"""
|
||||
self.rootdevicetype = None
|
||||
"""the ID of the service offering of the virtual machine"""
|
||||
self.serviceofferingid = None
|
||||
"""the name of the service offering of the virtual machine"""
|
||||
self.serviceofferingname = None
|
||||
"""State of the Service from LB rule"""
|
||||
self.servicestate = None
|
||||
"""the state of the virtual machine"""
|
||||
self.state = None
|
||||
"""an alternate display text of the template for the virtual machine"""
|
||||
self.templatedisplaytext = None
|
||||
"""the ID of the template for the virtual machine. A -1 is returned if the virtual machine was created from an ISO file."""
|
||||
self.templateid = None
|
||||
"""the name of the template for the virtual machine"""
|
||||
self.templatename = None
|
||||
"""the ID of the availablility zone for the virtual machine"""
|
||||
self.zoneid = None
|
||||
"""the name of the availability zone for the virtual machine"""
|
||||
self.zonename = None
|
||||
"""list of affinity groups associated with the virtual machine"""
|
||||
self.affinitygroup = []
|
||||
"""the list of nics associated with vm"""
|
||||
self.nic = []
|
||||
"""list of security groups associated with the virtual machine"""
|
||||
self.securitygroup = []
|
||||
"""the list of resource tags associated with vm"""
|
||||
self.tags = []
|
||||
"""the ID of the latest async job acting on this object"""
|
||||
self.jobid = None
|
||||
"""the current status of the latest async job acting on this object"""
|
||||
self.jobstatus = None
|
||||
|
||||
class affinitygroup:
|
||||
def __init__(self):
|
||||
""""the ID of the affinity group"""
|
||||
self.id = None
|
||||
""""the account owning the affinity group"""
|
||||
self.account = None
|
||||
""""the description of the affinity group"""
|
||||
self.description = None
|
||||
""""the domain name of the affinity group"""
|
||||
self.domain = None
|
||||
""""the domain ID of the affinity group"""
|
||||
self.domainid = None
|
||||
""""the name of the affinity group"""
|
||||
self.name = None
|
||||
""""the type of the affinity group"""
|
||||
self.type = None
|
||||
""""virtual machine Ids associated with this affinity group"""
|
||||
self.virtualmachineIds = None
|
||||
|
||||
class nic:
|
||||
def __init__(self):
|
||||
""""the ID of the nic"""
|
||||
self.id = None
|
||||
""""the broadcast uri of the nic"""
|
||||
self.broadcasturi = None
|
||||
""""the gateway of the nic"""
|
||||
self.gateway = None
|
||||
""""the IPv6 address of network"""
|
||||
self.ip6address = None
|
||||
""""the cidr of IPv6 network"""
|
||||
self.ip6cidr = None
|
||||
""""the gateway of IPv6 network"""
|
||||
self.ip6gateway = None
|
||||
""""the ip address of the nic"""
|
||||
self.ipaddress = None
|
||||
""""true if nic is default, false otherwise"""
|
||||
self.isdefault = None
|
||||
""""the isolation uri of the nic"""
|
||||
self.isolationuri = None
|
||||
""""true if nic is default, false otherwise"""
|
||||
self.macaddress = None
|
||||
""""the netmask of the nic"""
|
||||
self.netmask = None
|
||||
""""the ID of the corresponding network"""
|
||||
self.networkid = None
|
||||
""""the name of the corresponding network"""
|
||||
self.networkname = None
|
||||
""""the Secondary ipv4 addr of nic"""
|
||||
self.secondaryip = None
|
||||
""""the traffic type of the nic"""
|
||||
self.traffictype = None
|
||||
""""the type of the nic"""
|
||||
self.type = None
|
||||
|
||||
class egressrule:
|
||||
def __init__(self):
|
||||
""""account owning the security group rule"""
|
||||
self.account = None
|
||||
""""the CIDR notation for the base IP address of the security group rule"""
|
||||
self.cidr = None
|
||||
""""the ending IP of the security group rule"""
|
||||
self.endport = None
|
||||
""""the code for the ICMP message response"""
|
||||
self.icmpcode = None
|
||||
""""the type of the ICMP message response"""
|
||||
self.icmptype = None
|
||||
""""the protocol of the security group rule"""
|
||||
self.protocol = None
|
||||
""""the id of the security group rule"""
|
||||
self.ruleid = None
|
||||
""""security group name"""
|
||||
self.securitygroupname = None
|
||||
""""the starting IP of the security group rule"""
|
||||
self.startport = None
|
||||
|
||||
class ingressrule:
|
||||
def __init__(self):
|
||||
""""account owning the security group rule"""
|
||||
self.account = None
|
||||
""""the CIDR notation for the base IP address of the security group rule"""
|
||||
self.cidr = None
|
||||
""""the ending IP of the security group rule"""
|
||||
self.endport = None
|
||||
""""the code for the ICMP message response"""
|
||||
self.icmpcode = None
|
||||
""""the type of the ICMP message response"""
|
||||
self.icmptype = None
|
||||
""""the protocol of the security group rule"""
|
||||
self.protocol = None
|
||||
""""the id of the security group rule"""
|
||||
self.ruleid = None
|
||||
""""security group name"""
|
||||
self.securitygroupname = None
|
||||
""""the starting IP of the security group rule"""
|
||||
self.startport = None
|
||||
|
||||
class tags:
|
||||
def __init__(self):
|
||||
""""the account associated with the tag"""
|
||||
self.account = None
|
||||
""""customer associated with the tag"""
|
||||
self.customer = None
|
||||
""""the domain associated with the tag"""
|
||||
self.domain = None
|
||||
""""the ID of the domain associated with the tag"""
|
||||
self.domainid = None
|
||||
""""tag key name"""
|
||||
self.key = None
|
||||
""""the project name where tag belongs to"""
|
||||
self.project = None
|
||||
""""the project id the tag belongs to"""
|
||||
self.projectid = None
|
||||
""""id of the resource"""
|
||||
self.resourceid = None
|
||||
""""resource type"""
|
||||
self.resourcetype = None
|
||||
""""tag value"""
|
||||
self.value = None
|
||||
|
||||
class securitygroup:
|
||||
def __init__(self):
|
||||
""""the ID of the security group"""
|
||||
self.id = None
|
||||
""""the account owning the security group"""
|
||||
self.account = None
|
||||
""""the description of the security group"""
|
||||
self.description = None
|
||||
""""the domain name of the security group"""
|
||||
self.domain = None
|
||||
""""the domain ID of the security group"""
|
||||
self.domainid = None
|
||||
""""the name of the security group"""
|
||||
self.name = None
|
||||
""""the project name of the group"""
|
||||
self.project = None
|
||||
""""the project id of the group"""
|
||||
self.projectid = None
|
||||
""""the list of egress rules associated with the security group"""
|
||||
self.egressrule = []
|
||||
""""account owning the security group rule"""
|
||||
self.account = None
|
||||
""""the CIDR notation for the base IP address of the security group rule"""
|
||||
self.cidr = None
|
||||
""""the ending IP of the security group rule"""
|
||||
self.endport = None
|
||||
""""the code for the ICMP message response"""
|
||||
self.icmpcode = None
|
||||
""""the type of the ICMP message response"""
|
||||
self.icmptype = None
|
||||
""""the protocol of the security group rule"""
|
||||
self.protocol = None
|
||||
""""the id of the security group rule"""
|
||||
self.ruleid = None
|
||||
""""security group name"""
|
||||
self.securitygroupname = None
|
||||
""""the starting IP of the security group rule"""
|
||||
self.startport = None
|
||||
""""the list of ingress rules associated with the security group"""
|
||||
self.ingressrule = []
|
||||
""""account owning the security group rule"""
|
||||
self.account = None
|
||||
""""the CIDR notation for the base IP address of the security group rule"""
|
||||
self.cidr = None
|
||||
""""the ending IP of the security group rule"""
|
||||
self.endport = None
|
||||
""""the code for the ICMP message response"""
|
||||
self.icmpcode = None
|
||||
""""the type of the ICMP message response"""
|
||||
self.icmptype = None
|
||||
""""the protocol of the security group rule"""
|
||||
self.protocol = None
|
||||
""""the id of the security group rule"""
|
||||
self.ruleid = None
|
||||
""""security group name"""
|
||||
self.securitygroupname = None
|
||||
""""the starting IP of the security group rule"""
|
||||
self.startport = None
|
||||
""""the list of resource tags associated with the rule"""
|
||||
self.tags = []
|
||||
""""the account associated with the tag"""
|
||||
self.account = None
|
||||
""""customer associated with the tag"""
|
||||
self.customer = None
|
||||
""""the domain associated with the tag"""
|
||||
self.domain = None
|
||||
""""the ID of the domain associated with the tag"""
|
||||
self.domainid = None
|
||||
""""tag key name"""
|
||||
self.key = None
|
||||
""""the project name where tag belongs to"""
|
||||
self.project = None
|
||||
""""the project id the tag belongs to"""
|
||||
self.projectid = None
|
||||
""""id of the resource"""
|
||||
self.resourceid = None
|
||||
""""resource type"""
|
||||
self.resourcetype = None
|
||||
""""tag value"""
|
||||
self.value = None
|
||||
""""the ID of the latest async job acting on this object"""
|
||||
self.jobid = None
|
||||
""""the current status of the latest async job acting on this object"""
|
||||
self.jobstatus = None
|
||||
|
||||
class tags:
|
||||
def __init__(self):
|
||||
""""the account associated with the tag"""
|
||||
self.account = None
|
||||
""""customer associated with the tag"""
|
||||
self.customer = None
|
||||
""""the domain associated with the tag"""
|
||||
self.domain = None
|
||||
""""the ID of the domain associated with the tag"""
|
||||
self.domainid = None
|
||||
""""tag key name"""
|
||||
self.key = None
|
||||
""""the project name where tag belongs to"""
|
||||
self.project = None
|
||||
""""the project id the tag belongs to"""
|
||||
self.projectid = None
|
||||
""""id of the resource"""
|
||||
self.resourceid = None
|
||||
""""resource type"""
|
||||
self.resourcetype = None
|
||||
""""tag value"""
|
||||
self.value = None
|
||||
|
||||
@ -1,148 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Attaches a disk volume to a virtual machine."""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class attachVolumeCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "true"
|
||||
"""the ID of the disk volume"""
|
||||
"""Required"""
|
||||
self.id = None
|
||||
"""the ID of the virtual machine"""
|
||||
"""Required"""
|
||||
self.virtualmachineid = None
|
||||
"""the ID of the device to map the volume to within the guest OS. If no deviceId is passed in, the next available deviceId will be chosen. Possible values for a Linux OS are:* 1 - /dev/xvdb* 2 - /dev/xvdc* 4 - /dev/xvde* 5 - /dev/xvdf* 6 - /dev/xvdg* 7 - /dev/xvdh* 8 - /dev/xvdi* 9 - /dev/xvdj"""
|
||||
self.deviceid = None
|
||||
self.required = ["id","virtualmachineid",]
|
||||
|
||||
class attachVolumeResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""ID of the disk volume"""
|
||||
self.id = None
|
||||
"""the account associated with the disk volume"""
|
||||
self.account = None
|
||||
"""the date the volume was attached to a VM instance"""
|
||||
self.attached = None
|
||||
"""the date the disk volume was created"""
|
||||
self.created = None
|
||||
"""the boolean state of whether the volume is destroyed or not"""
|
||||
self.destroyed = None
|
||||
"""the ID of the device on user vm the volume is attahed to. This tag is not returned when the volume is detached."""
|
||||
self.deviceid = None
|
||||
"""bytes read rate of the disk volume"""
|
||||
self.diskBytesReadRate = None
|
||||
"""bytes write rate of the disk volume"""
|
||||
self.diskBytesWriteRate = None
|
||||
"""io requests read rate of the disk volume"""
|
||||
self.diskIopsReadRate = None
|
||||
"""io requests write rate of the disk volume"""
|
||||
self.diskIopsWriteRate = None
|
||||
"""the display text of the disk offering"""
|
||||
self.diskofferingdisplaytext = None
|
||||
"""ID of the disk offering"""
|
||||
self.diskofferingid = None
|
||||
"""name of the disk offering"""
|
||||
self.diskofferingname = None
|
||||
"""an optional field whether to the display the volume to the end user or not."""
|
||||
self.displayvolume = None
|
||||
"""the domain associated with the disk volume"""
|
||||
self.domain = None
|
||||
"""the ID of the domain associated with the disk volume"""
|
||||
self.domainid = None
|
||||
"""Hypervisor the volume belongs to"""
|
||||
self.hypervisor = None
|
||||
"""true if the volume is extractable, false otherwise"""
|
||||
self.isextractable = None
|
||||
"""max iops of the disk volume"""
|
||||
self.maxiops = None
|
||||
"""min iops of the disk volume"""
|
||||
self.miniops = None
|
||||
"""name of the disk volume"""
|
||||
self.name = None
|
||||
"""The path of the volume"""
|
||||
self.path = None
|
||||
"""the project name of the vpn"""
|
||||
self.project = None
|
||||
"""the project id of the vpn"""
|
||||
self.projectid = None
|
||||
"""the display text of the service offering for root disk"""
|
||||
self.serviceofferingdisplaytext = None
|
||||
"""ID of the service offering for root disk"""
|
||||
self.serviceofferingid = None
|
||||
"""name of the service offering for root disk"""
|
||||
self.serviceofferingname = None
|
||||
"""size of the disk volume"""
|
||||
self.size = None
|
||||
"""ID of the snapshot from which this volume was created"""
|
||||
self.snapshotid = None
|
||||
"""the state of the disk volume"""
|
||||
self.state = None
|
||||
"""the status of the volume"""
|
||||
self.status = None
|
||||
"""name of the primary storage hosting the disk volume"""
|
||||
self.storage = None
|
||||
"""id of the primary storage hosting the disk volume; returned to admin user only"""
|
||||
self.storageid = None
|
||||
"""shared or local storage"""
|
||||
self.storagetype = None
|
||||
"""type of the disk volume (ROOT or DATADISK)"""
|
||||
self.type = None
|
||||
"""id of the virtual machine"""
|
||||
self.virtualmachineid = None
|
||||
"""display name of the virtual machine"""
|
||||
self.vmdisplayname = None
|
||||
"""name of the virtual machine"""
|
||||
self.vmname = None
|
||||
"""state of the virtual machine"""
|
||||
self.vmstate = None
|
||||
"""ID of the availability zone"""
|
||||
self.zoneid = None
|
||||
"""name of the availability zone"""
|
||||
self.zonename = None
|
||||
"""the list of resource tags associated with volume"""
|
||||
self.tags = []
|
||||
"""the ID of the latest async job acting on this object"""
|
||||
self.jobid = None
|
||||
"""the current status of the latest async job acting on this object"""
|
||||
self.jobstatus = None
|
||||
|
||||
class tags:
|
||||
def __init__(self):
|
||||
""""the account associated with the tag"""
|
||||
self.account = None
|
||||
""""customer associated with the tag"""
|
||||
self.customer = None
|
||||
""""the domain associated with the tag"""
|
||||
self.domain = None
|
||||
""""the ID of the domain associated with the tag"""
|
||||
self.domainid = None
|
||||
""""tag key name"""
|
||||
self.key = None
|
||||
""""the project name where tag belongs to"""
|
||||
self.project = None
|
||||
""""the project id the tag belongs to"""
|
||||
self.projectid = None
|
||||
""""id of the resource"""
|
||||
self.resourceid = None
|
||||
""""resource type"""
|
||||
self.resourcetype = None
|
||||
""""tag value"""
|
||||
self.value = None
|
||||
|
||||
@ -1,71 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Authorizes a particular egress rule for this security group"""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class authorizeSecurityGroupEgressCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "true"
|
||||
"""an optional account for the security group. Must be used with domainId."""
|
||||
self.account = None
|
||||
"""the cidr list associated"""
|
||||
self.cidrlist = []
|
||||
"""an optional domainId for the security group. If the account parameter is used, domainId must also be used."""
|
||||
self.domainid = None
|
||||
"""end port for this egress rule"""
|
||||
self.endport = None
|
||||
"""error code for this icmp message"""
|
||||
self.icmpcode = None
|
||||
"""type of the icmp message being sent"""
|
||||
self.icmptype = None
|
||||
"""an optional project of the security group"""
|
||||
self.projectid = None
|
||||
"""TCP is default. UDP is the other supported protocol"""
|
||||
self.protocol = None
|
||||
"""The ID of the security group. Mutually exclusive with securityGroupName parameter"""
|
||||
self.securitygroupid = None
|
||||
"""The name of the security group. Mutually exclusive with securityGroupName parameter"""
|
||||
self.securitygroupname = None
|
||||
"""start port for this egress rule"""
|
||||
self.startport = None
|
||||
"""user to security group mapping"""
|
||||
self.usersecuritygrouplist = []
|
||||
self.required = []
|
||||
|
||||
class authorizeSecurityGroupEgressResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""account owning the security group rule"""
|
||||
self.account = None
|
||||
"""the CIDR notation for the base IP address of the security group rule"""
|
||||
self.cidr = None
|
||||
"""the ending IP of the security group rule"""
|
||||
self.endport = None
|
||||
"""the code for the ICMP message response"""
|
||||
self.icmpcode = None
|
||||
"""the type of the ICMP message response"""
|
||||
self.icmptype = None
|
||||
"""the protocol of the security group rule"""
|
||||
self.protocol = None
|
||||
"""the id of the security group rule"""
|
||||
self.ruleid = None
|
||||
"""security group name"""
|
||||
self.securitygroupname = None
|
||||
"""the starting IP of the security group rule"""
|
||||
self.startport = None
|
||||
|
||||
@ -1,71 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Authorizes a particular ingress rule for this security group"""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class authorizeSecurityGroupIngressCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "true"
|
||||
"""an optional account for the security group. Must be used with domainId."""
|
||||
self.account = None
|
||||
"""the cidr list associated"""
|
||||
self.cidrlist = []
|
||||
"""an optional domainId for the security group. If the account parameter is used, domainId must also be used."""
|
||||
self.domainid = None
|
||||
"""end port for this ingress rule"""
|
||||
self.endport = None
|
||||
"""error code for this icmp message"""
|
||||
self.icmpcode = None
|
||||
"""type of the icmp message being sent"""
|
||||
self.icmptype = None
|
||||
"""an optional project of the security group"""
|
||||
self.projectid = None
|
||||
"""TCP is default. UDP is the other supported protocol"""
|
||||
self.protocol = None
|
||||
"""The ID of the security group. Mutually exclusive with securityGroupName parameter"""
|
||||
self.securitygroupid = None
|
||||
"""The name of the security group. Mutually exclusive with securityGroupName parameter"""
|
||||
self.securitygroupname = None
|
||||
"""start port for this ingress rule"""
|
||||
self.startport = None
|
||||
"""user to security group mapping"""
|
||||
self.usersecuritygrouplist = []
|
||||
self.required = []
|
||||
|
||||
class authorizeSecurityGroupIngressResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""account owning the security group rule"""
|
||||
self.account = None
|
||||
"""the CIDR notation for the base IP address of the security group rule"""
|
||||
self.cidr = None
|
||||
"""the ending IP of the security group rule"""
|
||||
self.endport = None
|
||||
"""the code for the ICMP message response"""
|
||||
self.icmpcode = None
|
||||
"""the type of the ICMP message response"""
|
||||
self.icmptype = None
|
||||
"""the protocol of the security group rule"""
|
||||
self.protocol = None
|
||||
"""the id of the security group rule"""
|
||||
self.ruleid = None
|
||||
"""security group name"""
|
||||
self.securitygroupname = None
|
||||
"""the starting IP of the security group rule"""
|
||||
self.startport = None
|
||||
|
||||
@ -1,20 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
"""Base Command"""
|
||||
class baseCmd(object):
|
||||
pass
|
||||
@ -1,20 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
"""Base class for response"""
|
||||
class baseResponse(object):
|
||||
pass
|
||||
@ -1,122 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Cancels host maintenance."""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class cancelHostMaintenanceCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "true"
|
||||
"""the host ID"""
|
||||
"""Required"""
|
||||
self.id = None
|
||||
self.required = ["id",]
|
||||
|
||||
class cancelHostMaintenanceResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""the ID of the host"""
|
||||
self.id = None
|
||||
"""the cpu average load on the host"""
|
||||
self.averageload = None
|
||||
"""capabilities of the host"""
|
||||
self.capabilities = None
|
||||
"""the cluster ID of the host"""
|
||||
self.clusterid = None
|
||||
"""the cluster name of the host"""
|
||||
self.clustername = None
|
||||
"""the cluster type of the cluster that host belongs to"""
|
||||
self.clustertype = None
|
||||
"""the amount of the host's CPU currently allocated"""
|
||||
self.cpuallocated = None
|
||||
"""the CPU number of the host"""
|
||||
self.cpunumber = None
|
||||
"""the CPU speed of the host"""
|
||||
self.cpuspeed = None
|
||||
"""the amount of the host's CPU currently used"""
|
||||
self.cpuused = None
|
||||
"""the amount of the host's CPU after applying the cpu.overprovisioning.factor"""
|
||||
self.cpuwithoverprovisioning = None
|
||||
"""the date and time the host was created"""
|
||||
self.created = None
|
||||
"""true if the host is disconnected. False otherwise."""
|
||||
self.disconnected = None
|
||||
"""the host's currently allocated disk size"""
|
||||
self.disksizeallocated = None
|
||||
"""the total disk size of the host"""
|
||||
self.disksizetotal = None
|
||||
"""events available for the host"""
|
||||
self.events = None
|
||||
"""true if the host is Ha host (dedicated to vms started by HA process; false otherwise"""
|
||||
self.hahost = None
|
||||
"""true if this host has enough CPU and RAM capacity to migrate a VM to it, false otherwise"""
|
||||
self.hasenoughcapacity = None
|
||||
"""comma-separated list of tags for the host"""
|
||||
self.hosttags = None
|
||||
"""the host hypervisor"""
|
||||
self.hypervisor = None
|
||||
"""the hypervisor version"""
|
||||
self.hypervisorversion = None
|
||||
"""the IP address of the host"""
|
||||
self.ipaddress = None
|
||||
"""true if local storage is active, false otherwise"""
|
||||
self.islocalstorageactive = None
|
||||
"""the date and time the host was last pinged"""
|
||||
self.lastpinged = None
|
||||
"""the management server ID of the host"""
|
||||
self.managementserverid = None
|
||||
"""the amount of the host's memory currently allocated"""
|
||||
self.memoryallocated = None
|
||||
"""the memory total of the host"""
|
||||
self.memorytotal = None
|
||||
"""the amount of the host's memory currently used"""
|
||||
self.memoryused = None
|
||||
"""the name of the host"""
|
||||
self.name = None
|
||||
"""the incoming network traffic on the host"""
|
||||
self.networkkbsread = None
|
||||
"""the outgoing network traffic on the host"""
|
||||
self.networkkbswrite = None
|
||||
"""the OS category ID of the host"""
|
||||
self.oscategoryid = None
|
||||
"""the OS category name of the host"""
|
||||
self.oscategoryname = None
|
||||
"""the Pod ID of the host"""
|
||||
self.podid = None
|
||||
"""the Pod name of the host"""
|
||||
self.podname = None
|
||||
"""the date and time the host was removed"""
|
||||
self.removed = None
|
||||
"""the resource state of the host"""
|
||||
self.resourcestate = None
|
||||
"""the state of the host"""
|
||||
self.state = None
|
||||
"""true if this host is suitable(has enough capacity and satisfies all conditions like hosttags, max guests vm limit etc) to migrate a VM to it , false otherwise"""
|
||||
self.suitableformigration = None
|
||||
"""the host type"""
|
||||
self.type = None
|
||||
"""the host version"""
|
||||
self.version = None
|
||||
"""the Zone ID of the host"""
|
||||
self.zoneid = None
|
||||
"""the Zone name of the host"""
|
||||
self.zonename = None
|
||||
"""the ID of the latest async job acting on this object"""
|
||||
self.jobid = None
|
||||
"""the current status of the latest async job acting on this object"""
|
||||
self.jobstatus = None
|
||||
|
||||
@ -1,78 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Cancels maintenance for primary storage"""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class cancelStorageMaintenanceCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "true"
|
||||
"""the primary storage ID"""
|
||||
"""Required"""
|
||||
self.id = None
|
||||
self.required = ["id",]
|
||||
|
||||
class cancelStorageMaintenanceResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""the ID of the storage pool"""
|
||||
self.id = None
|
||||
"""IOPS CloudStack can provision from this storage pool"""
|
||||
self.capacityiops = None
|
||||
"""the ID of the cluster for the storage pool"""
|
||||
self.clusterid = None
|
||||
"""the name of the cluster for the storage pool"""
|
||||
self.clustername = None
|
||||
"""the date and time the storage pool was created"""
|
||||
self.created = None
|
||||
"""the host's currently allocated disk size"""
|
||||
self.disksizeallocated = None
|
||||
"""the total disk size of the storage pool"""
|
||||
self.disksizetotal = None
|
||||
"""the host's currently used disk size"""
|
||||
self.disksizeused = None
|
||||
"""the hypervisor type of the storage pool"""
|
||||
self.hypervisor = None
|
||||
"""the IP address of the storage pool"""
|
||||
self.ipaddress = None
|
||||
"""the name of the storage pool"""
|
||||
self.name = None
|
||||
"""the storage pool path"""
|
||||
self.path = None
|
||||
"""the Pod ID of the storage pool"""
|
||||
self.podid = None
|
||||
"""the Pod name of the storage pool"""
|
||||
self.podname = None
|
||||
"""the scope of the storage pool"""
|
||||
self.scope = None
|
||||
"""the state of the storage pool"""
|
||||
self.state = None
|
||||
"""true if this pool is suitable to migrate a volume, false otherwise"""
|
||||
self.suitableformigration = None
|
||||
"""the tags for the storage pool"""
|
||||
self.tags = None
|
||||
"""the storage pool type"""
|
||||
self.type = None
|
||||
"""the Zone ID of the storage pool"""
|
||||
self.zoneid = None
|
||||
"""the Zone name of the storage pool"""
|
||||
self.zonename = None
|
||||
"""the ID of the latest async job acting on this object"""
|
||||
self.jobid = None
|
||||
"""the current status of the latest async job acting on this object"""
|
||||
self.jobstatus = None
|
||||
|
||||
@ -1,154 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Upgrades domain router to a new service offering"""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class changeServiceForRouterCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "false"
|
||||
"""The ID of the router"""
|
||||
"""Required"""
|
||||
self.id = None
|
||||
"""the service offering ID to apply to the domain router"""
|
||||
"""Required"""
|
||||
self.serviceofferingid = None
|
||||
self.required = ["id","serviceofferingid",]
|
||||
|
||||
class changeServiceForRouterResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""the id of the router"""
|
||||
self.id = None
|
||||
"""the account associated with the router"""
|
||||
self.account = None
|
||||
"""the date and time the router was created"""
|
||||
self.created = None
|
||||
"""the first DNS for the router"""
|
||||
self.dns1 = None
|
||||
"""the second DNS for the router"""
|
||||
self.dns2 = None
|
||||
"""the domain associated with the router"""
|
||||
self.domain = None
|
||||
"""the domain ID associated with the router"""
|
||||
self.domainid = None
|
||||
"""the gateway for the router"""
|
||||
self.gateway = None
|
||||
"""the guest IP address for the router"""
|
||||
self.guestipaddress = None
|
||||
"""the guest MAC address for the router"""
|
||||
self.guestmacaddress = None
|
||||
"""the guest netmask for the router"""
|
||||
self.guestnetmask = None
|
||||
"""the ID of the corresponding guest network"""
|
||||
self.guestnetworkid = None
|
||||
"""the host ID for the router"""
|
||||
self.hostid = None
|
||||
"""the hostname for the router"""
|
||||
self.hostname = None
|
||||
"""the first IPv6 DNS for the router"""
|
||||
self.ip6dns1 = None
|
||||
"""the second IPv6 DNS for the router"""
|
||||
self.ip6dns2 = None
|
||||
"""if this router is an redundant virtual router"""
|
||||
self.isredundantrouter = None
|
||||
"""the link local IP address for the router"""
|
||||
self.linklocalip = None
|
||||
"""the link local MAC address for the router"""
|
||||
self.linklocalmacaddress = None
|
||||
"""the link local netmask for the router"""
|
||||
self.linklocalnetmask = None
|
||||
"""the ID of the corresponding link local network"""
|
||||
self.linklocalnetworkid = None
|
||||
"""the name of the router"""
|
||||
self.name = None
|
||||
"""the network domain for the router"""
|
||||
self.networkdomain = None
|
||||
"""the Pod ID for the router"""
|
||||
self.podid = None
|
||||
"""the project name of the address"""
|
||||
self.project = None
|
||||
"""the project id of the ipaddress"""
|
||||
self.projectid = None
|
||||
"""the public IP address for the router"""
|
||||
self.publicip = None
|
||||
"""the public MAC address for the router"""
|
||||
self.publicmacaddress = None
|
||||
"""the public netmask for the router"""
|
||||
self.publicnetmask = None
|
||||
"""the ID of the corresponding public network"""
|
||||
self.publicnetworkid = None
|
||||
"""the state of redundant virtual router"""
|
||||
self.redundantstate = None
|
||||
"""role of the domain router"""
|
||||
self.role = None
|
||||
"""the version of scripts"""
|
||||
self.scriptsversion = None
|
||||
"""the ID of the service offering of the virtual machine"""
|
||||
self.serviceofferingid = None
|
||||
"""the name of the service offering of the virtual machine"""
|
||||
self.serviceofferingname = None
|
||||
"""the state of the router"""
|
||||
self.state = None
|
||||
"""the template ID for the router"""
|
||||
self.templateid = None
|
||||
"""the version of template"""
|
||||
self.templateversion = None
|
||||
"""VPC the router belongs to"""
|
||||
self.vpcid = None
|
||||
"""the Zone ID for the router"""
|
||||
self.zoneid = None
|
||||
"""the Zone name for the router"""
|
||||
self.zonename = None
|
||||
"""the list of nics associated with the router"""
|
||||
self.nic = []
|
||||
|
||||
class nic:
|
||||
def __init__(self):
|
||||
""""the ID of the nic"""
|
||||
self.id = None
|
||||
""""the broadcast uri of the nic"""
|
||||
self.broadcasturi = None
|
||||
""""the gateway of the nic"""
|
||||
self.gateway = None
|
||||
""""the IPv6 address of network"""
|
||||
self.ip6address = None
|
||||
""""the cidr of IPv6 network"""
|
||||
self.ip6cidr = None
|
||||
""""the gateway of IPv6 network"""
|
||||
self.ip6gateway = None
|
||||
""""the ip address of the nic"""
|
||||
self.ipaddress = None
|
||||
""""true if nic is default, false otherwise"""
|
||||
self.isdefault = None
|
||||
""""the isolation uri of the nic"""
|
||||
self.isolationuri = None
|
||||
""""true if nic is default, false otherwise"""
|
||||
self.macaddress = None
|
||||
""""the netmask of the nic"""
|
||||
self.netmask = None
|
||||
""""the ID of the corresponding network"""
|
||||
self.networkid = None
|
||||
""""the name of the corresponding network"""
|
||||
self.networkname = None
|
||||
""""the Secondary ipv4 addr of nic"""
|
||||
self.secondaryip = None
|
||||
""""the traffic type of the nic"""
|
||||
self.traffictype = None
|
||||
""""the type of the nic"""
|
||||
self.type = None
|
||||
|
||||
@ -1,89 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Changes the service offering for a system vm (console proxy or secondary storage). The system vm must be in a "Stopped" state for this command to take effect."""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class changeServiceForSystemVmCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "false"
|
||||
"""The ID of the system vm"""
|
||||
"""Required"""
|
||||
self.id = None
|
||||
"""the service offering ID to apply to the system vm"""
|
||||
"""Required"""
|
||||
self.serviceofferingid = None
|
||||
self.required = ["id","serviceofferingid",]
|
||||
|
||||
class changeServiceForSystemVmResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""the ID of the system VM"""
|
||||
self.id = None
|
||||
"""the number of active console sessions for the console proxy system vm"""
|
||||
self.activeviewersessions = None
|
||||
"""the date and time the system VM was created"""
|
||||
self.created = None
|
||||
"""the first DNS for the system VM"""
|
||||
self.dns1 = None
|
||||
"""the second DNS for the system VM"""
|
||||
self.dns2 = None
|
||||
"""the gateway for the system VM"""
|
||||
self.gateway = None
|
||||
"""the host ID for the system VM"""
|
||||
self.hostid = None
|
||||
"""the hostname for the system VM"""
|
||||
self.hostname = None
|
||||
"""the job ID associated with the system VM. This is only displayed if the router listed is part of a currently running asynchronous job."""
|
||||
self.jobid = None
|
||||
"""the job status associated with the system VM. This is only displayed if the router listed is part of a currently running asynchronous job."""
|
||||
self.jobstatus = None
|
||||
"""the link local IP address for the system vm"""
|
||||
self.linklocalip = None
|
||||
"""the link local MAC address for the system vm"""
|
||||
self.linklocalmacaddress = None
|
||||
"""the link local netmask for the system vm"""
|
||||
self.linklocalnetmask = None
|
||||
"""the name of the system VM"""
|
||||
self.name = None
|
||||
"""the network domain for the system VM"""
|
||||
self.networkdomain = None
|
||||
"""the Pod ID for the system VM"""
|
||||
self.podid = None
|
||||
"""the private IP address for the system VM"""
|
||||
self.privateip = None
|
||||
"""the private MAC address for the system VM"""
|
||||
self.privatemacaddress = None
|
||||
"""the private netmask for the system VM"""
|
||||
self.privatenetmask = None
|
||||
"""the public IP address for the system VM"""
|
||||
self.publicip = None
|
||||
"""the public MAC address for the system VM"""
|
||||
self.publicmacaddress = None
|
||||
"""the public netmask for the system VM"""
|
||||
self.publicnetmask = None
|
||||
"""the state of the system VM"""
|
||||
self.state = None
|
||||
"""the system VM type"""
|
||||
self.systemvmtype = None
|
||||
"""the template ID for the system VM"""
|
||||
self.templateid = None
|
||||
"""the Zone ID for the system VM"""
|
||||
self.zoneid = None
|
||||
"""the Zone name for the system VM"""
|
||||
self.zonename = None
|
||||
|
||||
@ -1,372 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Changes the service offering for a virtual machine. The virtual machine must be in a "Stopped" state for this command to take effect."""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class changeServiceForVirtualMachineCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "false"
|
||||
"""The ID of the virtual machine"""
|
||||
"""Required"""
|
||||
self.id = None
|
||||
"""the service offering ID to apply to the virtual machine"""
|
||||
"""Required"""
|
||||
self.serviceofferingid = None
|
||||
self.required = ["id","serviceofferingid",]
|
||||
|
||||
class changeServiceForVirtualMachineResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""the ID of the virtual machine"""
|
||||
self.id = None
|
||||
"""the account associated with the virtual machine"""
|
||||
self.account = None
|
||||
"""the number of cpu this virtual machine is running with"""
|
||||
self.cpunumber = None
|
||||
"""the speed of each cpu"""
|
||||
self.cpuspeed = None
|
||||
"""the amount of the vm's CPU currently used"""
|
||||
self.cpuused = None
|
||||
"""the date when this virtual machine was created"""
|
||||
self.created = None
|
||||
"""the read (io) of disk on the vm"""
|
||||
self.diskioread = None
|
||||
"""the write (io) of disk on the vm"""
|
||||
self.diskiowrite = None
|
||||
"""the read (bytes) of disk on the vm"""
|
||||
self.diskkbsread = None
|
||||
"""the write (bytes) of disk on the vm"""
|
||||
self.diskkbswrite = None
|
||||
"""user generated name. The name of the virtual machine is returned if no displayname exists."""
|
||||
self.displayname = None
|
||||
"""an optional field whether to the display the vm to the end user or not."""
|
||||
self.displayvm = None
|
||||
"""the name of the domain in which the virtual machine exists"""
|
||||
self.domain = None
|
||||
"""the ID of the domain in which the virtual machine exists"""
|
||||
self.domainid = None
|
||||
"""the virtual network for the service offering"""
|
||||
self.forvirtualnetwork = None
|
||||
"""the group name of the virtual machine"""
|
||||
self.group = None
|
||||
"""the group ID of the virtual machine"""
|
||||
self.groupid = None
|
||||
"""Os type ID of the virtual machine"""
|
||||
self.guestosid = None
|
||||
"""true if high-availability is enabled, false otherwise"""
|
||||
self.haenable = None
|
||||
"""the ID of the host for the virtual machine"""
|
||||
self.hostid = None
|
||||
"""the name of the host for the virtual machine"""
|
||||
self.hostname = None
|
||||
"""the hypervisor on which the template runs"""
|
||||
self.hypervisor = None
|
||||
"""instance name of the user vm; this parameter is returned to the ROOT admin only"""
|
||||
self.instancename = None
|
||||
"""true if vm contains XS/VMWare tools inorder to support dynamic scaling of VM cpu/memory."""
|
||||
self.isdynamicallyscalable = None
|
||||
"""an alternate display text of the ISO attached to the virtual machine"""
|
||||
self.isodisplaytext = None
|
||||
"""the ID of the ISO attached to the virtual machine"""
|
||||
self.isoid = None
|
||||
"""the name of the ISO attached to the virtual machine"""
|
||||
self.isoname = None
|
||||
"""ssh key-pair"""
|
||||
self.keypair = None
|
||||
"""the memory allocated for the virtual machine"""
|
||||
self.memory = None
|
||||
"""the name of the virtual machine"""
|
||||
self.name = None
|
||||
"""the incoming network traffic on the vm"""
|
||||
self.networkkbsread = None
|
||||
"""the outgoing network traffic on the host"""
|
||||
self.networkkbswrite = None
|
||||
"""the password (if exists) of the virtual machine"""
|
||||
self.password = None
|
||||
"""true if the password rest feature is enabled, false otherwise"""
|
||||
self.passwordenabled = None
|
||||
"""the project name of the vm"""
|
||||
self.project = None
|
||||
"""the project id of the vm"""
|
||||
self.projectid = None
|
||||
"""public IP address id associated with vm via Static nat rule"""
|
||||
self.publicip = None
|
||||
"""public IP address id associated with vm via Static nat rule"""
|
||||
self.publicipid = None
|
||||
"""device ID of the root volume"""
|
||||
self.rootdeviceid = None
|
||||
"""device type of the root volume"""
|
||||
self.rootdevicetype = None
|
||||
"""the ID of the service offering of the virtual machine"""
|
||||
self.serviceofferingid = None
|
||||
"""the name of the service offering of the virtual machine"""
|
||||
self.serviceofferingname = None
|
||||
"""State of the Service from LB rule"""
|
||||
self.servicestate = None
|
||||
"""the state of the virtual machine"""
|
||||
self.state = None
|
||||
"""an alternate display text of the template for the virtual machine"""
|
||||
self.templatedisplaytext = None
|
||||
"""the ID of the template for the virtual machine. A -1 is returned if the virtual machine was created from an ISO file."""
|
||||
self.templateid = None
|
||||
"""the name of the template for the virtual machine"""
|
||||
self.templatename = None
|
||||
"""the ID of the availablility zone for the virtual machine"""
|
||||
self.zoneid = None
|
||||
"""the name of the availability zone for the virtual machine"""
|
||||
self.zonename = None
|
||||
"""list of affinity groups associated with the virtual machine"""
|
||||
self.affinitygroup = []
|
||||
"""the list of nics associated with vm"""
|
||||
self.nic = []
|
||||
"""list of security groups associated with the virtual machine"""
|
||||
self.securitygroup = []
|
||||
"""the list of resource tags associated with vm"""
|
||||
self.tags = []
|
||||
"""the ID of the latest async job acting on this object"""
|
||||
self.jobid = None
|
||||
"""the current status of the latest async job acting on this object"""
|
||||
self.jobstatus = None
|
||||
|
||||
class affinitygroup:
|
||||
def __init__(self):
|
||||
""""the ID of the affinity group"""
|
||||
self.id = None
|
||||
""""the account owning the affinity group"""
|
||||
self.account = None
|
||||
""""the description of the affinity group"""
|
||||
self.description = None
|
||||
""""the domain name of the affinity group"""
|
||||
self.domain = None
|
||||
""""the domain ID of the affinity group"""
|
||||
self.domainid = None
|
||||
""""the name of the affinity group"""
|
||||
self.name = None
|
||||
""""the type of the affinity group"""
|
||||
self.type = None
|
||||
""""virtual machine Ids associated with this affinity group"""
|
||||
self.virtualmachineIds = None
|
||||
|
||||
class nic:
|
||||
def __init__(self):
|
||||
""""the ID of the nic"""
|
||||
self.id = None
|
||||
""""the broadcast uri of the nic"""
|
||||
self.broadcasturi = None
|
||||
""""the gateway of the nic"""
|
||||
self.gateway = None
|
||||
""""the IPv6 address of network"""
|
||||
self.ip6address = None
|
||||
""""the cidr of IPv6 network"""
|
||||
self.ip6cidr = None
|
||||
""""the gateway of IPv6 network"""
|
||||
self.ip6gateway = None
|
||||
""""the ip address of the nic"""
|
||||
self.ipaddress = None
|
||||
""""true if nic is default, false otherwise"""
|
||||
self.isdefault = None
|
||||
""""the isolation uri of the nic"""
|
||||
self.isolationuri = None
|
||||
""""true if nic is default, false otherwise"""
|
||||
self.macaddress = None
|
||||
""""the netmask of the nic"""
|
||||
self.netmask = None
|
||||
""""the ID of the corresponding network"""
|
||||
self.networkid = None
|
||||
""""the name of the corresponding network"""
|
||||
self.networkname = None
|
||||
""""the Secondary ipv4 addr of nic"""
|
||||
self.secondaryip = None
|
||||
""""the traffic type of the nic"""
|
||||
self.traffictype = None
|
||||
""""the type of the nic"""
|
||||
self.type = None
|
||||
|
||||
class egressrule:
|
||||
def __init__(self):
|
||||
""""account owning the security group rule"""
|
||||
self.account = None
|
||||
""""the CIDR notation for the base IP address of the security group rule"""
|
||||
self.cidr = None
|
||||
""""the ending IP of the security group rule"""
|
||||
self.endport = None
|
||||
""""the code for the ICMP message response"""
|
||||
self.icmpcode = None
|
||||
""""the type of the ICMP message response"""
|
||||
self.icmptype = None
|
||||
""""the protocol of the security group rule"""
|
||||
self.protocol = None
|
||||
""""the id of the security group rule"""
|
||||
self.ruleid = None
|
||||
""""security group name"""
|
||||
self.securitygroupname = None
|
||||
""""the starting IP of the security group rule"""
|
||||
self.startport = None
|
||||
|
||||
class ingressrule:
|
||||
def __init__(self):
|
||||
""""account owning the security group rule"""
|
||||
self.account = None
|
||||
""""the CIDR notation for the base IP address of the security group rule"""
|
||||
self.cidr = None
|
||||
""""the ending IP of the security group rule"""
|
||||
self.endport = None
|
||||
""""the code for the ICMP message response"""
|
||||
self.icmpcode = None
|
||||
""""the type of the ICMP message response"""
|
||||
self.icmptype = None
|
||||
""""the protocol of the security group rule"""
|
||||
self.protocol = None
|
||||
""""the id of the security group rule"""
|
||||
self.ruleid = None
|
||||
""""security group name"""
|
||||
self.securitygroupname = None
|
||||
""""the starting IP of the security group rule"""
|
||||
self.startport = None
|
||||
|
||||
class tags:
|
||||
def __init__(self):
|
||||
""""the account associated with the tag"""
|
||||
self.account = None
|
||||
""""customer associated with the tag"""
|
||||
self.customer = None
|
||||
""""the domain associated with the tag"""
|
||||
self.domain = None
|
||||
""""the ID of the domain associated with the tag"""
|
||||
self.domainid = None
|
||||
""""tag key name"""
|
||||
self.key = None
|
||||
""""the project name where tag belongs to"""
|
||||
self.project = None
|
||||
""""the project id the tag belongs to"""
|
||||
self.projectid = None
|
||||
""""id of the resource"""
|
||||
self.resourceid = None
|
||||
""""resource type"""
|
||||
self.resourcetype = None
|
||||
""""tag value"""
|
||||
self.value = None
|
||||
|
||||
class securitygroup:
|
||||
def __init__(self):
|
||||
""""the ID of the security group"""
|
||||
self.id = None
|
||||
""""the account owning the security group"""
|
||||
self.account = None
|
||||
""""the description of the security group"""
|
||||
self.description = None
|
||||
""""the domain name of the security group"""
|
||||
self.domain = None
|
||||
""""the domain ID of the security group"""
|
||||
self.domainid = None
|
||||
""""the name of the security group"""
|
||||
self.name = None
|
||||
""""the project name of the group"""
|
||||
self.project = None
|
||||
""""the project id of the group"""
|
||||
self.projectid = None
|
||||
""""the list of egress rules associated with the security group"""
|
||||
self.egressrule = []
|
||||
""""account owning the security group rule"""
|
||||
self.account = None
|
||||
""""the CIDR notation for the base IP address of the security group rule"""
|
||||
self.cidr = None
|
||||
""""the ending IP of the security group rule"""
|
||||
self.endport = None
|
||||
""""the code for the ICMP message response"""
|
||||
self.icmpcode = None
|
||||
""""the type of the ICMP message response"""
|
||||
self.icmptype = None
|
||||
""""the protocol of the security group rule"""
|
||||
self.protocol = None
|
||||
""""the id of the security group rule"""
|
||||
self.ruleid = None
|
||||
""""security group name"""
|
||||
self.securitygroupname = None
|
||||
""""the starting IP of the security group rule"""
|
||||
self.startport = None
|
||||
""""the list of ingress rules associated with the security group"""
|
||||
self.ingressrule = []
|
||||
""""account owning the security group rule"""
|
||||
self.account = None
|
||||
""""the CIDR notation for the base IP address of the security group rule"""
|
||||
self.cidr = None
|
||||
""""the ending IP of the security group rule"""
|
||||
self.endport = None
|
||||
""""the code for the ICMP message response"""
|
||||
self.icmpcode = None
|
||||
""""the type of the ICMP message response"""
|
||||
self.icmptype = None
|
||||
""""the protocol of the security group rule"""
|
||||
self.protocol = None
|
||||
""""the id of the security group rule"""
|
||||
self.ruleid = None
|
||||
""""security group name"""
|
||||
self.securitygroupname = None
|
||||
""""the starting IP of the security group rule"""
|
||||
self.startport = None
|
||||
""""the list of resource tags associated with the rule"""
|
||||
self.tags = []
|
||||
""""the account associated with the tag"""
|
||||
self.account = None
|
||||
""""customer associated with the tag"""
|
||||
self.customer = None
|
||||
""""the domain associated with the tag"""
|
||||
self.domain = None
|
||||
""""the ID of the domain associated with the tag"""
|
||||
self.domainid = None
|
||||
""""tag key name"""
|
||||
self.key = None
|
||||
""""the project name where tag belongs to"""
|
||||
self.project = None
|
||||
""""the project id the tag belongs to"""
|
||||
self.projectid = None
|
||||
""""id of the resource"""
|
||||
self.resourceid = None
|
||||
""""resource type"""
|
||||
self.resourcetype = None
|
||||
""""tag value"""
|
||||
self.value = None
|
||||
""""the ID of the latest async job acting on this object"""
|
||||
self.jobid = None
|
||||
""""the current status of the latest async job acting on this object"""
|
||||
self.jobstatus = None
|
||||
|
||||
class tags:
|
||||
def __init__(self):
|
||||
""""the account associated with the tag"""
|
||||
self.account = None
|
||||
""""customer associated with the tag"""
|
||||
self.customer = None
|
||||
""""the domain associated with the tag"""
|
||||
self.domain = None
|
||||
""""the ID of the domain associated with the tag"""
|
||||
self.domainid = None
|
||||
""""tag key name"""
|
||||
self.key = None
|
||||
""""the project name where tag belongs to"""
|
||||
self.project = None
|
||||
""""the project id the tag belongs to"""
|
||||
self.projectid = None
|
||||
""""id of the resource"""
|
||||
self.resourceid = None
|
||||
""""resource type"""
|
||||
self.resourcetype = None
|
||||
""""tag value"""
|
||||
self.value = None
|
||||
|
||||
@ -1,33 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Cleanups VM reservations in the database."""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class cleanVMReservationsCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "true"
|
||||
self.required = []
|
||||
|
||||
class cleanVMReservationsResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""any text associated with the success or failure"""
|
||||
self.displaytext = None
|
||||
"""true if operation is executed successfully"""
|
||||
self.success = None
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,41 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Configures an Internal Load Balancer element."""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class configureInternalLoadBalancerElementCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "true"
|
||||
"""the ID of the internal lb provider"""
|
||||
"""Required"""
|
||||
self.id = None
|
||||
"""Enables/Disables the Internal Load Balancer element"""
|
||||
"""Required"""
|
||||
self.enabled = None
|
||||
self.required = ["id","enabled",]
|
||||
|
||||
class configureInternalLoadBalancerElementResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""the id of the internal load balancer element"""
|
||||
self.id = None
|
||||
"""Enabled/Disabled the element"""
|
||||
self.enabled = None
|
||||
"""the physical network service provider id of the element"""
|
||||
self.nspid = None
|
||||
|
||||
@ -1,51 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Configures a virtual router element."""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class configureVirtualRouterElementCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "true"
|
||||
"""the ID of the virtual router provider"""
|
||||
"""Required"""
|
||||
self.id = None
|
||||
"""Enabled/Disabled the service provider"""
|
||||
"""Required"""
|
||||
self.enabled = None
|
||||
self.required = ["id","enabled",]
|
||||
|
||||
class configureVirtualRouterElementResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""the id of the router"""
|
||||
self.id = None
|
||||
"""the account associated with the provider"""
|
||||
self.account = None
|
||||
"""the domain associated with the provider"""
|
||||
self.domain = None
|
||||
"""the domain ID associated with the provider"""
|
||||
self.domainid = None
|
||||
"""Enabled/Disabled the service provider"""
|
||||
self.enabled = None
|
||||
"""the physical network service provider id of the provider"""
|
||||
self.nspid = None
|
||||
"""the project name of the address"""
|
||||
self.project = None
|
||||
"""the project id of the ipaddress"""
|
||||
self.projectid = None
|
||||
|
||||
@ -1,137 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
"""Copies an iso from one zone to another."""
|
||||
from baseCmd import *
|
||||
from baseResponse import *
|
||||
class copyIsoCmd (baseCmd):
|
||||
def __init__(self):
|
||||
self.isAsync = "true"
|
||||
"""Template ID."""
|
||||
"""Required"""
|
||||
self.id = None
|
||||
"""ID of the zone the template is being copied to."""
|
||||
"""Required"""
|
||||
self.destzoneid = None
|
||||
"""ID of the zone the template is currently hosted on."""
|
||||
"""Required"""
|
||||
self.sourcezoneid = None
|
||||
self.required = ["id","destzoneid","sourcezoneid",]
|
||||
|
||||
class copyIsoResponse (baseResponse):
|
||||
def __init__(self):
|
||||
"""the template ID"""
|
||||
self.id = None
|
||||
"""the account name to which the template belongs"""
|
||||
self.account = None
|
||||
"""the account id to which the template belongs"""
|
||||
self.accountid = None
|
||||
"""true if the ISO is bootable, false otherwise"""
|
||||
self.bootable = None
|
||||
"""checksum of the template"""
|
||||
self.checksum = None
|
||||
"""the date this template was created"""
|
||||
self.created = None
|
||||
"""true if the template is managed across all Zones, false otherwise"""
|
||||
self.crossZones = None
|
||||
"""additional key/value details tied with template"""
|
||||
self.details = None
|
||||
"""the template display text"""
|
||||
self.displaytext = None
|
||||
"""the name of the domain to which the template belongs"""
|
||||
self.domain = None
|
||||
"""the ID of the domain to which the template belongs"""
|
||||
self.domainid = None
|
||||
"""the format of the template."""
|
||||
self.format = None
|
||||
"""the ID of the secondary storage host for the template"""
|
||||
self.hostid = None
|
||||
"""the name of the secondary storage host for the template"""
|
||||
self.hostname = None
|
||||
"""the hypervisor on which the template runs"""
|
||||
self.hypervisor = None
|
||||
"""true if template contains XS/VMWare tools inorder to support dynamic scaling of VM cpu/memory"""
|
||||
self.isdynamicallyscalable = None
|
||||
"""true if the template is extractable, false otherwise"""
|
||||
self.isextractable = None
|
||||
"""true if this template is a featured template, false otherwise"""
|
||||
self.isfeatured = None
|
||||
"""true if this template is a public template, false otherwise"""
|
||||
self.ispublic = None
|
||||
"""true if the template is ready to be deployed from, false otherwise."""
|
||||
self.isready = None
|
||||
"""the template name"""
|
||||
self.name = None
|
||||
"""the ID of the OS type for this template."""
|
||||
self.ostypeid = None
|
||||
"""the name of the OS type for this template."""
|
||||
self.ostypename = None
|
||||
"""true if the reset password feature is enabled, false otherwise"""
|
||||
self.passwordenabled = None
|
||||
"""the project name of the template"""
|
||||
self.project = None
|
||||
"""the project id of the template"""
|
||||
self.projectid = None
|
||||
"""the date this template was removed"""
|
||||
self.removed = None
|
||||
"""the size of the template"""
|
||||
self.size = None
|
||||
"""the template ID of the parent template if present"""
|
||||
self.sourcetemplateid = None
|
||||
"""true if template is sshkey enabled, false otherwise"""
|
||||
self.sshkeyenabled = None
|
||||
"""the status of the template"""
|
||||
self.status = None
|
||||
"""the tag of this template"""
|
||||
self.templatetag = None
|
||||
"""the type of the template"""
|
||||
self.templatetype = None
|
||||
"""the ID of the zone for this template"""
|
||||
self.zoneid = None
|
||||
"""the name of the zone for this template"""
|
||||
self.zonename = None
|
||||
"""the list of resource tags associated with tempate"""
|
||||
self.tags = []
|
||||
"""the ID of the latest async job acting on this object"""
|
||||
self.jobid = None
|
||||
"""the current status of the latest async job acting on this object"""
|
||||
self.jobstatus = None
|
||||
|
||||
class tags:
|
||||
def __init__(self):
|
||||
""""the account associated with the tag"""
|
||||
self.account = None
|
||||
""""customer associated with the tag"""
|
||||
self.customer = None
|
||||
""""the domain associated with the tag"""
|
||||
self.domain = None
|
||||
""""the ID of the domain associated with the tag"""
|
||||
self.domainid = None
|
||||
""""tag key name"""
|
||||
self.key = None
|
||||
""""the project name where tag belongs to"""
|
||||
self.project = None
|
||||
""""the project id the tag belongs to"""
|
||||
self.projectid = None
|
||||
""""id of the resource"""
|
||||
self.resourceid = None
|
||||
""""resource type"""
|
||||
self.resourcetype = None
|
||||
""""tag value"""
|
||||
self.value = None
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user