Google Cloud Artifact Registry V1 Client - Class YumRepository (0.5.1)

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

Configuration for a Yum remote repository.

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

Namespace

Google \ Cloud \ ArtifactRegistry \ V1 \ RemoteRepositoryConfig

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ public_repository Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\YumRepository\PublicRepository

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

getPublicRepository

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

Returns
TypeDescription
Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\YumRepository\PublicRepository|null

hasPublicRepository

setPublicRepository

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

Parameter
NameDescription
var Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\YumRepository\PublicRepository
Returns
TypeDescription
$this

getUpstream

Returns
TypeDescription
string