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 \ V1beta2Methods
__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". |
↳ 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 | |
|---|---|
| Type | Description |
string |
|
setName
The name of the package, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1".
| 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 |
|