Google Cloud Gke Hub V1 Client - Class SyncState (0.8.2)

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
NameDescription
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
TypeDescription
string

setSourceToken

Token indicating the state of the repo.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getImportToken

Token indicating the state of the importer.

Returns
TypeDescription
string

setImportToken

Token indicating the state of the importer.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSyncToken

Token indicating the state of the syncer.

Returns
TypeDescription
string

setSyncToken

Token indicating the state of the syncer.

Parameter
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getLastSyncTime

Timestamp type of when ACM last successfully synced the repo

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasLastSyncTime

clearLastSyncTime

setLastSyncTime

Timestamp type of when ACM last successfully synced the repo

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getCode

Sync status code

Returns
TypeDescription
int

setCode

Sync status code

Parameter
NameDescription
var int
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var array<Google\Cloud\GkeHub\ConfigManagement\V1\SyncError>
Returns
TypeDescription
$this