# Google Cloud Build V2 Client - Class BitbucketDataCenterConfig (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 BitbucketDataCenterConfig.

Configuration for connections to Bitbucket Data Center.

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

## Namespace

Google \\ Cloud \\ Build \\ V2

## Methods

### __construct

Constructor.

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

### getHostUri

Required. The URI of the Bitbucket Data Center instance or cluster this
connection is for.

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

### setHostUri

Required. The URI of the Bitbucket Data Center instance or cluster this
connection is for.

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

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

### getWebhookSecretSecretVersion

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

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

### setWebhookSecretSecretVersion

Required. Immutable. 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. A http access token with the `REPO_READ` access.

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

### hasReadAuthorizerCredential

### clearReadAuthorizerCredential

### setReadAuthorizerCredential

Required. A http access token with the `REPO_READ` access.

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

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

### getAuthorizerCredential

Required. A http access token with the `REPO_ADMIN` scope access.

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

### hasAuthorizerCredential

### clearAuthorizerCredential

### setAuthorizerCredential

Required. A http access token with the `REPO_ADMIN` scope access.

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

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

### getServiceDirectoryConfig

Optional. Configuration for using Service Directory to privately connect to
a Bitbucket Data Center. This should only be set if the Bitbucket Data
Center is hosted on-premises and not reachable by public internet. If this
field is left empty, calls to the Bitbucket Data Center will be made over
the public internet.

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

### hasServiceDirectoryConfig

### clearServiceDirectoryConfig

### setServiceDirectoryConfig

Optional. Configuration for using Service Directory to privately connect to
a Bitbucket Data Center. This should only be set if the Bitbucket Data
Center is hosted on-premises and not reachable by public internet. If this
field is left empty, calls to the Bitbucket Data Center will be made over
the public internet.

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

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

### getSslCa

Optional. SSL certificate to use for requests to the Bitbucket Data Center.

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

### setSslCa

Optional. SSL certificate to use for requests to the Bitbucket Data Center.

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

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

### getServerVersion

Output only. Version of the Bitbucket Data Center running on the
`host_uri`.

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

### setServerVersion

Output only. Version of the Bitbucket Data Center running on the
`host_uri`.

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

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