Google Cloud Artifact Registry V1 Client - Class NpmPackage (0.5.1)

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

NpmPackage represents an npm artifact.

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

Namespace

Google \ Cloud \ ArtifactRegistry \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Required. registry_location, project_id, repository_name and npm_package forms a unique package For example, "projects/test-project/locations/us-west4/repositories/test-repo/npmPackages/ npm_test:1.0.0", where "us-west4" is the registry_location, "test-project" is the project_id, "test-repo" is the repository_name and npm_test:1.0.0" is the npm package.

↳ package_name string

Package for the artifact.

↳ version string

Version of this package.

↳ tags array

Tags attached to this package.

↳ create_time Google\Protobuf\Timestamp

Output only. Time the package was created.

↳ update_time Google\Protobuf\Timestamp

Output only. Time the package was updated.

getName

Required. registry_location, project_id, repository_name and npm_package forms a unique package For example, "projects/test-project/locations/us-west4/repositories/test-repo/npmPackages/ npm_test:1.0.0", where "us-west4" is the registry_location, "test-project" is the project_id, "test-repo" is the repository_name and npm_test:1.0.0" is the npm package.

Returns
TypeDescription
string

setName

Required. registry_location, project_id, repository_name and npm_package forms a unique package For example, "projects/test-project/locations/us-west4/repositories/test-repo/npmPackages/ npm_test:1.0.0", where "us-west4" is the registry_location, "test-project" is the project_id, "test-repo" is the repository_name and npm_test:1.0.0" is the npm package.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPackageName

Package for the artifact.

Returns
TypeDescription
string

setPackageName

Package for the artifact.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getVersion

Version of this package.

Returns
TypeDescription
string

setVersion

Version of this package.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTags

Tags attached to this package.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setTags

Tags attached to this package.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getCreateTime

Output only. Time the package was created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Time the package was created.

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

getUpdateTime

Output only. Time the package was updated.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. Time the package was updated.

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