# Infrastructure Manager V1 API - Class Google::Cloud::Config::V1::GitSource (v0.2.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.2.0 (latest)](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-config-v1/latest/Google-Cloud-Config-V1-GitSource)
- [0.1.0](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-config-v1/0.1.0/Google-Cloud-Config-V1-GitSource)
Reference documentation and code samples for the Infrastructure Manager V1 API class Google::Cloud::Config::V1::GitSource.

A set of files in a Git repository.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #directory

    def directory() -> ::String

**Returns**

- (::String) --- Optional. Subdirectory inside the repository. Example: 'staging/my-package'

### #directory=

    def directory=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Subdirectory inside the repository. Example: 'staging/my-package'
**Returns**

- (::String) --- Optional. Subdirectory inside the repository. Example: 'staging/my-package'

### #ref

    def ref() -> ::String

**Returns**

- (::String) --- Optional. Git reference (e.g. branch or tag).

### #ref=

    def ref=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Git reference (e.g. branch or tag).
**Returns**

- (::String) --- Optional. Git reference (e.g. branch or tag).

### #repo

    def repo() -> ::String

**Returns**

- (::String) --- Optional. Repository URL. Example: 'https://github.com/kubernetes/examples.git'

### #repo=

    def repo=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Repository URL. Example: 'https://github.com/kubernetes/examples.git'
**Returns**

- (::String) --- Optional. Repository URL. Example: 'https://github.com/kubernetes/examples.git'