0.5.3 (latest) 0.4.4 0.3.0 0.2.1 0.1.4 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` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/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** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/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` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.Secret` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |