Google Cloud Build V1 Client - Class PythonPackage (0.14.0)

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

Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository.

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

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-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix.

↳ paths array

Path globs used to match files in the build's workspace. For Python/ Twine, this is usually dist/*, and sometimes additionally an .asc file.

getRepository

Artifact Registry repository, in the form "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix.

Returns
TypeDescription
string

setRepository

Artifact Registry repository, in the form "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPaths

Path globs used to match files in the build's workspace. For Python/ Twine, this is usually dist/*, and sometimes additionally an .asc file.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setPaths

Path globs used to match files in the build's workspace. For Python/ Twine, this is usually dist/*, and sometimes additionally an .asc file.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this