Types

Asset

A Data Studio asset. Has the following structure:

{
  "assetId": string,
  "title": string,
  "assetType": AssetType,
  "trashed": boolean,
  "updateTime": Timestamp,
  "updateByMeTime": Timestamp,
  "createTime": Timestamp,
  "lastViewByMeTime": Timestamp,
  "owner": string
}
Property name Type Description
assetId string The id of the asset.
title string The title of the asset.
assetType AssetType The type of the asset.
trashed boolean Value indicating if the asset is in the trash.
updateTime Timestamp Date the asset was last modified.
updateByMeTime Timestamp Date the asset was last modified by me.
createTime Timestamp Date the asset was created.
lastViewByMeTime Timestamp Date the asset was last viewed by me
owner string The owner of the asset.

AssetType

The types of Data Studio assets.

Enum Value Description
REPORT A report asset.
DATA_SOURCE A data source asset.

Role

A role in a permission.

Enum Value Description
VIEWER A viewer.
EDITOR An editor.
OWNER An owner.

Member

A member of a permissions object. It is a string with one of the following prefixes:

  • user:
  • group:
  • domain:
  • serviceAccount:

Permissions

A Data Studio permissions object. Has the following structure.

{
  "permissions": {[Role]: Member[]},
  "etag": string
}
Property name Type Description
permissions {Role: Member[]} A map of role to members.
etag string etag to detect and fail concurrent modifications.