public sealed class SourceCode.Types.SourceFile : IMessage<SourceCode.Types.SourceFile>, IEquatable<SourceCode.Types.SourceFile>, IDeepCloneable<SourceCode.Types.SourceFile>, IBufferMessage, IMessageReference documentation and code samples for the Cloud Run Admin v2 API class SourceCode.Types.SourceFile.
Source file.
Implements
IMessageSourceCodeTypesSourceFile, IEquatableSourceCodeTypesSourceFile, IDeepCloneableSourceCodeTypesSourceFile, IBufferMessage, IMessageNamespace
Google.Cloud.Run.V2Assembly
Google.Cloud.Run.V2.dll
Constructors
SourceFile()
public SourceFile()SourceFile(SourceFile)
public SourceFile(SourceCode.Types.SourceFile other)| Parameter | |
|---|---|
| Name | Description |
other |
SourceCodeTypesSourceFile |
Properties
Content
public string Content { get; set; }Required. Input only. Represents the exact, literal, and complete source
code of the file. Placeholders like ... or comments such as # [rest of
code] should NEVER be used as omission. Every character in this field
will be built into the final container. Any omission will result in a
broken application.
| Property Value | |
|---|---|
| Type | Description |
string |
|
Filename
public string Filename { get; set; }Required. Input only. The file name for the source code. e.g.,
"index.js" or
"node_modules/dependency.js". The filename must be less than 255
characters and cannot contain .., ./, //, or end with a /.
Cloud Run will place the files in the container subdirectories, please
use relative path to access the file.
| Property Value | |
|---|---|
| Type | Description |
string |
|