@utils.arg('--tenant', metavar='<tenant-id>', default=None, help=_('ID of tenant to list the quotas for.'))
@utils.arg('--user', metavar='<user-id>', default=None, help=_('ID of user to list the quotas for.'))
@utils.arg('--detail', action='store_true', default=False, help=_('Show detailed info (limit, reserved, in-use).'))
def do_quota_show(cs, args):
 if args.tenant:
  project_id = args.tenant
 elif isinstance(cs.client, client.SessionClient):
  auth = cs.client.auth
  project_id = auth.get_auth_ref(cs.client.session).project_id
 else:
  project_id = cs.client.tenant_id
 _quota_show(cs.quotas.get(project_id, user_id=args.user, detail=args.detail))

@ utils . arg ( '--tenant' , metavar = '<tenant-id>' , default = None , help = _ ( 'ID of tenant to list the quotas for.' ) ) @ utils . arg ( '--user' , metavar = '<user-id>' , default = None , help = _ ( 'ID of user to list the quotas for.' ) ) @ utils . arg ( '--detail' , action = 'store_true' , default = False , help = _ ( 'Show detailed info (limit, reserved, in-use).' ) ) def do_quota_show ( cs , args ) : if args . tenant : project_id = args . tenant elif isinstance ( cs . client , client . SessionClient ) : auth = cs . client . auth project_id = auth . get_auth_ref ( cs . client . session ) . project_id else : project_id = cs . client . tenant_id _quota_show ( cs . quotas . get ( project_id , user_id = args . user , detail = args . detail ) )
list the quotas for a tenant/user .