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

Reference documentation and code samples for the Google Cloud Artifact Registry V1beta2 Client class Package.

Packages are named collections of versions.

Generated from protobuf message google.devtools.artifactregistry.v1beta2.Package

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 package, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1".

↳ display_name string

The display name of the package.

↳ create_time Google\Protobuf\Timestamp

The time when the package was created.

↳ update_time Google\Protobuf\Timestamp

The time when the package was last updated. This includes publishing a new version of the package.

getName

The name of the package, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1".

Returns
TypeDescription
string

setName

The name of the package, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1".

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDisplayName

The display name of the package.

Returns
TypeDescription
string

setDisplayName

The display name of the package.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

The time when the package was created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

The time when the package was created.

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

getUpdateTime

The time when the package was last updated. This includes publishing a new version of the package.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

The time when the package was last updated. This includes publishing a new version of the package.

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