Reference documentation and code samples for the Google Cloud Build V2 Client class Connection.
A connection to a SCM like GitHub, GitHub Enterprise, Bitbucket Server or GitLab.
Generated from protobuf message google.devtools.cloudbuild.v2.Connection
Namespace
Google \ Cloud \ Build \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Immutable. The resource name of the connection, in the format projects/{project}/locations/{location}/connections/{connection_id}
.
↳ create_time
Google\Protobuf\Timestamp
Output only. Server assigned timestamp for when the connection was created.
↳ update_time
Google\Protobuf\Timestamp
Output only. Server assigned timestamp for when the connection was updated.
↳ github_config
↳ github_enterprise_config
Google\Cloud\Build\V2\GitHubEnterpriseConfig
Configuration for connections to an instance of GitHub Enterprise.
↳ gitlab_config
Google\Cloud\Build\V2\GitLabConfig
Configuration for connections to gitlab.com or an instance of GitLab Enterprise.
↳ installation_state
↳ disabled
bool
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
↳ etag
string
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.
getName
Immutable. The resource name of the connection, in the format projects/{project}/locations/{location}/connections/{connection_id}
.
string
setName
Immutable. The resource name of the connection, in the format projects/{project}/locations/{location}/connections/{connection_id}
.
var
string
$this
getCreateTime
Output only. Server assigned timestamp for when the connection was created.
hasCreateTime
clearCreateTime
setCreateTime
Output only. Server assigned timestamp for when the connection was created.
$this
getUpdateTime
Output only. Server assigned timestamp for when the connection was updated.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. Server assigned timestamp for when the connection was updated.
$this
getGithubConfig
Configuration for connections to github.com.
hasGithubConfig
setGithubConfig
Configuration for connections to github.com.
$this
getGithubEnterpriseConfig
Configuration for connections to an instance of GitHub Enterprise.
hasGithubEnterpriseConfig
setGithubEnterpriseConfig
Configuration for connections to an instance of GitHub Enterprise.
$this
getGitlabConfig
Configuration for connections to gitlab.com or an instance of GitLab Enterprise.
hasGitlabConfig
setGitlabConfig
Configuration for connections to gitlab.com or an instance of GitLab Enterprise.
$this
getInstallationState
Output only. Installation state of the Connection.
hasInstallationState
clearInstallationState
setInstallationState
Output only. Installation state of the Connection.
$this
getDisabled
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.
bool
setDisabled
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.
var
bool
$this
getReconciling
Output only. Set to true when the connection is being set up or updated in the background.
bool
setReconciling
Output only. Set to true when the connection is being set up or updated in the background.
var
bool
$this
getAnnotations
Allows clients to store small amounts of arbitrary data.
setAnnotations
Allows clients to store small amounts of arbitrary data.
$this
getEtag
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.
string
setEtag
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.
var
string
$this
getConnectionConfig
string