Reference documentation and code samples for the Google Cloud Run V2 Client class SourceCode.
Source type for the container.
Generated from protobuf message google.cloud.run.v2.SourceCode
Namespace
Google \ Cloud \ Run \ V2Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ cloud_storage_source |
SourceCode\CloudStorageSource
The source is a Cloud Storage bucket. |
↳ inlined_source |
SourceCode\InlinedSource
Optional. Input only. Source code inlined in the request. Cloud Run will store the inlined_source to Cloud Storage and replace the field with cloud_storage_source. This field is only supported in Cloud Run Service. |
getCloudStorageSource
The source is a Cloud Storage bucket.
| Returns | |
|---|---|
| Type | Description |
SourceCode\CloudStorageSource|null |
|
hasCloudStorageSource
setCloudStorageSource
The source is a Cloud Storage bucket.
| Parameter | |
|---|---|
| Name | Description |
var |
SourceCode\CloudStorageSource
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getInlinedSource
Optional. Input only. Source code inlined in the request. Cloud Run will store the inlined_source to Cloud Storage and replace the field with cloud_storage_source. This field is only supported in Cloud Run Service.
| Returns | |
|---|---|
| Type | Description |
SourceCode\InlinedSource|null |
|
hasInlinedSource
setInlinedSource
Optional. Input only. Source code inlined in the request. Cloud Run will store the inlined_source to Cloud Storage and replace the field with cloud_storage_source. This field is only supported in Cloud Run Service.
| Parameter | |
|---|---|
| Name | Description |
var |
SourceCode\InlinedSource
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSourceType
| Returns | |
|---|---|
| Type | Description |
string |
|