Google Cloud Config V1 Client - Class GitSource (1.0.1)

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

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

↳ directory string

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

↳ ref string

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

getRepo

Optional. Repository URL.

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

Returns
Type Description
string

hasRepo

clearRepo

setRepo

Optional. Repository URL.

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

Parameter
Name Description
var string
Returns
Type Description
$this

getDirectory

Optional. Subdirectory inside the repository.

Example: 'staging/my-package'

Returns
Type Description
string

hasDirectory

clearDirectory

setDirectory

Optional. Subdirectory inside the repository.

Example: 'staging/my-package'

Parameter
Name Description
var string
Returns
Type Description
$this

getRef

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

Returns
Type Description
string

hasRef

clearRef

setRef

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

Parameter
Name Description
var string
Returns
Type Description
$this