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 \ V1Methods
__construct
Constructor.
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
↳ 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.
string
setSourceToken
Token indicating the state of the repo.
var
string
$this
getImportToken
Token indicating the state of the importer.
string
setImportToken
Token indicating the state of the importer.
var
string
$this
getSyncToken
Token indicating the state of the syncer.
string
setSyncToken
Token indicating the state of the syncer.
var
string
$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
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
var
string
$this
getLastSyncTime
Timestamp type of when ACM last successfully synced the repo
hasLastSyncTime
clearLastSyncTime
setLastSyncTime
Timestamp type of when ACM last successfully synced the repo
$this
getCode
Sync status code
int
setCode
Sync status code
var
int
$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.
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.
$this