Google Cloud Build V1 Client - Class NpmPackage (0.11.0)

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

Npm package to upload to Artifact Registry upon successful completion of all build steps.

Generated from protobuf message google.devtools.cloudbuild.v1.Artifacts.NpmPackage

Namespace

Google \ Cloud \ Build \ V1 \ Artifacts

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ repository string

Artifact Registry repository, in the form "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY" Npm package in the workspace specified by path will be zipped and uploaded to Artifact Registry with this location as a prefix.

↳ package_path string

Path to the package.json. e.g. workspace/path/to/package

getRepository

Artifact Registry repository, in the form "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY" Npm package in the workspace specified by path will be zipped and uploaded to Artifact Registry with this location as a prefix.

Returns
TypeDescription
string

setRepository

Artifact Registry repository, in the form "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY" Npm package in the workspace specified by path will be zipped and uploaded to Artifact Registry with this location as a prefix.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPackagePath

Path to the package.json.

e.g. workspace/path/to/package

Returns
TypeDescription
string

setPackagePath

Path to the package.json.

e.g. workspace/path/to/package

Parameter
NameDescription
var string
Returns
TypeDescription
$this