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
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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 |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$this |