Reference documentation and code samples for the Google Cloud Artifact Registry V1 Client class 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.
Generated from protobuf message google.devtools.artifactregistry.v1.Version
Namespace
Google \ Cloud \ ArtifactRegistry \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ 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.
↳ create_time
↳ update_time
↳ related_tags
array< Tag
>
Output only. A list of related tags. Will contain up to 100 tags that reference this version.
↳ metadata
Google\Protobuf\Struct
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
↳ fingerprints
array< Hash
>
Output only. Immutable reference for the version, calculated based on the version's content. Currently we only support dirsum_sha256 hash algorithm. Additional hash algorithms may be added in the future.
getName
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.
string
setName
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.
var
string
$this
getDescription
Optional. Description of the version, as specified in its metadata.
string
setDescription
Optional. Description of the version, as specified in its metadata.
var
string
$this
getCreateTime
The time when the version was created.
hasCreateTime
clearCreateTime
setCreateTime
The time when the version was created.
$this
getUpdateTime
The time when the version was last updated.
hasUpdateTime
clearUpdateTime
setUpdateTime
The time when the version was last updated.
$this
getRelatedTags
Output only. A list of related tags. Will contain up to 100 tags that reference this version.
setRelatedTags
Output only. A list of related tags. Will contain up to 100 tags that reference this version.
$this
getMetadata
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
hasMetadata
clearMetadata
setMetadata
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
$this
getAnnotations
Optional. Client specified annotations.
setAnnotations
Optional. Client specified annotations.
$this
getFingerprints
Output only. Immutable reference for the version, calculated based on the version's content. Currently we only support dirsum_sha256 hash algorithm.
Additional hash algorithms may be added in the future.
setFingerprints
Output only. Immutable reference for the version, calculated based on the version's content. Currently we only support dirsum_sha256 hash algorithm.
Additional hash algorithms may be added in the future.
$this

