Reference documentation and code samples for the Google Cloud Developer Connect V1 Client class BitbucketDataCenterConfig.
Configuration for connections to an instance of Bitbucket Data Center.
Generated from protobuf message google.cloud.developerconnect.v1.BitbucketDataCenterConfig
Namespace
Google \ Cloud \ DeveloperConnect \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ host_uri |
string
Required. The URI of the Bitbucket Data Center host this connection is for. |
↳ webhook_secret_secret_version |
string
Required. Immutable. SecretManager resource containing the webhook secret used to verify webhook events, formatted as |
↳ read_authorizer_credential |
UserCredential
Required. An http access token with the minimum |
↳ authorizer_credential |
UserCredential
Required. An http access token with the minimum |
↳ service_directory_config |
ServiceDirectoryConfig
Optional. Configuration for using Service Directory to privately connect to a Bitbucket Data Center instance. 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. |
↳ ssl_ca_certificate |
string
Optional. SSL certificate authority to trust when making requests to Bitbucket Data Center. |
↳ server_version |
string
Output only. Version of the Bitbucket Data Center server running on the |
getHostUri
Required. The URI of the Bitbucket Data Center host this connection is for.
| Returns | |
|---|---|
| Type | Description |
string |
|
setHostUri
Required. The URI of the Bitbucket Data Center host 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/*. This is used to validate webhooks.
| Returns | |
|---|---|
| Type | Description |
string |
|
setWebhookSecretSecretVersion
Required. Immutable. SecretManager resource containing the webhook secret
used to verify webhook events, formatted as
projects/*/secrets/*/versions/*. This is used to validate webhooks.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getReadAuthorizerCredential
Required. An http access token with the minimum Repository read access.
It's recommended to use a system account to generate the credentials.
| Returns | |
|---|---|
| Type | Description |
UserCredential|null |
|
hasReadAuthorizerCredential
clearReadAuthorizerCredential
setReadAuthorizerCredential
Required. An http access token with the minimum Repository read access.
It's recommended to use a system account to generate the credentials.
| Parameter | |
|---|---|
| Name | Description |
var |
UserCredential
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAuthorizerCredential
Required. An http access token with the minimum Repository admin scope
access. This is needed to create webhooks. It's recommended to use a system
account to generate these credentials.
| Returns | |
|---|---|
| Type | Description |
UserCredential|null |
|
hasAuthorizerCredential
clearAuthorizerCredential
setAuthorizerCredential
Required. An http access token with the minimum Repository admin scope
access. This is needed to create webhooks. It's recommended to use a system
account to generate these credentials.
| Parameter | |
|---|---|
| Name | Description |
var |
UserCredential
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getServiceDirectoryConfig
Optional. Configuration for using Service Directory to privately connect to a Bitbucket Data Center instance. 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 |
ServiceDirectoryConfig|null |
|
hasServiceDirectoryConfig
clearServiceDirectoryConfig
setServiceDirectoryConfig
Optional. Configuration for using Service Directory to privately connect to a Bitbucket Data Center instance. 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 |
ServiceDirectoryConfig
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSslCaCertificate
Optional. SSL certificate authority to trust when making requests to Bitbucket Data Center.
| Returns | |
|---|---|
| Type | Description |
string |
|
setSslCaCertificate
Optional. SSL certificate authority to trust when making requests to Bitbucket Data Center.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getServerVersion
Output only. Version of the Bitbucket Data Center server running on the
host_uri.
| Returns | |
|---|---|
| Type | Description |
string |
|
setServerVersion
Output only. Version of the Bitbucket Data Center server running on the
host_uri.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|