2.8.0 (latest) 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.3.0 1.2.0 1.1.0

    public sealed class SourceRepository : IMessage<SourceRepository>, IEquatable<SourceRepository>, IDeepCloneable<SourceRepository>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Functions v1 API class SourceRepository.

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

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> SourceRepository

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[SourceRepository](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.SourceRepository.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SourceRepository](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.SourceRepository.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[SourceRepository](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.SourceRepository.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Functions.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.md.txt)

## Assembly

Google.Cloud.Functions.V1.dll

## Constructors

### SourceRepository()

    public SourceRepository()

### SourceRepository(SourceRepository)

    public SourceRepository(SourceRepository other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `SourceRepository` |

## Properties

### DeployedUrl

    public string DeployedUrl { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Url

    public string Url { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |