Reference documentation and code samples for the Google Cloud Build V2 Client class FetchGitRefsRequest.
Request for fetching git refs
Generated from protobuf message google.devtools.cloudbuild.v2.FetchGitRefsRequest
Namespace
Google \ Cloud \ Build \ V2Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ repository |
string
Required. The resource name of the repository in the format |
↳ ref_type |
int
Type of refs to fetch |
getRepository
Required. The resource name of the repository in the format
projects/*/locations/*/connections/*/repositories/*.
| Returns | |
|---|---|
| Type | Description |
string |
|
setRepository
Required. The resource name of the repository in the format
projects/*/locations/*/connections/*/repositories/*.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRefType
Type of refs to fetch
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type RefType. |
setRefType
Type of refs to fetch
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type RefType. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
static::build
| Parameter | |
|---|---|
| Name | Description |
repository |
string
Required. The resource name of the repository in the format
|
| Returns | |
|---|---|
| Type | Description |
FetchGitRefsRequest |
|