Method: projects.locations.userStores.batchUpdateUserLicenses

ユーザー ライセンスを更新します。このメソッドは、ユーザーにライセンスを一括で割り当てたり、割り当てを解除したりするために使用されます。

HTTP リクエスト

POST https://discoveryengine.googleapis.com/v1beta/{parent=projects/*/locations/*/userStores/*}:batchUpdateUserLicenses

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

パスパラメータ

パラメータ
parent

string

必須。親の [UserStore][] リソース名。形式: projects/{project}/locations/{location}/userStores/{userStoreId}

リクエストの本文

リクエストの本文には、次の構造のデータが含まれます。

JSON 表現
{
  "deleteUnassignedUserLicenses": boolean,

  // Union field source can be only one of the following:
  "inlineSource": {
    object (InlineSource)
  }
  // End of list of possible types for union field source.
}
フィールド
deleteUnassignedUserLicenses

boolean

省略可。true の場合、ユーザー ライセンスに関連付けられたライセンス構成が削除されると、ユーザー ライセンスが削除されます。デフォルトでは(false)、ユーザー ライセンスは割り当て解除状態に更新されます。

共用体フィールド source。必須。入力のソース。source は次のいずれかになります。
inlineSource

object (InlineSource)

ドキュメント エンベディングの入力コンテンツのインライン ソース。

レスポンスの本文

成功した場合、レスポンスの本文には Operation のインスタンスが含まれます。

認可スコープ

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

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/discoveryengine.readwrite

詳細については、Authentication Overview をご覧ください。

IAM 権限

parent リソースに対する次の IAM 権限が必要です。

  • discoveryengine.userStores.batchUpdateUserLicenses

詳細については、IAM のドキュメントをご覧ください。

InlineSource

userStores.batchUpdateUserLicenses メソッドの入力構成のインライン ソース。

JSON 表現
{
  "userLicenses": [
    {
      object (UserLicense)
    }
  ],
  "updateMask": string
}
フィールド
userLicenses[]

object (UserLicense)

必須。更新するユーザー ライセンスのリスト。各ユーザー ライセンスには有効な UserLicense.user_principal が必要です。

updateMask

string (FieldMask format)

省略可。更新するフィールドのリスト。

完全修飾フィールド名のカンマ区切りリスト。例: "user.displayName,photo"