Kitaplıklar ve gelişmiş hizmet bağımlılıkları manifest kaynağı
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Komut dosyasının etkinleştirdiği kitaplıklar ve gelişmiş hizmetler için yapılandırma grubu.
Bağımlılıklar
Bağımlılık manifesti yapılandırmasının en üst seviyesi.
EnabledAdvancedService
Komut dosyasının etkinleştirdiği bir gelişmiş hizmetin yapılandırması.
JSON gösterimi |
{
"serviceId": string,
"userSymbol": string,
"version": string
} |
Alanlar |
serviceId |
string
API keşif dokümanında gösterilen hizmetin tanımlayıcısı (örneğin, "drive").
|
userSymbol |
string
Apps Komut Dosyası projesinin kodunda bu hizmete başvurmak için kullanılan tanımlayıcı.
|
version |
string
Hizmetin etkinleştirilmiş sürümü (örneğin, "v1").
|
Kitaplık
Komut dosyasının içe aktardığı kitaplığın yapılandırması.
JSON gösterimi |
{
"developmentMode": boolean,
"libraryId": string,
"userSymbol": string,
"version": string
} |
Alanlar |
developmentMode |
boolean
true ise version yoksayılır ve komut dosyası, yeni bir sürüme kaydedilmemiş olsa bile mevcut kitaplık projesinin kaydedilmiş kodunu kullanır.
|
libraryId |
string
Kitaplığın komut dosyası projesinin komut dosyası kimliği. Kitaplık komut dosyasının URL'sinde veya komut dosyası düzenleyicide Dosya > Proje özellikleri'ni seçerek komut dosyası kimliği bulabilirsiniz.
|
userSymbol |
string
Bu kitaplığa başvurmak için komut dosyası proje kodunda kullanılan etiket.
|
version |
string
Komut dosyası tarafından kullanılan kitaplığın sürümü. Bu değer, sürüm numarası veya stable (oluşturulan son sürüm) olabilir.
|
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-08-31 UTC.
[null,null,["Son güncelleme tarihi: 2025-08-31 UTC."],[[["\u003cp\u003eDefines configurations for libraries and advanced services used by a script.\u003c/p\u003e\n"],["\u003cp\u003eOutlines the structure for declaring dependencies, including enabled advanced services and libraries.\u003c/p\u003e\n"],["\u003cp\u003eSpecifies how to configure individual advanced services with their ID, user symbol, and version.\u003c/p\u003e\n"],["\u003cp\u003eDetails the configuration of imported libraries, including development mode, library ID, user symbol, and version.\u003c/p\u003e\n"]]],[],null,["# Libraries and advanced services dependencies manifest resource\n\nThe set of configurations for the [libraries](/apps-script/guides/libraries) and\n[advanced services](/apps-script/guides/services/advanced) the script has\nenabled.\n\nDependencies\n------------\n\nThe top-level of the dependency manifest configuration.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------|\n| ```text { \"enabledAdvancedServices\": [ { object (EnabledAdvancedService) } ], \"libraries\": [ { object (Library) } ] } ``` |\n\n| Fields ||\n|-----------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `enabledAdvancedServices[]` | `object (`[EnabledAdvancedService](#enabledadvancedservice)`)` The list of [advanced services](/apps-script/guides/services/advanced) enabled for use by the script project. |\n| `libraries[]` | `object (`[Library](#library)`)` The list of [libraries](/apps-script/guides/libraries) used by the script project. |\n\n### EnabledAdvancedService\n\nThe configuration of an [advanced service](/apps-script/guides/services/advanced)\nthe script has enabled.\n\n| JSON representation |\n|------------------------------------------------------------------------------|\n| ```text { \"serviceId\": string, \"userSymbol\": string, \"version\": string } ``` |\n\n| Fields ||\n|--------------|------------------------------------------------------------------------------------------------------------|\n| `serviceId` | `string` The identifier of the service that is shown in the API discovery document (for example, \"drive\"). |\n| `userSymbol` | `string` The identifier used to refer to this service in the code of the Apps Script project. |\n| `version` | `string` The enabled version of the service (for example, \"v1\"). |\n\n### Library\n\nThe configuration of a [library](/apps-script/guides/libraries)\nthe script has imported.\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------|\n| ```carbon { \"developmentMode\": boolean, \"libraryId\": string, \"userSymbol\": string, \"version\": string } ``` |\n\n| Fields ||\n|-------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `developmentMode` | `boolean` If `true`, `version` is ignored and the script uses the current library project saved code, even if that code hasn't been saved to a new version. |\n| `libraryId` | `string` The script ID of the library's script project. You can find a script ID in the library script's URL or in the script editor by selecting **File \\\u003e Project properties**. |\n| `userSymbol` | `string` The label that is used in the script project code to refer to this library. |\n| `version` | `string` The version of the library that is used by the script. This is either a version number or `stable`, meaning the last version created. |"]]