從 Cloud Storage bucket 匯入問題模型。
HTTP 要求
POST https://{endpoint}/v1/{parent=projects/*/locations/*}/issueModels:import
其中 {endpoint} 是支援的服務端點。
這些網址使用 gRPC 轉碼語法。
路徑參數
| 參數 | |
|---|---|
parent |
這是必要旗標,問題模型的父項資源。 |
要求主體
要求主體包含下列結構的資料:
| JSON 表示法 |
|---|
{
"createNewModel": boolean,
// The following is a list of mutually exclusive fields. At most one of the
// fields will be set in a response:
"gcsSource": {
object ( |
| 欄位 | |
|---|---|
createNewModel |
選用。如果設為 true,系統會根據匯入的檔案建立問題模型,並隨機產生問題模型和對應問題的 ID。否則,系統會以與檔案 ID 相同的現有模型取代。 |
| 要匯入問題模型的來源。以下是互斥欄位清單。回應中最多會設定下列其中一個欄位: | |
gcsSource |
Google Cloud Storage 來源訊息。 |
| 互斥欄位結束。 | |
回應主體
如果成功,回應主體會包含 Operation 的執行個體。
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/cloud-platform
詳情請參閱Authentication Overview。
IAM 權限
需要 parent 資源的下列 IAM 權限:
contactcenterinsights.issueModels.createcontactcenterinsights.issueModels.import
詳情請參閱 IAM 說明文件。
GcsSource
Google Cloud Storage 物件 URI,用於取得問題模型檔案。
| JSON 表示法 |
|---|
{ "objectUri": string } |
| 欄位 | |
|---|---|
objectUri |
這是必要旗標,格式: |