Google Cloud Gke Hub V1 Client - Class GitConfig (1.0.0)

Reference documentation and code samples for the Google Cloud Gke Hub V1 Client class GitConfig.

Git repo configuration for a single cluster.

Generated from protobuf message google.cloud.gkehub.configmanagement.v1.GitConfig

Namespace

Google \ Cloud \ GkeHub \ ConfigManagement \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ sync_repo string

The URL of the Git repository to use as the source of truth.

↳ sync_branch string

The branch of the repository to sync from. Default: master.

↳ policy_dir string

The path within the Git repository that represents the top level of the repo to sync. Default: the root directory of the repository.

↳ sync_wait_secs int|string

Period in seconds between consecutive syncs. Default: 15.

↳ sync_rev string

Git revision (tag or hash) to check out. Default HEAD.

↳ secret_type string

Type of secret configured for access to the Git repo. Must be one of ssh, cookiefile, gcenode, token, gcpserviceaccount or none. The validation of this is case-sensitive. Required.

↳ https_proxy string

URL for the HTTPS proxy to be used when communicating with the Git repo.

↳ gcp_service_account_email string

The Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount.

getSyncRepo

The URL of the Git repository to use as the source of truth.

Returns
Type Description
string

setSyncRepo

The URL of the Git repository to use as the source of truth.

Parameter
Name Description
var string
Returns
Type Description
$this

getSyncBranch

The branch of the repository to sync from. Default: master.

Returns
Type Description
string

setSyncBranch

The branch of the repository to sync from. Default: master.

Parameter
Name Description
var string
Returns
Type Description
$this

getPolicyDir

The path within the Git repository that represents the top level of the repo to sync. Default: the root directory of the repository.

Returns
Type Description
string

setPolicyDir

The path within the Git repository that represents the top level of the repo to sync. Default: the root directory of the repository.

Parameter
Name Description
var string
Returns
Type Description
$this

getSyncWaitSecs

Period in seconds between consecutive syncs. Default: 15.

Returns
Type Description
int|string

setSyncWaitSecs

Period in seconds between consecutive syncs. Default: 15.

Parameter
Name Description
var int|string
Returns
Type Description
$this

getSyncRev

Git revision (tag or hash) to check out. Default HEAD.

Returns
Type Description
string

setSyncRev

Git revision (tag or hash) to check out. Default HEAD.

Parameter
Name Description
var string
Returns
Type Description
$this

getSecretType

Type of secret configured for access to the Git repo. Must be one of ssh, cookiefile, gcenode, token, gcpserviceaccount or none. The validation of this is case-sensitive. Required.

Returns
Type Description
string

setSecretType

Type of secret configured for access to the Git repo. Must be one of ssh, cookiefile, gcenode, token, gcpserviceaccount or none. The validation of this is case-sensitive. Required.

Parameter
Name Description
var string
Returns
Type Description
$this

getHttpsProxy

URL for the HTTPS proxy to be used when communicating with the Git repo.

Returns
Type Description
string

setHttpsProxy

URL for the HTTPS proxy to be used when communicating with the Git repo.

Parameter
Name Description
var string
Returns
Type Description
$this

getGcpServiceAccountEmail

The Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount.

Returns
Type Description
string

setGcpServiceAccountEmail

The Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount.

Parameter
Name Description
var string
Returns
Type Description
$this