LabelOperation

  • Describes a single operation on a label, which can be create, remove, or update.

  • The operation field specifies the type of mutation being performed on the label.

  • A FieldMask can be used in an update operation to specify which fields are being modified.

A single operation (create, remove, update) on a label.

Proto definition

Fields

operation

Union field. The mutate operation.

operation can be only one of the following:

create

Label

Create operation: No resource name is expected for the new label.

remove

string

Remove operation: A resource name for the label being removed, in this format:

customers/{customer_id}/labels/{label_id}

update

Label

Update operation: The label is expected to have a valid resource name.

update_mask

FieldMask

FieldMask that determines which resource fields are modified in an update.