Google Cloud Api Hub V1 Client - Class UserPasswordConfig (0.4.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

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
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: