Tài nguyên tệp kê khai của thư viện và các phần phụ thuộc dịch vụ nâng cao
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tập hợp các cấu hình cho thư viện và dịch vụ nâng cao mà tập lệnh đã bật.
Phần phụ thuộc
Cấp cao nhất của cấu hình tệp kê khai phần phụ thuộc.
EnabledAdvancedService
Cấu hình của một dịch vụ nâng cao mà tập lệnh đã bật.
Biểu diễn dưới dạng JSON |
{
"serviceId": string,
"userSymbol": string,
"version": string
} |
Trường |
serviceId |
string
Giá trị nhận dạng của dịch vụ xuất hiện trong tài liệu khám phá API (ví dụ: "drive").
|
userSymbol |
string
Giá trị nhận dạng dùng để tham chiếu đến dịch vụ này trong mã của dự án Apps Script.
|
version |
string
Phiên bản đã bật của dịch vụ (ví dụ: "v1").
|
Thư viện
Cấu hình của một thư viện mà tập lệnh đã nhập.
Biểu diễn dưới dạng JSON |
{
"developmentMode": boolean,
"libraryId": string,
"userSymbol": string,
"version": string
} |
Trường |
developmentMode |
boolean
Nếu true , version bị bỏ qua và tập lệnh sử dụng mã đã lưu của dự án thư viện hiện tại, ngay cả khi mã đó chưa được lưu vào phiên bản mới.
|
libraryId |
string
Mã tập lệnh của dự án tập lệnh của thư viện. Bạn có thể tìm mã tập lệnh trong URL của tập lệnh thư viện hoặc trong trình chỉnh sửa tập lệnh bằng cách chọn Tệp > Thuộc tính dự án.
|
userSymbol |
string
Nhãn được dùng trong mã dự án tập lệnh để tham chiếu đến thư viện này.
|
version |
string
Phiên bản của thư viện mà tập lệnh sử dụng. Đây là số phiên bản hoặc stable , tức là phiên bản được tạo gần đây nhất.
|
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-08-31 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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. |"]]