0.6.2 (latest) 0.6.1 0.5.3 0.4.1 0.3.0 0.2.2 0.1.2 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 \\ GenericHTTPEndpointConfig

## Methods

### __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` |   |