Return-Path: X-Original-To: apmail-cloudstack-commits-archive@www.apache.org Delivered-To: apmail-cloudstack-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DC009102C1 for ; Fri, 8 Nov 2013 10:38:13 +0000 (UTC) Received: (qmail 7163 invoked by uid 500); 8 Nov 2013 10:34:09 -0000 Delivered-To: apmail-cloudstack-commits-archive@cloudstack.apache.org Received: (qmail 7001 invoked by uid 500); 8 Nov 2013 10:34:00 -0000 Mailing-List: contact commits-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list commits@cloudstack.apache.org Received: (qmail 6745 invoked by uid 99); 8 Nov 2013 10:33:48 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Nov 2013 10:33:48 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 6F544815676; Fri, 8 Nov 2013 10:33:48 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: talluri@apache.org To: commits@cloudstack.apache.org Date: Fri, 08 Nov 2013 10:33:54 -0000 Message-Id: In-Reply-To: <2413813efbf64872ad34d42fd4248fe0@git.apache.org> References: <2413813efbf64872ad34d42fd4248fe0@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [07/29] CLOUSTACK-5099: Utils.py-has-wrong-reference, cleaned it. As well added Uniform naming convention Signed-off-by: SrikanteswaraRao Talluri http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ec00a6fb/tools/marvin/build/lib/marvin/cloudstackAPI/updateHost.py ---------------------------------------------------------------------- diff --git a/tools/marvin/build/lib/marvin/cloudstackAPI/updateHost.py b/tools/marvin/build/lib/marvin/cloudstackAPI/updateHost.py new file mode 100644 index 0000000..18b5f93 --- /dev/null +++ b/tools/marvin/build/lib/marvin/cloudstackAPI/updateHost.py @@ -0,0 +1,130 @@ +# 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. + + +"""Updates a host.""" +from baseCmd import * +from baseResponse import * +class updateHostCmd (baseCmd): + def __init__(self): + self.isAsync = "false" + """the ID of the host to update""" + """Required""" + self.id = None + """Change resource state of host, valid values are [Enable, Disable]. Operation may failed if host in states not allowing Enable/Disable""" + self.allocationstate = None + """list of tags to be added to the host""" + self.hosttags = [] + """the id of Os category to update the host with""" + self.oscategoryid = None + """the new uri for the secondary storage: nfs://host/path""" + self.url = None + self.required = ["id",] + +class updateHostResponse (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 + http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ec00a6fb/tools/marvin/build/lib/marvin/cloudstackAPI/updateHostPassword.py ---------------------------------------------------------------------- diff --git a/tools/marvin/build/lib/marvin/cloudstackAPI/updateHostPassword.py b/tools/marvin/build/lib/marvin/cloudstackAPI/updateHostPassword.py new file mode 100644 index 0000000..eaeb0bc --- /dev/null +++ b/tools/marvin/build/lib/marvin/cloudstackAPI/updateHostPassword.py @@ -0,0 +1,43 @@ +# 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. + + +"""Update password of a host/pool on management server.""" +from baseCmd import * +from baseResponse import * +class updateHostPasswordCmd (baseCmd): + def __init__(self): + self.isAsync = "false" + """the new password for the host/cluster""" + """Required""" + self.password = None + """the username for the host/cluster""" + """Required""" + self.username = None + """the cluster ID""" + self.clusterid = None + """the host ID""" + self.hostid = None + self.required = ["password","username",] + +class updateHostPasswordResponse (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/ec00a6fb/tools/marvin/build/lib/marvin/cloudstackAPI/updateHypervisorCapabilities.py ---------------------------------------------------------------------- diff --git a/tools/marvin/build/lib/marvin/cloudstackAPI/updateHypervisorCapabilities.py b/tools/marvin/build/lib/marvin/cloudstackAPI/updateHypervisorCapabilities.py new file mode 100644 index 0000000..f640aa8 --- /dev/null +++ b/tools/marvin/build/lib/marvin/cloudstackAPI/updateHypervisorCapabilities.py @@ -0,0 +1,51 @@ +# 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. + + +"""Updates a hypervisor capabilities.""" +from baseCmd import * +from baseResponse import * +class updateHypervisorCapabilitiesCmd (baseCmd): + def __init__(self): + self.isAsync = "false" + """ID of the hypervisor capability""" + self.id = None + """the max number of Guest VMs per host for this hypervisor.""" + self.maxguestslimit = None + """set true to enable security group for this hypervisor.""" + self.securitygroupenabled = None + self.required = [] + +class updateHypervisorCapabilitiesResponse (baseResponse): + def __init__(self): + """the ID of the hypervisor capabilities row""" + self.id = None + """the hypervisor type""" + self.hypervisor = None + """the hypervisor version""" + self.hypervisorversion = None + """the maximum number of Data Volumes that can be attached for this hypervisor""" + self.maxdatavolumeslimit = None + """the maximum number of guest vms recommended for this hypervisor""" + self.maxguestslimit = None + """the maximum number of Hosts per cluster for this hypervisor""" + self.maxhostspercluster = None + """true if security group is supported""" + self.securitygroupenabled = None + """true if storage motion is supported""" + self.storagemotionenabled = None + http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ec00a6fb/tools/marvin/build/lib/marvin/cloudstackAPI/updateInstanceGroup.py ---------------------------------------------------------------------- diff --git a/tools/marvin/build/lib/marvin/cloudstackAPI/updateInstanceGroup.py b/tools/marvin/build/lib/marvin/cloudstackAPI/updateInstanceGroup.py new file mode 100644 index 0000000..357f778 --- /dev/null +++ b/tools/marvin/build/lib/marvin/cloudstackAPI/updateInstanceGroup.py @@ -0,0 +1,50 @@ +# 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. + + +"""Updates a vm group""" +from baseCmd import * +from baseResponse import * +class updateInstanceGroupCmd (baseCmd): + def __init__(self): + self.isAsync = "false" + """Instance group ID""" + """Required""" + self.id = None + """new instance group name""" + self.name = None + self.required = ["id",] + +class updateInstanceGroupResponse (baseResponse): + def __init__(self): + """the id of the instance group""" + self.id = None + """the account owning the instance group""" + self.account = None + """time and date the instance group was created""" + self.created = None + """the domain name of the instance group""" + self.domain = None + """the domain ID of the instance group""" + self.domainid = None + """the name of the instance group""" + self.name = None + """the project name of the group""" + self.project = None + """the project id of the group""" + self.projectid = None + http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ec00a6fb/tools/marvin/build/lib/marvin/cloudstackAPI/updateIso.py ---------------------------------------------------------------------- diff --git a/tools/marvin/build/lib/marvin/cloudstackAPI/updateIso.py b/tools/marvin/build/lib/marvin/cloudstackAPI/updateIso.py new file mode 100644 index 0000000..5416462 --- /dev/null +++ b/tools/marvin/build/lib/marvin/cloudstackAPI/updateIso.py @@ -0,0 +1,149 @@ +# 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. + + +"""Updates an ISO file.""" +from baseCmd import * +from baseResponse import * +class updateIsoCmd (baseCmd): + def __init__(self): + self.isAsync = "false" + """the ID of the image file""" + """Required""" + self.id = None + """true if image is bootable, false otherwise""" + self.bootable = None + """the display text of the image""" + self.displaytext = None + """the format for the image""" + self.format = None + """true if template/ISO contains XS/VMWare tools inorder to support dynamic scaling of VM cpu/memory""" + self.isdynamicallyscalable = None + """true if the template type is routing i.e., if template is used to deploy router""" + self.isrouting = None + """the name of the image file""" + self.name = None + """the ID of the OS type that best represents the OS of this image.""" + self.ostypeid = None + """true if the image supports the password reset feature; default is false""" + self.passwordenabled = None + """sort key of the template, integer""" + self.sortkey = None + self.required = ["id",] + +class updateIsoResponse (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 + http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ec00a6fb/tools/marvin/build/lib/marvin/cloudstackAPI/updateIsoPermissions.py ---------------------------------------------------------------------- diff --git a/tools/marvin/build/lib/marvin/cloudstackAPI/updateIsoPermissions.py b/tools/marvin/build/lib/marvin/cloudstackAPI/updateIsoPermissions.py new file mode 100644 index 0000000..4e8debc --- /dev/null +++ b/tools/marvin/build/lib/marvin/cloudstackAPI/updateIsoPermissions.py @@ -0,0 +1,48 @@ +# 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. + + +"""Updates iso permissions""" +from baseCmd import * +from baseResponse import * +class updateIsoPermissionsCmd (baseCmd): + def __init__(self): + self.isAsync = "false" + """the template ID""" + """Required""" + self.id = None + """a comma delimited list of accounts. If specified, "op" parameter has to be passed in.""" + self.accounts = [] + """true if the template/iso is extractable, false other wise. Can be set only by root admin""" + self.isextractable = None + """true for featured template/iso, false otherwise""" + self.isfeatured = None + """true for public template/iso, false for private templates/isos""" + self.ispublic = None + """permission operator (add, remove, reset)""" + self.op = None + """a comma delimited list of projects. If specified, "op" parameter has to be passed in.""" + self.projectids = [] + self.required = ["id",] + +class updateIsoPermissionsResponse (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/ec00a6fb/tools/marvin/build/lib/marvin/cloudstackAPI/updateLoadBalancerRule.py ---------------------------------------------------------------------- diff --git a/tools/marvin/build/lib/marvin/cloudstackAPI/updateLoadBalancerRule.py b/tools/marvin/build/lib/marvin/cloudstackAPI/updateLoadBalancerRule.py new file mode 100644 index 0000000..b02139f --- /dev/null +++ b/tools/marvin/build/lib/marvin/cloudstackAPI/updateLoadBalancerRule.py @@ -0,0 +1,97 @@ +# 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. + + +"""Updates load balancer""" +from baseCmd import * +from baseResponse import * +class updateLoadBalancerRuleCmd (baseCmd): + def __init__(self): + self.isAsync = "true" + """the id of the load balancer rule to update""" + """Required""" + self.id = None + """load balancer algorithm (source, roundrobin, leastconn)""" + self.algorithm = None + """the description of the load balancer rule""" + self.description = None + """the name of the load balancer rule""" + self.name = None + self.required = ["id",] + +class updateLoadBalancerRuleResponse (baseResponse): + def __init__(self): + """the load balancer rule ID""" + self.id = None + """the account of the load balancer rule""" + self.account = None + """the load balancer algorithm (source, roundrobin, leastconn)""" + self.algorithm = None + """the cidr list to forward traffic from""" + self.cidrlist = None + """the description of the load balancer""" + self.description = None + """the domain of the load balancer rule""" + self.domain = None + """the domain ID of the load balancer rule""" + self.domainid = None + """the name of the load balancer""" + self.name = None + """the id of the guest network the lb rule belongs to""" + self.networkid = None + """the private port""" + self.privateport = None + """the project name of the load balancer""" + self.project = None + """the project id of the load balancer""" + self.projectid = None + """the public ip address""" + self.publicip = None + """the public ip address id""" + self.publicipid = None + """the public port""" + self.publicport = None + """the state of the rule""" + self.state = None + """the id of the zone the rule belongs to""" + self.zoneid = None + """the list of resource tags associated with load balancer""" + 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 + http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ec00a6fb/tools/marvin/build/lib/marvin/cloudstackAPI/updateNetwork.py ---------------------------------------------------------------------- diff --git a/tools/marvin/build/lib/marvin/cloudstackAPI/updateNetwork.py b/tools/marvin/build/lib/marvin/cloudstackAPI/updateNetwork.py new file mode 100644 index 0000000..b0230f5 --- /dev/null +++ b/tools/marvin/build/lib/marvin/cloudstackAPI/updateNetwork.py @@ -0,0 +1,216 @@ +# 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. + + +"""Updates a network""" +from baseCmd import * +from baseResponse import * +class updateNetworkCmd (baseCmd): + def __init__(self): + self.isAsync = "true" + """the ID of the network""" + """Required""" + self.id = None + """Force update even if cidr type is different""" + self.changecidr = None + """an optional field, whether to the display the network to the end user or not.""" + self.displaynetwork = None + """the new display text for the network""" + self.displaytext = None + """CIDR for Guest VMs,Cloudstack allocates IPs to Guest VMs only from this CIDR""" + self.guestvmcidr = None + """the new name for the network""" + self.name = None + """network domain""" + self.networkdomain = None + """network offering ID""" + self.networkofferingid = None + self.required = ["id",] + +class updateNetworkResponse (baseResponse): + 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 list of resource tags associated with network""" + 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 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/ec00a6fb/tools/marvin/build/lib/marvin/cloudstackAPI/updateNetworkACLItem.py ---------------------------------------------------------------------- diff --git a/tools/marvin/build/lib/marvin/cloudstackAPI/updateNetworkACLItem.py b/tools/marvin/build/lib/marvin/cloudstackAPI/updateNetworkACLItem.py new file mode 100644 index 0000000..acc979f --- /dev/null +++ b/tools/marvin/build/lib/marvin/cloudstackAPI/updateNetworkACLItem.py @@ -0,0 +1,99 @@ +# 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. + + +"""Updates ACL Item with specified Id""" +from baseCmd import * +from baseResponse import * +class updateNetworkACLItemCmd (baseCmd): + def __init__(self): + self.isAsync = "true" + """the ID of the network ACL Item""" + """Required""" + self.id = None + """scl entry action, allow or deny""" + self.action = None + """the cidr list to allow traffic from/to""" + self.cidrlist = [] + """the ending port of ACL""" + self.endport = None + """error code for this icmp message""" + self.icmpcode = None + """type of the icmp message being sent""" + self.icmptype = None + """The network of the vm the ACL will be created for""" + self.number = None + """the protocol for the ACL rule. Valid values are TCP/UDP/ICMP/ALL or valid protocol number""" + self.protocol = None + """the starting port of ACL""" + self.startport = None + """the traffic type for the ACL,can be Ingress or Egress, defaulted to Ingress if not specified""" + self.traffictype = None + self.required = ["id",] + +class updateNetworkACLItemResponse (baseResponse): + def __init__(self): + """the ID of the ACL Item""" + self.id = None + """the ID of the ACL this item belongs to""" + self.aclid = None + """Action of ACL Item. Allow/Deny""" + self.action = None + """the cidr list to forward traffic from""" + self.cidrlist = None + """the ending port of ACL's port range""" + self.endport = None + """error code for this icmp message""" + self.icmpcode = None + """type of the icmp message being sent""" + self.icmptype = None + """Number of the ACL Item""" + self.number = None + """the protocol of the ACL""" + self.protocol = None + """the starting port of ACL's port range""" + self.startport = None + """the state of the rule""" + self.state = None + """the traffic type for the ACL""" + self.traffictype = None + """the list of resource tags associated with the network ACLs""" + 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 + http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ec00a6fb/tools/marvin/build/lib/marvin/cloudstackAPI/updateNetworkOffering.py ---------------------------------------------------------------------- diff --git a/tools/marvin/build/lib/marvin/cloudstackAPI/updateNetworkOffering.py b/tools/marvin/build/lib/marvin/cloudstackAPI/updateNetworkOffering.py new file mode 100644 index 0000000..813af27 --- /dev/null +++ b/tools/marvin/build/lib/marvin/cloudstackAPI/updateNetworkOffering.py @@ -0,0 +1,140 @@ +# 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. + + +"""Updates a network offering.""" +from baseCmd import * +from baseResponse import * +class updateNetworkOfferingCmd (baseCmd): + def __init__(self): + self.isAsync = "false" + """the availability of network offering. Default value is Required for Guest Virtual network offering; Optional for Guest Direct network offering""" + self.availability = None + """the display text of the network offering""" + self.displaytext = None + """the id of the network offering""" + self.id = None + """maximum number of concurrent connections supported by the network offering""" + self.maxconnections = None + """the name of the network offering""" + self.name = None + """sort key of the network offering, integer""" + self.sortkey = None + """update state for the network offering""" + self.state = None + self.required = [] + +class updateNetworkOfferingResponse (baseResponse): + def __init__(self): + """the id of the network offering""" + self.id = None + """availability of the network offering""" + self.availability = None + """true if network offering is ip conserve mode enabled""" + self.conservemode = None + """the date this network offering was created""" + self.created = None + """additional key/value details tied with network offering""" + self.details = None + """an alternate display text of the network offering.""" + self.displaytext = None + """true if network offering supports persistent networks, false otherwise""" + self.egressdefaultpolicy = None + """true if network offering can be used by VPC networks only""" + self.forvpc = None + """guest type of the network offering, can be Shared or Isolated""" + self.guestiptype = None + """true if network offering is default, false otherwise""" + self.isdefault = None + """true if network offering supports persistent networks, false otherwise""" + self.ispersistent = None + """maximum number of concurrents connections to be handled by lb""" + self.maxconnections = None + """the name of the network offering""" + self.name = None + """data transfer rate in megabits per second allowed.""" + self.networkrate = None + """the ID of the service offering used by virtual router provider""" + self.serviceofferingid = None + """true if network offering supports specifying ip ranges, false otherwise""" + self.specifyipranges = None + """true if network offering supports vlans, false otherwise""" + self.specifyvlan = None + """state of the network offering. Can be Disabled/Enabled/Inactive""" + self.state = None + """the tags for the network offering""" + self.tags = None + """the traffic type for the network offering, supported types are Public, Management, Control, Guest, Vlan or Storage.""" + self.traffictype = None + """the list of supported services""" + self.service = [] + +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 + http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ec00a6fb/tools/marvin/build/lib/marvin/cloudstackAPI/updateNetworkServiceProvider.py ---------------------------------------------------------------------- diff --git a/tools/marvin/build/lib/marvin/cloudstackAPI/updateNetworkServiceProvider.py b/tools/marvin/build/lib/marvin/cloudstackAPI/updateNetworkServiceProvider.py new file mode 100644 index 0000000..677ef4b --- /dev/null +++ b/tools/marvin/build/lib/marvin/cloudstackAPI/updateNetworkServiceProvider.py @@ -0,0 +1,50 @@ +# 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. + + +"""Updates a network serviceProvider of a physical network""" +from baseCmd import * +from baseResponse import * +class updateNetworkServiceProviderCmd (baseCmd): + def __init__(self): + self.isAsync = "true" + """network service provider id""" + """Required""" + self.id = None + """the list of services to be enabled for this physical network service provider""" + self.servicelist = [] + """Enabled/Disabled/Shutdown the physical network service provider""" + self.state = None + self.required = ["id",] + +class updateNetworkServiceProviderResponse (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 + http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ec00a6fb/tools/marvin/build/lib/marvin/cloudstackAPI/updatePhysicalNetwork.py ---------------------------------------------------------------------- diff --git a/tools/marvin/build/lib/marvin/cloudstackAPI/updatePhysicalNetwork.py b/tools/marvin/build/lib/marvin/cloudstackAPI/updatePhysicalNetwork.py new file mode 100644 index 0000000..e994066 --- /dev/null +++ b/tools/marvin/build/lib/marvin/cloudstackAPI/updatePhysicalNetwork.py @@ -0,0 +1,60 @@ +# 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. + + +"""Updates a physical network""" +from baseCmd import * +from baseResponse import * +class updatePhysicalNetworkCmd (baseCmd): + def __init__(self): + self.isAsync = "true" + """physical network id""" + """Required""" + self.id = None + """the speed for the physical network[1G/10G]""" + self.networkspeed = None + """Enabled/Disabled""" + self.state = None + """Tag the physical network""" + self.tags = [] + """the VLAN for the physical network""" + self.vlan = None + self.required = ["id",] + +class updatePhysicalNetworkResponse (baseResponse): + def __init__(self): + """the uuid of the physical network""" + self.id = None + """Broadcast domain range of the physical network""" + self.broadcastdomainrange = None + """the domain id of the physical network owner""" + self.domainid = None + """isolation methods""" + self.isolationmethods = None + """name of the physical network""" + self.name = None + """the speed of the physical network""" + self.networkspeed = None + """state of the physical network""" + self.state = None + """comma separated tag""" + self.tags = None + """the vlan of the physical network""" + self.vlan = None + """zone id of the physical network""" + self.zoneid = None + http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ec00a6fb/tools/marvin/build/lib/marvin/cloudstackAPI/updatePod.py ---------------------------------------------------------------------- diff --git a/tools/marvin/build/lib/marvin/cloudstackAPI/updatePod.py b/tools/marvin/build/lib/marvin/cloudstackAPI/updatePod.py new file mode 100644 index 0000000..54aa412 --- /dev/null +++ b/tools/marvin/build/lib/marvin/cloudstackAPI/updatePod.py @@ -0,0 +1,87 @@ +# 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. + + +"""Updates a Pod.""" +from baseCmd import * +from baseResponse import * +class updatePodCmd (baseCmd): + def __init__(self): + self.isAsync = "false" + """the ID of the Pod""" + """Required""" + self.id = None + """Allocation state of this cluster for allocation of new resources""" + self.allocationstate = None + """the ending IP address for the Pod""" + self.endip = None + """the gateway for the Pod""" + self.gateway = None + """the name of the Pod""" + self.name = None + """the netmask of the Pod""" + self.netmask = None + """the starting IP address for the Pod""" + self.startip = None + self.required = ["id",] + +class updatePodResponse (baseResponse): + def __init__(self): + """the ID of the Pod""" + self.id = None + """the allocation state of the Pod""" + self.allocationstate = None + """the ending IP for the Pod""" + self.endip = None + """the gateway of the Pod""" + self.gateway = None + """the name of the Pod""" + self.name = None + """the netmask of the Pod""" + self.netmask = None + """the starting IP for the Pod""" + self.startip = None + """the Zone ID of the Pod""" + self.zoneid = None + """the Zone name of the Pod""" + self.zonename = None + """the capacity of the Pod""" + 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 + http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ec00a6fb/tools/marvin/build/lib/marvin/cloudstackAPI/updatePortForwardingRule.py ---------------------------------------------------------------------- diff --git a/tools/marvin/build/lib/marvin/cloudstackAPI/updatePortForwardingRule.py b/tools/marvin/build/lib/marvin/cloudstackAPI/updatePortForwardingRule.py new file mode 100644 index 0000000..ddafa51 --- /dev/null +++ b/tools/marvin/build/lib/marvin/cloudstackAPI/updatePortForwardingRule.py @@ -0,0 +1,98 @@ +# 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. + + +"""Updates a port forwarding rule. Only the private port and the virtual machine can be updated.""" +from baseCmd import * +from baseResponse import * +class updatePortForwardingRuleCmd (baseCmd): + def __init__(self): + self.isAsync = "true" + """the IP address id of the port forwarding rule""" + """Required""" + self.ipaddressid = None + """the private port of the port forwarding rule""" + """Required""" + self.privateport = None + """the protocol for the port fowarding rule. Valid values are TCP or UDP.""" + """Required""" + self.protocol = None + """the public port of the port forwarding rule""" + """Required""" + self.publicport = None + """the private IP address of the port forwarding rule""" + self.privateip = None + """the ID of the virtual machine for the port forwarding rule""" + self.virtualmachineid = None + self.required = ["ipaddressid","privateport","protocol","publicport",] + +class updatePortForwardingRuleResponse (baseResponse): + def __init__(self): + """the ID of the port forwarding rule""" + self.id = None + """the cidr list to forward traffic from""" + self.cidrlist = None + """the public ip address for the port forwarding rule""" + self.ipaddress = None + """the public ip address id for the port forwarding rule""" + self.ipaddressid = None + """the ending port of port forwarding rule's private port range""" + self.privateendport = None + """the starting port of port forwarding rule's private port range""" + self.privateport = None + """the protocol of the port forwarding rule""" + self.protocol = None + """the ending port of port forwarding rule's private port range""" + self.publicendport = None + """the starting port of port forwarding rule's public port range""" + self.publicport = None + """the state of the rule""" + self.state = None + """the VM display name for the port forwarding rule""" + self.virtualmachinedisplayname = None + """the VM ID for the port forwarding rule""" + self.virtualmachineid = None + """the VM name for the port forwarding rule""" + self.virtualmachinename = None + """the vm ip address for the port forwarding rule""" + self.vmguestip = None + """the list of resource tags associated with the rule""" + 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 + http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ec00a6fb/tools/marvin/build/lib/marvin/cloudstackAPI/updateProject.py ---------------------------------------------------------------------- diff --git a/tools/marvin/build/lib/marvin/cloudstackAPI/updateProject.py b/tools/marvin/build/lib/marvin/cloudstackAPI/updateProject.py new file mode 100644 index 0000000..3cce35a --- /dev/null +++ b/tools/marvin/build/lib/marvin/cloudstackAPI/updateProject.py @@ -0,0 +1,145 @@ +# 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. + + +"""Updates a project""" +from baseCmd import * +from baseResponse import * +class updateProjectCmd (baseCmd): + def __init__(self): + self.isAsync = "true" + """id of the project to be modified""" + """Required""" + self.id = None + """new Admin account for the project""" + self.account = None + """display text of the project""" + self.displaytext = None + self.required = ["id",] + +class updateProjectResponse (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 + http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ec00a6fb/tools/marvin/build/lib/marvin/cloudstackAPI/updateProjectInvitation.py ---------------------------------------------------------------------- diff --git a/tools/marvin/build/lib/marvin/cloudstackAPI/updateProjectInvitation.py b/tools/marvin/build/lib/marvin/cloudstackAPI/updateProjectInvitation.py new file mode 100644 index 0000000..f56aac5 --- /dev/null +++ b/tools/marvin/build/lib/marvin/cloudstackAPI/updateProjectInvitation.py @@ -0,0 +1,42 @@ +# 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. + + +"""Accepts or declines project invitation""" +from baseCmd import * +from baseResponse import * +class updateProjectInvitationCmd (baseCmd): + def __init__(self): + self.isAsync = "true" + """id of the project to join""" + """Required""" + self.projectid = None + """if true, accept the invitation, decline if false. True by default""" + self.accept = None + """account that is joining the project""" + self.account = None + """list invitations for specified account; this parameter has to be specified with domainId""" + self.token = None + self.required = ["projectid",] + +class updateProjectInvitationResponse (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/ec00a6fb/tools/marvin/build/lib/marvin/cloudstackAPI/updateRegion.py ---------------------------------------------------------------------- diff --git a/tools/marvin/build/lib/marvin/cloudstackAPI/updateRegion.py b/tools/marvin/build/lib/marvin/cloudstackAPI/updateRegion.py new file mode 100644 index 0000000..c7552db --- /dev/null +++ b/tools/marvin/build/lib/marvin/cloudstackAPI/updateRegion.py @@ -0,0 +1,46 @@ +# 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. + + +"""Updates a region""" +from baseCmd import * +from baseResponse import * +class updateRegionCmd (baseCmd): + def __init__(self): + self.isAsync = "false" + """Id of region to update""" + """Required""" + self.id = None + """updates region with this end point""" + self.endpoint = None + """updates region with this name""" + self.name = None + self.required = ["id",] + +class updateRegionResponse (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 + http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ec00a6fb/tools/marvin/build/lib/marvin/cloudstackAPI/updateResourceCount.py ---------------------------------------------------------------------- diff --git a/tools/marvin/build/lib/marvin/cloudstackAPI/updateResourceCount.py b/tools/marvin/build/lib/marvin/cloudstackAPI/updateResourceCount.py new file mode 100644 index 0000000..f197b9e --- /dev/null +++ b/tools/marvin/build/lib/marvin/cloudstackAPI/updateResourceCount.py @@ -0,0 +1,52 @@ +# 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. + + +"""Recalculate and update resource count for an account or domain.""" +from baseCmd import * +from baseResponse import * +class updateResourceCountCmd (baseCmd): + def __init__(self): + self.isAsync = "false" + """If account parameter specified then updates resource counts for a specified account in this domain else update resource counts for all accounts & child domains in specified domain.""" + """Required""" + self.domainid = None + """Update resource count for a specified account. Must be used with the domainId parameter.""" + self.account = None + """Update resource limits for project""" + self.projectid = None + """Type of resource to update. If specifies valid values are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 and 11. If not specified will update all resource counts0 - Instance. Number of instances a user can create. 1 - IP. Number of public IP addresses a user can own. 2 - Volume. Number of disk volumes a user can create.3 - Snapshot. Number of snapshots a user can create.4 - Template. Number of templates that a user can register/create.5 - Project. Number of projects that a user can create.6 - Network. Number of guest network a user can create.7 - VPC. Number of VPC a user can create.8 - CPU. Total number of CPU cores a user can use.9 - Memory. Total Memory (in MB) a user can use.10 - PrimaryStorage. Total primary storage space (in GiB) a user can use.11 - SecondaryStorage. Total secondary storage space (in GiB) a user can use.""" + self.resourcetype = None + self.required = ["domainid",] + +class updateResourceCountResponse (baseResponse): + def __init__(self): + """the account for which resource count's are updated""" + self.account = None + """the domain name for which resource count's are updated""" + self.domain = None + """the domain ID for which resource count's are updated""" + self.domainid = None + """the project name for which resource count's are updated""" + self.project = None + """the project id for which resource count's are updated""" + self.projectid = None + """resource count""" + self.resourcecount = None + """resource type. Values include 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11. See the resourceType parameter for more information on these values.""" + self.resourcetype = None + http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ec00a6fb/tools/marvin/build/lib/marvin/cloudstackAPI/updateResourceLimit.py ---------------------------------------------------------------------- diff --git a/tools/marvin/build/lib/marvin/cloudstackAPI/updateResourceLimit.py b/tools/marvin/build/lib/marvin/cloudstackAPI/updateResourceLimit.py new file mode 100644 index 0000000..0091854 --- /dev/null +++ b/tools/marvin/build/lib/marvin/cloudstackAPI/updateResourceLimit.py @@ -0,0 +1,54 @@ +# 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. + + +"""Updates resource limits for an account or domain.""" +from baseCmd import * +from baseResponse import * +class updateResourceLimitCmd (baseCmd): + def __init__(self): + self.isAsync = "false" + """Type of resource to update. Values are 0, 1, 2, 3, 4, 6, 7, 8, 9, 10 and 11. 0 - Instance. Number of instances a user can create. 1 - IP. Number of public IP addresses a user can own. 2 - Volume. Number of disk volumes a user can create.3 - Snapshot. Number of snapshots a user can create.4 - Template. Number of templates that a user can register/create.6 - Network. Number of guest network a user can create.7 - VPC. Number of VPC a user can create.8 - CPU. Total number of CPU cores a user can use.9 - Memory. Total Memory (in MB) a user can use.10 - PrimaryStorage. Total primary storage space (in GiB) a user can use.11 - SecondaryStorage. Total secondary storage space (in GiB) a user can use.""" + """Required""" + self.resourcetype = None + """Update resource for a specified account. Must be used with the domainId parameter.""" + self.account = None + """Update resource limits for all accounts in specified domain. If used with the account parameter, updates resource limits for a specified account in specified domain.""" + self.domainid = None + """Maximum resource limit.""" + self.max = None + """Update resource limits for project""" + self.projectid = None + self.required = ["resourcetype",] + +class updateResourceLimitResponse (baseResponse): + def __init__(self): + """the account of the resource limit""" + self.account = None + """the domain name of the resource limit""" + self.domain = None + """the domain ID of the resource limit""" + self.domainid = None + """the maximum number of the resource. A -1 means the resource currently has no limit.""" + self.max = None + """the project name of the resource limit""" + self.project = None + """the project id of the resource limit""" + self.projectid = None + """resource type. Values include 0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11. See the resourceType parameter for more information on these values.""" + self.resourcetype = None + http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ec00a6fb/tools/marvin/build/lib/marvin/cloudstackAPI/updateServiceOffering.py ---------------------------------------------------------------------- diff --git a/tools/marvin/build/lib/marvin/cloudstackAPI/updateServiceOffering.py b/tools/marvin/build/lib/marvin/cloudstackAPI/updateServiceOffering.py new file mode 100644 index 0000000..ed59814 --- /dev/null +++ b/tools/marvin/build/lib/marvin/cloudstackAPI/updateServiceOffering.py @@ -0,0 +1,113 @@ +# 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. + + +"""Updates a service offering.""" +from baseCmd import * +from baseResponse import * +class updateServiceOfferingCmd (baseCmd): + def __init__(self): + self.isAsync = "false" + """the ID of the service offering to be updated""" + """Required""" + self.id = None + """the display text of the service offering to be updated""" + self.displaytext = None + """the name of the service offering to be updated""" + self.name = None + """sort key of the service offering, integer""" + self.sortkey = None + self.required = ["id",] + +class updateServiceOfferingResponse (baseResponse): + def __init__(self): + """the id of the service offering""" + self.id = None + """the number of CPU""" + self.cpunumber = None + """the clock rate CPU speed in Mhz""" + self.cpuspeed = None + """the date this service offering was created""" + self.created = None + """is this a default system vm offering""" + self.defaultuse = None + """deployment strategy used to deploy VM.""" + self.deploymentplanner = None + """bytes read rate of the service offering""" + self.diskBytesReadRate = None + """bytes write rate of the service offering""" + self.diskBytesWriteRate = None + """io requests read rate of the service offering""" + self.diskIopsReadRate = None + """io requests write rate of the service offering""" + self.diskIopsWriteRate = None + """an alternate display text of the service offering.""" + self.displaytext = None + """Domain name for the offering""" + self.domain = None + """the domain id of the service offering""" + self.domainid = None + """the host tag for the service offering""" + self.hosttags = None + """is this a system vm offering""" + self.issystem = None + """true if the vm needs to be volatile, i.e., on every reboot of vm from API root disk is discarded and creates a new root disk""" + self.isvolatile = None + """restrict the CPU usage to committed service offering""" + self.limitcpuuse = None + """the memory in MB""" + self.memory = None + """the name of the service offering""" + self.name = None + """data transfer rate in megabits per second allowed.""" + self.networkrate = None + """the ha support in the service offering""" + self.offerha = None + """additional key/value details tied with this service offering""" + self.serviceofferingdetails = None + """the storage type for this service offering""" + self.storagetype = None + """is this a the systemvm type for system vm offering""" + self.systemvmtype = None + """the tags for the service offering""" + self.tags = None + """the list of resource tags associated with service offering. The resource tags are not used for Volume/VM placement on the specific host.""" + self.resourcetags = [] + +class resourcetags: + 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/ec00a6fb/tools/marvin/build/lib/marvin/cloudstackAPI/updateStorageNetworkIpRange.py ---------------------------------------------------------------------- diff --git a/tools/marvin/build/lib/marvin/cloudstackAPI/updateStorageNetworkIpRange.py b/tools/marvin/build/lib/marvin/cloudstackAPI/updateStorageNetworkIpRange.py new file mode 100644 index 0000000..8d39830 --- /dev/null +++ b/tools/marvin/build/lib/marvin/cloudstackAPI/updateStorageNetworkIpRange.py @@ -0,0 +1,58 @@ +# 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. + + +"""Update a Storage network IP range, only allowed when no IPs in this range have been allocated.""" +from baseCmd import * +from baseResponse import * +class updateStorageNetworkIpRangeCmd (baseCmd): + def __init__(self): + self.isAsync = "true" + """UUID of storage network ip range""" + """Required""" + self.id = None + """the ending IP address""" + self.endip = None + """the netmask for storage network""" + self.netmask = None + """the beginning IP address""" + self.startip = None + """Optional. the vlan the ip range sits on""" + self.vlan = None + self.required = ["id",] + +class updateStorageNetworkIpRangeResponse (baseResponse): + def __init__(self): + """the uuid of storage network IP range.""" + self.id = None + """the end ip of the storage network IP range""" + self.endip = None + """the gateway of the storage network IP range""" + self.gateway = None + """the netmask of the storage network IP range""" + self.netmask = None + """the network uuid of storage network IP range""" + self.networkid = None + """the Pod uuid for the storage network IP range""" + self.podid = None + """the start ip of the storage network IP range""" + self.startip = None + """the ID or VID of the VLAN.""" + self.vlan = None + """the Zone uuid of the storage network IP range""" + self.zoneid = None +