Google Cloud Gke Hub V1 Client - Class SyncState (1.0.0-RC1)

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

State indicating an ACM's progress syncing configurations to a cluster

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

Namespace

Google \ Cloud \ GkeHub \ ConfigManagement \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ source_token string

Token indicating the state of the repo.

↳ import_token string

Token indicating the state of the importer.

↳ sync_token string

Token indicating the state of the syncer.

↳ last_sync string

Deprecated: use last_sync_time instead. Timestamp of when ACM last successfully synced the repo The time format is specified in https://golang.org/pkg/time/#Time.String

↳ last_sync_time Google\Protobuf\Timestamp

Timestamp type of when ACM last successfully synced the repo

↳ code int

Sync status code

↳ errors array<Google\Cloud\GkeHub\ConfigManagement\V1\SyncError>

A list of errors resulting from problematic configs. This list will be truncated after 100 errors, although it is unlikely for that many errors to simultaneously exist.

getSourceToken

Token indicating the state of the repo.

Returns
Type Description
string

setSourceToken

Token indicating the state of the repo.

Parameter
Name Description
var string
Returns
Type Description
$this

getImportToken

Token indicating the state of the importer.

Returns
Type Description
string

setImportToken

Token indicating the state of the importer.

Parameter
Name Description
var string
Returns
Type Description
$this

getSyncToken

Token indicating the state of the syncer.

Returns
Type Description
string

setSyncToken

Token indicating the state of the syncer.

Parameter
Name Description
var string
Returns
Type Description
$this

getLastSync

Deprecated: use last_sync_time instead.

Timestamp of when ACM last successfully synced the repo The time format is specified in https://golang.org/pkg/time/#Time.String

Returns
Type Description
string

setLastSync

Deprecated: use last_sync_time instead.

Timestamp of when ACM last successfully synced the repo The time format is specified in https://golang.org/pkg/time/#Time.String

Parameter
Name Description
var string
Returns
Type Description
$this

getLastSyncTime

Timestamp type of when ACM last successfully synced the repo

Returns
Type Description
Google\Protobuf\Timestamp|null

hasLastSyncTime

clearLastSyncTime

setLastSyncTime

Timestamp type of when ACM last successfully synced the repo

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getCode

Sync status code

Returns
Type Description
int

setCode

Sync status code

Parameter
Name Description
var int
Returns
Type Description
$this

getErrors

A list of errors resulting from problematic configs.

This list will be truncated after 100 errors, although it is unlikely for that many errors to simultaneously exist.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setErrors

A list of errors resulting from problematic configs.

This list will be truncated after 100 errors, although it is unlikely for that many errors to simultaneously exist.

Parameter
Name Description
var array<Google\Cloud\GkeHub\ConfigManagement\V1\SyncError>
Returns
Type Description
$this