Google Cloud Gke Hub V1 Client - Class ConfigSync (0.9.5)

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

Configuration for Config Sync

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

Namespace

Google \ Cloud \ GkeHub \ ConfigManagement \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ git Google\Cloud\GkeHub\ConfigManagement\V1\GitConfig

Git repo configuration for the cluster.

↳ source_format string

Specifies whether the Config Sync Repo is in “hierarchical” or “unstructured” mode.

getGit

Git repo configuration for the cluster.

Returns
Type Description
Google\Cloud\GkeHub\ConfigManagement\V1\GitConfig|null

hasGit

clearGit

setGit

Git repo configuration for the cluster.

Parameter
Name Description
var Google\Cloud\GkeHub\ConfigManagement\V1\GitConfig
Returns
Type Description
$this

getSourceFormat

Specifies whether the Config Sync Repo is in “hierarchical” or “unstructured” mode.

Returns
Type Description
string

setSourceFormat

Specifies whether the Config Sync Repo is in “hierarchical” or “unstructured” mode.

Parameter
Name Description
var string
Returns
Type Description
$this