Veri kaynağı, dizine eklenecek öğeler için mantıksal bir ad alanıdır. Tüm öğeler bir veri kaynağına ait olmalıdır. Öğelerin Cloud Search'e dizine eklenmesi için bu ön koşulun karşılanması gerekir.
Veri kaynağı kaynağının adı. Biçim: datasources/{sourceId}.
Veri kaynağı oluşturulurken ad yoksayılır.
displayName
string
Zorunlu. Veri kaynağının görünen adı. Maksimum uzunluk 300 karakterdir.
shortName
string
Kaynağın kısa adı veya takma adı. Bu değer, "source" operatörüyle eşleştirme yapmak için kullanılır. Örneğin, kısa ad <value> ise source:<value> gibi sorgular yalnızca bu kaynakla ilgili sonuçları döndürür. Değer, tüm veri kaynakları genelinde benzersiz olmalıdır. Değer yalnızca alfanümerik karakterler (a-zA-Z0-9) içermelidir. Değer "google" ile başlayamaz ve aşağıdakilerden biri olamaz: mail, gmail, docs, drive, groups, sites, calendar, hangouts, gplus, keep, people, teams. Maksimum uzunluğu 32 karakterdir.
indexingServiceAccounts[]
string
Dizine ekleme erişimi olan hizmet hesaplarının listesi.
disableServing
boolean
Arama veya yardım sonuçlarını sunmayı devre dışı bırakın.
disableModifications
boolean
Doğru ise veri kaynağını salt okuma moduna ayarlar. Dizine Ekleme API'si, salt okuma modunda bu kaynaktaki öğeleri dizine ekleme veya silme isteklerini reddeder. Salt okuma modunu etkinleştirmek, daha önce kabul edilen verilerin işlenmesini durdurmaz.
Bu alan, öğelerin görünürlüğünü veri kaynağı düzeyinde kısıtlar. Veri kaynağındaki öğeler, bu alana dahil edilen kullanıcılar ve grupların birleşimiyle sınırlıdır. Kullanıcıların, kapsanan öğelerde ACL izinlerine sahip olması gerektiğinden, bu işlemin belirli bir öğeye erişimi garanti etmediğini unutmayın. Bu, veri kaynağının tamamına yüksek düzeyde erişim sağlar ve öğelerin bu görünürlük dışında paylaşılmamasını sağlar.
returnThumbnailUrls
boolean
Kullanıcılar bu veri kaynağında dizine eklenen öğelerin küçük resmi URI'sini isteyebilir.
operationIds[]
string
Şu anda bu şema için çalışan uzun süreli işlemlerin (LROs) kimlikleri.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-07-25 UTC."],[],[],null,["# REST Resource: settings.datasources\n\n- [Resource: DataSource](#DataSource)\n - [JSON representation](#DataSource.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: DataSource\n--------------------\n\nDatasource is a logical namespace for items to be indexed. All items must belong to a datasource. This is the prerequisite before items can be indexed into Cloud Search.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"displayName\": string, \"shortName\": string, \"indexingServiceAccounts\": [ string ], \"disableServing\": boolean, \"disableModifications\": boolean, \"itemsVisibility\": [ { object (/workspace/cloud-search/docs/reference/rest/v1/GSuitePrincipal) } ], \"returnThumbnailUrls\": boolean, \"operationIds\": [ string ] } ``` |\n\n| Fields ||\n|-----------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` The name of the datasource resource. Format: datasources/{sourceId}. The name is ignored when creating a datasource. |\n| `displayName` | `string` Required. Display name of the datasource The maximum length is 300 characters. |\n| `shortName` | `string` A short name or alias for the source. This value will be used to match the 'source' operator. For example, if the short name is *\\\u003cvalue\\\u003e* then queries like *source:\\\u003cvalue\\\u003e* will only return results for this source. The value must be unique across all datasources. The value must only contain alphanumeric characters (a-zA-Z0-9). The value cannot start with 'google' and cannot be one of the following: mail, gmail, docs, drive, groups, sites, calendar, hangouts, gplus, keep, people, teams. Its maximum length is 32 characters. |\n| `indexingServiceAccounts[]` | `string` List of service accounts that have indexing access. |\n| `disableServing` | `boolean` Disable serving any search or assist results. |\n| `disableModifications` | `boolean` If true, sets the datasource to read-only mode. In read-only mode, the Indexing API rejects any requests to index or delete items in this source. Enabling read-only mode does not stop the processing of previously accepted data. |\n| `itemsVisibility[]` | `object (`[GSuitePrincipal](/workspace/cloud-search/docs/reference/rest/v1/GSuitePrincipal)`)` This field restricts visibility to items at the datasource level. Items within the datasource are restricted to the union of users and groups included in this field. Note that, this does not ensure access to a specific item, as users need to have ACL permissions on the contained items. This ensures a high level access on the entire datasource, and that the individual items are not shared outside this visibility. |\n| `returnThumbnailUrls` | `boolean` Can a user request to get thumbnail URI for Items indexed in this data source. |\n| `operationIds[]` | `string` IDs of the Long Running Operations (LROs) currently running for this schema. |\n\n| Methods ------- ||\n|------------------------------------------------------------------------------------------|-----------------------|\n| ### [create](/workspace/cloud-search/docs/reference/rest/v1/settings.datasources/create) | Creates a datasource. |\n| ### [delete](/workspace/cloud-search/docs/reference/rest/v1/settings.datasources/delete) | Deletes a datasource. |\n| ### [get](/workspace/cloud-search/docs/reference/rest/v1/settings.datasources/get) | Gets a datasource. |\n| ### [list](/workspace/cloud-search/docs/reference/rest/v1/settings.datasources/list) | Lists datasources. |\n| ### [patch](/workspace/cloud-search/docs/reference/rest/v1/settings.datasources/patch) | Updates a datasource. |\n| ### [update](/workspace/cloud-search/docs/reference/rest/v1/settings.datasources/update) | Updates a datasource. |"]]