Method: limits.getLabel

ラベルの構造に関する制約(許可されるフィールドの最大数やラベルタイトルの最大長など)を取得します。

HTTP リクエスト

GET https://drivelabels.googleapis.com/v2beta/limits/label

この URL は gRPC Transcoding 構文を使用します。

クエリ パラメータ

パラメータ
name

string

必須。ラベル リビジョンのリソース名は「limits/label」にしてください

リクエスト本文

リクエストの本文は空にする必要があります。

レスポンスの本文

ラベルの構造を規定するラベルの制約(許可されるフィールドの最大数やラベルタイトルの最大長など)。

成功すると、レスポンスの本文に次の構造のデータが含まれます。

JSON 表現
{
  "name": string,
  "maxTitleLength": integer,
  "maxDescriptionLength": integer,
  "maxFields": integer,
  "maxDeletedFields": integer,
  "maxDraftRevisions": integer,
  "fieldLimits": {
    object (FieldLimits)
  }
}
フィールド
name

string

リソース名。

maxTitleLength

integer

タイトルに使用できる最大文字数。

maxDescriptionLength

integer

説明に入力できる最大文字数。

maxFields

integer

ラベル内で許可されるフィールドの最大数。

maxDeletedFields

integer

削除できる公開済みフィールドの最大数。

maxDraftRevisions

integer

古い下書きを削除する前に保持する下書きの版の最大数。

fieldLimits

object (FieldLimits)

フィールドの上限数。

承認スコープ

次の OAuth スコープのいずれかが必要です。

  • https://www.googleapis.com/auth/drive.labels
  • https://www.googleapis.com/auth/drive.labels.readonly
  • https://www.googleapis.com/auth/drive.admin.labels
  • https://www.googleapis.com/auth/drive.admin.labels.readonly

詳しくは、承認ガイドをご覧ください。

FieldLimits

Field の構造を規定するフィールド定数。タイトルの最大長、フィールドの最小値と最大値、長さなど。

JSON 表現
{
  "maxIdLength": integer,
  "maxDisplayNameLength": integer,
  "maxDescriptionLength": integer,
  "textLimits": {
    object (TextLimits)
  },
  "longTextLimits": {
    object (LongTextLimits)
  },
  "integerLimits": {
    object (IntegerLimits)
  },
  "dateLimits": {
    object (DateLimits)
  },
  "userLimits": {
    object (UserLimits)
  },
  "selectionLimits": {
    object (SelectionLimits)
  }
}
フィールド
maxIdLength

integer

ID の最大長。

maxDisplayNameLength

integer

フィールド タイトルの制限。

maxDescriptionLength

integer

フィールドの説明(ヘルプテキストとも呼ばれる)の制限

textLimits

object (TextLimits)

指定した Field.Type. テキスト フィールドの上限。

longTextLimits

object (LongTextLimits)

長いテキスト フィールドの上限

integerLimits

object (IntegerLimits)

整数フィールドの制限。

dateLimits

object (DateLimits)

日付フィールドの制限。

userLimits

object (UserLimits)

ユーザー フィールドの制限。

selectionLimits

object (SelectionLimits)

選択フィールドの上限。

TextLimits

テキスト フィールド タイプの制限

JSON 表現
{
  "minLength": integer,
  "maxLength": integer
}
フィールド
minLength

integer

テキスト フィールド タイプに使用できる最小文字数。

maxLength

integer

テキスト フィールド タイプに使用できる最大長です。

LongTextLimits

長いテキストのフィールド タイプに関する制限。

JSON 表現
{
  "minLength": integer,
  "maxLength": integer
}
フィールド
minLength

integer

長いテキストのフィールド タイプに使用できる最小文字数です。

maxLength

integer

長いテキスト フィールド タイプに使用できる最大長です。

IntegerLimits

整数フィールド タイプの制限。

JSON 表現
{
  "minValue": string,
  "maxValue": string
}
フィールド
minValue

string (int64 format)

整数型のフィールド タイプの最小値。

maxValue

string (int64 format)

整数型のフィールド タイプの最大値。

DateLimits

日付フィールド タイプに関する制限事項。

JSON 表現
{
  "minValue": {
    object (Date)
  },
  "maxValue": {
    object (Date)
  }
}
フィールド
minValue

object (Date)

日付フィールド タイプの最小値。

maxValue

object (Date)

日付フィールド タイプの最大値。

UserLimits

Field.Type.USER の制限。

JSON 表現
{
  "listLimits": {
    object (ListLimits)
  }
}
フィールド
listLimits

object (ListLimits)

Field 型のリストバリアントに関する制限事項。

ListLimits

Field 型のリストバリアントに関する制限事項。

JSON 表現
{
  "maxEntries": integer
}
フィールド
maxEntries

integer

Field タイプで許容される値の最大数。

SelectionLimits

選択フィールド タイプの制限

JSON 表現
{
  "listLimits": {
    object (ListLimits)
  },
  "maxIdLength": integer,
  "maxDisplayNameLength": integer,
  "maxChoices": integer,
  "maxDeletedChoices": integer
}
フィールド
listLimits

object (ListLimits)

Field 型のリストバリアントに関する制限事項。

maxIdLength

integer

選択オプションの ID の最大長。

maxDisplayNameLength

integer

表示名の最大長。

maxChoices

integer

選択肢の最大数。

maxDeletedChoices

integer

削除する選択肢の最大数。