Class: Google::Apis::MetastoreV1alpha::LatestBackup

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

Overview

The details of the latest scheduled backup.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LatestBackup

Returns a new instance of LatestBackup.



1276
1277
1278
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 1276

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

Instance Attribute Details

#backup_idString

Output only. The ID of an in-progress scheduled backup. Empty if no backup is in progress. Corresponds to the JSON property backupId

Returns:

  • (String)


1259
1260
1261
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 1259

def backup_id
  @backup_id
end

#durationString

Output only. The duration of the backup completion. Corresponds to the JSON property duration

Returns:

  • (String)


1264
1265
1266
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 1264

def duration
  @duration
end

#start_timeString

Output only. The time when the backup was started. Corresponds to the JSON property startTime

Returns:

  • (String)


1269
1270
1271
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 1269

def start_time
  @start_time
end

#stateString

Output only. The current state of the backup. Corresponds to the JSON property state

Returns:

  • (String)


1274
1275
1276
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 1274

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1281
1282
1283
1284
1285
1286
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 1281

def update!(**args)
  @backup_id = args[:backup_id] if args.key?(:backup_id)
  @duration = args[:duration] if args.key?(:duration)
  @start_time = args[:start_time] if args.key?(:start_time)
  @state = args[:state] if args.key?(:state)
end