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

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
NameDescription
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.

↳ https_proxy string

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

↳ gcp_service_account_email string

The GCP 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
TypeDescription
string

setSyncRepo

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSyncBranch

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

Returns
TypeDescription
string

setSyncBranch

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

Parameter
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getSyncWaitSecs

Period in seconds between consecutive syncs. Default: 15.

Returns
TypeDescription
int|string

setSyncWaitSecs

Period in seconds between consecutive syncs. Default: 15.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getSyncRev

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

Returns
TypeDescription
string

setSyncRev

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSecretType

Type of secret configured for access to the Git repo.

Returns
TypeDescription
string

setSecretType

Type of secret configured for access to the Git repo.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getHttpsProxy

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

Returns
TypeDescription
string

setHttpsProxy

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getGcpServiceAccountEmail

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

Returns
TypeDescription
string

setGcpServiceAccountEmail

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this