Method: settings.searchapplications.patch
Memperbarui aplikasi penelusuran.
Catatan: API ini memerlukan akun admin agar dapat dijalankan.
Permintaan HTTP
PATCH https://cloudsearch.googleapis.com/v1/settings/{searchApplication.name=searchapplications/*}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
searchApplication.name |
string
Nama Aplikasi Penelusuran. Format: searchapplications/{applicationId}.
|
Parameter kueri
Parameter |
updateMask |
string (FieldMask format)
Hanya berlaku untuk settings.searchapplications.patch . Perbarui mask untuk mengontrol kolom yang akan diperbarui. Contoh jalur kolom: searchApplication.name , searchApplication.displayName .
- Jika
updateMask tidak kosong, hanya kolom yang ditentukan di updateMask yang akan diperbarui.
- Jika Anda menentukan kolom di
updateMask , tetapi tidak menentukan nilainya di searchApplication , kolom tersebut akan dihapus.
- Jika
updateMask tidak ada atau kosong atau memiliki nilai * , semua kolom akan diperbarui.
|
Isi permintaan
Isi permintaan memuat instance SearchApplication
.
Isi respons
Jika berhasil, isi respons akan berisi instance Operation
.
Cakupan Otorisasi
Memerlukan salah satu cakupan OAuth berikut:
https://www.googleapis.com/auth/cloud_search.settings.query
https://www.googleapis.com/auth/cloud_search.settings
https://www.googleapis.com/auth/cloud_search
Untuk informasi selengkapnya, lihat Panduan otorisasi.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-09-03 UTC.
[null,null,["Terakhir diperbarui pada 2024-09-03 UTC."],[[["This API updates a search application using an HTTP PATCH request and requires an admin account."],["The request requires a path parameter `searchApplication.name` to specify the application, and an optional `updateMask` query parameter to control which fields are updated."],["The request body should contain a `SearchApplication` object with the desired changes."],["Upon success, the API returns an `Operation` object in the response body."],["Authorization requires one of the specified OAuth scopes, such as `https://www.googleapis.com/auth/cloud_search.settings.query`."]]],[]]