@api_versions.wraps('2.36')
@utils.arg('tenant', metavar='<tenant-id>', help=_('ID of tenant to set the quotas for.'))
@utils.arg('--user', metavar='<user-id>', default=None, help=_('ID of user to set the quotas for.'))
@utils.arg('--instances', metavar='<instances>', type=int, default=None, help=_('New value for the "instances" quota.'))
@utils.arg('--cores', metavar='<cores>', type=int, default=None, help=_('New value for the "cores" quota.'))
@utils.arg('--ram', metavar='<ram>', type=int, default=None, help=_('New value for the "ram" quota.'))
@utils.arg('--metadata-items', metavar='<metadata-items>', type=int, default=None, help=_('New value for the "metadata-items" quota.'))
@utils.arg('--injected-files', metavar='<injected-files>', type=int, default=None, help=_('New value for the "injected-files" quota.'))
@utils.arg('--injected-file-content-bytes', metavar='<injected-file-content-bytes>', type=int, default=None, help=_('New value for the "injected-file-content-bytes" quota.'))
@utils.arg('--injected-file-path-bytes', metavar='<injected-file-path-bytes>', type=int, default=None, help=_('New value for the "injected-file-path-bytes" quota.'))
@utils.arg('--key-pairs', metavar='<key-pairs>', type=int, default=None, help=_('New value for the "key-pairs" quota.'))
@utils.arg('--server-groups', metavar='<server-groups>', type=int, default=None, help=_('New value for the "server-groups" quota.'))
@utils.arg('--server-group-members', metavar='<server-group-members>', type=int, default=None, help=_('New value for the "server-group-members" quota.'))
@utils.arg('--force', dest='force', action='store_true', default=None, help=_('Whether force update the quota even if the already used and reserved exceeds the new quota.'))
def do_quota_update(cs, args):
 _quota_update(cs.quotas, args.tenant, args)

@ api_versions . wraps ( '2.36' ) @ utils . arg ( 'tenant' , metavar = '<tenant-id>' , help = _ ( 'ID of tenant to set the quotas for.' ) ) @ utils . arg ( '--user' , metavar = '<user-id>' , default = None , help = _ ( 'ID of user to set the quotas for.' ) ) @ utils . arg ( '--instances' , metavar = '<instances>' , type = int , default = None , help = _ ( 'New value for the "instances" quota.' ) ) @ utils . arg ( '--cores' , metavar = '<cores>' , type = int , default = None , help = _ ( 'New value for the "cores" quota.' ) ) @ utils . arg ( '--ram' , metavar = '<ram>' , type = int , default = None , help = _ ( 'New value for the "ram" quota.' ) ) @ utils . arg ( '--metadata-items' , metavar = '<metadata-items>' , type = int , default = None , help = _ ( 'New value for the "metadata-items" quota.' ) ) @ utils . arg ( '--injected-files' , metavar = '<injected-files>' , type = int , default = None , help = _ ( 'New value for the "injected-files" quota.' ) ) @ utils . arg ( '--injected-file-content-bytes' , metavar = '<injected-file-content-bytes>' , type = int , default = None , help = _ ( 'New value for the "injected-file-content-bytes" quota.' ) ) @ utils . arg ( '--injected-file-path-bytes' , metavar = '<injected-file-path-bytes>' , type = int , default = None , help = _ ( 'New value for the "injected-file-path-bytes" quota.' ) ) @ utils . arg ( '--key-pairs' , metavar = '<key-pairs>' , type = int , default = None , help = _ ( 'New value for the "key-pairs" quota.' ) ) @ utils . arg ( '--server-groups' , metavar = '<server-groups>' , type = int , default = None , help = _ ( 'New value for the "server-groups" quota.' ) ) @ utils . arg ( '--server-group-members' , metavar = '<server-group-members>' , type = int , default = None , help = _ ( 'New value for the "server-group-members" quota.' ) ) @ utils . arg ( '--force' , dest = 'force' , action = 'store_true' , default = None , help = _ ( 'Whether force update the quota even if the already used and reserved exceeds the new quota.' ) ) def do_quota_update ( cs , args ) : _quota_update ( cs . quotas , args . tenant , args )
update the quotas for a tenant .