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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThis documentation details the \u003ccode\u003eConnection\u003c/code\u003e class within the Cloud Build v2 API, specifically designed for integrating with Source Code Management (SCM) systems like GitHub, Bitbucket, and GitLab.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eConnection\u003c/code\u003e class supports various configurations, including \u003ccode\u003eBitbucketCloudConfig\u003c/code\u003e, \u003ccode\u003eBitbucketDataCenterConfig\u003c/code\u003e, \u003ccode\u003eGithubConfig\u003c/code\u003e, \u003ccode\u003eGithubEnterpriseConfig\u003c/code\u003e, and \u003ccode\u003eGitlabConfig\u003c/code\u003e, enabling tailored setups for different SCM environments.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this API is 1.4.0, with prior versions 1.3.0, 1.2.0, 1.1.0 and 1.0.0 also available for reference, showing the history of updates and development of this particular API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eConnection\u003c/code\u003e class includes output-only properties like \u003ccode\u003eCreateTime\u003c/code\u003e, \u003ccode\u003eInstallationState\u003c/code\u003e, \u003ccode\u003eReconciling\u003c/code\u003e, and \u003ccode\u003eUpdateTime\u003c/code\u003e to track the connection's status, setup progress, and when it was last modified.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eConnection\u003c/code\u003e class implements multiple interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and the Connection can be disabled using the \u003ccode\u003eDisabled\u003c/code\u003e property, which halts API interactions and webhook processing for the connection.\u003c/p\u003e\n"]]],[],null,["# Cloud Build v2 API - Class Connection (1.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.Connection)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.3.0/Google.Cloud.CloudBuild.V2.Connection)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.2.0/Google.Cloud.CloudBuild.V2.Connection)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.1.0/Google.Cloud.CloudBuild.V2.Connection)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.0.0/Google.Cloud.CloudBuild.V2.Connection) \n\n public sealed class Connection : IMessage\u003cConnection\u003e, IEquatable\u003cConnection\u003e, IDeepCloneable\u003cConnection\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Build v2 API class Connection.\n\nA connection to a SCM like GitHub, GitHub Enterprise, Bitbucket Data Center,\nBitbucket Cloud or GitLab. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Connection \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Connection](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.Connection), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Connection](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.Connection), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Connection](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.Connection), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.CloudBuild.V2](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.CloudBuild.V2.dll\n\nConstructors\n------------\n\n### Connection()\n\n public Connection()\n\n### Connection(Connection)\n\n public Connection(Connection other)\n\nProperties\n----------\n\n### Annotations\n\n public MapField\u003cstring, string\u003e Annotations { get; }\n\nAllows clients to store small amounts of arbitrary data.\n\n### BitbucketCloudConfig\n\n public BitbucketCloudConfig BitbucketCloudConfig { get; set; }\n\nConfiguration for connections to Bitbucket Cloud.\n\n### BitbucketDataCenterConfig\n\n public BitbucketDataCenterConfig BitbucketDataCenterConfig { get; set; }\n\nConfiguration for connections to Bitbucket Data Center.\n\n### ConnectionConfigCase\n\n public Connection.ConnectionConfigOneofCase ConnectionConfigCase { get; }\n\n### ConnectionName\n\n public ConnectionName ConnectionName { get; set; }\n\n[ConnectionName](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.ConnectionName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.Connection#Google_Cloud_CloudBuild_V2_Connection_Name) resource name property.\n\n### CreateTime\n\n public Timestamp CreateTime { get; set; }\n\nOutput only. Server assigned timestamp for when the connection was created.\n\n### Disabled\n\n public bool Disabled { get; set; }\n\nIf disabled is set to true, functionality is disabled for this connection.\nRepository based API methods and webhooks processing for repositories in\nthis connection will be disabled.\n\n### Etag\n\n public string Etag { get; set; }\n\nThis checksum is computed by the server based on the value of other\nfields, and may be sent on update and delete requests to ensure the\nclient has an up-to-date value before proceeding.\n\n### GithubConfig\n\n public GitHubConfig GithubConfig { get; set; }\n\nConfiguration for connections to github.com.\n\n### GithubEnterpriseConfig\n\n public GitHubEnterpriseConfig GithubEnterpriseConfig { get; set; }\n\nConfiguration for connections to an instance of GitHub Enterprise.\n\n### GitlabConfig\n\n public GitLabConfig GitlabConfig { get; set; }\n\nConfiguration for connections to gitlab.com or an instance of GitLab\nEnterprise.\n\n### InstallationState\n\n public InstallationState InstallationState { get; set; }\n\nOutput only. Installation state of the Connection.\n\n### Name\n\n public string Name { get; set; }\n\nImmutable. The resource name of the connection, in the format\n`projects/{project}/locations/{location}/connections/{connection_id}`.\n\n### Reconciling\n\n public bool Reconciling { get; set; }\n\nOutput only. Set to true when the connection is being set up or updated in\nthe background.\n\n### UpdateTime\n\n public Timestamp UpdateTime { get; set; }\n\nOutput only. Server assigned timestamp for when the connection was updated."]]