v1

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

Prewarms an artifact for streaming.

post/v1/{+repository}:prewarmArtifact

Path parameters

repositorystring required

Required. The repository name, for example: projects/p1/locations/us-central1/repositories/repo1. If the package or version ID parts contain slashes, the slashes are escaped.

Request body

versionstring

Optional. The artifact version Format: projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}

retentionDaysstring int64

Optional. The retention days of the prewarmed artifact. If not specified, the artifact will be cached for 3 days.

forceboolean

Optional. If true, old artifact will be evicted to make room for the new artifact.

streamLocationstring

Optional. The location to cache the artifact in. If not specified, the artifact will be cached in the same location as the artifact. multi-region is not supported for this field.

tagstring

Optional. The artifact tag Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}

Response

Successful response