public sealed class SourceRepository : IMessage<SourceRepository>, IEquatable<SourceRepository>, IDeepCloneable<SourceRepository>, IBufferMessage, IMessage
Describes SourceRepository, used to represent parameters related to
source repository where a function is hosted.
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
System.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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis webpage details the \u003ccode\u003eSourceRepository\u003c/code\u003e class, which is used to define parameters for source repositories hosting functions.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSourceRepository\u003c/code\u003e class is part of the \u003ccode\u003eGoogle.Cloud.Functions.V1\u003c/code\u003e namespace and is available in the \u003ccode\u003eGoogle.Cloud.Functions.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eIt implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides two constructors, one default and another that accepts a \u003ccode\u003eSourceRepository\u003c/code\u003e object as a parameter, and offers two properties: \u003ccode\u003eDeployedUrl\u003c/code\u003e (output-only) and \u003ccode\u003eUrl\u003c/code\u003e, which specify the locations of the hosted function's source repository.\u003c/p\u003e\n"],["\u003cp\u003eThe page has a list of accessible versions for the SourceRepository class ranging from 1.1.0 to 2.7.0, with 2.7.0 being the most recent.\u003c/p\u003e\n"]]],[],null,[]]