Label

Rappresentazione dell'etichetta e dei relativi campi.

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

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

Una mappa dei campi dell'etichetta, indicizzati in base all'ID del campo.

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

id

string

L'ID dell'etichetta.

revisionId

string

L'ID revisione dell'etichetta.

kind

string

Questo è sempre drive#label

Campo

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

Rappresentazione JSON
{
  "dateString": [
    string
  ],
  "integer": [
    string
  ],
  "selection": [
    string
  ],
  "text": [
    string
  ],
  "user": [
    {
      object (User)
    }
  ],
  "kind": string,
  "id": string,
  "valueType": string
}
Campi
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.

kind

string

Questo è sempre drive#labelField.

id

string

L'identificatore di questo campo etichetta.

valueType

string

Il tipo di campo. Sebbene in futuro potrebbero essere supportati nuovi valori, al momento sono consentiti i seguenti:

  • dateString
  • integer
  • selection
  • text
  • user