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

Message describing Connection object

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

## Namespace

Google \\ Cloud \\ DeveloperConnect \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ github_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.GitHubConfig` Configuration for connections to github.com. |
| `↳ github_enterprise_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.GitHubEnterpriseConfig` Configuration for connections to an instance of GitHub Enterprise. |
| `↳ gitlab_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.GitLabConfig` Configuration for connections to gitlab.com. |
| `↳ gitlab_enterprise_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.GitLabEnterpriseConfig` Configuration for connections to an instance of GitLab Enterprise. |
| `↳ bitbucket_data_center_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.BitbucketDataCenterConfig` Configuration for connections to an instance of Bitbucket Data Center. |
| `↳ bitbucket_cloud_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.BitbucketCloudConfig` Configuration for connections to an instance of Bitbucket Clouds. |
| `↳ secure_source_manager_instance_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.SecureSourceManagerInstanceConfig` Configuration for connections to an instance of Secure Source Manager. |
| `↳ http_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.GenericHTTPEndpointConfig` Optional. Configuration for connections to an HTTP service provider. |
| `↳ name` | `string` Identifier. The resource name of the connection, in the format `projects/{project}/locations/{location}/connections/{connection_id}`. |
| `↳ create_time` | `Google\Protobuf\Timestamp` Output only. \[Output only\] Create timestamp |
| `↳ update_time` | `Google\Protobuf\Timestamp` Output only. \[Output only\] Update timestamp |
| `↳ delete_time` | `Google\Protobuf\Timestamp` Output only. \[Output only\] Delete timestamp |
| `↳ labels` | `array|Google\Protobuf\Internal\MapField` Optional. Labels as key value pairs |
| `↳ installation_state` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.InstallationState` Output only. Installation state of the Connection. |
| `↳ disabled` | `bool` Optional. If disabled is set to true, functionality is disabled for this connection. Repository based API methods and webhooks processing for repositories in this connection will be disabled. |
| `↳ reconciling` | `bool` Output only. Set to true when the connection is being set up or updated in the background. |
| `↳ annotations` | `array|Google\Protobuf\Internal\MapField` Optional. Allows clients to store small amounts of arbitrary data. |
| `↳ etag` | `string` Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. |
| `↳ uid` | `string` Output only. A system-assigned unique identifier for the Connection. |
| `↳ crypto_key_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.CryptoKeyConfig` Optional. The crypto key configuration. This field is used by the Customer-Managed Encryption Keys (CMEK) feature. |
| `↳ git_proxy_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.GitProxyConfig` Optional. Configuration for the git proxy feature. Enabling the git proxy allows clients to perform git operations on the repositories linked in the connection. |

### getGithubConfig

Configuration for connections to github.com.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.GitHubConfig|null` |   |

### hasGithubConfig

### setGithubConfig

Configuration for connections to github.com.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.GitHubConfig` |

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

### getGithubEnterpriseConfig

Configuration for connections to an instance of GitHub Enterprise.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.GitHubEnterpriseConfig|null` |   |

### hasGithubEnterpriseConfig

### setGithubEnterpriseConfig

Configuration for connections to an instance of GitHub Enterprise.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.GitHubEnterpriseConfig` |

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

### getGitlabConfig

Configuration for connections to gitlab.com.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.GitLabConfig|null` |   |

### hasGitlabConfig

### setGitlabConfig

Configuration for connections to gitlab.com.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.GitLabConfig` |

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

### getGitlabEnterpriseConfig

Configuration for connections to an instance of GitLab Enterprise.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.GitLabEnterpriseConfig|null` |   |

### hasGitlabEnterpriseConfig

### setGitlabEnterpriseConfig

Configuration for connections to an instance of GitLab Enterprise.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.GitLabEnterpriseConfig` |

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

### getBitbucketDataCenterConfig

Configuration for connections to an instance of Bitbucket Data Center.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.BitbucketDataCenterConfig|null` |   |

### hasBitbucketDataCenterConfig

### setBitbucketDataCenterConfig

Configuration for connections to an instance of Bitbucket Data Center.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.BitbucketDataCenterConfig` |

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

### getBitbucketCloudConfig

Configuration for connections to an instance of Bitbucket Clouds.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.BitbucketCloudConfig|null` |   |

### hasBitbucketCloudConfig

### setBitbucketCloudConfig

Configuration for connections to an instance of Bitbucket Clouds.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.BitbucketCloudConfig` |

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

### getSecureSourceManagerInstanceConfig

Configuration for connections to an instance of Secure Source Manager.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.SecureSourceManagerInstanceConfig|null` |   |

### hasSecureSourceManagerInstanceConfig

### setSecureSourceManagerInstanceConfig

Configuration for connections to an instance of Secure Source Manager.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.SecureSourceManagerInstanceConfig` |

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

### getHttpConfig

Optional. Configuration for connections to an HTTP service provider.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.GenericHTTPEndpointConfig|null` |   |

### hasHttpConfig

### setHttpConfig

Optional. Configuration for connections to an HTTP service provider.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.GenericHTTPEndpointConfig` |

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

### getName

Identifier. The resource name of the connection, in the format
`projects/{project}/locations/{location}/connections/{connection_id}`.

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

### setName

Identifier. The resource name of the connection, in the format
`projects/{project}/locations/{location}/connections/{connection_id}`.

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

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

### getCreateTime

Output only. \[Output only\] Create timestamp

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. \[Output only\] Create timestamp

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getUpdateTime

Output only. \[Output only\] Update timestamp

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. \[Output only\] Update timestamp

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getDeleteTime

Output only. \[Output only\] Delete timestamp

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasDeleteTime

### clearDeleteTime

### setDeleteTime

Output only. \[Output only\] Delete timestamp

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getLabels

Optional. Labels as key value pairs

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Internal\MapField` |   |

### setLabels

Optional. Labels as key value pairs

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|Google\Protobuf\Internal\MapField` |

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

### getInstallationState

Output only. Installation state of the Connection.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.InstallationState|null` |   |

### hasInstallationState

### clearInstallationState

### setInstallationState

Output only. Installation state of the Connection.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.InstallationState` |

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

### getDisabled

Optional. If disabled is set to true, functionality is disabled for this
connection. Repository based API methods and webhooks processing for
repositories in this connection will be disabled.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setDisabled

Optional. If disabled is set to true, functionality is disabled for this
connection. Repository based API methods and webhooks processing for
repositories in this connection will be disabled.

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

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

### getReconciling

Output only. Set to true when the connection is being set up or updated in
the background.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setReconciling

Output only. Set to true when the connection is being set up or updated in
the background.

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

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

### getAnnotations

Optional. Allows clients to store small amounts of arbitrary data.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Internal\MapField` |   |

### setAnnotations

Optional. Allows clients to store small amounts of arbitrary data.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|Google\Protobuf\Internal\MapField` |

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

### getEtag

Optional. This checksum is computed by the server based on the value of
other fields, and may be sent on update and delete requests to ensure the
client has an up-to-date value before proceeding.

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

### setEtag

Optional. This checksum is computed by the server based on the value of
other fields, and may be sent on update and delete requests to ensure the
client has an up-to-date value before proceeding.

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

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

### getUid

Output only. A system-assigned unique identifier for the Connection.

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

### setUid

Output only. A system-assigned unique identifier for the Connection.

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

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

### getCryptoKeyConfig

Optional. The crypto key configuration. This field is used by the
Customer-Managed Encryption Keys (CMEK) feature.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.CryptoKeyConfig|null` |   |

### hasCryptoKeyConfig

### clearCryptoKeyConfig

### setCryptoKeyConfig

Optional. The crypto key configuration. This field is used by the
Customer-Managed Encryption Keys (CMEK) feature.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.CryptoKeyConfig` |

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

### getGitProxyConfig

Optional. Configuration for the git proxy feature. Enabling the git proxy
allows clients to perform git operations on the repositories linked in the
connection.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.GitProxyConfig|null` |   |

### hasGitProxyConfig

### clearGitProxyConfig

### setGitProxyConfig

Optional. Configuration for the git proxy feature. Enabling the git proxy
allows clients to perform git operations on the repositories linked in the
connection.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.GitProxyConfig` |

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

### getConnectionConfig

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