Resource: Package
A package in the OTA config.
JSON representation | |
---|---|
{
"name": string,
"title": string,
"details": {
object ( |
Fields | |
---|---|
name |
Output only. The name of the package stored. Note that this is the unique identifier for |
title |
The title of the package; that is, the display name. |
details |
More details of the package. This field is read only. |
PackageDetails
Details of an OTA package.
JSON representation | |
---|---|
{ "sizeBytes": string, "originalFilename": string, "preConditions": [ { object ( |
Fields | |
---|---|
sizeBytes |
The package size in bytes. |
originalFilename |
The original filename that is uploaded. |
preConditions[] |
The package pre-conditions. |
postConditions[] |
The package post-conditions. |
properties |
The package properties. |
webDownloadUrl |
The link to download the package directly from Google. For Dashboard / Console use. |
updateTime |
The time the package was updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
uploadState |
The upload state of the package. |
uploadError |
The error occurred when uploading the package. The field will only be set when the uploadState is |
approved |
Whether the package is approved in APFE. |
beta |
Whether or not the package has been marked as a beta package. |
versionTag |
The package version. |
PackageProperties
The attributes of an OTA package.
JSON representation | |
---|---|
{
"type": enum ( |
Fields | |
---|---|
type |
OTA package type, such as block based. |
requiredCache |
OTA required cache size in bytes. |
downgrade |
Whether the OTA package is a downgrade package. |
wipe |
Whether the OTA package will apply the wipe action. |
streamingPropertyFiles |
The specification of the property files used in streaming OTA. |
PackageType
The type of package in this OTA.
Enums | |
---|---|
PACKAGE_TYPE_UNSPECIFIED |
Unspecified. |
FILE |
File-based OTA. |
BLOCK |
Block-based OTA. |
AB |
A/B OTA. |
PackageUploadState
The state of package uploading.
After the package file is fully transferred, a package
will be created and the server will start processing the file to read package properties from it. The upload state will be set to IN_PROGRESS
until the processing is done. After processing, the upload state will be set to SUCCESS
or FAILURE
.
Enums | |
---|---|
PACKAGE_UPLOAD_STATE_UNSPECIFIED |
Unspecified. |
SUCCESS |
Upload succeeded. |
FAILURE |
Upload failed. Most likely it's because the package is not valid (due to various reasons, for example, unable to unzip the file). |
IN_PROGRESS |
The package is still being processed. |
Methods |
|
---|---|
|
Deletes a package . |
|
Gets a package . |
|
Lists packages . |
|
Lists all the configs that use the specified package. |
|
Updates a package . |