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

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

Remote repository configuration.

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

Namespace

Google \ Cloud \ ArtifactRegistry \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ docker_repository Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\DockerRepository

Specific settings for a Docker remote repository.

↳ maven_repository Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\MavenRepository

Specific settings for a Maven remote repository.

↳ npm_repository Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\NpmRepository

Specific settings for an Npm remote repository.

↳ python_repository Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\PythonRepository

Specific settings for a Python remote repository.

↳ apt_repository Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\AptRepository

Specific settings for an Apt remote repository.

↳ yum_repository Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\YumRepository

Specific settings for a Yum remote repository.

↳ description string

The description of the remote source.

↳ upstream_credentials Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\UpstreamCredentials

Optional. The credentials used to access the remote repository.

getDockerRepository

Specific settings for a Docker remote repository.

Returns
TypeDescription
Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\DockerRepository|null

hasDockerRepository

setDockerRepository

Specific settings for a Docker remote repository.

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

getMavenRepository

Specific settings for a Maven remote repository.

Returns
TypeDescription
Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\MavenRepository|null

hasMavenRepository

setMavenRepository

Specific settings for a Maven remote repository.

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

getNpmRepository

Specific settings for an Npm remote repository.

Returns
TypeDescription
Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\NpmRepository|null

hasNpmRepository

setNpmRepository

Specific settings for an Npm remote repository.

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

getPythonRepository

Specific settings for a Python remote repository.

Returns
TypeDescription
Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\PythonRepository|null

hasPythonRepository

setPythonRepository

Specific settings for a Python remote repository.

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

getAptRepository

Specific settings for an Apt remote repository.

Returns
TypeDescription
Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\AptRepository|null

hasAptRepository

setAptRepository

Specific settings for an Apt remote repository.

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

getYumRepository

Specific settings for a Yum remote repository.

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

hasYumRepository

setYumRepository

Specific settings for a Yum remote repository.

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

getDescription

The description of the remote source.

Returns
TypeDescription
string

setDescription

The description of the remote source.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getUpstreamCredentials

Optional. The credentials used to access the remote repository.

Returns
TypeDescription
Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\UpstreamCredentials|null

hasUpstreamCredentials

clearUpstreamCredentials

setUpstreamCredentials

Optional. The credentials used to access the remote repository.

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

getRemoteSource

Returns
TypeDescription
string