Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class GitSource.
Specifies source code to be fetched from a public Git repository.
Generated from protobuf message google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource
Namespace
Google \ Cloud \ AIPlatform \ V1 \ ReasoningEngineSpec \ SourceCodeSpecMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ url |
string
Required. The HTTPS URL of the public Git repository to clone. |
↳ dir |
string
Optional. Directory, relative to the source root, in which to run the build. |
↳ revision |
string
Required. The revision to fetch from the Git repository: a branch, a tag, or a full commit SHA. Abbreviated commit SHAs are not supported. |
getUrl
Required. The HTTPS URL of the public Git repository to clone.
| Returns | |
|---|---|
| Type | Description |
string |
|
setUrl
Required. The HTTPS URL of the public Git repository to clone.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDir
Optional. Directory, relative to the source root, in which to run the build.
| Returns | |
|---|---|
| Type | Description |
string |
|
setDir
Optional. Directory, relative to the source root, in which to run the build.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRevision
Required. The revision to fetch from the Git repository: a branch, a tag, or a full commit SHA. Abbreviated commit SHAs are not supported.
| Returns | |
|---|---|
| Type | Description |
string |
|
setRevision
Required. The revision to fetch from the Git repository: a branch, a tag, or a full commit SHA. Abbreviated commit SHAs are not supported.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|