Class: Google::Apis::GkehubV2::ConfigManagementSyncState

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gkehub_v2/classes.rb,
lib/google/apis/gkehub_v2/representations.rb,
lib/google/apis/gkehub_v2/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConfigManagementSyncState

Returns a new instance of ConfigManagementSyncState.



1338
1339
1340
# File 'lib/google/apis/gkehub_v2/classes.rb', line 1338

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#codeString

Sync status code. Corresponds to the JSON property code

Returns:

  • (String)


1302
1303
1304
# File 'lib/google/apis/gkehub_v2/classes.rb', line 1302

def code
  @code
end

#errorsArray<Google::Apis::GkehubV2::ConfigManagementSyncError>

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. Corresponds to the JSON property errors



1309
1310
1311
# File 'lib/google/apis/gkehub_v2/classes.rb', line 1309

def errors
  @errors
end

#import_tokenString

Token indicating the state of the importer. Corresponds to the JSON property importToken

Returns:

  • (String)


1314
1315
1316
# File 'lib/google/apis/gkehub_v2/classes.rb', line 1314

def import_token
  @import_token
end

#last_syncString

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 Corresponds to the JSON property lastSync

Returns:

  • (String)


1321
1322
1323
# File 'lib/google/apis/gkehub_v2/classes.rb', line 1321

def last_sync
  @last_sync
end

#last_sync_timeString

Timestamp type of when ACM last successfully synced the repo. Corresponds to the JSON property lastSyncTime

Returns:

  • (String)


1326
1327
1328
# File 'lib/google/apis/gkehub_v2/classes.rb', line 1326

def last_sync_time
  @last_sync_time
end

#source_tokenString

Token indicating the state of the repo. Corresponds to the JSON property sourceToken

Returns:

  • (String)


1331
1332
1333
# File 'lib/google/apis/gkehub_v2/classes.rb', line 1331

def source_token
  @source_token
end

#sync_tokenString

Token indicating the state of the syncer. Corresponds to the JSON property syncToken

Returns:

  • (String)


1336
1337
1338
# File 'lib/google/apis/gkehub_v2/classes.rb', line 1336

def sync_token
  @sync_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1343
1344
1345
1346
1347
1348
1349
1350
1351
# File 'lib/google/apis/gkehub_v2/classes.rb', line 1343

def update!(**args)
  @code = args[:code] if args.key?(:code)
  @errors = args[:errors] if args.key?(:errors)
  @import_token = args[:import_token] if args.key?(:import_token)
  @last_sync = args[:last_sync] if args.key?(:last_sync)
  @last_sync_time = args[:last_sync_time] if args.key?(:last_sync_time)
  @source_token = args[:source_token] if args.key?(:source_token)
  @sync_token = args[:sync_token] if args.key?(:sync_token)
end