Google Cloud Artifact Registry V1beta2 Client - Class Version (0.4.4)

Reference documentation and code samples for the Google Cloud Artifact Registry V1beta2 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.v1beta2.Version

Namespace

Google \ Cloud \ ArtifactRegistry \ V1beta2

Methods

__construct

Constructor.

Parameters
NameDescription
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 Google\Protobuf\Timestamp

The time when the version was created.

↳ update_time Google\Protobuf\Timestamp

The time when the version was last updated.

↳ related_tags array<Google\Cloud\ArtifactRegistry\V1beta2\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 only resource in use is DockerImage

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.

Returns
TypeDescription
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.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDescription

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

Returns
TypeDescription
string

setDescription

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

The time when the version was created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

The time when the version was created.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

The time when the version was last updated.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

The time when the version was last updated.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getRelatedTags

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

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setRelatedTags

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

Parameter
NameDescription
var array<Google\Cloud\ArtifactRegistry\V1beta2\Tag>
Returns
TypeDescription
$this

getMetadata

Output only. Repository-specific Metadata stored against this version.

The fields returned are defined by the underlying repository-specific resource. Currently, the only resource in use is DockerImage

Returns
TypeDescription
Google\Protobuf\Struct|null

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 only resource in use is DockerImage

Parameter
NameDescription
var Google\Protobuf\Struct
Returns
TypeDescription
$this