original_docstring: Get our quotas and construct our usage object.
      If no tenant_id is provided, a the request.user.project_id
      is assumed to be used
      
docstring: Get our quotas and construct our usage object.
  If no tenant_id is provided, a the request.user.project_id
  is assumed to be used
docstring_tokens: Get our quotas and construct our usage object . If no tenant_id is provided a the request . user . project_id is assumed to be used
code: def tenant_quota_usages(request, tenant_id=None):
      """Get our quotas and construct our usage object.
      If no tenant_id is provided, a the request.user.project_id
      is assumed to be used
      """
      if not tenant_id:
          tenant_id = request.user.project_id
  
      disabled_quotas = get_disabled_quotas(request)
      usages = QuotaUsage()
  
      for quota in get_tenant_quota_data(request,
                                         disabled_quotas=disabled_quotas,
                                         tenant_id=tenant_id):
          usages.add_quota(quota)
  
      # Get our usages.
      _get_tenant_compute_usages(request, usages, disabled_quotas, tenant_id)
      _get_tenant_network_usages(request, usages, disabled_quotas, tenant_id)
      _get_tenant_volume_usages(request, usages, disabled_quotas, tenant_id)
  
      return usages
code_tokens: def tenant_quota_usages ( request , tenant_id = None ) : if not tenant_id : tenant_id = request . user . project_id disabled_quotas = get_disabled_quotas ( request ) usages = QuotaUsage ( ) for quota in get_tenant_quota_data ( request , disabled_quotas = disabled_quotas , tenant_id = tenant_id ) : usages . add_quota ( quota ) _get_tenant_compute_usages ( request , usages , disabled_quotas , tenant_id ) _get_tenant_network_usages ( request , usages , disabled_quotas , tenant_id ) _get_tenant_volume_usages ( request , usages , disabled_quotas , tenant_id ) return usages
short_docstring: Get our quotas and construct our usage object.
short_docstring_tokens: Get our quotas and construct our usage object .
comment: """Get our quotas and construct our usage object.
      If no tenant_id is provided, a the request.user.project_id
      is assumed to be used
      """$SEP$# Get our usages.