Reference documentation and code samples for the Google Cloud Run V2 Client class SourceFile.
Source file.
Generated from protobuf message google.cloud.run.v2.SourceCode.SourceFile
Namespace
Google \ Cloud \ Run \ V2 \ SourceCodeMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ filename |
string
Required. Input only. The file name for the source code. e.g., |
↳ content |
string
Required. Input only. Represents the exact, literal, and complete source code of the file. Placeholders like |
getFilename
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.
| Returns | |
|---|---|
| Type | Description |
string |
|
setFilename
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.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getContent
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.
| Returns | |
|---|---|
| Type | Description |
string |
|
setContent
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.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|