REST Resource: edits.expansionfiles
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
资源:ExpansionFile
扩展文件。ExpansionFilesService 的资源。
JSON 表示法 |
{
"referencesVersion": integer,
"fileSize": string
} |
字段 |
referencesVersion |
integer
如果设置,此 APK 的扩展文件会引用另一个 APK 的扩展文件。将不会设置 fileSize 字段。
|
fileSize |
string (int64 format)
如果设置此字段,则表示此 APK 已上传了扩展文件:此 APK 不会引用其他 APK 的扩展文件。此字段的值是上传的扩展文件的大小(以字节为单位)。
|
方法 |
|
获取指定 APK 的扩展文件配置。 |
|
修补了 APK 的扩展文件配置,以引用其他 APK 的扩展文件。 |
|
更新 APK 的扩展文件配置,以引用其他 APK 的扩展文件。 |
|
上传新的扩展文件并将其附加到指定的 APK。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eAn ExpansionFile resource defines the configuration for expansion files associated with an APK in Google Play.\u003c/p\u003e\n"],["\u003cp\u003eIt allows an APK to either reference another APK's expansion file or have its own expansion file uploaded.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can manage expansion files using methods like get, patch, update, and upload to retrieve, modify, or add expansion file configurations for their APKs.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ereferencesVersion\u003c/code\u003e and \u003ccode\u003efileSize\u003c/code\u003e fields in the JSON representation determine if an APK references another expansion file or has its own uploaded file with the specified size.\u003c/p\u003e\n"]]],["Expansion files are configured with `referencesVersion` (referencing another APK's file) or `fileSize` (indicating an uploaded file's size in bytes). Key actions include: fetching an APK's expansion file configuration via `get`, modifying it to reference another file with `patch` or `update`, and uploading a new expansion file using `upload`. The JSON representation shows a file size and references version.\n"],null,["# REST Resource: edits.expansionfiles\n\n- [Resource: ExpansionFile](#ExpansionFile)\n - [JSON representation](#ExpansionFile.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: ExpansionFile\n-----------------------\n\nAn expansion file. The resource for ExpansionFilesService.\n\n| JSON representation |\n|--------------------------------------------------------------|\n| ``` { \"referencesVersion\": integer, \"fileSize\": string } ``` |\n\n| Fields ||\n|---------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `referencesVersion` | `integer` If set, this APK's expansion file references another APK's expansion file. The fileSize field will not be set. |\n| `fileSize` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` If set, this field indicates that this APK has an expansion file uploaded to it: this APK does not reference another APK's expansion file. The field's value is the size of the uploaded expansion file in bytes. |\n\n| Methods ------- ||\n|------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------|\n| ### [get](/android-publisher/api-ref/rest/v3/edits.expansionfiles/get) | Fetches the expansion file configuration for the specified APK. |\n| ### [patch](/android-publisher/api-ref/rest/v3/edits.expansionfiles/patch) | Patches the APK's expansion file configuration to reference another APK's expansion file. |\n| ### [update](/android-publisher/api-ref/rest/v3/edits.expansionfiles/update) | Updates the APK's expansion file configuration to reference another APK's expansion file. |\n| ### [upload](/android-publisher/api-ref/rest/v3/edits.expansionfiles/upload) | Uploads a new expansion file and attaches to the specified APK. |"]]