Cloud Build v2 API - Class Connection (1.2.0)

public sealed class Connection : IMessage<Connection>, IEquatable<Connection>, IDeepCloneable<Connection>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Build v2 API class Connection.

A connection to a SCM like GitHub, GitHub Enterprise, Bitbucket Data Center, Bitbucket Cloud or GitLab.

Inheritance

object > Connection

Namespace

Google.Cloud.CloudBuild.V2

Assembly

Google.Cloud.CloudBuild.V2.dll

Constructors

Connection()

public Connection()

Connection(Connection)

public Connection(Connection other)
Parameter
NameDescription
otherConnection

Properties

Annotations

public MapField<string, string> Annotations { get; }

Allows clients to store small amounts of arbitrary data.

Property Value
TypeDescription
MapFieldstringstring

BitbucketCloudConfig

public BitbucketCloudConfig BitbucketCloudConfig { get; set; }

Configuration for connections to Bitbucket Cloud.

Property Value
TypeDescription
BitbucketCloudConfig

BitbucketDataCenterConfig

public BitbucketDataCenterConfig BitbucketDataCenterConfig { get; set; }

Configuration for connections to Bitbucket Data Center.

Property Value
TypeDescription
BitbucketDataCenterConfig

ConnectionConfigCase

public Connection.ConnectionConfigOneofCase ConnectionConfigCase { get; }
Property Value
TypeDescription
ConnectionConnectionConfigOneofCase

ConnectionName

public ConnectionName ConnectionName { get; set; }

ConnectionName-typed view over the Name resource name property.

Property Value
TypeDescription
ConnectionName

CreateTime

public Timestamp CreateTime { get; set; }

Output only. Server assigned timestamp for when the connection was created.

Property Value
TypeDescription
Timestamp

Disabled

public bool Disabled { get; set; }

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.

Property Value
TypeDescription
bool

Etag

public string Etag { get; set; }

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.

Property Value
TypeDescription
string

GithubConfig

public GitHubConfig GithubConfig { get; set; }

Configuration for connections to github.com.

Property Value
TypeDescription
GitHubConfig

GithubEnterpriseConfig

public GitHubEnterpriseConfig GithubEnterpriseConfig { get; set; }

Configuration for connections to an instance of GitHub Enterprise.

Property Value
TypeDescription
GitHubEnterpriseConfig

GitlabConfig

public GitLabConfig GitlabConfig { get; set; }

Configuration for connections to gitlab.com or an instance of GitLab Enterprise.

Property Value
TypeDescription
GitLabConfig

InstallationState

public InstallationState InstallationState { get; set; }

Output only. Installation state of the Connection.

Property Value
TypeDescription
InstallationState

Name

public string Name { get; set; }

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

Property Value
TypeDescription
string

Reconciling

public bool Reconciling { get; set; }

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

Property Value
TypeDescription
bool

UpdateTime

public Timestamp UpdateTime { get; set; }

Output only. Server assigned timestamp for when the connection was updated.

Property Value
TypeDescription
Timestamp