Label

Rappresentazione dei campi di etichette ed etichette.

Rappresentazione JSON
{
  "id": string,
  "revisionId": string,
  "kind": string,
  "fields": {
    string: {
      object (Field)
    },
    ...
  }
}
Campi
id

string

L'ID dell'etichetta.

revisionId

string

L'ID revisione dell'etichetta.

kind

string

È sempre Drive#label

fields

map (key: string, value: object (Field))

Una mappa dei campi sull'etichetta, digitati in base all'ID del campo.

Un oggetto contenente un elenco di "key": value coppie. Esempio: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

Campo

Rappresentazione del campo, che è una coppia chiave-valore digitata.

Rappresentazione JSON
{
  "kind": string,
  "id": string,
  "valueType": string,
  "dateString": [
    string
  ],
  "integer": [
    string
  ],
  "selection": [
    string
  ],
  "text": [
    string
  ],
  "user": [
    {
      object (User)
    }
  ]
}
Campi
kind

string

Questo è sempre drive#labelField.

id

string

L'identificatore del campo dell'etichetta.

valueType

string

Il tipo di campo. In futuro potrebbero essere supportati nuovi valori, ma al momento è consentito quanto segue:

  • dateString
  • integer
  • selection
  • text
  • user
dateString[]

string

Presente solo se valueType è dateString. Data nel formato RFC 3339: AAAA-MM-GG.

integer[]

string (int64 format)

Presente solo se valueType è integer.

selection[]

string

Presente solo se valueType è selection

text[]

string

Presente solo se valueType è text.

user[]

object (User)

Presente solo se valueType è user.