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

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
NameDescription
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
TypeDescription
Google\Cloud\GkeHub\ConfigManagement\V1\GitConfig|null

hasGit

clearGit

setGit

Git repo configuration for the cluster.

Parameter
NameDescription
var Google\Cloud\GkeHub\ConfigManagement\V1\GitConfig
Returns
TypeDescription
$this

getSourceFormat

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

Returns
TypeDescription
string

setSourceFormat

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this