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 \ RemoteRepositoryConfigMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ username_password_credentials |
UpstreamCredentials\UsernamePasswordCredentials
Use username and password to access the remote repository. |
getUsernamePasswordCredentials
Use username and password to access the remote repository.
| Returns | |
|---|---|
| Type | Description |
UpstreamCredentials\UsernamePasswordCredentials|null |
|
hasUsernamePasswordCredentials
setUsernamePasswordCredentials
Use username and password to access the remote repository.
| Parameter | |
|---|---|
| Name | Description |
var |
UpstreamCredentials\UsernamePasswordCredentials
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCredentials
| Returns | |
|---|---|
| Type | Description |
string |
|