# GKE Hub V1 API - Class Google::Cloud::GkeHub::ConfigManagement::V1::SyncState (v2.6.0)

2.6.0 (latest) 2.5.0 2.4.1 2.3.0 2.2.0 2.1.0 2.0.1 1.2.0 1.1.0 1.0.1 0.10.0 0.9.0 0.8.2 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.2 Reference documentation and code samples for the GKE Hub V1 API class Google::Cloud::GkeHub::ConfigManagement::V1::SyncState.

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #code

    def code() -> ::Google::Cloud::GkeHub::ConfigManagement::V1::SyncState::SyncCode

**Returns**

- ([::Google::Cloud::GkeHub::ConfigManagement::V1::SyncState::SyncCode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Cloud-GkeHub-ConfigManagement-V1-SyncState-SyncCode)) --- Sync status code

### #code=

    def code=(value) -> ::Google::Cloud::GkeHub::ConfigManagement::V1::SyncState::SyncCode

**Parameter**

- **value** ([::Google::Cloud::GkeHub::ConfigManagement::V1::SyncState::SyncCode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Cloud-GkeHub-ConfigManagement-V1-SyncState-SyncCode)) --- Sync status code
**Returns**

- ([::Google::Cloud::GkeHub::ConfigManagement::V1::SyncState::SyncCode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Cloud-GkeHub-ConfigManagement-V1-SyncState-SyncCode)) --- Sync status code

### #errors

    def errors() -> ::Array<::Google::Cloud::GkeHub::ConfigManagement::V1::SyncError>

**Returns**

- (::Array\<[::Google::Cloud::GkeHub::ConfigManagement::V1::SyncError](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/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.

### #errors=

    def errors=(value) -> ::Array<::Google::Cloud::GkeHub::ConfigManagement::V1::SyncError>

**Parameter**

- **value** (::Array\<[::Google::Cloud::GkeHub::ConfigManagement::V1::SyncError](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/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.
**Returns**

- (::Array\<[::Google::Cloud::GkeHub::ConfigManagement::V1::SyncError](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/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.

### #import_token

    def import_token() -> ::String

**Returns**

- (::String) --- Token indicating the state of the importer.

### #import_token=

    def import_token=(value) -> ::String

**Parameter**

- **value** (::String) --- Token indicating the state of the importer.
**Returns**

- (::String) --- Token indicating the state of the importer.

### #last_sync

    def last_sync() -> ::String

**Returns**

- (::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=

    def last_sync=(value) -> ::String

**Parameter**

- **value** (::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
**Returns**

- (::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

    def last_sync_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Protobuf-Timestamp)) --- Timestamp type of when ACM last successfully synced the repo

### #last_sync_time=

    def last_sync_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Protobuf-Timestamp)) --- Timestamp type of when ACM last successfully synced the repo
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Protobuf-Timestamp)) --- Timestamp type of when ACM last successfully synced the repo

### #source_token

    def source_token() -> ::String

**Returns**

- (::String) --- Token indicating the state of the repo.

### #source_token=

    def source_token=(value) -> ::String

**Parameter**

- **value** (::String) --- Token indicating the state of the repo.
**Returns**

- (::String) --- Token indicating the state of the repo.

### #sync_token

    def sync_token() -> ::String

**Returns**

- (::String) --- Token indicating the state of the syncer.

### #sync_token=

    def sync_token=(value) -> ::String

**Parameter**

- **value** (::String) --- Token indicating the state of the syncer.
**Returns**

- (::String) --- Token indicating the state of the syncer.