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.
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.
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."],[[["The `SourceRepository` class in the Google Cloud Functions v1 API represents parameters for a function's hosted source repository."],["This class implements several interfaces, including `IMessage`, `IEquatable`, and `IDeepCloneable`, providing functionalities for message handling, equality checks, and deep cloning."],["`SourceRepository` has two key properties: `DeployedUrl`, which provides the URL of the repository at the time of deployment, and `Url`, specifying the repository's location and allowing references to specific commits, branches, or tags."],["The documentation covers versions ranging from 1.1.0 to the latest 2.7.0, and version 2.5.0 of `SourceRepository` is the current reference point within this specific documentation, while the latest version available is 2.7.0."],["It inherits core members such as `GetHashCode`, `GetType`, and `ToString` from the base `object` class, with specific constructors to make new instances of `SourceRepository`."]]],[]]