Google Cloud Artifact Registry V1 Client - Class Package (1.0.0-RC1)

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

Packages are named collections of versions.

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

Namespace

Google \ Cloud \ ArtifactRegistry \ V1

Methods

__construct

Constructor.

Parameters
Name Description
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. If the package ID part contains slashes, the slashes are escaped.

↳ 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.

If the package ID part contains slashes, the slashes are escaped.

Returns
Type Description
string

setName

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

If the package ID part contains slashes, the slashes are escaped.

Parameter
Name Description
var string
Returns
Type Description
$this

getDisplayName

The display name of the package.

Returns
Type Description
string

setDisplayName

The display name of the package.

Parameter
Name Description
var string
Returns
Type Description
$this

getCreateTime

The time when the package was created.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

The time when the package was created.

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

getUpdateTime

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

Returns
Type Description
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
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this