AI-generated Key Takeaways
-
Dependencies in a script manifest configure the libraries and advanced services the script uses.
-
The
dependenciesJSON includesenabledAdvancedServicesandlibraries. -
EnabledAdvancedServiceconfiguration includes the service identifier, user symbol, and version. -
Libraryconfiguration includes development mode, library ID, user symbol, and version.
The set of configurations for the libraries and advanced services the script has enabled.
Dependencies
The top-level of the dependency manifest configuration.
| JSON representation |
|---|
{
"enabledAdvancedServices": [
{
object (EnabledAdvancedService)
}
],
"libraries": [
{
object (Library)
}
]
} |
| Fields | |
|---|---|
enabledAdvancedServices[] |
The list of advanced services enabled for use by the script project. |
libraries[] |
The list of libraries used by the script project. |
EnabledAdvancedService
The configuration of an advanced service the script has enabled.
| JSON representation |
|---|
{
"serviceId": string,
"userSymbol": string,
"version": string
} |
| Fields | |
|---|---|
serviceId |
The identifier of the service that is shown in the API discovery document (for example, "drive"). |
userSymbol |
The identifier used to refer to this service in the code of the Apps Script project. |
version |
The enabled version of the service (for example, "v1"). |
Library
The configuration of a library the script has imported.
| JSON representation |
|---|
{ "developmentMode": boolean, "libraryId": string, "userSymbol": string, "version": string } |
| Fields | |
|---|---|
developmentMode |
If |
libraryId |
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 > Project properties. |
userSymbol |
The label that is used in the script project code to refer to this library. |
version |
The version of the library that is used by the script. This is either
a version number or |