Google Cloud Build V2 Client - Class UpdateConnectionRequest (0.14.0)

Reference documentation and code samples for the Google Cloud Build V2 Client class UpdateConnectionRequest.

Message for updating a Connection.

Generated from protobuf message google.devtools.cloudbuild.v2.UpdateConnectionRequest

Namespace

Google \ Cloud \ Build \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ connection Google\Cloud\Build\V2\Connection

Required. The Connection to update.

↳ update_mask Google\Protobuf\FieldMask

The list of fields to be updated.

↳ allow_missing bool

If set to true, and the connection is not found a new connection will be created. In this situation update_mask is ignored. The creation will succeed only if the input connection has all the necessary information (e.g a github_config with both user_oauth_token and installation_id properties).

↳ etag string

The current etag of the connection. If an etag is provided and does not match the current etag of the connection, update will be blocked and an ABORTED error will be returned.

getConnection

Required. The Connection to update.

Returns
TypeDescription
Google\Cloud\Build\V2\Connection|null

hasConnection

clearConnection

setConnection

Required. The Connection to update.

Parameter
NameDescription
var Google\Cloud\Build\V2\Connection
Returns
TypeDescription
$this

getUpdateMask

The list of fields to be updated.

Returns
TypeDescription
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

The list of fields to be updated.

Parameter
NameDescription
var Google\Protobuf\FieldMask
Returns
TypeDescription
$this

getAllowMissing

If set to true, and the connection is not found a new connection will be created. In this situation update_mask is ignored.

The creation will succeed only if the input connection has all the necessary information (e.g a github_config with both user_oauth_token and installation_id properties).

Returns
TypeDescription
bool

setAllowMissing

If set to true, and the connection is not found a new connection will be created. In this situation update_mask is ignored.

The creation will succeed only if the input connection has all the necessary information (e.g a github_config with both user_oauth_token and installation_id properties).

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getEtag

The current etag of the connection.

If an etag is provided and does not match the current etag of the connection, update will be blocked and an ABORTED error will be returned.

Returns
TypeDescription
string

setEtag

The current etag of the connection.

If an etag is provided and does not match the current etag of the connection, update will be blocked and an ABORTED error will be returned.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
connection Google\Cloud\Build\V2\Connection

Required. The Connection to update.

updateMask Google\Protobuf\FieldMask

The list of fields to be updated.

Returns
TypeDescription
Google\Cloud\Build\V2\UpdateConnectionRequest