Class: Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1RestoreDatabaseMetadata

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

Overview

Metadata for the long-running operation from the RestoreDatabase request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleFirestoreAdminV1RestoreDatabaseMetadata

Returns a new instance of GoogleFirestoreAdminV1RestoreDatabaseMetadata.



1225
1226
1227
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1225

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

Instance Attribute Details

#backup ⇒ String

The name of the backup restoring from. Corresponds to the JSON property backup

Returns:

  • (String)


1197
1198
1199
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1197

def backup
  @backup
end

#database ⇒ String

The name of the database being restored to. Corresponds to the JSON property database

Returns:

  • (String)


1202
1203
1204
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1202

def database
  @database
end

#end_time ⇒ String

The time the restore finished, unset for ongoing restores. Corresponds to the JSON property endTime

Returns:

  • (String)


1207
1208
1209
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1207

def end_time
  @end_time
end

#operation_state ⇒ String

The operation state of the restore. Corresponds to the JSON property operationState

Returns:

  • (String)


1212
1213
1214
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1212

def operation_state
  @operation_state
end

#progress_percentage ⇒ Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1Progress

Describes the progress of the operation. Unit of work is generic and must be interpreted based on where Progress is used. Corresponds to the JSON property progressPercentage



1218
1219
1220
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1218

def progress_percentage
  @progress_percentage
end

#start_time ⇒ String

The time the restore was started. Corresponds to the JSON property startTime

Returns:

  • (String)


1223
1224
1225
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1223

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1230
1231
1232
1233
1234
1235
1236
1237
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1230

def update!(**args)
  @backup = args[:backup] if args.key?(:backup)
  @database = args[:database] if args.key?(:database)
  @end_time = args[:end_time] if args.key?(:end_time)
  @operation_state = args[:operation_state] if args.key?(:operation_state)
  @progress_percentage = args[:progress_percentage] if args.key?(:progress_percentage)
  @start_time = args[:start_time] if args.key?(:start_time)
end