Method: projects.locations.dataStores.suggestionDenyListEntries.import

Mengimpor semua SuggestionDenyListEntry untuk DataStore.

Permintaan HTTP


POST https://discoveryengine.googleapis.com/v1beta/{parent=projects/*/locations/*/dataStores/*}/suggestionDenyListEntries:import

URL ini menggunakan sintaksis gRPC Transcoding.

Parameter jalur

Parameter
parent

string

Wajib. Nama resource penyimpanan data induk yang entri daftar tolaknya akan diimpor. Mengikuti pola projects/*/locations/*/collections/*/dataStores/*.

Isi permintaan

Isi permintaan memuat data dengan struktur berikut:

Representasi JSON
{

  // The following is a list of mutually exclusive fields. At most one of the
  // fields will be set in a response:
  "inlineSource": {
    object (InlineSource)
  },
  "gcsSource": {
    object (GcsSource)
  }
  // End of mutually exclusive fields.
}
Kolom
Sumber SuggestionDenyList yang diperbarui. Berikut adalah daftar kolom yang bersifat eksklusif satu sama lain. Maksimal satu kolom akan ditetapkan dalam respons:
inlineSource

object (InlineSource)

Sumber Inline untuk konten input bagi entri daftar penolakan saran.

gcsSource

object (GcsSource)

Lokasi Cloud Storage untuk konten input.

Hanya 1 file yang dapat ditentukan yang berisi semua entri yang akan diimpor. Nilai yang didukung gcsSource.schema untuk impor entri daftar penolakan saran pelengkapan otomatis:

  • suggestion_deny_list (default): Satu [SuggestionDenyListEntry] JSON per baris.
Akhir kolom yang saling eksklusif.

Isi respons

Jika berhasil, isi respons akan memuat instance Operation.

Cakupan otorisasi

Memerlukan salah satu cakupan OAuth berikut:

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

Untuk mengetahui informasi selengkapnya, lihat Authentication Overview.

Izin IAM

Memerlukan izin IAM berikut pada resource parent:

  • discoveryengine.suggestionDenyListEntries.import

Untuk mengetahui informasi selengkapnya, lihat dokumentasi IAM.