Google Cloud Design Center V1 Client - Class GitSource (0.1.0)

Reference documentation and code samples for the Google Cloud Design Center V1 Client class GitSource.

Defines how to access a Git source.

Generated from protobuf message google.cloud.designcenter.v1.GitSource

Namespace

Google \ Cloud \ DesignCenter \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ repo string

Required. Location of the git repo to build.

↳ dir string

Optional. 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_sha string

Output only. The commit SHA of the git repo deduced from given ref_tag.

↳ developer_connect_config DeveloperConnectConfig

Optional. This config defines the location of a source through Developer Connect. Used to access private git repos.

↳ ref_tag string

Required. The reference tag of the git repo.

getRepo

Required. Location of the git repo to build.

Returns
Type Description
string

setRepo

Required. Location of the git repo to build.

Parameter
Name Description
var string
Returns
Type Description
$this

getDir

Optional. 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
Type Description
string

setDir

Optional. 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
Name Description
var string
Returns
Type Description
$this

getCommitSha

Output only. The commit SHA of the git repo deduced from given ref_tag.

Returns
Type Description
string

setCommitSha

Output only. The commit SHA of the git repo deduced from given ref_tag.

Parameter
Name Description
var string
Returns
Type Description
$this

getDeveloperConnectConfig

Optional. This config defines the location of a source through Developer Connect. Used to access private git repos.

Returns
Type Description
DeveloperConnectConfig|null

hasDeveloperConnectConfig

clearDeveloperConnectConfig

setDeveloperConnectConfig

Optional. This config defines the location of a source through Developer Connect. Used to access private git repos.

Parameter
Name Description
var DeveloperConnectConfig
Returns
Type Description
$this

getRefTag

Required. The reference tag of the git repo.

Returns
Type Description
string

setRefTag

Required. The reference tag of the git repo.

Parameter
Name Description
var string
Returns
Type Description
$this