Google Cloud Build V2 Client - Class FetchGitRefsRequest (0.14.0)

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 \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ repository string

Required. The resource name of the repository in the format projects/*/locations/*/connections/*/repositories/*.

↳ ref_type int

Type of refs to fetch

getRepository

Required. The resource name of the repository in the format projects/*/locations/*/connections/*/repositories/*.

Returns
TypeDescription
string

setRepository

Required. The resource name of the repository in the format projects/*/locations/*/connections/*/repositories/*.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getRefType

Type of refs to fetch

Returns
TypeDescription
int

setRefType

Type of refs to fetch

Parameter
NameDescription
var int
Returns
TypeDescription
$this

static::build

Parameter
NameDescription
repository string

Required. The resource name of the repository in the format projects/*/locations/*/connections/*/repositories/*. Please see Google\Cloud\Build\V2\RepositoryManagerClient::repositoryName() for help formatting this field.

Returns
TypeDescription
Google\Cloud\Build\V2\FetchGitRefsRequest