# Cloud Build V2 API - Class Google::Cloud::Build::V2::UpdateConnectionRequest (v0.14.0)

0.14.0 (latest) 0.13.0 0.12.1 0.11.0 0.10.0 0.9.1 0.8.0 0.7.2 0.6.0 0.5.2 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Cloud Build V2 API class Google::Cloud::Build::V2::UpdateConnectionRequest.

Message for updating a Connection.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #allow_missing

    def allow_missing() -> ::Boolean

**Returns**

- (::Boolean) --- 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).

### #allow_missing=

    def allow_missing=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- 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**

- (::Boolean) --- 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).

### #connection

    def connection() -> ::Google::Cloud::Build::V2::Connection

**Returns**

- ([::Google::Cloud::Build::V2::Connection](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-build-v2/latest/Google-Cloud-Build-V2-Connection)) --- Required. The Connection to update.

### #connection=

    def connection=(value) -> ::Google::Cloud::Build::V2::Connection

**Parameter**

- **value** ([::Google::Cloud::Build::V2::Connection](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-build-v2/latest/Google-Cloud-Build-V2-Connection)) --- Required. The Connection to update.
**Returns**

- ([::Google::Cloud::Build::V2::Connection](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-build-v2/latest/Google-Cloud-Build-V2-Connection)) --- Required. The Connection to update.

### #etag

    def etag() -> ::String

**Returns**

- (::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.

### #etag=

    def etag=(value) -> ::String

**Parameter**

- **value** (::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.
**Returns**

- (::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.

### #update_mask

    def update_mask() -> ::Google::Protobuf::FieldMask

**Returns**

- ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-build-v2/latest/Google-Protobuf-FieldMask)) --- The list of fields to be updated.

### #update_mask=

    def update_mask=(value) -> ::Google::Protobuf::FieldMask

**Parameter**

- **value** ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-build-v2/latest/Google-Protobuf-FieldMask)) --- The list of fields to be updated.
**Returns**

- ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-build-v2/latest/Google-Protobuf-FieldMask)) --- The list of fields to be updated.