View Source GoogleApi.Drive.V3.Model.LabelModification (google_api_drive v0.27.1)

A modification to a label on a file. A LabelModification can be used to apply a label to a file, update an existing label on a file, or remove a label from a file.

Attributes

  • fieldModifications (type: list(GoogleApi.Drive.V3.Model.LabelFieldModification.t), default: nil) - The list of modifications to this label's fields.
  • kind (type: String.t, default: nil) - This is always drive#labelModification.
  • labelId (type: String.t, default: nil) - The ID of the label to modify.
  • removeLabel (type: boolean(), default: nil) - If true, the label will be removed from the file.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Drive.V3.Model.LabelModification{
  fieldModifications:
    [GoogleApi.Drive.V3.Model.LabelFieldModification.t()] | nil,
  kind: String.t() | nil,
  labelId: String.t() | nil,
  removeLabel: boolean() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.