類型

素材資源

Looker Studio 資產。

{
  "assetType": AssetType,
  "updateTime": Timestamp,
  "name": string,
  "title": string,
  "trashed": boolean,
  "updateByMeTime": Timestamp,
  "owner": string,
  "createTime": Timestamp,
  "lastViewByMeTime": Timestamp,
  "description": string,
  "creator": string
}
屬性名稱 類型 說明
assetType AssetType 素材資源類型。
updateTime 時間戳記 資產上次修改的日期。
名稱 字串 資產的名稱 (ID)。
title 字串 資產標題。
已刪除 布林值 指出資產是否位於垃圾桶中。
updateByMeTime 時間戳記 使用者進行這項 API 呼叫時,上次修改資產的日期。
擁有者 字串 資產擁有者。
createTime 時間戳記 資產建立日期。
lastViewByMeTime 時間戳記 使用者上次查看資產的日期 (使用者會發出這個 API 呼叫)。
說明 字串 報表說明 (僅支援 REPORT AssetType)。
創作者 字串 資產的建立者。

AssetType

Looker Studio 資產類型。

列舉值 說明
報告 報表資產。
DATA_SOURCE 資料來源資產。

角色

權限中的角色。

列舉值 說明
觀眾 說明已獲授予檢視權限的成員。
EDITOR 說明已獲編輯權限的成員。
擁有者 說明擁有者成員。
LINK_VIEWER 說明具備檢視權限的成員。
LINK_EDITOR 說明具備編輯權限的成員。

成員

權限物件的成員。

VIEWEREDITOR 角色的成員會以以下前置字元表示:

成員前置字串 說明 範例
user: Google 帳戶。 user:gus@gmail.com
group: Google 群組。 group:api@googlegroups.com
domain: Google Workspace 或 Cloud Identity 機構的網域。 domain:example.com
serviceAccount: Google Cloud 專案服務帳戶。 serviceAccount:gus@project.iam.gserviceaccount.com

LINK_VIEWERLINK_EDITOR Role 的成員會以下列其中一種方式表示:

成員名稱/前置字串 說明
allUsers 表示知道連結的任何人都可以檢視/編輯
domain: 表示網域中知道連結的任何使用者都可以檢視/編輯

權限

資產的 Looker Studio 權限。

{
  "permissions": {
    [Role]: {
      "members": Member[]
    }
  },
  "etag": string
}
屬性名稱 類型 說明
權限 {Role: Member[]} 角色與成員的對應關係。
etag 字串 etag,以偵測並拒絕並行修改。

範例

與三位編輯者共用的 Looker Studio 資產:

{
  "permissions": {
    "OWNER": {
      "members": [
        "user:gus@gmail.com"
      ]
    },
    "EDITOR": {
      "members": [
        "user:jen@gmail.com",
        "user:amy@gmail.com",
        "group:api@googlegroups.com"
      ]
    }
  },
  "etag": "BwXe3ECCjl0="
}

與一位編輯者共用的 Looker Studio 資產,知道連結的使用者都能查看。

{
  "permissions": {
    "OWNER": {
      "members": [
        "user:gus@example.com"
      ]
    },
    "EDITOR": {
      "members": [
        "group:gus-team@example.com"
      ]
    },
    "LINK_VIEWER": {
      "members": [
        "allUsers"
      ]
    }
  },
  "etag": "OBr4bWCCtl0"
}