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}