Method: projects.locations.issueModels.import

从 Cloud Storage 存储桶导入问题模型。

HTTP 请求

POST https://{endpoint}/v1/{parent=projects/*/locations/*}/issueModels:import

其中 {endpoint} 是受支持的服务端点之一。

网址使用 gRPC 转码语法。

路径参数

参数
parent

string

必需。问题模型的父级资源。

请求正文

请求正文中包含结构如下的数据:

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 (GcsSource)
  }
  // End of mutually exclusive fields.
}
字段
createNewModel

boolean

可选。如果设置为 true,则会根据导入的文件创建一个问题模型,并为该问题模型和相应问题随机生成 ID。否则,替换与文件具有相同 ID 的现有模型。

要从中导入问题模型的来源。以下是互斥字段的列表。在响应中,最多只能设置其中一个字段:
gcsSource

object (GcsSource)

Google Cloud Storage 来源消息。

互斥字段结束。

响应正文

如果成功,则响应正文包含一个 Operation 实例。

授权范围

需要以下 OAuth 范围:

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

如需了解详情,请参阅 Authentication Overview。

IAM 权限

需要拥有 parent 资源的以下 IAM 权限:

  • contactcenterinsights.issueModels.create
  • contactcenterinsights.issueModels.import

如需了解详情,请参阅 IAM 文档。

GcsSource

用于获取问题模型文件的 Google Cloud Storage 对象 URI。

JSON 表示法
{
  "objectUri": string
}
字段
objectUri

string

必需。格式:gs://<bucket-name>/<object-name>