# Cloud Functions V2 API - Class Google::Cloud::Functions::V2::Source (v1.5.1)

1.5.1 (latest) 1.5.0 1.4.0 1.3.1 1.2.0 1.1.0 1.0.2 0.10.0 0.9.0 0.8.1 0.7.0 0.6.2 0.5.0 0.4.1 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Cloud Functions V2 API class Google::Cloud::Functions::V2::Source.

The location of the function source code.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #git_uri

    def git_uri() -> ::String

**Returns**

- (::String) --- If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https://github.com/

### #git_uri=

    def git_uri=(value) -> ::String

**Parameter**

- **value** (::String) --- If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https://github.com/
**Returns**

- (::String) --- If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https://github.com/

### #repo_source

    def repo_source() -> ::Google::Cloud::Functions::V2::RepoSource

**Returns**

- ([::Google::Cloud::Functions::V2::RepoSource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v2/latest/Google-Cloud-Functions-V2-RepoSource)) --- If provided, get the source from this location in a Cloud Source Repository.


  Note: The following fields are mutually exclusive: `repo_source`, `storage_source`, `git_uri`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #repo_source=

    def repo_source=(value) -> ::Google::Cloud::Functions::V2::RepoSource

**Parameter**

- **value** ([::Google::Cloud::Functions::V2::RepoSource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v2/latest/Google-Cloud-Functions-V2-RepoSource)) --- If provided, get the source from this location in a Cloud Source Repository.


  Note: The following fields are mutually exclusive: `repo_source`, `storage_source`, `git_uri`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Functions::V2::RepoSource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v2/latest/Google-Cloud-Functions-V2-RepoSource)) --- If provided, get the source from this location in a Cloud Source Repository.


  Note: The following fields are mutually exclusive: `repo_source`, `storage_source`, `git_uri`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #storage_source

    def storage_source() -> ::Google::Cloud::Functions::V2::StorageSource

**Returns**

- ([::Google::Cloud::Functions::V2::StorageSource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v2/latest/Google-Cloud-Functions-V2-StorageSource)) --- If provided, get the source from this location in Google Cloud Storage.


  Note: The following fields are mutually exclusive: `storage_source`, `repo_source`, `git_uri`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #storage_source=

    def storage_source=(value) -> ::Google::Cloud::Functions::V2::StorageSource

**Parameter**

- **value** ([::Google::Cloud::Functions::V2::StorageSource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v2/latest/Google-Cloud-Functions-V2-StorageSource)) --- If provided, get the source from this location in Google Cloud Storage.


  Note: The following fields are mutually exclusive: `storage_source`, `repo_source`, `git_uri`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Functions::V2::StorageSource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v2/latest/Google-Cloud-Functions-V2-StorageSource)) --- If provided, get the source from this location in Google Cloud Storage.


  Note: The following fields are mutually exclusive: `storage_source`, `repo_source`, `git_uri`. If a field in that set is populated, all other fields in the set will automatically be cleared.