v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-1340127143.5 KB
projects

Updates a file.

patch/v1/{+name}

Path parameters

namestring required

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.

Query parameters

updateMaskstring

Required. The update mask applies to the resource. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask

Request body

updateTimestring google-datetime

Output only. The time when the File was last updated.

namestring

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.

sizeBytesstring int64

The size of the File in bytes.

annotationsobject

Optional. Client specified annotations.

createTimestring google-datetime

Output only. The time when the File was created.

ownerstring

The name of the Package or Version that owns this file, if any.

fetchTimestring google-datetime

Output only. The time when the last attempt to refresh the file's data was made. Only set when the repository is remote.

Response

Successful response