Google Cloud Api Hub V1 Client - Class UserPasswordConfig (0.3.0)

Reference documentation and code samples for the Google Cloud Api Hub V1 Client class UserPasswordConfig.

Parameters to support Username and Password Authentication.

Generated from protobuf message google.cloud.apihub.v1.AuthConfig.UserPasswordConfig

Namespace

Google \ Cloud \ ApiHub \ V1 \ AuthConfig

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ username string

Required. Username.

↳ password Google\Cloud\ApiHub\V1\Secret

Required. Secret version reference containing the password. The secretmanager.versions.access permission should be granted to the service account accessing the secret.

getUsername

Required. Username.

Returns
Type Description
string

setUsername

Required. Username.

Parameter
Name Description
var string
Returns
Type Description
$this

getPassword

Required. Secret version reference containing the password.

The secretmanager.versions.access permission should be granted to the service account accessing the secret.

Returns
Type Description
Google\Cloud\ApiHub\V1\Secret|null

hasPassword

clearPassword

setPassword

Required. Secret version reference containing the password.

The secretmanager.versions.access permission should be granted to the service account accessing the secret.

Parameter
Name Description
var Google\Cloud\ApiHub\V1\Secret
Returns
Type Description
$this