ทรัพยากรไฟล์ Manifest ของทรัพยากร Dependency สำหรับไลบรารีและบริการขั้นสูง
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ชุดการกำหนดค่าสำหรับไลบรารีและบริการขั้นสูงที่สคริปต์เปิดใช้
แท็กเริ่มการทำงาน
การกำหนดค่าไฟล์ Manifest ของการขึ้นต่อกันระดับบนสุด
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
รหัสสคริปต์ของโปรเจ็กต์สคริปต์ของไลบรารี คุณดูรหัสสคริปต์ได้ใน URL ของสคริปต์ไลบรารีหรือในโปรแกรมแก้ไขสคริปต์โดยเลือกไฟล์ > คุณสมบัติของโปรเจ็กต์
|
userSymbol |
string
ป้ายกำกับที่ใช้ในโค้ดโปรเจ็กต์สคริปต์เพื่ออ้างอิงถึงไลบรารีนี้
|
version |
string
เวอร์ชันของไลบรารีที่สคริปต์ใช้ ซึ่งอาจเป็น
หมายเลขเวอร์ชันหรือ stable ซึ่งหมายถึงเวอร์ชันล่าสุด
ที่สร้างขึ้น
|
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-31 UTC
[null,null,["อัปเดตล่าสุด 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. |"]]