Resource: File
Files store content that is potentially associated with Packages or Versions.
JSON representation |
---|
{
"name": string,
"sizeBytes": string,
"hashes": [
{
object ( |
Fields | |
---|---|
name |
The name of the file, for example: |
sizeBytes |
The size of the File in bytes. |
hashes[] |
The hashes of the file content. |
createTime |
Output only. The time when the File was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
updateTime |
Output only. The time when the File was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
owner |
The name of the Package or Version that owns this file, if any. |
fetchTime |
Output only. The time when the last attempt to refresh the file's data was made. Only set when the repository is remote. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
annotations |
Optional. Client specified annotations. An object containing a list of |
Hash
A hash of file content.
JSON representation |
---|
{
"type": enum ( |
HashType
The algorithm used to compute the hash.
Enums | |
---|---|
HASH_TYPE_UNSPECIFIED |
Unspecified. |
SHA256 |
SHA256 hash. |
MD5 |
MD5 hash. |