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 \ V2Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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 |
↳ 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 | |
---|---|
Type | Description |
Google\Cloud\Build\V2\Connection|null |
hasConnection
clearConnection
setConnection
Required. The Connection to update.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Build\V2\Connection
|
Returns | |
---|---|
Type | Description |
$this |
getUpdateMask
The list of fields to be updated.
Returns | |
---|---|
Type | Description |
Google\Protobuf\FieldMask|null |
hasUpdateMask
clearUpdateMask
setUpdateMask
The list of fields to be updated.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\FieldMask
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
static::build
Parameters | |
---|---|
Name | Description |
connection |
Google\Cloud\Build\V2\Connection
Required. The Connection to update. |
updateMask |
Google\Protobuf\FieldMask
The list of fields to be updated. |
Returns | |
---|---|
Type | Description |
Google\Cloud\Build\V2\UpdateConnectionRequest |