Reference documentation and code samples for the Google Cloud Developer Connect V1 Client class BasicAuthentication.
Basic authentication with username and password.
Generated from protobuf message google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BasicAuthentication
Namespace
Google \ Cloud \ DeveloperConnect \ V1 \ GenericHTTPEndpointConfigMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ password_secret_version |
string
The password SecretManager secret version to authenticate as. |
↳ username |
string
Required. The username to authenticate as. |
getPasswordSecretVersion
The password SecretManager secret version to authenticate as.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasPasswordSecretVersion
setPasswordSecretVersion
The password SecretManager secret version to authenticate as.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getUsername
Required. The username to authenticate as.
| Returns | |
|---|---|
| Type | Description |
string |
|
setUsername
Required. The username to authenticate as.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPassword
| Returns | |
|---|---|
| Type | Description |
string |
|