Google Cloud Artifact Registry V1 Client - Class AptRepository (1.1.1)

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

Configuration for an Apt remote repository.

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

Namespace

Google \ Cloud \ ArtifactRegistry \ V1 \ RemoteRepositoryConfig

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ public_repository AptRepository\PublicRepository

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

↳ custom_repository AptRepository\CustomRepository

Customer-specified remote repository.

getPublicRepository

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

Returns
Type Description
AptRepository\PublicRepository|null

hasPublicRepository

setPublicRepository

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

Parameter
Name Description
var AptRepository\PublicRepository
Returns
Type Description
$this

getCustomRepository

Customer-specified remote repository.

Returns
Type Description
AptRepository\CustomRepository|null

hasCustomRepository

setCustomRepository

Customer-specified remote repository.

Parameter
Name Description
var AptRepository\CustomRepository
Returns
Type Description
$this

getUpstream

Returns
Type Description
string