Google Cloud Config V1 Client - Class GitSource (0.1.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
NameDescription
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
TypeDescription
string

hasRepo

clearRepo

setRepo

Optional. Repository URL.

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDirectory

Optional. Subdirectory inside the repository.

Example: 'staging/my-package'

Returns
TypeDescription
string

hasDirectory

clearDirectory

setDirectory

Optional. Subdirectory inside the repository.

Example: 'staging/my-package'

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getRef

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

Returns
TypeDescription
string

hasRef

clearRef

setRef

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this