You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bf...@apache.org on 2013/11/08 19:08:55 UTC
[39/76] [abbrv] Revert "CLOUSTACK-5099: Utils.py-has-wrong-reference,
cleaned it. As well added Uniform naming convention"
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/65b12f45/tools/marvin/build/lib/marvin/cloudstackAPI/removeNicFromVirtualMachine.py
----------------------------------------------------------------------
diff --git a/tools/marvin/build/lib/marvin/cloudstackAPI/removeNicFromVirtualMachine.py b/tools/marvin/build/lib/marvin/cloudstackAPI/removeNicFromVirtualMachine.py
deleted file mode 100644
index 8c13453..0000000
--- a/tools/marvin/build/lib/marvin/cloudstackAPI/removeNicFromVirtualMachine.py
+++ /dev/null
@@ -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.
-
-
-"""Removes VM from specified network by deleting a NIC"""
-from baseCmd import *
-from baseResponse import *
-class removeNicFromVirtualMachineCmd (baseCmd):
- def __init__(self):
- self.isAsync = "true"
- """NIC ID"""
- """Required"""
- self.nicid = None
- """Virtual Machine ID"""
- """Required"""
- self.virtualmachineid = None
- self.required = ["nicid","virtualmachineid",]
-
-class removeNicFromVirtualMachineResponse (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
-
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/65b12f45/tools/marvin/build/lib/marvin/cloudstackAPI/removeRegion.py
----------------------------------------------------------------------
diff --git a/tools/marvin/build/lib/marvin/cloudstackAPI/removeRegion.py b/tools/marvin/build/lib/marvin/cloudstackAPI/removeRegion.py
deleted file mode 100644
index 101d51c..0000000
--- a/tools/marvin/build/lib/marvin/cloudstackAPI/removeRegion.py
+++ /dev/null
@@ -1,36 +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.
-
-
-"""Removes specified region"""
-from baseCmd import *
-from baseResponse import *
-class removeRegionCmd (baseCmd):
- def __init__(self):
- self.isAsync = "false"
- """ID of the region to delete"""
- """Required"""
- self.id = None
- self.required = ["id",]
-
-class removeRegionResponse (baseResponse):
- def __init__(self):
- """any text associated with the success or failure"""
- self.displaytext = None
- """true if operation is executed successfully"""
- self.success = None
-
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/65b12f45/tools/marvin/build/lib/marvin/cloudstackAPI/removeResourceDetail.py
----------------------------------------------------------------------
diff --git a/tools/marvin/build/lib/marvin/cloudstackAPI/removeResourceDetail.py b/tools/marvin/build/lib/marvin/cloudstackAPI/removeResourceDetail.py
deleted file mode 100644
index 7d97028..0000000
--- a/tools/marvin/build/lib/marvin/cloudstackAPI/removeResourceDetail.py
+++ /dev/null
@@ -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.
-
-
-"""Removes detail for the Resource."""
-from baseCmd import *
-from baseResponse import *
-class removeResourceDetailCmd (baseCmd):
- def __init__(self):
- self.isAsync = "true"
- """Delete details for resource id"""
- """Required"""
- self.resourceid = None
- """Delete detail by resource type"""
- """Required"""
- self.resourcetype = None
- """Delete details matching key/value pairs"""
- self.key = None
- self.required = ["resourceid","resourcetype",]
-
-class removeResourceDetailResponse (baseResponse):
- def __init__(self):
- """any text associated with the success or failure"""
- self.displaytext = None
- """true if operation is executed successfully"""
- self.success = None
-
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/65b12f45/tools/marvin/build/lib/marvin/cloudstackAPI/removeVpnUser.py
----------------------------------------------------------------------
diff --git a/tools/marvin/build/lib/marvin/cloudstackAPI/removeVpnUser.py b/tools/marvin/build/lib/marvin/cloudstackAPI/removeVpnUser.py
deleted file mode 100644
index 01ff167..0000000
--- a/tools/marvin/build/lib/marvin/cloudstackAPI/removeVpnUser.py
+++ /dev/null
@@ -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.
-
-
-"""Removes vpn user"""
-from baseCmd import *
-from baseResponse import *
-class removeVpnUserCmd (baseCmd):
- def __init__(self):
- self.isAsync = "true"
- """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
- """remove vpn user from the project"""
- self.projectid = None
- self.required = ["username",]
-
-class removeVpnUserResponse (baseResponse):
- def __init__(self):
- """any text associated with the success or failure"""
- self.displaytext = None
- """true if operation is executed successfully"""
- self.success = None
-
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/65b12f45/tools/marvin/build/lib/marvin/cloudstackAPI/replaceNetworkACLList.py
----------------------------------------------------------------------
diff --git a/tools/marvin/build/lib/marvin/cloudstackAPI/replaceNetworkACLList.py b/tools/marvin/build/lib/marvin/cloudstackAPI/replaceNetworkACLList.py
deleted file mode 100644
index 658366d..0000000
--- a/tools/marvin/build/lib/marvin/cloudstackAPI/replaceNetworkACLList.py
+++ /dev/null
@@ -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.
-
-
-"""Replaces ACL associated with a Network or private gateway"""
-from baseCmd import *
-from baseResponse import *
-class replaceNetworkACLListCmd (baseCmd):
- def __init__(self):
- self.isAsync = "true"
- """the ID of the network ACL"""
- """Required"""
- self.aclid = None
- """the ID of the private gateway"""
- self.gatewayid = None
- """the ID of the network"""
- self.networkid = None
- self.required = ["aclid",]
-
-class replaceNetworkACLListResponse (baseResponse):
- def __init__(self):
- """any text associated with the success or failure"""
- self.displaytext = None
- """true if operation is executed successfully"""
- self.success = None
-
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/65b12f45/tools/marvin/build/lib/marvin/cloudstackAPI/resetApiLimit.py
----------------------------------------------------------------------
diff --git a/tools/marvin/build/lib/marvin/cloudstackAPI/resetApiLimit.py b/tools/marvin/build/lib/marvin/cloudstackAPI/resetApiLimit.py
deleted file mode 100644
index 595f97b..0000000
--- a/tools/marvin/build/lib/marvin/cloudstackAPI/resetApiLimit.py
+++ /dev/null
@@ -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.
-
-
-"""Reset api count"""
-from baseCmd import *
-from baseResponse import *
-class resetApiLimitCmd (baseCmd):
- def __init__(self):
- self.isAsync = "false"
- """the ID of the acount whose limit to be reset"""
- self.account = None
- self.required = []
-
-class resetApiLimitResponse (baseResponse):
- def __init__(self):
- """the account name of the api remaining count"""
- self.account = None
- """the account uuid of the api remaining count"""
- self.accountid = None
- """currently allowed number of apis"""
- self.apiAllowed = None
- """number of api already issued"""
- self.apiIssued = None
- """seconds left to reset counters"""
- self.expireAfter = None
-
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/65b12f45/tools/marvin/build/lib/marvin/cloudstackAPI/resetPasswordForVirtualMachine.py
----------------------------------------------------------------------
diff --git a/tools/marvin/build/lib/marvin/cloudstackAPI/resetPasswordForVirtualMachine.py b/tools/marvin/build/lib/marvin/cloudstackAPI/resetPasswordForVirtualMachine.py
deleted file mode 100644
index 2895323..0000000
--- a/tools/marvin/build/lib/marvin/cloudstackAPI/resetPasswordForVirtualMachine.py
+++ /dev/null
@@ -1,369 +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.
-
-
-"""Resets the password for virtual machine. The virtual machine must be in a "Stopped" state and the template must already support this feature for this command to take effect. [async]"""
-from baseCmd import *
-from baseResponse import *
-class resetPasswordForVirtualMachineCmd (baseCmd):
- def __init__(self):
- self.isAsync = "true"
- """The ID of the virtual machine"""
- """Required"""
- self.id = None
- self.required = ["id",]
-
-class resetPasswordForVirtualMachineResponse (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
-
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/65b12f45/tools/marvin/build/lib/marvin/cloudstackAPI/resetSSHKeyForVirtualMachine.py
----------------------------------------------------------------------
diff --git a/tools/marvin/build/lib/marvin/cloudstackAPI/resetSSHKeyForVirtualMachine.py b/tools/marvin/build/lib/marvin/cloudstackAPI/resetSSHKeyForVirtualMachine.py
deleted file mode 100644
index fa8ba4e..0000000
--- a/tools/marvin/build/lib/marvin/cloudstackAPI/resetSSHKeyForVirtualMachine.py
+++ /dev/null
@@ -1,378 +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.
-
-
-"""Resets the SSH Key for virtual machine. The virtual machine must be in a "Stopped" state. [async]"""
-from baseCmd import *
-from baseResponse import *
-class resetSSHKeyForVirtualMachineCmd (baseCmd):
- def __init__(self):
- self.isAsync = "true"
- """The ID of the virtual machine"""
- """Required"""
- self.id = None
- """name of the ssh key pair used to login to the virtual machine"""
- """Required"""
- self.keypair = None
- """an optional account for the ssh key. Must be used with domainId."""
- self.account = None
- """an optional domainId for the virtual machine. If the account parameter is used, domainId must also be used."""
- self.domainid = None
- """an optional project for the ssh key"""
- self.projectid = None
- self.required = ["id","keypair",]
-
-class resetSSHKeyForVirtualMachineResponse (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
-
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/65b12f45/tools/marvin/build/lib/marvin/cloudstackAPI/resetVpnConnection.py
----------------------------------------------------------------------
diff --git a/tools/marvin/build/lib/marvin/cloudstackAPI/resetVpnConnection.py b/tools/marvin/build/lib/marvin/cloudstackAPI/resetVpnConnection.py
deleted file mode 100644
index b378b0c..0000000
--- a/tools/marvin/build/lib/marvin/cloudstackAPI/resetVpnConnection.py
+++ /dev/null
@@ -1,76 +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.
-
-
-"""Reset site to site vpn connection"""
-from baseCmd import *
-from baseResponse import *
-class resetVpnConnectionCmd (baseCmd):
- def __init__(self):
- self.isAsync = "true"
- """id of vpn connection"""
- """Required"""
- self.id = None
- """an optional account for connection. Must be used with domainId."""
- self.account = None
- """an optional domainId for connection. If the account parameter is used, domainId must also be used."""
- self.domainid = None
- self.required = ["id",]
-
-class resetVpnConnectionResponse (baseResponse):
- def __init__(self):
- """the vpn gateway ID"""
- self.id = None
- """the owner"""
- self.account = None
- """guest cidr list of the customer gateway"""
- self.cidrlist = None
- """the date and time the host was created"""
- self.created = None
- """the domain name of the owner"""
- self.domain = None
- """the domain id of the owner"""
- self.domainid = None
- """if DPD is enabled for customer gateway"""
- self.dpd = None
- """Lifetime of ESP SA of customer gateway"""
- self.esplifetime = None
- """ESP policy of the customer gateway"""
- self.esppolicy = None
- """public ip address id of the customer gateway"""
- self.gateway = None
- """Lifetime of IKE SA of customer gateway"""
- self.ikelifetime = None
- """IKE policy of the customer gateway"""
- self.ikepolicy = None
- """IPsec Preshared-Key of the customer gateway"""
- self.ipsecpsk = None
- """the project name"""
- self.project = None
- """the project id"""
- self.projectid = None
- """the public IP address"""
- self.publicip = None
- """the date and time the host was removed"""
- self.removed = None
- """the customer gateway ID"""
- self.s2scustomergatewayid = None
- """the vpn gateway ID"""
- self.s2svpngatewayid = None
- """State of vpn connection"""
- self.state = None
-
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/65b12f45/tools/marvin/build/lib/marvin/cloudstackAPI/resizeVolume.py
----------------------------------------------------------------------
diff --git a/tools/marvin/build/lib/marvin/cloudstackAPI/resizeVolume.py b/tools/marvin/build/lib/marvin/cloudstackAPI/resizeVolume.py
deleted file mode 100644
index f63437c..0000000
--- a/tools/marvin/build/lib/marvin/cloudstackAPI/resizeVolume.py
+++ /dev/null
@@ -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.
-
-
-"""Resizes a volume"""
-from baseCmd import *
-from baseResponse import *
-class resizeVolumeCmd (baseCmd):
- def __init__(self):
- self.isAsync = "true"
- """new disk offering id"""
- self.diskofferingid = None
- """the ID of the disk volume"""
- self.id = None
- """Verify OK to Shrink"""
- self.shrinkok = None
- """New volume size in G"""
- self.size = None
- self.required = []
-
-class resizeVolumeResponse (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
-
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/65b12f45/tools/marvin/build/lib/marvin/cloudstackAPI/restartNetwork.py
----------------------------------------------------------------------
diff --git a/tools/marvin/build/lib/marvin/cloudstackAPI/restartNetwork.py b/tools/marvin/build/lib/marvin/cloudstackAPI/restartNetwork.py
deleted file mode 100644
index 9a8eb1a..0000000
--- a/tools/marvin/build/lib/marvin/cloudstackAPI/restartNetwork.py
+++ /dev/null
@@ -1,119 +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.
-
-
-"""Restarts the network; includes 1) restarting network elements - virtual routers, dhcp servers 2) reapplying all public ips 3) reapplying loadBalancing/portForwarding rules"""
-from baseCmd import *
-from baseResponse import *
-class restartNetworkCmd (baseCmd):
- def __init__(self):
- self.isAsync = "true"
- """The id of the network to restart."""
- """Required"""
- self.id = None
- """If cleanup old network elements"""
- self.cleanup = None
- self.required = ["id",]
-
-class restartNetworkResponse (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
-
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/65b12f45/tools/marvin/build/lib/marvin/cloudstackAPI/restartVPC.py
----------------------------------------------------------------------
diff --git a/tools/marvin/build/lib/marvin/cloudstackAPI/restartVPC.py b/tools/marvin/build/lib/marvin/cloudstackAPI/restartVPC.py
deleted file mode 100644
index 152e64f..0000000
--- a/tools/marvin/build/lib/marvin/cloudstackAPI/restartVPC.py
+++ /dev/null
@@ -1,393 +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.
-
-
-"""Restarts a VPC"""
-from baseCmd import *
-from baseResponse import *
-class restartVPCCmd (baseCmd):
- def __init__(self):
- self.isAsync = "true"
- """the id of the VPC"""
- """Required"""
- self.id = None
- self.required = ["id",]
-
-class restartVPCResponse (baseResponse):
- def __init__(self):
- """the id of the VPC"""
- self.id = None
- """the owner of the VPC"""
- self.account = None
- """the cidr the VPC"""
- self.cidr = None
- """the date this VPC was created"""
- self.created = None
- """an alternate display text of the VPC."""
- self.displaytext = None
- """the domain name of the owner"""
- self.domain = None
- """the domain id of the VPC owner"""
- self.domainid = None
- """the name of the VPC"""
- self.name = None
- """the network domain of the VPC"""
- self.networkdomain = None
- """the project name of the VPC"""
- self.project = None
- """the project id of the VPC"""
- self.projectid = None
- """true VPC requires restart"""
- self.restartrequired = None
- """state of the VPC. Can be Inactive/Enabled"""
- self.state = None
- """vpc offering id the VPC is created from"""
- self.vpcofferingid = None
- """zone id of the vpc"""
- self.zoneid = None
- """the name of the zone the VPC belongs to"""
- self.zonename = None
- """the list of networks belongign to the VPC"""
- self.network = []
- """the list of supported services"""
- self.service = []
- """the list of resource tags associated with the project"""
- self.tags = []
-
-class capability:
- def __init__(self):
- """"can this service capability value can be choosable while creatine network offerings"""
- self.canchooseservicecapability = None
- """"the capability name"""
- self.name = None
- """"the capability value"""
- self.value = None
-
-class provider:
- 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
-
-class service:
- def __init__(self):
- """"the service name"""
- self.name = None
- """"the list of capabilities"""
- self.capability = []
- """"can this service capability value can be choosable while creatine network offerings"""
- self.canchooseservicecapability = None
- """"the capability name"""
- self.name = None
- """"the capability value"""
- self.value = None
- """"the service provider name"""
- self.provider = []
- """"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
-
-class capability:
- def __init__(self):
- """"can this service capability value can be choosable while creatine network offerings"""
- self.canchooseservicecapability = None
- """"the capability name"""
- self.name = None
- """"the capability value"""
- self.value = None
-
-class provider:
- 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
-
-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 network:
- def __init__(self):
- """"the id of the network"""
- self.id = None
- """"the owner of the network"""
- self.account = None
- """"ACL Id associated with the VPC network"""
- self.aclid = None
- """"acl type - access type to the network"""
- self.acltype = None
- """"Broadcast domain type of the network"""
- self.broadcastdomaintype = None
- """"broadcast uri of the network. This parameter is visible to ROOT admins only"""
- self.broadcasturi = None
- """"list networks available for vm deployment"""
- self.canusefordeploy = None
- """"Cloudstack managed address space, all CloudStack managed VMs get IP address from CIDR"""
- self.cidr = None
- """"an optional field, whether to the display the network to the end user or not."""
- self.displaynetwork = None
- """"the displaytext of the network"""
- self.displaytext = None
- """"the first DNS for the network"""
- self.dns1 = None
- """"the second DNS for the network"""
- self.dns2 = None
- """"the domain name of the network owner"""
- self.domain = None
- """"the domain id of the network owner"""
- self.domainid = None
- """"the network's gateway"""
- self.gateway = None
- """"the cidr of IPv6 network"""
- self.ip6cidr = None
- """"the gateway of IPv6 network"""
- self.ip6gateway = None
- """"true if network is default, false otherwise"""
- self.isdefault = None
- """"list networks that are persistent"""
- self.ispersistent = None
- """"true if network is system, false otherwise"""
- self.issystem = None
- """"the name of the network"""
- self.name = None
- """"the network's netmask"""
- self.netmask = None
- """"the network CIDR of the guest network configured with IP reservation. It is the summation of CIDR and RESERVED_IP_RANGE"""
- self.networkcidr = None
- """"the network domain"""
- self.networkdomain = None
- """"availability of the network offering the network is created from"""
- self.networkofferingavailability = None
- """"true if network offering is ip conserve mode enabled"""
- self.networkofferingconservemode = None
- """"display text of the network offering the network is created from"""
- self.networkofferingdisplaytext = None
- """"network offering id the network is created from"""
- self.networkofferingid = None
- """"name of the network offering the network is created from"""
- self.networkofferingname = None
- """"the physical network id"""
- self.physicalnetworkid = None
- """"the project name of the address"""
- self.project = None
- """"the project id of the ipaddress"""
- self.projectid = None
- """"related to what other network configuration"""
- self.related = None
- """"the network's IP range not to be used by CloudStack guest VMs and can be used for non CloudStack purposes"""
- self.reservediprange = None
- """"true network requires restart"""
- self.restartrequired = None
- """"true if network supports specifying ip ranges, false otherwise"""
- self.specifyipranges = None
- """"state of the network"""
- self.state = None
- """"true if users from subdomains can access the domain level network"""
- self.subdomainaccess = None
- """"the traffic type of the network"""
- self.traffictype = None
- """"the type of the network"""
- self.type = None
- """"The vlan of the network. This parameter is visible to ROOT admins only"""
- self.vlan = None
- """"VPC the network belongs to"""
- self.vpcid = None
- """"zone id of the network"""
- self.zoneid = None
- """"the name of the zone the network belongs to"""
- self.zonename = None
- """"the list of services"""
- self.service = []
- """"the service name"""
- self.name = None
- """"the list of capabilities"""
- self.capability = []
- """"can this service capability value can be choosable while creatine network offerings"""
- self.canchooseservicecapability = None
- """"the capability name"""
- self.name = None
- """"the capability value"""
- self.value = None
- """"the service provider name"""
- self.provider = []
- """"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
- """"the list of resource tags associated with network"""
- 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
-
-class capability:
- def __init__(self):
- """"can this service capability value can be choosable while creatine network offerings"""
- self.canchooseservicecapability = None
- """"the capability name"""
- self.name = None
- """"the capability value"""
- self.value = None
-
-class provider:
- 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
-
-class service:
- def __init__(self):
- """"the service name"""
- self.name = None
- """"the list of capabilities"""
- self.capability = []
- """"can this service capability value can be choosable while creatine network offerings"""
- self.canchooseservicecapability = None
- """"the capability name"""
- self.name = None
- """"the capability value"""
- self.value = None
- """"the service provider name"""
- self.provider = []
- """"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
-
-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
-