Google Cloud Private Catalog V1beta1 Client - Class GitSource (0.4.0)

Reference documentation and code samples for the Google Cloud Private Catalog V1beta1 Client class GitSource.

Defines how to access a Git Source.

Generated from protobuf message google.cloud.privatecatalog.v1beta1.GitSource

Namespace

Google \ Cloud \ PrivateCatalog \ V1beta1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ repo string

Location of the Git repo to build.

↳ dir string

Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's dir is specified and is an absolute path, this value is ignored for that step's execution.

↳ commit string

The revision commit to use.

↳ branch string

The revision branch to use.

↳ tag string

The revision tag to use.

getRepo

Location of the Git repo to build.

Returns
TypeDescription
string

setRepo

Location of the Git repo to build.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDir

Directory, relative to the source root, in which to run the build.

This must be a relative path. If a step's dir is specified and is an absolute path, this value is ignored for that step's execution.

Returns
TypeDescription
string

setDir

Directory, relative to the source root, in which to run the build.

This must be a relative path. If a step's dir is specified and is an absolute path, this value is ignored for that step's execution.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCommit

The revision commit to use.

Returns
TypeDescription
string

hasCommit

setCommit

The revision commit to use.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getBranch

The revision branch to use.

Returns
TypeDescription
string

hasBranch

setBranch

The revision branch to use.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTag

The revision tag to use.

Returns
TypeDescription
string

hasTag

setTag

The revision tag to use.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getRef

Returns
TypeDescription
string