Google Cloud Artifact Registry V1 Client - Class RemoteRepositoryConfig (1.1.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
Name Description
data array

Optional. Data for populating the Message object.

↳ docker_repository RemoteRepositoryConfig\DockerRepository

Specific settings for a Docker remote repository.

↳ maven_repository RemoteRepositoryConfig\MavenRepository

Specific settings for a Maven remote repository.

↳ npm_repository RemoteRepositoryConfig\NpmRepository

Specific settings for an Npm remote repository.

↳ python_repository RemoteRepositoryConfig\PythonRepository

Specific settings for a Python remote repository.

↳ apt_repository RemoteRepositoryConfig\AptRepository

Specific settings for an Apt remote repository.

↳ yum_repository RemoteRepositoryConfig\YumRepository

Specific settings for a Yum remote repository.

↳ common_repository RemoteRepositoryConfig\CommonRemoteRepository

Common remote repository settings. Used as the remote repository upstream URL.

↳ description string

The description of the remote source.

↳ upstream_credentials RemoteRepositoryConfig\UpstreamCredentials

Optional. The credentials used to access the remote repository.

↳ disable_upstream_validation bool

Input only. A create/update remote repo option to avoid making a HEAD/GET request to validate a remote repo and any supplied upstream credentials.

getDockerRepository

Specific settings for a Docker remote repository.

Returns
Type Description
RemoteRepositoryConfig\DockerRepository|null

hasDockerRepository

setDockerRepository

Specific settings for a Docker remote repository.

Parameter
Name Description
var RemoteRepositoryConfig\DockerRepository
Returns
Type Description
$this

getMavenRepository

Specific settings for a Maven remote repository.

Returns
Type Description
RemoteRepositoryConfig\MavenRepository|null

hasMavenRepository

setMavenRepository

Specific settings for a Maven remote repository.

Parameter
Name Description
var RemoteRepositoryConfig\MavenRepository
Returns
Type Description
$this

getNpmRepository

Specific settings for an Npm remote repository.

Returns
Type Description
RemoteRepositoryConfig\NpmRepository|null

hasNpmRepository

setNpmRepository

Specific settings for an Npm remote repository.

Parameter
Name Description
var RemoteRepositoryConfig\NpmRepository
Returns
Type Description
$this

getPythonRepository

Specific settings for a Python remote repository.

Returns
Type Description
RemoteRepositoryConfig\PythonRepository|null

hasPythonRepository

setPythonRepository

Specific settings for a Python remote repository.

Parameter
Name Description
var RemoteRepositoryConfig\PythonRepository
Returns
Type Description
$this

getAptRepository

Specific settings for an Apt remote repository.

Returns
Type Description
RemoteRepositoryConfig\AptRepository|null

hasAptRepository

setAptRepository

Specific settings for an Apt remote repository.

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

getYumRepository

Specific settings for a Yum remote repository.

Returns
Type Description
RemoteRepositoryConfig\YumRepository|null

hasYumRepository

setYumRepository

Specific settings for a Yum remote repository.

Parameter
Name Description
var RemoteRepositoryConfig\YumRepository
Returns
Type Description
$this

getCommonRepository

Common remote repository settings.

Used as the remote repository upstream URL.

Returns
Type Description
RemoteRepositoryConfig\CommonRemoteRepository|null

hasCommonRepository

setCommonRepository

Common remote repository settings.

Used as the remote repository upstream URL.

Parameter
Name Description
var RemoteRepositoryConfig\CommonRemoteRepository
Returns
Type Description
$this

getDescription

The description of the remote source.

Returns
Type Description
string

setDescription

The description of the remote source.

Parameter
Name Description
var string
Returns
Type Description
$this

getUpstreamCredentials

Optional. The credentials used to access the remote repository.

Returns
Type Description
RemoteRepositoryConfig\UpstreamCredentials|null

hasUpstreamCredentials

clearUpstreamCredentials

setUpstreamCredentials

Optional. The credentials used to access the remote repository.

Parameter
Name Description
var RemoteRepositoryConfig\UpstreamCredentials
Returns
Type Description
$this

getDisableUpstreamValidation

Input only. A create/update remote repo option to avoid making a HEAD/GET request to validate a remote repo and any supplied upstream credentials.

Returns
Type Description
bool

setDisableUpstreamValidation

Input only. A create/update remote repo option to avoid making a HEAD/GET request to validate a remote repo and any supplied upstream credentials.

Parameter
Name Description
var bool
Returns
Type Description
$this

getRemoteSource

Returns
Type Description
string