# Cloud Build V2 API - Class Google::Cloud::Build::V2::Repository (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::Repository.

A repository associated to a parent connection.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #annotations

    def annotations() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Allows clients to store small amounts of arbitrary data.

### #annotations=

    def annotations=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Allows clients to store small amounts of arbitrary data.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Allows clients to store small amounts of arbitrary data.

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-build-v2/latest/Google-Protobuf-Timestamp)) --- Output only. Server assigned timestamp for when the connection was created.

### #etag

    def etag() -> ::String

**Returns**

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

### #etag=

    def etag=(value) -> ::String

**Parameter**

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

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

### #name

    def name() -> ::String

**Returns**

- (::String) --- Immutable. Resource name of the repository, in the format `projects/*/locations/*/connections/*/repositories/*`.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Immutable. Resource name of the repository, in the format `projects/*/locations/*/connections/*/repositories/*`.
**Returns**

- (::String) --- Immutable. Resource name of the repository, in the format `projects/*/locations/*/connections/*/repositories/*`.

### #remote_uri

    def remote_uri() -> ::String

**Returns**

- (::String) --- Required. Git Clone HTTPS URI.

### #remote_uri=

    def remote_uri=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Git Clone HTTPS URI.
**Returns**

- (::String) --- Required. Git Clone HTTPS URI.

### #update_time

    def update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-build-v2/latest/Google-Protobuf-Timestamp)) --- Output only. Server assigned timestamp for when the connection was updated.

### #webhook_id

    def webhook_id() -> ::String

**Returns**

- (::String) --- Output only. External ID of the webhook created for the repository.