- Resource: Package
- IncludeExclude
- PackageDetails
- PackageProperties
- PackageType
- PackageUploadState
- Methods
Resource: Package
A package in the OTA config.
JSON representation |
---|
{ "name": string, "title": string, "disabled": boolean, "deviceBuildRestrictions": [ { 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. |
disabled |
Whether or not the package is disabled for the given deployment. |
deviceBuildRestrictions[] |
Optional. Represents build fingerprint restrictions that may only be applied to full packages. Note that all repeated values must be the same; that is, all include or all exclude. The values can be a substring of the build fingerprint, for example, the restriction value of "ABC" will match any build fingerprint containing the string "ABC". |
details |
More details of the package. This field is read only. |
IncludeExclude
Includes or excludes certain patterns.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field include_exclude . A rule of includes or excludes. include_exclude can be only one of the following: |
|
include |
Included pattern. |
exclude |
Excluded pattern. |
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 entry was last modified. 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 |
uploadUser |
The email of the user who uploaded the package |
uploadTime |
The time at which the package was uploaded. This may not be available for all packages. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
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 . |