# Google Cloud Build V2 Client - Class BitbucketCloudConfig (1.1.2)

1.1.2 (latest) 1.1.1 1.0.4 0.16.3 0.15.0 0.14.0 0.13.2 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.3 0.6.1 0.5.1 0.4.0 0.3.8 Reference documentation and code samples for the Google Cloud Build V2 Client class BitbucketCloudConfig.

Configuration for connections to Bitbucket Cloud.

Generated from protobuf message `google.devtools.cloudbuild.v2.BitbucketCloudConfig`

## Namespace

Google \\ Cloud \\ Build \\ V2

## Methods

### __construct

Constructor.

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

### getWorkspace

Required. The Bitbucket Cloud Workspace ID to be connected to Google Cloud
Platform.

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

### setWorkspace

Required. The Bitbucket Cloud Workspace ID to be connected to Google Cloud
Platform.

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

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

### getWebhookSecretSecretVersion

Required. SecretManager resource containing the webhook secret used to
verify webhook events, formatted as `projects/*/secrets/*/versions/*`.

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

### setWebhookSecretSecretVersion

Required. SecretManager resource containing the webhook secret used to
verify webhook events, formatted as `projects/*/secrets/*/versions/*`.

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

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

### getReadAuthorizerCredential

Required. An access token with the `repository` access. It can be either a
workspace, project or repository access token. It's recommended to use a
system account to generate the credentials.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-build/latest/V2.UserCredential|null` |   |

### hasReadAuthorizerCredential

### clearReadAuthorizerCredential

### setReadAuthorizerCredential

Required. An access token with the `repository` access. It can be either a
workspace, project or repository access token. It's recommended to use a
system account to generate the credentials.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-build/latest/V2.UserCredential` |

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

### getAuthorizerCredential

Required. An access token with the `webhook`, `repository`,
`repository:admin` and `pullrequest` scope access. It can be either a
workspace, project or repository access token. It's recommended to use a
system account to generate these credentials.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-build/latest/V2.UserCredential|null` |   |

### hasAuthorizerCredential

### clearAuthorizerCredential

### setAuthorizerCredential

Required. An access token with the `webhook`, `repository`,
`repository:admin` and `pullrequest` scope access. It can be either a
workspace, project or repository access token. It's recommended to use a
system account to generate these credentials.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-build/latest/V2.UserCredential` |

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