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

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

The credentials to access the remote repository.

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

Namespace

Google \ Cloud \ ArtifactRegistry \ V1 \ RemoteRepositoryConfig

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ username_password_credentials Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\UpstreamCredentials\UsernamePasswordCredentials

Use username and password to access the remote repository.

getUsernamePasswordCredentials

Use username and password to access the remote repository.

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

hasUsernamePasswordCredentials

setUsernamePasswordCredentials

Use username and password to access the remote repository.

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

getCredentials

Returns
TypeDescription
string