parameters: (rootId)
return_statement: return {
        'asset_count': {
            'usage': int(quota.get('assetCount', 0)),
            'limit': int(quota.get('maxAssetCount', 0))
        },
        'asset_size': {
            'usage': int(quota.get('sizeBytes', 0)),
            'limit': int(quota.get('maxSizeBytes', 0))
        }
    }
docstring: Returns quota usage details for the asset root with the given ID.
  
    Usage notes:
  
      - The id *must* be a root folder like "users/foo" (not "users/foo/bar").
      - The authenticated user must own the asset root to see its quota usage.
  
    Args:
      rootId: The ID of the asset to check.
  
    Returns:
      A dict describing the asset's quota usage. Looks like, with size in bytes:
        {
            asset_count: {usage: number, limit: number},
            asset_size: {usage: number, limit: number},
        }
docstring_summary: Returns quota usage details for the asset root with the given ID.
docstring_tokens: Returns quota usage details for the asset root with the given ID .
function: def getAssetRootQuota(rootId):
    """Returns quota usage details for the asset root with the given ID.
  
    Usage notes:
  
      - The id *must* be a root folder like "users/foo" (not "users/foo/bar").
      - The authenticated user must own the asset root to see its quota usage.
  
    Args:
      rootId: The ID of the asset to check.
  
    Returns:
      A dict describing the asset's quota usage. Looks like, with size in bytes:
        {
            asset_count: {usage: number, limit: number},
            asset_size: {usage: number, limit: number},
        }
    """
    asset = getAsset(rootId)
    if 'quota' not in asset:
      raise ee_exception.EEException('{} is not a root folder.'.format(rootId))
    quota = asset['quota']
    # The quota fields are int64s, and int64s are represented as strings in
    # JSON. Turn them back.
    return {
        'asset_count': {
            'usage': int(quota.get('assetCount', 0)),
            'limit': int(quota.get('maxAssetCount', 0))
        },
        'asset_size': {
            'usage': int(quota.get('sizeBytes', 0)),
            'limit': int(quota.get('maxSizeBytes', 0))
        }
    }
function_tokens: def getAssetRootQuota ( rootId ) : asset = getAsset ( rootId ) if 'quota' not in asset : raise ee_exception . EEException ( '{} is not a root folder.' . format ( rootId ) ) quota = asset [ 'quota' ] # The quota fields are int64s, and int64s are represented as strings in # JSON. Turn them back. return { 'asset_count' : { 'usage' : int ( quota . get ( 'assetCount' , 0 ) ) , 'limit' : int ( quota . get ( 'maxAssetCount' , 0 ) ) } , 'asset_size' : { 'usage' : int ( quota . get ( 'sizeBytes' , 0 ) ) , 'limit' : int ( quota . get ( 'maxSizeBytes' , 0 ) ) } }