MCPcopy Create free account
hub / github.com/apache/cloudstack / update_resource_limit

Function update_resource_limit

tools/marvin/marvin/lib/common.py:711–726  ·  view source on GitHub ↗

Updates the resource limit to 'max' for given account

(apiclient, resourcetype, account=None,
                          domainid=None, max=None, projectid=None)

Source from the content-addressed store, hash-verified

709
710
711def update_resource_limit(apiclient, resourcetype, account=None,
712 domainid=None, max=None, projectid=None):
713 """Updates the resource limit to 'max' for given account"""
714
715 cmd = updateResourceLimit.updateResourceLimitCmd()
716 cmd.resourcetype = resourcetype
717 if account:
718 cmd.account = account
719 if domainid:
720 cmd.domainid = domainid
721 if max:
722 cmd.max = max
723 if projectid:
724 cmd.projectid = projectid
725 apiclient.updateResourceLimit(cmd)
726 return
727
728
729def list_os_types(apiclient, **kwargs):

Callers 15

test_vm_per_accountMethod · 0.90
setUpClassMethod · 0.90
setUpClassMethod · 0.90
setUpClassMethod · 0.90

Calls 1

updateResourceLimitMethod · 0.65

Tested by 15

test_vm_per_accountMethod · 0.72
setUpClassMethod · 0.72
setUpClassMethod · 0.72
setUpClassMethod · 0.72