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: "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt". If the file ID part contains slashes, they are escaped. |
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: |
Hash
A hash of file content.
JSON representation |
---|
{
"type": enum ( |
Fields | |
---|---|
type |
The algorithm used to compute the hash value. |
value |
The hash value. A base64-encoded string. |
HashType
The algorithm used to compute the hash.
Enums | |
---|---|
HASH_TYPE_UNSPECIFIED |
Unspecified. |
SHA256 |
SHA256 hash. |
MD5 |
MD5 hash. |
Methods |
|
---|---|
|
Gets a file. |
|
Lists files. |