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 OAuthCredential.

Represents an OAuth token of the account that authorized the Connection,
and associated metadata.

Generated from protobuf message `google.cloud.developerconnect.v1.OAuthCredential`

## Namespace

Google \\ Cloud \\ DeveloperConnect \\ V1

## Methods

### __construct

Constructor.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `data` | `mixed` |

### getOauthTokenSecretVersion

Required. A SecretManager resource containing the OAuth token that
authorizes the connection. Format: `projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setOauthTokenSecretVersion

Required. A SecretManager resource containing the OAuth token that
authorizes the connection. Format: `projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getUsername

Output only. The username associated with this token.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setUsername

Output only. The username associated with this token.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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