Google Cloud Config V1 Client - Class GitSource (1.10.3)

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

A set of files in a Git repository.

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

Namespace

Google \ Cloud \ Config \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ repo string

Repository URL. Example: 'https://github.com/kubernetes/examples.git'

↳ directory string

Subdirectory inside the repository. Example: 'staging/my-package'

↳ ref string

Git reference (e.g. branch or tag).

getRepo

Repository URL.

Example: 'https://github.com/kubernetes/examples.git'

Returns
Type Description
string

hasRepo

clearRepo

setRepo

Repository URL.

Example: 'https://github.com/kubernetes/examples.git'

Parameter
Name Description
var string
Returns
Type Description
$this

getDirectory

Subdirectory inside the repository.

Example: 'staging/my-package'

Returns
Type Description
string

hasDirectory

clearDirectory

setDirectory

Subdirectory inside the repository.

Example: 'staging/my-package'

Parameter
Name Description
var string
Returns
Type Description
$this

getRef

Git reference (e.g. branch or tag).

Returns
Type Description
string

hasRef

clearRef

setRef

Git reference (e.g. branch or tag).

Parameter
Name Description
var string
Returns
Type Description
$this