public sealed class Source : IMessage<Source>, IEquatable<Source>, IDeepCloneable<Source>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Functions v2beta API class Source.
The location of the function source code.
Namespace
Google.Cloud.Functions.V2BetaAssembly
Google.Cloud.Functions.V2Beta.dll
Constructors
Source()
public Source()
Source(Source)
public Source(Source other)
Parameter | |
---|---|
Name | Description |
other |
Source |
Properties
GitUri
public string GitUri { get; set; }
If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https://github.com/<user>/<repo>/blob/<commit>/<path-to-code>;
Property Value | |
---|---|
Type | Description |
string |
HasGitUri
public bool HasGitUri { get; }
Gets whether the "git_uri" field is set
Property Value | |
---|---|
Type | Description |
bool |
RepoSource
public RepoSource RepoSource { get; set; }
If provided, get the source from this location in a Cloud Source Repository.
Property Value | |
---|---|
Type | Description |
RepoSource |
SourceCase
public Source.SourceOneofCase SourceCase { get; }
Property Value | |
---|---|
Type | Description |
SourceSourceOneofCase |
StorageSource
public StorageSource StorageSource { get; set; }
If provided, get the source from this location in Google Cloud Storage.
Property Value | |
---|---|
Type | Description |
StorageSource |