AssetOperation

建立資產的單一作業。支援的素材資源類型為 YouTubeVideoAsset、MediaBundleAsset、ImageAsset、LeadFormAsset、LocationAsset 和 ImageAsset。TextAsset 可透過內嵌廣告建立,但除了其他素材資源也可建立之外,

JSON 表示法
{
  "updateMask": string,

  // Union field operation can be only one of the following:
  "create": {
    object (Asset)
  },
  "update": {
    object (Asset)
  }
  // End of list of possible types for union field operation.
}
欄位
updateMask

string (FieldMask format)

FieldMask,用來判斷更新中要修改的資源欄位。

這是以半形逗號分隔的完整欄位名稱清單。範例:"user.displayName,photo"

聯集欄位 operation。更改作業。operation 只能是下列其中一項:
create

object (Asset)

建立作業:新資產不應使用資源名稱。

update

object (Asset)

更新作業:資產應具備有效的資源名稱,格式如下:

customers/{customerId}/assets/{asset_id}