Reference documentation and code samples for the Google Cloud Build V1 Client class GitRepoSource.
GitRepoSource describes a repo and ref of a code repository.
Generated from protobuf message google.devtools.cloudbuild.v1.GitRepoSource
Namespace
Google \ Cloud \ Build \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ uri |
string
The URI of the repo (e.g. https://github.com/user/repo.git). Either |
↳ repository |
string
The connected repository resource name, in the format |
↳ ref |
string
The branch or tag to use. Must start with "refs/" (required). |
↳ repo_type |
int
See RepoType below. |
↳ github_enterprise_config |
string
The full resource name of the github enterprise config. Format: |
getUri
The URI of the repo (e.g. https://github.com/user/repo.git).
Either uri or repository can be specified and is required.
| Returns | |
|---|---|
| Type | Description |
string |
|
setUri
The URI of the repo (e.g. https://github.com/user/repo.git).
Either uri or repository can be specified and is required.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRepository
The connected repository resource name, in the format
projects/*/locations/*/connections/*/repositories/*. Either uri or
repository can be specified and is required.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasRepository
setRepository
The connected repository resource name, in the format
projects/*/locations/*/connections/*/repositories/*. Either uri or
repository can be specified and is required.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRef
The branch or tag to use. Must start with "refs/" (required).
| Returns | |
|---|---|
| Type | Description |
string |
|
setRef
The branch or tag to use. Must start with "refs/" (required).
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRepoType
See RepoType below.
| Returns | |
|---|---|
| Type | Description |
int |
|
setRepoType
See RepoType below.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getGithubEnterpriseConfig
The full resource name of the github enterprise config.
Format:
projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}.
projects/{project}/githubEnterpriseConfigs/{id}.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasGithubEnterpriseConfig
setGithubEnterpriseConfig
The full resource name of the github enterprise config.
Format:
projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}.
projects/{project}/githubEnterpriseConfigs/{id}.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSource
| Returns | |
|---|---|
| Type | Description |
string |
|
getEnterpriseConfig
| Returns | |
|---|---|
| Type | Description |
string |
|