Method: projects.locations.notebooks.sources.batchCreate

Source 목록을 만듭니다.

HTTP 요청

POST https://discoveryengine.googleapis.com/v1alpha/{parent=projects/*/locations/*/notebooks/*}/sources:batchCreate

URL은 gRPC 트랜스코딩 문법을 사용합니다.

경로 매개변수

매개변수
parent

string

필수 항목입니다. 소스가 생성될 상위 리소스입니다. 형식: projects/{project}/locations/{location}/notebooks/{notebook}

요청 본문

요청 본문에는 다음과 같은 구조의 데이터가 포함됩니다.

JSON 표현
{
  "userContents": [
    {
      object (UserContent)
    }
  ]
}
필드
userContents[]

object (UserContent)

필수 항목입니다. 업로드할 UserContent입니다.

응답 본문

SourceService.BatchCreateSources 메서드에 대한 응답입니다.

성공한 경우 응답 본문은 다음과 같은 구조의 데이터를 포함합니다.

JSON 표현
{
  "sources": [
    {
      object (Source)
    }
  ]
}
필드
sources[]

object (Source)

Source입니다.

승인 범위

다음 OAuth 범위 중 하나가 필요합니다.

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

자세한 내용은 Authentication Overview를 참조하세요.

IAM 권한

parent 리소스에 대해서는 다음 IAM 권한이 필요합니다.

  • discoveryengine.sources.create

자세한 내용은 IAM 문서를 참조하세요.

UserContent

'콘텐츠' 메시지는 사용자가 업로드하려는 데이터를 의미합니다.

JSON 표현
{

  // Union field content can be only one of the following:
  "googleDriveContent": {
    object (GoogleDriveContent)
  },
  "textContent": {
    object (TextContent)
  },
  "webContent": {
    object (WebContent)
  },
  "videoContent": {
    object (VideoContent)
  },
  "agentspaceContent": {
    object (AgentspaceContent)
  }
  // End of list of possible types for union field content.
}
필드
통합 필드 content. 사용자 콘텐츠입니다. content은 다음 중 하나여야 합니다.
googleDriveContent

object (GoogleDriveContent)

Google Drive의 콘텐츠입니다.

textContent

object (TextContent)

소스로 업로드된 텍스트 콘텐츠입니다.

webContent

object (WebContent)

소스로 업로드된 웹 콘텐츠입니다.

videoContent

object (VideoContent)

소스로 업로드된 동영상 콘텐츠입니다.

agentspaceContent

object (AgentspaceContent)

소스로 업로드된 에이전트 스페이스 콘텐츠입니다.

GoogleDriveContent

Google Drive의 콘텐츠입니다.

JSON 표현
{
  "documentId": string,
  "mimeType": string,
  "sourceName": string
}
필드
documentId

string

선택한 문서의 문서 ID입니다.

mimeType

string

선택한 문서의 MIME 유형입니다.

드라이브 선택기에서 선택한 콘텐츠의 유형을 구분하는 데 사용할 수 있습니다. Google Docs의 경우 application/vnd.google-apps.document를 사용하고 Google Slides의 경우 application/vnd.google-apps.presentation을 사용합니다.

sourceName

string

소스에 표시할 이름입니다.

TextContent

소스로 업로드된 텍스트 콘텐츠입니다.

JSON 표현
{
  "sourceName": string,
  "content": string
}
필드
sourceName

string

텍스트 소스의 표시 이름입니다.

content

string

소스에 표시할 이름입니다.

WebContent

소스로 업로드된 웹 콘텐츠입니다.

JSON 표현
{
  "url": string,
  "sourceName": string
}
필드
url

string

URL이 제공되면 백엔드에서 웹페이지를 가져옵니다.

sourceName

string

소스에 표시할 이름입니다.

VideoContent

소스로 업로드된 동영상 콘텐츠입니다.

JSON 표현
{

  // Union field format can be only one of the following:
  "youtubeUrl": string
  // End of list of possible types for union field format.
}
필드
통합 필드 format. 동영상 콘텐츠의 형식을 지정합니다. format은 다음 중 하나여야 합니다.
youtubeUrl

string

동영상 콘텐츠의 YouTube URL입니다.

AgentspaceContent

소스로 업로드된 에이전트 스페이스 콘텐츠입니다.

JSON 표현
{
  "documentName": string,
  "engineName": string,
  "ideaforgeIdeaName": string
}
필드
documentName

string

(선택사항) Agentspace 문서의 전체 리소스 이름입니다. 형식은 projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}/branches/{branch}/documents/{documentId}입니다.

engineName

string

(선택사항) 문서의 권한을 확인하는 엔진입니다. 형식은 projects/{project}/locations/{location}/collections/{collection}/engines/{engine}입니다.

ideaforgeIdeaName

string

(선택사항) 아이디어 생성 도구 인스턴스의 리소스 이름입니다. 형식: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/ideaForgeInstances/{instance}