Method: labels.updateLabelCopyMode
ラベルの CopyMode
を更新します。このポリシーの変更は改訂されず、公開する必要はなく、直ちに有効になります。
HTTP リクエスト
POST https://drivelabels.googleapis.com/v2beta/{name=labels/*}:updateLabelCopyMode
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
name |
string
必須。更新するラベルのリソース名。
|
リクエスト本文
リクエストの本文には、次の構造のデータが含まれます。
JSON 表現 |
{
"copyMode": enum (CopyMode ),
"useAdminAccess": boolean,
"languageCode": string,
"view": enum (LabelView )
} |
フィールド |
copyMode |
enum (CopyMode )
必須。ドライブのアイテムをコピーする際に、適用されているラベルとフィールドの値をコピーする方法を示します。
|
useAdminAccess |
boolean
ユーザーの管理者認証情報を使用するには、true に設定します。サーバーは、アクセスを許可する前に、ユーザーがラベルの管理者であることを確認します。
|
languageCode |
string
ローカライズされたフィールド ラベルの評価に使用する BCP-47 言語コード。指定しない場合は、デフォルトで構成されている言語の値が使用されます。
|
view |
enum (LabelView )
指定すると、指定したビューに属する特定のフィールドのみが返されます。
|
レスポンスの本文
成功した場合、レスポンスの本文には Label
のインスタンスが含まれます。
認可スコープ
次の OAuth スコープのいずれかが必要です。
https://www.googleapis.com/auth/drive.labels
https://www.googleapis.com/auth/drive.admin.labels
詳細については、承認ガイドをご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-10-11 UTC。
[null,null,["最終更新日 2024-10-11 UTC。"],[[["Updates a Label's `CopyMode` with changes taking effect immediately and without requiring publishing."],["Utilizes an HTTP POST request to `https://drivelabels.googleapis.com/v2beta/{name=labels/*}:updateLabelCopyMode` to update the Label's CopyMode."],["Requires specifying the Label's resource name in the path parameter and providing details like `copyMode`, `useAdminAccess`, `languageCode`, and `view` in the request body."],["Upon successful execution, the response includes the updated Label details."],["Needs authorization with either `https://www.googleapis.com/auth/drive.labels` or `https://www.googleapis.com/auth/drive.admin.labels` scope."]]],["This document details updating a Label's `CopyMode` via a `POST` request to a specific URL (`https://drivelabels.googleapis.com/v2beta/{name=labels/*}:updateLabelCopyMode`). The request requires the Label's resource name as a path parameter. The request body, in JSON, includes the `copyMode` (required), optional `useAdminAccess`, `languageCode`, and `view` fields. Authorization requires `https://www.googleapis.com/auth/drive.labels` or `https://www.googleapis.com/auth/drive.admin.labels` scopes. A successful response returns a Label instance. Changes take effect immediately.\n"]]