کتابخانه ها و خدمات پیشرفته وابستگی منبع آشکار
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
مجموعه ای از تنظیمات برای کتابخانه ها و خدمات پیشرفته ای که اسکریپت فعال کرده است.
وابستگی ها
سطح بالای پیکربندی مانیفست وابستگی.
EnabledAdvancedService
پیکربندی یک سرویس پیشرفته که اسکریپت فعال کرده است.
نمایندگی JSON |
---|
{
"serviceId": string,
"userSymbol": string,
"version": string
} |
فیلدها |
---|
serviceId | string شناسه سرویسی که در سند کشف API نشان داده شده است (به عنوان مثال، "درایو"). |
userSymbol | string شناسه مورد استفاده برای اشاره به این سرویس در کد پروژه Apps Script. |
version | string نسخه فعال سرویس (به عنوان مثال، "v1"). |
کتابخانه
پیکربندی کتابخانه ای که اسکریپت وارد کرده است.
نمایندگی JSON |
---|
{
"developmentMode": boolean,
"libraryId": string,
"userSymbol": string,
"version": string
} |
فیلدها |
---|
developmentMode | boolean اگر true ، version نادیده گرفته می شود و اسکریپت از کد ذخیره شده پروژه کتابخانه فعلی استفاده می کند، حتی اگر آن کد در نسخه جدید ذخیره نشده باشد. |
libraryId | string شناسه اسکریپت پروژه اسکریپت کتابخانه. با انتخاب File > Project Project می توانید شناسه اسکریپت را در URL اسکریپت کتابخانه یا در ویرایشگر اسکریپت پیدا کنید. |
userSymbol | string برچسبی که در کد پروژه اسکریپت برای ارجاع به این کتابخانه استفاده می شود. |
version | string نسخه ای از کتابخانه که توسط اسکریپت استفاده می شود. این یا یک شماره نسخه یا stable است، یعنی آخرین نسخه ایجاد شده. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-08-29 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-08-29 بهوقت ساعت هماهنگ جهانی."],[[["\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. |"]]