Google Cloud Artifact Registry V1 Client - Class PythonRepository (1.1.0)

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

Configuration for a Python remote repository.

Generated from protobuf message google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository

Namespace

Google \ Cloud \ ArtifactRegistry \ V1 \ RemoteRepositoryConfig

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ public_repository int

One of the publicly available Python repositories supported by Artifact Registry.

↳ custom_repository Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\PythonRepository\CustomRepository

Customer-specified remote repository.

getPublicRepository

One of the publicly available Python repositories supported by Artifact Registry.

Returns
Type Description
int

hasPublicRepository

setPublicRepository

One of the publicly available Python repositories supported by Artifact Registry.

Parameter
Name Description
var int
Returns
Type Description
$this

getCustomRepository

Customer-specified remote repository.

Returns
Type Description
Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\PythonRepository\CustomRepository|null

hasCustomRepository

setCustomRepository

Customer-specified remote repository.

Parameter
Name Description
var Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\PythonRepository\CustomRepository
Returns
Type Description
$this

getUpstream

Returns
Type Description
string