Interface ConfigSyncOrBuilder (1.56.0)

public interface ConfigSyncOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getEnabled()

public abstract boolean getEnabled()

Optional. Enables the installation of ConfigSync. If set to true, ConfigSync resources will be created and the other ConfigSync fields will be applied if exist. If set to false, all other ConfigSync fields will be ignored, ConfigSync resources will be deleted. If omitted, ConfigSync resources will be managed depends on the presence of the git or oci field.

optional bool enabled = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The enabled.

getGit()

public abstract GitConfig getGit()

Optional. Git repo configuration for the cluster.

.google.cloud.gkehub.configmanagement.v1beta.GitConfig git = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GitConfig

The git.

getGitOrBuilder()

public abstract GitConfigOrBuilder getGitOrBuilder()

Optional. Git repo configuration for the cluster.

.google.cloud.gkehub.configmanagement.v1beta.GitConfig git = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GitConfigOrBuilder

getOci()

public abstract OciConfig getOci()

Optional. OCI repo configuration for the cluster

.google.cloud.gkehub.configmanagement.v1beta.OciConfig oci = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OciConfig

The oci.

getOciOrBuilder()

public abstract OciConfigOrBuilder getOciOrBuilder()

Optional. OCI repo configuration for the cluster

.google.cloud.gkehub.configmanagement.v1beta.OciConfig oci = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OciConfigOrBuilder

getPreventDrift()

public abstract boolean getPreventDrift()

Optional. Set to true to enable the Config Sync admission webhook to prevent drifts. If set to false, disables the Config Sync admission webhook and does not prevent drifts.

bool prevent_drift = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The preventDrift.

getSourceFormat()

public abstract String getSourceFormat()

Optional. Specifies whether the Config Sync Repo is in "hierarchical" or "unstructured" mode.

string source_format = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The sourceFormat.

getSourceFormatBytes()

public abstract ByteString getSourceFormatBytes()

Optional. Specifies whether the Config Sync Repo is in "hierarchical" or "unstructured" mode.

string source_format = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for sourceFormat.

getStopSyncing()

public abstract boolean getStopSyncing()

Optional. Set to true to stop syncing configs for a single cluster. Default to false.

bool stop_syncing = 16 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The stopSyncing.

hasEnabled()

public abstract boolean hasEnabled()

Optional. Enables the installation of ConfigSync. If set to true, ConfigSync resources will be created and the other ConfigSync fields will be applied if exist. If set to false, all other ConfigSync fields will be ignored, ConfigSync resources will be deleted. If omitted, ConfigSync resources will be managed depends on the presence of the git or oci field.

optional bool enabled = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the enabled field is set.

hasGit()

public abstract boolean hasGit()

Optional. Git repo configuration for the cluster.

.google.cloud.gkehub.configmanagement.v1beta.GitConfig git = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the git field is set.

hasOci()

public abstract boolean hasOci()

Optional. OCI repo configuration for the cluster

.google.cloud.gkehub.configmanagement.v1beta.OciConfig oci = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the oci field is set.