REST Resource: projects.locations.repositories.packages.versions

Resource: Version

The body of a version resource. A version resource represents a collection of components, such as files and other data. This may correspond to a version in many package management schemes.

JSON representation
{
  "name": string,
  "description": string,
  "createTime": string,
  "updateTime": string,
  "relatedTags": [
    {
      object (Tag)
    }
  ],
  "metadata": {
    object
  },
  "annotations": {
    string: string,
    ...
  }
}
Fields
name

string

The name of the version, for example: projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1. If the package or version ID parts contain slashes, the slashes are escaped.

description

string

Optional. Description of the version, as specified in its metadata.

createTime

string (Timestamp format)

The time when the version was created.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

updateTime

string (Timestamp format)

The time when the version was last updated.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

relatedTags[]

object (Tag)

Output only. A list of related tags. Will contain up to 100 tags that reference this version.

metadata

object (Struct format)

Output only. Repository-specific Metadata stored against this version. The fields returned are defined by the underlying repository-specific resource. Currently, the resources could be: DockerImage MavenArtifact

annotations

map (key: string, value: string)

Optional. Client specified annotations.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

Methods

batchDelete

Deletes multiple versions across a repository.

delete

Deletes a version and all of its content.

get

Gets a version

list

Lists versions.

patch

Updates a version.