更新使用者授權。這個方法用於批次指派/取消指派使用者授權。
HTTP 要求
POST https://discoveryengine.googleapis.com/v1alpha/{parent=projects/*/locations/*/userStores/*}:batchUpdateUserLicenses
這個網址使用 gRPC 轉碼語法。
路徑參數
| 參數 | |
|---|---|
parent |
這是必要旗標,父項 |
要求主體
要求主體包含下列結構的資料:
| JSON 表示法 |
|---|
{
"deleteUnassignedUserLicenses": boolean,
// The following is a list of mutually exclusive fields. At most one of the
// fields will be set in a response:
"inlineSource": {
object ( |
| 欄位 | |
|---|---|
deleteUnassignedUserLicenses |
選用。如果設為 true,使用者授權移除相關聯的授權設定時,系統會刪除使用者授權。預設值為 false,使用者授權會更新為未指派狀態。 |
| 這是必要旗標,輸入來源。以下列出互斥的欄位。回應中最多只會設定一個欄位: | |
inlineSource |
用於授權指派的輸入內容內嵌來源。 |
| 互斥欄位的結尾。 | |
回應主體
如果成功,回應主體會包含 Operation 的執行個體。
授權範圍
需要下列其中一種 OAuth 範圍:
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/discoveryengine.readwritehttps://www.googleapis.com/auth/discoveryengine.serving.readwrite
詳情請參閱Authentication Overview。
IAM 權限
需要 parent 資源的下列 IAM 權限:
discoveryengine.userStores.batchUpdateUserLicenses
詳情請參閱 IAM 說明文件。
InlineSource
userStores.batchUpdateUserLicenses 方法的輸入設定內嵌來源。
| JSON 表示法 |
|---|
{
"userLicenses": [
{
object ( |
| 欄位 | |
|---|---|
userLicenses[] |
這是必要旗標,要更新的使用者授權清單。每個使用者授權都必須有有效的 |
updateMask |
選用。要更新的欄位清單。 這是以半形逗號分隔的完整欄位名稱清單,範例: |