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 \ V1Methods
__construct
Constructor.
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.
string
setSyncRepo
The URL of the Git repository to use as the source of truth.
var
string
$this
getSyncBranch
The branch of the repository to sync from. Default: master.
string
setSyncBranch
The branch of the repository to sync from. Default: master.
var
string
$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.
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.
var
string
$this
getSyncWaitSecs
Period in seconds between consecutive syncs. Default: 15.
int|string
setSyncWaitSecs
Period in seconds between consecutive syncs. Default: 15.
var
int|string
$this
getSyncRev
Git revision (tag or hash) to check out. Default HEAD.
string
setSyncRev
Git revision (tag or hash) to check out. Default HEAD.
var
string
$this
getSecretType
Type of secret configured for access to the Git repo.
string
setSecretType
Type of secret configured for access to the Git repo.
var
string
$this
getHttpsProxy
URL for the HTTPS proxy to be used when communicating with the Git repo.
string
setHttpsProxy
URL for the HTTPS proxy to be used when communicating with the Git repo.
var
string
$this
getGcpServiceAccountEmail
The GCP Service Account Email used for auth when secret_type is gcpServiceAccount.
string
setGcpServiceAccountEmail
The GCP Service Account Email used for auth when secret_type is gcpServiceAccount.
var
string
$this