Updates the resource limit to 'max' for given account
(apiclient, resourcetype, account=None,
domainid=None, max=None, projectid=None)
| 709 | |
| 710 | |
| 711 | def 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 | |
| 729 | def list_os_types(apiclient, **kwargs): |