LabelOperation

פעולה יחידה (יצירה, הסרה, עדכון) בתווית מסוימת.

ייצוג JSON
{
  "updateMask": string,

  // Union field operation can be only one of the following:
  "create": {
    object (Label)
  },
  "update": {
    object (Label)
  },
  "remove": string
  // End of list of possible types for union field operation.
}
שדות
updateMask

string (FieldMask format)

FieldMask קובע אילו שדות משאבים יעודכנו בעדכון.

זוהי רשימה מופרדת בפסיקים של שמות שדות מלאים. דוגמה: "user.displayName,photo"

שדה איחוד operation. שינוי הפעולה. operation יכול להיות רק אחד מהבאים:
create

object (Label)

פעולת יצירה: לא צפוי שם משאב לתווית החדשה.

update

object (Label)

פעולת עדכון: התווית אמורה לכלול שם משאב חוקי.

remove

string

פעולת הסרה: שם המשאב של התווית שאנחנו מסירים, בפורמט הבא:

customers/{customerId}/labels/{label_id}