# Cloud Functions V1 API - Class Google::Cloud::Functions::V1::SourceRepository (v2.6.0)

2.6.0 (latest) 2.5.1 2.4.0 2.3.1 2.2.0 2.1.0 2.0.2 1.3.0 1.2.0 1.1.1 1.0.0 0.15.0 0.14.1 0.13.1 0.12.0 0.11.0 0.10.0 0.9.0 0.8.1 0.7.0 0.6.0 0.5.1 Reference documentation and code samples for the Cloud Functions V1 API class Google::Cloud::Functions::V1::SourceRepository.

Describes SourceRepository, used to represent parameters related to
source repository where a function is hosted.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #deployed_url

    def deployed_url() -> ::String

**Returns**

- (::String) --- Output only. The URL pointing to the hosted repository where the function were defined at the time of deployment. It always points to a specific commit in the format described above.

### #url

    def url() -> ::String

**Returns**

- (::String) --- The URL pointing to the hosted repository where the function is defined. There are supported Cloud Source Repository URLs in the following formats:

  To refer to a specific commit:
  `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*`
  To refer to a moveable alias (branch):
  `https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/paths/*`
  In particular, to refer to HEAD use `master` moveable alias.
  To refer to a specific fixed alias (tag):
  `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*`

  You may omit `paths/*` if you want to use the main directory. The function
  response may add an empty `/paths/` to the URL.

### #url=

    def url=(value) -> ::String

**Parameter**

- **value** (::String) --- The URL pointing to the hosted repository where the function is defined. There are supported Cloud Source Repository URLs in the following formats:


  To refer to a specific commit:
  `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*`
  To refer to a moveable alias (branch):
  `https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/paths/*`
  In particular, to refer to HEAD use `master` moveable alias.
  To refer to a specific fixed alias (tag):
  `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*`

  You may omit `paths/*` if you want to use the main directory. The function
  response may add an empty `/paths/` to the URL.
**Returns**

- (::String) --- The URL pointing to the hosted repository where the function is defined. There are supported Cloud Source Repository URLs in the following formats:

  To refer to a specific commit:
  `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*`
  To refer to a moveable alias (branch):
  `https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/paths/*`
  In particular, to refer to HEAD use `master` moveable alias.
  To refer to a specific fixed alias (tag):
  `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*`

  You may omit `paths/*` if you want to use the main directory. The function
  response may add an empty `/paths/` to the URL.