Google Cloud Artifact Registry V1 Client - Class GenericArtifact (1.1.0)

Reference documentation and code samples for the Google Cloud Artifact Registry V1 Client class GenericArtifact.

GenericArtifact represents a generic artifact

Generated from protobuf message google.devtools.artifactregistry.v1.GenericArtifact

Namespace

Google \ Cloud \ ArtifactRegistry \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Resource name of the generic artifact. project, location, repository, package_id and version_id create a unique generic artifact. i.e. "projects/test-project/locations/us-west4/repositories/test-repo/ genericArtifacts/package_id:version_id"

↳ version string

The version of the generic artifact.

↳ create_time Google\Protobuf\Timestamp

Output only. The time when the Generic module is created.

↳ update_time Google\Protobuf\Timestamp

Output only. The time when the Generic module is updated.

getName

Resource name of the generic artifact.

project, location, repository, package_id and version_id create a unique generic artifact. i.e. "projects/test-project/locations/us-west4/repositories/test-repo/ genericArtifacts/package_id:version_id"

Returns
Type Description
string

setName

Resource name of the generic artifact.

project, location, repository, package_id and version_id create a unique generic artifact. i.e. "projects/test-project/locations/us-west4/repositories/test-repo/ genericArtifacts/package_id:version_id"

Parameter
Name Description
var string
Returns
Type Description
$this

getVersion

The version of the generic artifact.

Returns
Type Description
string

setVersion

The version of the generic artifact.

Parameter
Name Description
var string
Returns
Type Description
$this

getCreateTime

Output only. The time when the Generic module is created.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The time when the Generic module is created.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getUpdateTime

Output only. The time when the Generic module is updated.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The time when the Generic module is updated.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this